Lines Matching refs:xfer

146 static void fill_data_bytes(struct hci_xfer *xfer, u8 *data,  in fill_data_bytes()  argument
149 xfer->cmd_desc[1] = 0; in fill_data_bytes()
152 xfer->cmd_desc[1] |= CMD_I1_DATA_BYTE_4(data[3]); in fill_data_bytes()
155 xfer->cmd_desc[1] |= CMD_I1_DATA_BYTE_3(data[2]); in fill_data_bytes()
158 xfer->cmd_desc[1] |= CMD_I1_DATA_BYTE_2(data[1]); in fill_data_bytes()
161 xfer->cmd_desc[1] |= CMD_I1_DATA_BYTE_1(data[0]); in fill_data_bytes()
167 xfer->data = NULL; in fill_data_bytes()
171 struct hci_xfer *xfer, in hci_cmd_v1_prep_ccc() argument
176 u8 *data = xfer->data; in hci_cmd_v1_prep_ccc()
177 unsigned int data_len = xfer->data_len; in hci_cmd_v1_prep_ccc()
178 bool rnw = xfer->rnw; in hci_cmd_v1_prep_ccc()
192 xfer->cmd_tid = hci_get_tid(); in hci_cmd_v1_prep_ccc()
196 xfer->cmd_desc[0] = in hci_cmd_v1_prep_ccc()
198 CMD_I0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_ccc()
203 fill_data_bytes(xfer, data, data_len); in hci_cmd_v1_prep_ccc()
206 xfer->cmd_desc[0] = in hci_cmd_v1_prep_ccc()
208 CMD_R0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_ccc()
213 xfer->cmd_desc[1] = in hci_cmd_v1_prep_ccc()
222 struct hci_xfer *xfer) in hci_cmd_v1_prep_i3c_xfer() argument
227 u8 *data = xfer->data; in hci_cmd_v1_prep_i3c_xfer()
228 unsigned int data_len = xfer->data_len; in hci_cmd_v1_prep_i3c_xfer()
229 bool rnw = xfer->rnw; in hci_cmd_v1_prep_i3c_xfer()
231 xfer->cmd_tid = hci_get_tid(); in hci_cmd_v1_prep_i3c_xfer()
235 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i3c_xfer()
237 CMD_I0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_i3c_xfer()
241 fill_data_bytes(xfer, data, data_len); in hci_cmd_v1_prep_i3c_xfer()
244 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i3c_xfer()
246 CMD_R0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_i3c_xfer()
250 xfer->cmd_desc[1] = in hci_cmd_v1_prep_i3c_xfer()
257 struct hci_xfer *xfer) in hci_cmd_v1_prep_i2c_xfer() argument
262 u8 *data = xfer->data; in hci_cmd_v1_prep_i2c_xfer()
263 unsigned int data_len = xfer->data_len; in hci_cmd_v1_prep_i2c_xfer()
264 bool rnw = xfer->rnw; in hci_cmd_v1_prep_i2c_xfer()
266 xfer->cmd_tid = hci_get_tid(); in hci_cmd_v1_prep_i2c_xfer()
270 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i2c_xfer()
272 CMD_I0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_i2c_xfer()
276 fill_data_bytes(xfer, data, data_len); in hci_cmd_v1_prep_i2c_xfer()
279 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i2c_xfer()
281 CMD_R0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_i2c_xfer()
285 xfer->cmd_desc[1] = in hci_cmd_v1_prep_i2c_xfer()
292 struct hci_xfer *xfer; in hci_cmd_v1_daa() local
299 xfer = hci_alloc_xfer(1); in hci_cmd_v1_daa()
300 if (!xfer) in hci_cmd_v1_daa()
324 xfer->cmd_tid = hci_get_tid(); in hci_cmd_v1_daa()
325 xfer->cmd_desc[0] = in hci_cmd_v1_daa()
327 CMD_A0_TID(xfer->cmd_tid) | in hci_cmd_v1_daa()
332 xfer->cmd_desc[1] = 0; in hci_cmd_v1_daa()
333 xfer->completion = &done; in hci_cmd_v1_daa()
334 hci->io->queue_xfer(hci, xfer, 1); in hci_cmd_v1_daa()
336 hci->io->dequeue_xfer(hci, xfer, 1)) { in hci_cmd_v1_daa()
340 if ((RESP_STATUS(xfer->response) == RESP_ERR_ADDR_HEADER || in hci_cmd_v1_daa()
341 RESP_STATUS(xfer->response) == RESP_ERR_NACK) && in hci_cmd_v1_daa()
342 RESP_DATA_LENGTH(xfer->response) == 1) { in hci_cmd_v1_daa()
346 if (RESP_STATUS(xfer->response) != RESP_SUCCESS) { in hci_cmd_v1_daa()
369 hci_free_xfer(xfer, 1); in hci_cmd_v1_daa()