Lines Matching refs:reply
56 struct i1480_evt_confirm *reply = i1480->evt_buf;
64 reply->rceb.bEventType = i1480_CET_VS1;
65 reply->rceb.wEvent = i1480_CMD_MPI_WRITE;
66 result = i1480_cmd(i1480, "MPI-WRITE", sizeof(*cmd) + size, sizeof(*reply));
69 if (reply->bResultCode != UWB_RC_RES_SUCCESS) {
71 reply->bResultCode);
94 * We use the i1480->cmd_buf for the command, i1480->evt_buf for the reply.
96 * As the reply has to fit in 512 bytes (i1480->evt_buffer), the max amount
97 * of values we can read is (512 - sizeof(*reply)) / 3
104 struct i1480_evt_mpi_read *reply = i1480->evt_buf;
110 BUG_ON(size > (i1480->buf_size - sizeof(*reply)) / 3);
119 reply->rceb.bEventType = i1480_CET_VS1;
120 reply->rceb.wEvent = i1480_CMD_MPI_READ;
122 sizeof(*reply) + 3*size);
125 if (reply->bResultCode != UWB_RC_RES_SUCCESS) {
127 reply->bResultCode);
131 if (reply->data[cnt].page != (srcaddr + cnt) >> 8)
134 (srcaddr + cnt) >> 8, reply->data[cnt].page);
135 if (reply->data[cnt].offset != ((srcaddr + cnt) & 0x00ff))
139 reply->data[cnt].offset);
140 data[cnt] = reply->data[cnt].value;