Home
last modified time | relevance | path

Searched refs:xfer (Results 1 – 25 of 388) sorted by relevance

12345678910>>...16

/openbmc/linux/drivers/i3c/master/mipi-i3c-hci/
H A Dcmd_v2.c104 xfer->cmd_desc[0] = in hci_cmd_v2_prep_private_xfer()
111 xfer->cmd_desc[1] = in hci_cmd_v2_prep_private_xfer()
135 xfer->data = NULL; in hci_cmd_v2_prep_private_xfer()
137 xfer->cmd_desc[0] = in hci_cmd_v2_prep_private_xfer()
144 xfer->cmd_desc[1] = in hci_cmd_v2_prep_private_xfer()
168 xfer->cmd_desc[0] = in hci_cmd_v2_prep_ccc()
175 xfer->cmd_desc[1] = in hci_cmd_v2_prep_ccc()
177 xfer->cmd_desc[2] = in hci_cmd_v2_prep_ccc()
197 xfer->data = NULL; in hci_cmd_v2_prep_ccc()
250 if (!xfer) in hci_cmd_v2_daa()
[all …]
H A Dcmd_v1.c169 xfer->data = NULL; in fill_data_bytes()
198 xfer->cmd_desc[0] = in hci_cmd_v1_prep_ccc()
208 xfer->cmd_desc[0] = in hci_cmd_v1_prep_ccc()
215 xfer->cmd_desc[1] = in hci_cmd_v1_prep_ccc()
237 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i3c_xfer()
246 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i3c_xfer()
252 xfer->cmd_desc[1] = in hci_cmd_v1_prep_i3c_xfer()
272 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i2c_xfer()
281 xfer->cmd_desc[0] = in hci_cmd_v1_prep_i2c_xfer()
287 xfer->cmd_desc[1] = in hci_cmd_v1_prep_i2c_xfer()
[all …]
H A Dpio.c248 p += (xfer->data_len - xfer->data_left) / 4; in hci_pio_do_rx()
275 p += (xfer->data_len - xfer->data_left) / 4; in hci_pio_do_trailing_rx()
314 p += (xfer->data_len - xfer->data_left) / 4; in hci_pio_do_tx()
367 xfer->data_len = xfer->data_left = 0; in hci_pio_queue_data()
401 received = (xfer->data_len - xfer->data_left) / 4; in hci_pio_push_to_next_rx()
402 if ((xfer->data_len - xfer->data_left) & 3) { in hci_pio_push_to_next_rx()
415 xfer = xfer->next_data; in hci_pio_push_to_next_rx()
430 bytes_to_move = xfer->data_len - xfer->data_left; in hci_pio_push_to_next_rx()
503 received = xfer->data_len - xfer->data_left; in hci_pio_process_resp()
598 xfer[i].next_xfer = (i + 1 < n) ? &xfer[i + 1] : NULL; in hci_pio_queue_xfer()
[all …]
H A Dcore.c195 struct hci_xfer *xfer; in i3c_hci_send_ccc_cmd() local
206 if (!xfer) in i3c_hci_send_ccc_cmd()
210 xfer->data = NULL; in i3c_hci_send_ccc_cmd()
211 xfer->data_len = 0; in i3c_hci_send_ccc_cmd()
212 xfer->rnw = false; in i3c_hci_send_ccc_cmd()
215 xfer++; in i3c_hci_send_ccc_cmd()
233 xfer--; in i3c_hci_send_ccc_cmd()
277 struct hci_xfer *xfer; in i3c_hci_priv_xfers() local
285 if (!xfer) in i3c_hci_priv_xfers()
336 struct hci_xfer *xfer; in i3c_hci_i2c_xfers() local
[all …]
/openbmc/linux/drivers/firmware/arm_scmi/
H A Dmsg.c33 size_t msg_command_size(struct scmi_xfer *xfer) in msg_command_size() argument
35 return sizeof(struct scmi_msg_payld) + xfer->tx.len; in msg_command_size()
45 size_t msg_response_size(struct scmi_xfer *xfer) in msg_response_size() argument
59 if (xfer->tx.buf) in msg_tx_prepare()
60 memcpy(msg->msg_payload, xfer->tx.buf, xfer->tx.len); in msg_tx_prepare()
83 struct scmi_xfer *xfer) in msg_fetch_response() argument
88 xfer->rx.len = min_t(size_t, xfer->rx.len, in msg_fetch_response()
92 memcpy(xfer->rx.buf, &msg->msg_payload[1], xfer->rx.len); in msg_fetch_response()
104 size_t max_len, struct scmi_xfer *xfer) in msg_fetch_notification() argument
106 xfer->rx.len = min_t(size_t, max_len, in msg_fetch_notification()
[all …]
H A Ddriver.c893 xfer->hdr.id, "NOTI", xfer->hdr.seq, in scmi_handle_notification()
894 xfer->hdr.status, xfer->rx.buf, xfer->rx.len); in scmi_handle_notification()
897 xfer->hdr.id, xfer->rx.buf, xfer->rx.len, ts); in scmi_handle_notification()
900 xfer->hdr.protocol_id, xfer->hdr.seq, in scmi_handle_notification()
944 xfer->hdr.seq, xfer->hdr.status, in scmi_handle_response()
945 xfer->rx.buf, xfer->rx.len); in scmi_handle_response()
948 xfer->hdr.protocol_id, xfer->hdr.seq, in scmi_handle_response()
1082 xfer->hdr.seq, xfer->hdr.status, in scmi_wait_for_reply()
1083 xfer->rx.buf, xfer->rx.len); in scmi_wait_for_reply()
1227 xfer->hdr.status, xfer->tx.buf, xfer->tx.len); in do_xfer()
[all …]
H A Draw_mode.c353 rw->xfer = xfer; in scmi_xfer_raw_waiter_get()
455 xfer = rw->xfer; in scmi_xfer_raw_worker()
477 trace_scmi_xfer_end(xfer->transfer_id, xfer->hdr.id, in scmi_xfer_raw_worker()
478 xfer->hdr.protocol_id, xfer->hdr.seq, ret); in scmi_xfer_raw_worker()
563 *p = xfer; in scmi_xfer_raw_get_init()
644 xfer->hdr.protocol_id, xfer->hdr.seq, in scmi_do_xfer_raw_start()
655 xfer->hdr.id, "cmnd", xfer->hdr.seq, in scmi_do_xfer_raw_start()
657 xfer->tx.buf, xfer->tx.len); in scmi_do_xfer_raw_start()
1288 memcpy(++m, xfer->rx.buf, xfer->rx.len); in scmi_xfer_raw_collect()
1405 memset(xfer->rx.buf, 0x00, xfer->rx.len); in scmi_xfer_raw_fill()
[all …]
H A Dshmem.c36 struct scmi_xfer *xfer, struct scmi_chan_info *cinfo) in shmem_tx_prepare() argument
72 if (xfer->tx.buf) in shmem_tx_prepare()
73 memcpy_toio(shmem->msg_payload, xfer->tx.buf, xfer->tx.len); in shmem_tx_prepare()
82 struct scmi_xfer *xfer) in shmem_fetch_response() argument
86 xfer->hdr.status = ioread32(shmem->msg_payload); in shmem_fetch_response()
88 xfer->rx.len = min_t(size_t, xfer->rx.len, len > 8 ? len - 8 : 0); in shmem_fetch_response()
91 memcpy_fromio(xfer->rx.buf, shmem->msg_payload + 4, xfer->rx.len); in shmem_fetch_response()
95 size_t max_len, struct scmi_xfer *xfer) in shmem_fetch_notification() argument
103 memcpy_fromio(xfer->rx.buf, shmem->msg_payload, xfer->rx.len); in shmem_fetch_notification()
112 struct scmi_xfer *xfer) in shmem_poll_done() argument
[all …]
/openbmc/u-boot/drivers/firmware/
H A Dti_sci.c96 struct ti_sci_xfer *xfer = &info->xfer; in ti_sci_setup_one_xfer() local
116 return xfer; in ti_sci_setup_one_xfer()
241 if (IS_ERR(xfer)) { in ti_sci_cmd_get_revision()
242 ret = PTR_ERR(xfer); in ti_sci_cmd_get_revision()
307 if (IS_ERR(xfer)) { in cmd_set_board_config_using_msg()
427 if (IS_ERR(xfer)) { in ti_sci_set_device_state()
483 if (IS_ERR(xfer)) { in ti_sci_get_device_state()
739 if (IS_ERR(xfer)) { in ti_sci_cmd_set_device_resets()
809 if (IS_ERR(xfer)) { in ti_sci_set_clock_state()
867 if (IS_ERR(xfer)) { in ti_sci_cmd_get_clock_state()
[all …]
/openbmc/linux/drivers/iio/imu/
H A Dadis_buffer.c36 adis->xfer = kcalloc(2, sizeof(*adis->xfer), GFP_KERNEL); in adis_update_scan_mode_burst()
37 if (!adis->xfer) in adis_update_scan_mode_burst()
42 kfree(adis->xfer); in adis_update_scan_mode_burst()
43 adis->xfer = NULL; in adis_update_scan_mode_burst()
53 adis->xfer[0].len = 2; in adis_update_scan_mode_burst()
78 kfree(adis->xfer); in adis_update_scan_mode()
86 adis->xfer = kcalloc(scan_count + 1, sizeof(*adis->xfer), GFP_KERNEL); in adis_update_scan_mode()
87 if (!adis->xfer) in adis_update_scan_mode()
92 kfree(adis->xfer); in adis_update_scan_mode()
93 adis->xfer = NULL; in adis_update_scan_mode()
[all …]
/openbmc/linux/drivers/firmware/
H A Dti_sci.c268 memcpy(xfer->xfer_buf, mbox_msg->buf, xfer->rx_len); in ti_sci_rx_callback()
350 return xfer; in ti_sci_get_one_xfer()
458 if (IS_ERR(xfer)) { in ti_sci_cmd_get_revision()
526 if (IS_ERR(xfer)) { in ti_sci_set_device_state()
587 if (IS_ERR(xfer)) { in ti_sci_get_device_state()
889 if (IS_ERR(xfer)) { in ti_sci_cmd_set_device_resets()
964 if (IS_ERR(xfer)) { in ti_sci_set_clock_state()
1032 if (IS_ERR(xfer)) { in ti_sci_cmd_get_clock_state()
1263 if (IS_ERR(xfer)) { in ti_sci_cmd_clk_set_parent()
1331 if (IS_ERR(xfer)) { in ti_sci_cmd_clk_get_parent()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-atmel.c677 xfer, xfer->len, xfer->tx_buf, xfer->rx_buf, in atmel_spi_next_xfer_single()
744 xfer, xfer->len, xfer->tx_buf, xfer->rx_buf, in atmel_spi_next_xfer_fifo()
835 xfer, xfer->len, xfer->tx_buf, (unsigned long long)xfer->tx_dma, in atmel_spi_next_xfer_dma_submit()
836 xfer->rx_buf, (unsigned long long)xfer->rx_dma); in atmel_spi_next_xfer_dma_submit()
870 *rx_dma = xfer->rx_dma + xfer->len - *plen; in atmel_spi_next_xfer_data()
871 *tx_dma = xfer->tx_dma + xfer->len - *plen; in atmel_spi_next_xfer_data()
951 xfer, xfer->len, xfer->tx_buf, in atmel_spi_pdc_next_xfer()
952 (unsigned long long)xfer->tx_dma, xfer->rx_buf, in atmel_spi_pdc_next_xfer()
970 xfer, xfer->len, xfer->tx_buf, in atmel_spi_pdc_next_xfer()
1015 xfer->rx_buf, xfer->len, in atmel_spi_dma_map_xfer()
[all …]
H A Dspi-qcom-qspi.c205 xfer = &ctrl->xfer; in qcom_qspi_pio_xfer_cfg()
209 if (xfer->is_last) in qcom_qspi_pio_xfer_cfg()
352 sgt = (ctrl->xfer.dir == QSPI_READ) ? &xfer->rx_sg : &xfer->tx_sg; in qcom_qspi_setup_dma_desc()
425 if (xfer->speed_hz) in qcom_qspi_transfer_one()
438 ctrl->xfer.buswidth = xfer->rx_nbits; in qcom_qspi_transfer_one()
439 ctrl->xfer.rx_buf = xfer->rx_buf; in qcom_qspi_transfer_one()
442 ctrl->xfer.buswidth = xfer->tx_nbits; in qcom_qspi_transfer_one()
443 ctrl->xfer.tx_buf = xfer->tx_buf; in qcom_qspi_transfer_one()
445 ctrl->xfer.is_last = list_is_last(&xfer->transfer_list, in qcom_qspi_transfer_one()
447 ctrl->xfer.rem_bytes = xfer->len; in qcom_qspi_transfer_one()
[all …]
H A Dspi.c1160 xfer->rx_buf, xfer->len, in __spi_map_msg()
1472 ret = spi_delay_exec(&xfer->cs_change_delay, xfer); in _spi_transfer_cs_change_delay()
1521 if ((xfer->tx_buf || xfer->rx_buf) && xfer->len) { in spi_transfer_one_message()
1563 xfer->ptp_sts_word_post = xfer->len; in spi_transfer_one_message()
2025 xfer->ptp_sts_word_post = xfer->len; in spi_finalize_current_message()
2031 WARN_ON_ONCE(xfer->ptp_sts && !xfer->timestamped); in spi_finalize_current_message()
3505 memcpy(xfer, xfer_first, sizeof(*xfer)); in spi_replace_transfers()
3881 delay1 = spi_delay_to_ns(&xfer->word_delay, xfer); in _spi_xfer_word_delay_update()
3944 if (xfer->rx_buf && xfer->tx_buf) in __spi_validate()
3996 if (xfer->tx_buf && !xfer->tx_nbits) in __spi_validate()
[all …]
H A Dspi-slave-mt27xx.c172 if (xfer->rx_buf) in mtk_spi_slave_fifo_transfer()
174 if (xfer->tx_buf) in mtk_spi_slave_fifo_transfer()
179 if (xfer->tx_buf) in mtk_spi_slave_fifo_transfer()
209 if (xfer->tx_buf) { in mtk_spi_slave_dma_transfer()
224 xfer->rx_dma = dma_map_single(dev, xfer->rx_buf, in mtk_spi_slave_dma_transfer()
239 if (xfer->tx_buf) in mtk_spi_slave_dma_transfer()
241 if (xfer->rx_buf) in mtk_spi_slave_dma_transfer()
251 if (xfer->tx_buf) in mtk_spi_slave_dma_transfer()
253 if (xfer->rx_buf) in mtk_spi_slave_dma_transfer()
265 if (xfer->rx_buf) in mtk_spi_slave_dma_transfer()
[all …]
H A Dspi-axi-spi-engine.c164 if (xfer->tx_buf) in spi_engine_gen_xfer()
166 if (xfer->rx_buf) in spi_engine_gen_xfer()
183 delay = spi_delay_to_ns(&xfer->delay, xfer); in spi_engine_gen_sleep()
257 if (!xfer) { in spi_engine_xfer_next()
261 xfer = NULL; in spi_engine_xfer_next()
263 xfer = list_next_entry(xfer, transfer_list); in spi_engine_xfer_next()
266 *_xfer = xfer; in spi_engine_xfer_next()
276 } while (xfer && !xfer->tx_buf); in spi_engine_tx_next()
279 if (xfer) { in spi_engine_tx_next()
294 } while (xfer && !xfer->rx_buf); in spi_engine_rx_next()
[all …]
/openbmc/linux/include/trace/events/
H A Dspi.h175 (xfer->tx_buf && xfer->tx_buf != msg->spi->controller->dummy_tx)
177 (xfer->rx_buf && xfer->rx_buf != msg->spi->controller->dummy_rx)
183 TP_ARGS(msg, xfer),
191 spi_valid_rxbuf(msg, xfer) ?
192 (xfer->len < 64 ? xfer->len : 64) : 0)
194 spi_valid_txbuf(msg, xfer) ?
195 (xfer->len < 64 ? xfer->len : 64) : 0)
201 __entry->xfer = xfer;
202 __entry->len = xfer->len;
224 TP_ARGS(msg, xfer)
[all …]
/openbmc/linux/drivers/dma/dw-edma/
H A Ddw-edma-core.c415 if (!xfer->xfer.cyclic.len || !xfer->xfer.cyclic.cnt) in dw_edma_device_transfer()
418 if (xfer->xfer.sg.len < 1) in dw_edma_device_transfer()
421 if (!xfer->xfer.il->numf || xfer->xfer.il->frame_size < 1) in dw_edma_device_transfer()
423 if (!xfer->xfer.il->src_inc || !xfer->xfer.il->dst_inc) in dw_edma_device_transfer()
453 cnt = xfer->xfer.sg.len; in dw_edma_device_transfer()
454 sg = xfer->xfer.sg.sgl; in dw_edma_device_transfer()
456 cnt = xfer->xfer.il->numf * xfer->xfer.il->frame_size; in dw_edma_device_transfer()
555 xfer.xfer.sg.sgl = sgl; in dw_edma_device_prep_slave_sg()
556 xfer.xfer.sg.len = len; in dw_edma_device_prep_slave_sg()
574 xfer.xfer.cyclic.len = len; in dw_edma_device_prep_dma_cyclic()
[all …]
/openbmc/qemu/hw/usb/
H A Dhost-libusb.c566 xfer->xfer->dev_handle = s->dh; in usb_host_iso_alloc()
574 xfer->xfer->user_data = xfer; in usb_host_iso_alloc()
578 xfer->xfer->buffer = g_malloc0(xfer->xfer->length); in usb_host_iso_alloc()
609 xfer->xfer->user_data = NULL; in usb_host_iso_free_xfer()
611 g_free(xfer->xfer->buffer); in usb_host_iso_free_xfer()
612 libusb_free_transfer(xfer->xfer); in usb_host_iso_free_xfer()
652 buf = libusb_get_iso_packet_buffer_simple(xfer->xfer, xfer->packet); in usb_host_iso_data_copy()
659 xfer->xfer->iso_packet_desc[xfer->packet].length = psize; in usb_host_iso_data_copy()
661 psize = xfer->xfer->iso_packet_desc[xfer->packet].actual_length; in usb_host_iso_data_copy()
669 xfer->copy_complete = (xfer->packet == xfer->xfer->num_iso_packets); in usb_host_iso_data_copy()
[all …]
H A Dhcd-xhci.c1177 QTAILQ_REMOVE(&xfer->epctx->transfers, xfer, next); in xhci_ep_free_xfer()
1480 usb_packet_unmap(&xfer->packet, &xfer->sgl); in xhci_xfer_unmap()
1611 if (usb_packet_map(&xfer->packet, &xfer->sgl)) { in xhci_setup_packet()
1649 trace_usb_xhci_xfer_error(xfer, xfer->packet.status); in xhci_try_complete_packet()
1681 trb_status = &xfer->trbs[xfer->trb_count-1]; in xhci_fire_ctl_transfer()
1683 trace_usb_xhci_xfer_start(xfer, xfer->epctx->slotid, in xhci_fire_ctl_transfer()
1723 usb_handle_packet(xfer->packet.ep->dev, &xfer->packet); in xhci_fire_ctl_transfer()
1823 usb_handle_packet(xfer->packet.ep->dev, &xfer->packet); in xhci_submit()
1830 trace_usb_xhci_xfer_start(xfer, xfer->epctx->slotid, in xhci_fire_transfer()
2007 if (xfer != NULL && xfer->running_retry) { in xhci_kick_epctx()
[all …]
/openbmc/linux/drivers/net/ethernet/micrel/
H A Dks8851_spi.c128 xfer->tx_buf = txb; in ks8851_wrreg16_spi()
130 xfer->len = 4; in ks8851_wrreg16_spi()
165 xfer->len = 2; in ks8851_rdreg()
167 xfer++; in ks8851_rdreg()
170 xfer->len = rxl; in ks8851_rdreg()
227 xfer->tx_buf = txb; in ks8851_rdfifo_spi()
229 xfer->len = 1; in ks8851_rdfifo_spi()
231 xfer++; in ks8851_rdfifo_spi()
234 xfer->len = len; in ks8851_rdfifo_spi()
277 xfer->len = 5; in ks8851_wrfifo_spi()
[all …]
/openbmc/linux/drivers/staging/greybus/
H A Dspilib.c186 if (!xfer->tx_buf && !xfer->rx_buf) { in gb_spi_operation_create()
196 if (xfer->tx_buf) { in gb_spi_operation_create()
205 if (xfer->rx_buf) { in gb_spi_operation_create()
218 xfer = get_next_xfer(xfer, msg); in gb_spi_operation_create()
264 xfer_delay = spi_delay_to_ns(&xfer->delay, xfer) / 1000; in gb_spi_operation_create()
271 if (xfer->tx_buf) { in gb_spi_operation_create()
278 if (xfer->rx_buf) in gb_spi_operation_create()
289 xfer = get_next_xfer(xfer, msg); in gb_spi_operation_create()
305 while (xfer) { in gb_spi_decode_response()
307 if (xfer->rx_buf) { in gb_spi_decode_response()
[all …]
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dnwl-dsi.c368 struct nwl_dsi_transfer *xfer = dsi->xfer; in nwl_dsi_read_packet() local
393 xfer->cmd, channel, xfer->msg->channel); in nwl_dsi_read_packet()
414 xfer->status = xfer->rx_len; in nwl_dsi_read_packet()
427 xfer->cmd, xfer->msg->rx_len, word_count); in nwl_dsi_read_packet()
472 xfer->status = xfer->rx_len; in nwl_dsi_read_packet()
482 struct nwl_dsi_transfer *xfer = dsi->xfer; in nwl_dsi_finish_transmission() local
485 if (!xfer) in nwl_dsi_finish_transmission()
490 xfer->status = xfer->tx_len; in nwl_dsi_finish_transmission()
504 struct nwl_dsi_transfer *xfer = dsi->xfer; in nwl_dsi_begin_transmission() local
573 dsi->xfer = &xfer; in nwl_dsi_host_transfer()
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Dad7877.c213 req->xfer[0].len = 2; in ad7877_read()
217 req->xfer[1].len = 2; in ad7877_read()
243 req->xfer[0].len = 2; in ad7877_write()
279 req->xfer[0].len = 2; in ad7877_read_adc()
283 req->xfer[1].len = 2; in ad7877_read_adc()
289 req->xfer[2].len = 2; in ad7877_read_adc()
295 req->xfer[3].len = 2; in ad7877_read_adc()
299 req->xfer[4].len = 2; in ad7877_read_adc()
303 req->xfer[5].len = 2; in ad7877_read_adc()
649 ts->xfer[0].len = 2; in ad7877_setup_ts_def_msg()
[all …]
/openbmc/linux/drivers/i3c/master/
H A Ddw-i3c-master.c369 if (!xfer) in dw_i3c_master_alloc_xfer()
376 return xfer; in dw_i3c_master_alloc_xfer()
381 kfree(xfer); in dw_i3c_master_free_xfer()
390 if (!xfer) in dw_i3c_master_start_xfer_locked()
463 if (!xfer) in dw_i3c_master_end_xfer_locked()
517 if (xfer) in dw_i3c_master_end_xfer_locked()
694 if (!xfer) in dw_i3c_ccc_set()
734 if (!xfer) in dw_i3c_ccc_get()
811 if (!xfer) in dw_i3c_master_daa()
874 if (!xfer) in dw_i3c_master_priv_xfers()
[all …]

12345678910>>...16