/openbmc/linux/drivers/net/ethernet/qualcomm/ |
H A D | qca_7k.c | 48 struct spi_transfer transfer[2]; in qcaspi_read_register() local 52 memset(transfer, 0, sizeof(transfer)); in qcaspi_read_register() 59 transfer[0].tx_buf = &tx_data; in qcaspi_read_register() 60 transfer[0].len = QCASPI_CMD_LEN; in qcaspi_read_register() 61 transfer[1].rx_buf = &rx_data; in qcaspi_read_register() 62 transfer[1].len = QCASPI_CMD_LEN; in qcaspi_read_register() 64 spi_message_add_tail(&transfer[0], &msg); in qcaspi_read_register() 70 spi_message_add_tail(&transfer[1], &msg); in qcaspi_read_register() 88 struct spi_transfer transfer[2]; in __qcaspi_write_register() local 92 memset(&transfer, 0, sizeof(transfer)); in __qcaspi_write_register() [all …]
|
H A D | qca_spi.c | 110 struct spi_transfer transfer[2]; in qcaspi_write_burst() local 113 memset(&transfer, 0, sizeof(transfer)); in qcaspi_write_burst() 117 transfer[0].tx_buf = &cmd; in qcaspi_write_burst() 118 transfer[0].len = QCASPI_CMD_LEN; in qcaspi_write_burst() 119 transfer[1].tx_buf = src; in qcaspi_write_burst() 120 transfer[1].len = len; in qcaspi_write_burst() 122 spi_message_add_tail(&transfer[0], &msg); in qcaspi_write_burst() 123 spi_message_add_tail(&transfer[1], &msg); in qcaspi_write_burst() 138 struct spi_transfer transfer; in qcaspi_write_legacy() local 141 memset(&transfer, 0, sizeof(transfer)); in qcaspi_write_legacy() [all …]
|
/openbmc/linux/drivers/mtd/devices/ |
H A D | mchp23k256.c | 64 struct spi_transfer transfer[2] = {}; in mchp23k256_write() local 76 transfer[0].tx_buf = command; in mchp23k256_write() 77 transfer[0].len = cmd_len; in mchp23k256_write() 78 spi_message_add_tail(&transfer[0], &message); in mchp23k256_write() 80 transfer[1].tx_buf = buf; in mchp23k256_write() 81 transfer[1].len = len; in mchp23k256_write() 82 spi_message_add_tail(&transfer[1], &message); in mchp23k256_write() 103 struct spi_transfer transfer[2] = {}; in mchp23k256_read() local 112 memset(&transfer, 0, sizeof(transfer)); in mchp23k256_read() 116 transfer[0].tx_buf = command; in mchp23k256_read() [all …]
|
H A D | sst25l.c | 210 struct spi_transfer transfer[2]; in sst25l_read() local 216 memset(&transfer, 0, sizeof(transfer)); in sst25l_read() 223 transfer[0].tx_buf = command; in sst25l_read() 224 transfer[0].len = sizeof(command); in sst25l_read() 225 spi_message_add_tail(&transfer[0], &message); in sst25l_read() 227 transfer[1].rx_buf = buf; in sst25l_read() 228 transfer[1].len = len; in sst25l_read() 229 spi_message_add_tail(&transfer[1], &message); in sst25l_read()
|
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00crypto.c | 152 unsigned int transfer = 0; in rt2x00crypto_rx_insert_iv() local 194 memmove(skb->data + transfer, in rt2x00crypto_rx_insert_iv() 195 skb->data + transfer + (iv_len - align), in rt2x00crypto_rx_insert_iv() 197 transfer += header_length; in rt2x00crypto_rx_insert_iv() 206 memmove(skb->data + transfer, in rt2x00crypto_rx_insert_iv() 207 skb->data + transfer + iv_len + align, in rt2x00crypto_rx_insert_iv() 209 transfer += header_length; in rt2x00crypto_rx_insert_iv() 213 memcpy(skb->data + transfer, rxdesc->iv, iv_len); in rt2x00crypto_rx_insert_iv() 214 transfer += iv_len; in rt2x00crypto_rx_insert_iv() 221 memmove(skb->data + transfer, in rt2x00crypto_rx_insert_iv() [all …]
|
/openbmc/linux/drivers/usb/image/ |
H A D | microtek.c | 191 MTS_DEBUG("transfer = 0x%x context = 0x%x\n",(int)transfer,(int)context ); \ 192 …status = 0x%x data-length = 0x%x sent = 0x%x\n",transfer->status,(int)context->data_length, (int)t… 208 struct mts_transfer_context* context = (struct mts_transfer_context*)transfer->context; \ 367 static void mts_transfer_cleanup( struct urb *transfer ); 368 static void mts_do_sg(struct urb * transfer); 371 void mts_int_submit_urb (struct urb* transfer, in mts_int_submit_urb() argument 384 usb_fill_bulk_urb(transfer, in mts_int_submit_urb() 393 res = usb_submit_urb( transfer, GFP_ATOMIC ); in mts_int_submit_urb() 397 mts_transfer_cleanup(transfer); in mts_int_submit_urb() 402 static void mts_transfer_cleanup( struct urb *transfer ) in mts_transfer_cleanup() argument [all …]
|
/openbmc/qemu/hw/display/ |
H A D | virtio-gpu-rutabaga.c | 36 struct rutabaga_transfer transfer = { 0 }; in virtio_gpu_rutabaga_update_cursor() local 51 transfer.x = 0; in virtio_gpu_rutabaga_update_cursor() 52 transfer.y = 0; in virtio_gpu_rutabaga_update_cursor() 53 transfer.z = 0; in virtio_gpu_rutabaga_update_cursor() 54 transfer.w = res->width; in virtio_gpu_rutabaga_update_cursor() 55 transfer.h = res->height; in virtio_gpu_rutabaga_update_cursor() 56 transfer.d = 1; in virtio_gpu_rutabaga_update_cursor() 62 resource_id, &transfer, in virtio_gpu_rutabaga_update_cursor() 241 struct rutabaga_transfer transfer = { 0 }; in rutabaga_cmd_resource_flush() local 271 transfer.x = 0; in rutabaga_cmd_resource_flush() [all …]
|
/openbmc/linux/Documentation/driver-api/dmaengine/ |
H A D | pxa_dma.rst | 9 A driver submitting a transfer and issuing it should be granted the transfer 11 This implies that the queuing doesn't wait for the previous transfer end, 13 triggered by the end of the transfer. 14 A transfer which is submitted and issued on a phy doesn't wait for a phy to 17 a new transfer. 20 Any issued transfer with DMA_PREP_INTERRUPT should trigger a callback call. 27 multimedia case, such as video capture, if a transfer is submitted and then 28 a check of the DMA channel reports a "stopped channel", the transfer should 44 assigned on the fly when the transfer is issued. 46 b) Transfer anatomy for a scatter-gather transfer [all …]
|
H A D | provider.rst | 21 will want to start a transfer, it will assert a DMA request (DRQ) by 25 parameter: the transfer size. At each clock cycle, it would transfer a 26 byte of data from one buffer to another, until the transfer size has 31 cycle. For example, we may want to transfer as much data as the 36 parameter called the transfer width. 44 transfer into smaller sub-transfers. 59 transfer, and whenever the transfer is started, the controller will go 73 transfer width and the transfer size. 118 should contain a bitmask of the supported source transfer width 121 should contain a bitmask of the supported destination transfer width [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-fsi.c | 299 struct spi_transfer *transfer) in fsi_spi_transfer_data() argument 306 if (transfer->tx_buf) { in fsi_spi_transfer_data() 310 const u8 *tx = transfer->tx_buf; in fsi_spi_transfer_data() 312 while (transfer->len > sent) { in fsi_spi_transfer_data() 314 (int)transfer->len - sent); in fsi_spi_transfer_data() 333 } else if (transfer->rx_buf) { in fsi_spi_transfer_data() 336 u8 *rx = transfer->rx_buf; in fsi_spi_transfer_data() 338 while (transfer->len > recv) { in fsi_spi_transfer_data() 355 (int)transfer->len - recv); in fsi_spi_transfer_data() 430 struct spi_transfer *transfer; in fsi_spi_transfer_one_message() local [all …]
|
H A D | spi-mpc52xx.c | 85 struct spi_transfer *transfer; /* current transfer */ member 118 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer() 119 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer() 120 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer() 125 ms->cs_change = ms->transfer->cs_change; in mpc52xx_spi_start_transfer() 197 ms->transfer = container_of(ms->message->transfers.next, in mpc52xx_spi_fsmstate_idle() 256 if (ms->transfer->delay.unit == SPI_DELAY_UNIT_USECS) in mpc52xx_spi_fsmstate_transfer() 257 ms->timestamp += ms->transfer->delay.value * in mpc52xx_spi_fsmstate_transfer() 289 ms->message->actual_length += ms->transfer->len; in mpc52xx_spi_fsmstate_wait() 294 if (ms->transfer->transfer_list.next == &ms->message->transfers) { in mpc52xx_spi_fsmstate_wait() [all …]
|
H A D | spi-stm32-qspi.c | 561 struct spi_transfer *transfer; in stm32_qspi_transfer_one_message() local 577 list_for_each_entry(transfer, &msg->transfers, transfer_list) { in stm32_qspi_transfer_one_message() 583 transfer->tx_buf, transfer->tx_nbits, in stm32_qspi_transfer_one_message() 584 transfer->rx_buf, transfer->rx_nbits, in stm32_qspi_transfer_one_message() 585 transfer->len, transfer->dummy_data); in stm32_qspi_transfer_one_message() 592 if (transfer->dummy_data) { in stm32_qspi_transfer_one_message() 593 op.dummy.buswidth = transfer->tx_nbits; in stm32_qspi_transfer_one_message() 594 op.dummy.nbytes = transfer->len; in stm32_qspi_transfer_one_message() 595 dummy_bytes = transfer->len; in stm32_qspi_transfer_one_message() 598 if (list_is_last(&transfer->transfer_list, &msg->transfers)) { in stm32_qspi_transfer_one_message() [all …]
|
H A D | spi-pic32.c | 497 struct spi_transfer *transfer) in pic32_spi_one_transfer() argument 507 if (transfer->bits_per_word && in pic32_spi_one_transfer() 508 (transfer->bits_per_word != pic32s->bits_per_word)) { in pic32_spi_one_transfer() 509 ret = pic32_spi_set_word_size(pic32s, transfer->bits_per_word); in pic32_spi_one_transfer() 512 pic32s->bits_per_word = transfer->bits_per_word; in pic32_spi_one_transfer() 516 if (transfer->speed_hz && (transfer->speed_hz != pic32s->speed_hz)) { in pic32_spi_one_transfer() 517 pic32_spi_set_clk_rate(pic32s, transfer->speed_hz); in pic32_spi_one_transfer() 518 pic32s->speed_hz = transfer->speed_hz; in pic32_spi_one_transfer() 524 if (transfer->rx_sg.nents && transfer->tx_sg.nents) { in pic32_spi_one_transfer() 525 ret = pic32_spi_dma_transfer(pic32s, transfer); in pic32_spi_one_transfer() [all …]
|
H A D | spi-imx.c | 234 struct spi_transfer *transfer) in spi_imx_can_dma() argument 247 if (transfer->len < spi_imx->devtype_data->fifo_size) in spi_imx_can_dma() 1394 struct spi_transfer *transfer) in spi_imx_dma_transfer() argument 1400 struct sg_table *tx = &transfer->tx_sg, *rx = &transfer->rx_sg; in spi_imx_dma_transfer() 1406 bytes_per_word = spi_imx_bytes_per_word(transfer->bits_per_word); in spi_imx_dma_transfer() 1461 transfer_timeout = spi_imx_calculate_timeout(spi_imx, transfer->len); in spi_imx_dma_transfer() 1485 transfer->error |= SPI_TRANS_FAIL_NO_START; in spi_imx_dma_transfer() 1490 struct spi_transfer *transfer) in spi_imx_pio_transfer() argument 1496 spi_imx->tx_buf = transfer->tx_buf; in spi_imx_pio_transfer() 1497 spi_imx->rx_buf = transfer->rx_buf; in spi_imx_pio_transfer() [all …]
|
H A D | spi-hisi-kunpeng.c | 214 static u8 hisi_spi_n_bytes(struct spi_transfer *transfer) in hisi_spi_n_bytes() argument 216 if (transfer->bits_per_word <= 8) in hisi_spi_n_bytes() 218 else if (transfer->bits_per_word <= 16) in hisi_spi_n_bytes() 375 struct spi_device *spi, struct spi_transfer *transfer) in hisi_spi_transfer_one() argument 382 transfer->effective_speed_hz = in hisi_spi_transfer_one() 383 hisi_calc_effective_speed(host, chip, transfer->speed_hz); in hisi_spi_transfer_one() 386 cr |= FIELD_PREP(CR_BPW_MASK, transfer->bits_per_word - 1); in hisi_spi_transfer_one() 391 hs->n_bytes = hisi_spi_n_bytes(transfer); in hisi_spi_transfer_one() 392 hs->tx = transfer->tx_buf; in hisi_spi_transfer_one() 393 hs->tx_len = transfer->len / hs->n_bytes; in hisi_spi_transfer_one() [all …]
|
/openbmc/linux/drivers/cxl/core/ |
H A D | memdev.c | 719 struct cxl_mbox_transfer_fw *transfer; in cxl_mem_abort_fw_xfer() local 723 transfer = kzalloc(struct_size(transfer, data, 0), GFP_KERNEL); in cxl_mem_abort_fw_xfer() 724 if (!transfer) in cxl_mem_abort_fw_xfer() 730 .size_in = sizeof(*transfer), in cxl_mem_abort_fw_xfer() 731 .payload_in = transfer, in cxl_mem_abort_fw_xfer() 736 transfer->action = CXL_FW_TRANSFER_ACTION_ABORT; in cxl_mem_abort_fw_xfer() 739 kfree(transfer); in cxl_mem_abort_fw_xfer() 768 struct cxl_mbox_transfer_fw *transfer; in cxl_fw_prepare() local 773 mds->fw.oneshot = struct_size(transfer, data, size) < in cxl_fw_prepare() 795 struct cxl_mbox_transfer_fw *transfer; in cxl_fw_write() local [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | max3420_udc.c | 202 struct spi_transfer transfer; in spi_ack_ctrl() local 206 memset(&transfer, 0, sizeof(transfer)); in spi_ack_ctrl() 211 transfer.tx_buf = txdata; in spi_ack_ctrl() 212 transfer.len = 1; in spi_ack_ctrl() 214 spi_message_add_tail(&transfer, &msg); in spi_ack_ctrl() 221 struct spi_transfer transfer; in spi_rd8_ack() local 225 memset(&transfer, 0, sizeof(transfer)); in spi_rd8_ack() 230 transfer.tx_buf = txdata; in spi_rd8_ack() 231 transfer.rx_buf = rxdata; in spi_rd8_ack() 232 transfer.len = 2; in spi_rd8_ack() [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | colorspaces-defs.rst | 9 which defines the chromaticities, the default transfer function, the 11 is the transfer function identifier (enum 13 transfer functions. The third is the Y'CbCr encoding identifier (enum 87 - Use the default transfer function as defined by the colorspace. 89 - Use the Rec. 709 transfer function. 91 - Use the sRGB transfer function. 93 - Use the opRGB transfer function. 95 - Use the SMPTE 240M transfer function. 97 - Do not use a transfer function (i.e. use linear RGB values). 99 - Use the DCI-P3 transfer function. [all …]
|
/openbmc/linux/drivers/net/wireless/rsi/ |
H A D | rsi_91x_usb.c | 49 int transfer; in rsi_usb_card_write() local 55 transfer = len; in rsi_usb_card_write() 60 &transfer, in rsi_usb_card_write() 367 u16 transfer; in rsi_usb_read_register_multiple() local 378 transfer = min_t(u16, count, RSI_USB_BUF_SIZE); in rsi_usb_read_register_multiple() 385 transfer, USB_CTRL_GET_TIMEOUT); in rsi_usb_read_register_multiple() 393 memcpy(data, buf, transfer); in rsi_usb_read_register_multiple() 394 count -= transfer; in rsi_usb_read_register_multiple() 395 data += transfer; in rsi_usb_read_register_multiple() 396 addr += transfer; in rsi_usb_read_register_multiple() [all …]
|
/openbmc/linux/Documentation/driver-api/usb/ |
H A D | error-codes.rst | 13 behave the same except for transfer speed dependent behaviors and the 42 ``-EINVAL`` a) Invalid transfer type specified (or not supported) 43 b) Invalid or unsupported periodic transfer interval 44 c) ISO: attempted to change transfer interval 61 (c) requested data transfer length is invalid: negative 87 A transfer's actual_length may be positive even when an error has been 132 to indicate timeout expired before the transfer 140 ``-ECOMM`` During an IN transfer, the host controller 144 ``-ENOSR`` During an OUT transfer, the host controller 161 ``-EXDEV`` ISO transfer only partially completed [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | max3421-hcd.c | 345 struct spi_transfer transfer; in spi_rd8() local 348 memset(&transfer, 0, sizeof(transfer)); in spi_rd8() 356 transfer.tx_buf = max3421_hcd->tx->data; in spi_rd8() 357 transfer.rx_buf = max3421_hcd->rx->data; in spi_rd8() 358 transfer.len = 2; in spi_rd8() 360 spi_message_add_tail(&transfer, &msg); in spi_rd8() 371 struct spi_transfer transfer; in spi_wr8() local 374 memset(&transfer, 0, sizeof(transfer)); in spi_wr8() 383 transfer.tx_buf = max3421_hcd->tx->data; in spi_wr8() 384 transfer.len = 2; in spi_wr8() [all …]
|
/openbmc/linux/Documentation/mhi/ |
H A D | topology.rst | 16 It is however not involved in the actual data transfer as the data transfer 57 * Prepares the device for transfer by calling mhi_prepare_for_transfer. 58 * Initiates data transfer by calling mhi_queue_transfer. 59 * Once the data transfer is finished, calls mhi_unprepare_from_transfer to 60 end data transfer.
|
/openbmc/linux/drivers/iio/adc/ |
H A D | mcp320x.c | 87 struct spi_transfer transfer[2]; member 400 adc->transfer[0].tx_buf = &adc->tx_buf; in mcp320x_probe() 401 adc->transfer[0].len = sizeof(adc->tx_buf); in mcp320x_probe() 402 adc->transfer[1].rx_buf = adc->rx_buf; in mcp320x_probe() 403 adc->transfer[1].len = DIV_ROUND_UP(chip_info->resolution, 8); in mcp320x_probe() 408 &adc->transfer[1], 1); in mcp320x_probe() 410 spi_message_init_with_transfers(&adc->msg, adc->transfer, in mcp320x_probe() 411 ARRAY_SIZE(adc->transfer)); in mcp320x_probe() 420 adc->transfer[1].len++; in mcp320x_probe()
|
/openbmc/u-boot/drivers/dma/ |
H A D | Kconfig | 12 buses that is used to transfer data to and from memory. 20 channels which can either transfer data to/from different devices. 27 DMA transfer by simple copying data between channels. 35 This driver support data transfer from devices to 42 This driver support data transfer between memory
|
/openbmc/linux/drivers/mmc/host/ |
H A D | litex_mmc.c | 124 u8 cmd, u32 arg, u8 response_len, u8 transfer) in litex_mmc_send_cmd() argument 133 cmd << 8 | transfer << 5 | response_len); in litex_mmc_send_cmd() 141 (transfer != SD_CTL_DATA_XFER_NONE || in litex_mmc_send_cmd() 169 if (transfer == SD_CTL_DATA_XFER_NONE) in litex_mmc_send_cmd() 179 reg = (transfer == SD_CTL_DATA_XFER_READ) ? in litex_mmc_send_cmd() 292 unsigned int *len, bool *direct, u8 *transfer) in litex_mmc_do_dma() argument 319 *transfer = SD_CTL_DATA_XFER_READ; in litex_mmc_do_dma() 328 *transfer = SD_CTL_DATA_XFER_WRITE; in litex_mmc_do_dma() 350 u8 transfer = SD_CTL_DATA_XFER_NONE; in litex_mmc_request() local 385 litex_mmc_do_dma(host, data, &len, &direct, &transfer); in litex_mmc_request() [all …]
|