• Home
  • Raw
  • Download

Lines Matching refs:xfer

148 static void fill_data_bytes(struct hci_xfer *xfer, u8 *data,  in fill_data_bytes()  argument
151 xfer->cmd_desc[1] = 0; in fill_data_bytes()
154 xfer->cmd_desc[1] |= CMD_I1_DATA_BYTE_4(data[3]); in fill_data_bytes()
157 xfer->cmd_desc[1] |= CMD_I1_DATA_BYTE_3(data[2]); in fill_data_bytes()
160 xfer->cmd_desc[1] |= CMD_I1_DATA_BYTE_2(data[1]); in fill_data_bytes()
163 xfer->cmd_desc[1] |= CMD_I1_DATA_BYTE_1(data[0]); in fill_data_bytes()
169 xfer->data = NULL; in fill_data_bytes()
173 struct hci_xfer *xfer, in hci_cmd_v1_prep_ccc() argument
178 u8 *data = xfer->data; in hci_cmd_v1_prep_ccc()
179 unsigned int data_len = xfer->data_len; in hci_cmd_v1_prep_ccc()
180 bool rnw = xfer->rnw; in hci_cmd_v1_prep_ccc()
194 xfer->cmd_tid = hci_get_tid(); in hci_cmd_v1_prep_ccc()
198 xfer->cmd_desc[0] = in hci_cmd_v1_prep_ccc()
200 CMD_I0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_ccc()
205 fill_data_bytes(xfer, data, data_len); in hci_cmd_v1_prep_ccc()
208 xfer->cmd_desc[0] = in hci_cmd_v1_prep_ccc()
210 CMD_R0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_ccc()
215 xfer->cmd_desc[1] = in hci_cmd_v1_prep_ccc()
224 struct hci_xfer *xfer) in hci_cmd_v1_prep_i3c_xfer() argument
229 u8 *data = xfer->data; in hci_cmd_v1_prep_i3c_xfer()
230 unsigned int data_len = xfer->data_len; in hci_cmd_v1_prep_i3c_xfer()
231 bool rnw = xfer->rnw; in hci_cmd_v1_prep_i3c_xfer()
233 xfer->cmd_tid = hci_get_tid(); in hci_cmd_v1_prep_i3c_xfer()
237 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i3c_xfer()
239 CMD_I0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_i3c_xfer()
243 fill_data_bytes(xfer, data, data_len); in hci_cmd_v1_prep_i3c_xfer()
246 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i3c_xfer()
248 CMD_R0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_i3c_xfer()
252 xfer->cmd_desc[1] = in hci_cmd_v1_prep_i3c_xfer()
259 struct hci_xfer *xfer) in hci_cmd_v1_prep_i2c_xfer() argument
264 u8 *data = xfer->data; in hci_cmd_v1_prep_i2c_xfer()
265 unsigned int data_len = xfer->data_len; in hci_cmd_v1_prep_i2c_xfer()
266 bool rnw = xfer->rnw; in hci_cmd_v1_prep_i2c_xfer()
268 xfer->cmd_tid = hci_get_tid(); in hci_cmd_v1_prep_i2c_xfer()
272 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i2c_xfer()
274 CMD_I0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_i2c_xfer()
278 fill_data_bytes(xfer, data, data_len); in hci_cmd_v1_prep_i2c_xfer()
281 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i2c_xfer()
283 CMD_R0_TID(xfer->cmd_tid) | in hci_cmd_v1_prep_i2c_xfer()
287 xfer->cmd_desc[1] = in hci_cmd_v1_prep_i2c_xfer()
294 struct hci_xfer *xfer; in hci_cmd_v1_daa() local
301 xfer = hci_alloc_xfer(2); in hci_cmd_v1_daa()
302 if (!xfer) in hci_cmd_v1_daa()
326 xfer->cmd_tid = hci_get_tid(); in hci_cmd_v1_daa()
327 xfer->cmd_desc[0] = in hci_cmd_v1_daa()
329 CMD_A0_TID(xfer->cmd_tid) | in hci_cmd_v1_daa()
334 xfer->cmd_desc[1] = 0; in hci_cmd_v1_daa()
335 hci->io->queue_xfer(hci, xfer, 1); in hci_cmd_v1_daa()
337 hci->io->dequeue_xfer(hci, xfer, 1)) { in hci_cmd_v1_daa()
341 if (RESP_STATUS(xfer[0].response) == RESP_ERR_NACK && in hci_cmd_v1_daa()
342 RESP_STATUS(xfer[0].response) == 1) { in hci_cmd_v1_daa()
346 if (RESP_STATUS(xfer[0].response) != RESP_SUCCESS) { in hci_cmd_v1_daa()
369 hci_free_xfer(xfer, 1); in hci_cmd_v1_daa()