| /linux/drivers/net/ethernet/qualcomm/ |
| H A D | qca_7k.c | 33 struct spi_transfer transfer[2]; in qcaspi_read_register() local 37 memset(transfer, 0, sizeof(transfer)); in qcaspi_read_register() 44 transfer[0].tx_buf = &tx_data; in qcaspi_read_register() 45 transfer[0].len = QCASPI_CMD_LEN; in qcaspi_read_register() 46 transfer[1].rx_buf = &rx_data; in qcaspi_read_register() 47 transfer[1].len = QCASPI_CMD_LEN; in qcaspi_read_register() 49 spi_message_add_tail(&transfer[0], &msg); in qcaspi_read_register() 55 spi_message_add_tail(&transfer[1], &msg); in qcaspi_read_register() 73 struct spi_transfer transfer[2]; in __qcaspi_write_register() local 77 memset(&transfer, 0, sizeof(transfer)); in __qcaspi_write_register() [all …]
|
| H A D | qca_spi.c | 98 struct spi_transfer transfer[2]; in qcaspi_write_burst() local 101 memset(&transfer, 0, sizeof(transfer)); in qcaspi_write_burst() 105 transfer[0].tx_buf = &cmd; in qcaspi_write_burst() 106 transfer[0].len = QCASPI_CMD_LEN; in qcaspi_write_burst() 107 transfer[1].tx_buf = src; in qcaspi_write_burst() 108 transfer[1].len = len; in qcaspi_write_burst() 110 spi_message_add_tail(&transfer[0], &msg); in qcaspi_write_burst() 111 spi_message_add_tail(&transfer[1], &msg); in qcaspi_write_burst() 126 struct spi_transfer transfer; in qcaspi_write_legacy() local 129 memset(&transfer, 0, sizeof(transfer)); in qcaspi_write_legacy() [all …]
|
| /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()
|
| /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() 203 memmove(skb->data + transfer, in rt2x00crypto_rx_insert_iv() 204 skb->data + transfer + iv_len + align, in rt2x00crypto_rx_insert_iv() 206 transfer += header_length; in rt2x00crypto_rx_insert_iv() 210 memcpy(skb->data + transfer, rxdesc->iv, iv_len); in rt2x00crypto_rx_insert_iv() 211 transfer += iv_len; in rt2x00crypto_rx_insert_iv() 218 memmove(skb->data + transfer, in rt2x00crypto_rx_insert_iv() [all …]
|
| /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; \ 361 static void mts_transfer_cleanup( struct urb *transfer ); 362 static void mts_do_sg(struct urb * transfer); 365 void mts_int_submit_urb (struct urb* transfer, in mts_int_submit_urb() argument 378 usb_fill_bulk_urb(transfer, in mts_int_submit_urb() 387 res = usb_submit_urb( transfer, GFP_ATOMIC ); in mts_int_submit_urb() 391 mts_transfer_cleanup(transfer); in mts_int_submit_urb() 396 static void mts_transfer_cleanup( struct urb *transfer ) in mts_transfer_cleanup() argument [all …]
|
| /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 …]
|
| /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 …]
|
| /linux/drivers/spi/ |
| H A D | spi-imx.c | 240 struct spi_transfer *transfer) in spi_imx_can_dma() argument 253 if (transfer->len < spi_imx->devtype_data->fifo_size) in spi_imx_can_dma() 1485 struct spi_transfer *transfer) in spi_imx_dma_transfer() argument 1491 struct sg_table *tx = &transfer->tx_sg, *rx = &transfer->rx_sg; in spi_imx_dma_transfer() 1497 bytes_per_word = spi_imx_bytes_per_word(transfer->bits_per_word); in spi_imx_dma_transfer() 1554 transfer_timeout = spi_imx_calculate_timeout(spi_imx, transfer->len); in spi_imx_dma_transfer() 1578 transfer->error |= SPI_TRANS_FAIL_NO_START; in spi_imx_dma_transfer() 1583 struct spi_transfer *transfer) in spi_imx_pio_transfer() argument 1589 spi_imx->tx_buf = transfer->tx_buf; in spi_imx_pio_transfer() 1590 spi_imx->rx_buf = transfer->rx_buf; in spi_imx_pio_transfer() [all …]
|
| H A D | spi-mpc52xx.c | 86 struct spi_transfer *transfer; /* current transfer */ member 119 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer() 120 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer() 121 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer() 126 ms->cs_change = ms->transfer->cs_change; in mpc52xx_spi_start_transfer() 198 ms->transfer = container_of(ms->message->transfers.next, in mpc52xx_spi_fsmstate_idle() 257 if (ms->transfer->delay.unit == SPI_DELAY_UNIT_USECS) in mpc52xx_spi_fsmstate_transfer() 258 ms->timestamp += ms->transfer->delay.value * in mpc52xx_spi_fsmstate_transfer() 290 ms->message->actual_length += ms->transfer->len; in mpc52xx_spi_fsmstate_wait() 295 if (ms->transfer->transfer_list.next == &ms->message->transfers) { in mpc52xx_spi_fsmstate_wait() [all …]
|
| H A D | spi-stm32-qspi.c | 553 struct spi_transfer *transfer; in stm32_qspi_transfer_one_message() local 569 list_for_each_entry(transfer, &msg->transfers, transfer_list) { in stm32_qspi_transfer_one_message() 575 transfer->tx_buf, transfer->tx_nbits, in stm32_qspi_transfer_one_message() 576 transfer->rx_buf, transfer->rx_nbits, in stm32_qspi_transfer_one_message() 577 transfer->len, transfer->dummy_data); in stm32_qspi_transfer_one_message() 584 if (transfer->dummy_data) { in stm32_qspi_transfer_one_message() 585 op.dummy.buswidth = transfer->tx_nbits; in stm32_qspi_transfer_one_message() 586 op.dummy.nbytes = transfer->len; in stm32_qspi_transfer_one_message() 587 dummy_bytes = transfer->len; in stm32_qspi_transfer_one_message() 590 if (list_is_last(&transfer->transfer_list, &msg->transfers)) { in stm32_qspi_transfer_one_message() [all …]
|
| H A D | spi-stm32-ospi.c | 638 struct spi_transfer *transfer; in stm32_ospi_transfer_one_message() local 655 list_for_each_entry(transfer, &msg->transfers, transfer_list) { in stm32_ospi_transfer_one_message() 661 transfer->tx_buf, transfer->tx_nbits, in stm32_ospi_transfer_one_message() 662 transfer->rx_buf, transfer->rx_nbits, in stm32_ospi_transfer_one_message() 663 transfer->len, transfer->dummy_data); in stm32_ospi_transfer_one_message() 670 if (transfer->dummy_data) { in stm32_ospi_transfer_one_message() 671 op.dummy.buswidth = transfer->tx_nbits; in stm32_ospi_transfer_one_message() 672 op.dummy.nbytes = transfer->len; in stm32_ospi_transfer_one_message() 673 dummy_bytes = transfer->len; in stm32_ospi_transfer_one_message() 676 if (list_is_last(&transfer->transfer_list, &msg->transfers)) { in stm32_ospi_transfer_one_message() [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 …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | colorspaces-defs.rst | 10 which defines the chromaticities, the default transfer function, the 12 is the transfer function identifier (enum 14 transfer functions. The third is the Y'CbCr encoding identifier (enum 88 - Use the default transfer function as defined by the colorspace. 90 - Use the Rec. 709 transfer function. 92 - Use the sRGB transfer function. 94 - Use the opRGB transfer function. 96 - Use the SMPTE 240M transfer function. 98 - Do not use a transfer function (i.e. use linear RGB values). 100 - Use the DCI-P3 transfer function. [all …]
|
| /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 …]
|
| /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 …]
|
| /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.
|
| H A D | mhi.rst | 59 transfer rings are organized as a circular queue of Transfer Descriptors (TD). 81 Two unidirectional channels with their associated transfer rings form a 85 transfer ring. 91 Transfer Descriptors (TD). TDs are managed through transfer rings, which are 93 memory. TDs consist of one or more ring elements (or transfer blocks):: 101 Below is the basic usage of transfer rings: 103 * Host allocates memory for transfer ring. 118 data transfer completion status, command completion status, and state changes 120 memory. EDs consist of one or more ring elements (or transfer blocks):: 143 A Ring Element is a data structure used to transfer a single block [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | mcp320x.c | 87 struct spi_transfer transfer[2]; member 404 adc->transfer[0].tx_buf = &adc->tx_buf; in mcp320x_probe() 405 adc->transfer[0].len = sizeof(adc->tx_buf); in mcp320x_probe() 406 adc->transfer[1].rx_buf = adc->rx_buf; in mcp320x_probe() 407 adc->transfer[1].len = DIV_ROUND_UP(chip_info->resolution, 8); in mcp320x_probe() 412 &adc->transfer[1], 1); in mcp320x_probe() 414 spi_message_init_with_transfers(&adc->msg, adc->transfer, in mcp320x_probe() 415 ARRAY_SIZE(adc->transfer)); in mcp320x_probe() 424 adc->transfer[1].len++; in mcp320x_probe()
|
| /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 …]
|
| /linux/Documentation/driver-api/mmc/ |
| H A D | mmc-async-req.rst | 13 transfer, the DMA preparation overhead would not affect the MMC performance. 35 in parallel with the transfer performance won't be affected. 67 with the previous transfer, since there is no previous request. 73 and finally prepare the second chunk and start the transfer. 78 /* start MMC transfer for the complete transfer size */ 86 * the transfer is delayed, guesstimate max 4k as first chunk size. 96 * before this call, the transfer is delayed.
|
| /linux/Documentation/arch/arm/stm32/ |
| H A D | stm32-dma-mdma-chaining.rst | 30 without the ability to generate convenient burst transfer ensuring the best 54 the STM32 DMA transfer. 58 channel is null. The channel transfer complete of the last node is the end of 59 transfer, unless first and last nodes are linked to each other, in such a 60 case, the linked-list loops on to create a circular MDMA transfer. 65 can triggers STM32 MDMA transfer. STM32 MDMA can clear the request generated 156 If the SRAM period is greater than the expected DMA transfer, then STM32 DMA 197 destination address increment, block transfer with 128 bytes per single 198 transfer 217 STM32 DMA transfer (where memory address targets now the SRAM buffer instead [all …]
|
| /linux/Documentation/devicetree/bindings/dma/ |
| H A D | milbeaut-m10v-hdmac.txt | 3 Milbeaut AHB DMA controller has transfer capability below. 4 - device to memory transfer 5 - memory to device transfer
|
| /linux/Documentation/networking/ |
| H A D | plip.rst | 83 mode as compared to IRQ mode as far as the data transfer speed is involved. 87 data transfer (the maximal time the PLIP driver would allow the other side 88 before announcing a timeout, when trying to handshake a transfer of some 116 PLIP uses several different data transfer methods. The first (and the 118 printer "null" cable to transfer data four bits at a time using 121 The second data transfer method relies on both machines having 129 The cable for the first transfer mode is a standard 162 The second data transfer method relies on both machines having 170 The cable for this transfer mode should be constructed as follows:: 193 PLIP Mode 0 transfer protocol [all …]
|