| /Linux-v5.15/drivers/net/ethernet/qualcomm/ |
| 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 …]
|
| D | qca_spi.c | 109 struct spi_transfer transfer[2]; in qcaspi_write_burst() local 112 memset(&transfer, 0, sizeof(transfer)); in qcaspi_write_burst() 116 transfer[0].tx_buf = &cmd; in qcaspi_write_burst() 117 transfer[0].len = QCASPI_CMD_LEN; in qcaspi_write_burst() 118 transfer[1].tx_buf = src; in qcaspi_write_burst() 119 transfer[1].len = len; in qcaspi_write_burst() 121 spi_message_add_tail(&transfer[0], &msg); in qcaspi_write_burst() 122 spi_message_add_tail(&transfer[1], &msg); in qcaspi_write_burst() 137 struct spi_transfer transfer; in qcaspi_write_legacy() local 140 memset(&transfer, 0, sizeof(transfer)); in qcaspi_write_legacy() [all …]
|
| /Linux-v5.15/drivers/mtd/devices/ |
| 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 …]
|
| 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-v5.15/drivers/net/wireless/ralink/rt2x00/ |
| 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 …]
|
| /Linux-v5.15/drivers/usb/image/ |
| D | microtek.c | 187 MTS_DEBUG("transfer = 0x%x context = 0x%x\n",(int)transfer,(int)context ); \ 188 …status = 0x%x data-length = 0x%x sent = 0x%x\n",transfer->status,(int)context->data_length, (int)t… 204 struct mts_transfer_context* context = (struct mts_transfer_context*)transfer->context; \ 363 static void mts_transfer_cleanup( struct urb *transfer ); 364 static void mts_do_sg(struct urb * transfer); 367 void mts_int_submit_urb (struct urb* transfer, in mts_int_submit_urb() argument 380 usb_fill_bulk_urb(transfer, in mts_int_submit_urb() 389 res = usb_submit_urb( transfer, GFP_ATOMIC ); in mts_int_submit_urb() 393 mts_transfer_cleanup(transfer); in mts_int_submit_urb() 398 static void mts_transfer_cleanup( struct urb *transfer ) in mts_transfer_cleanup() argument [all …]
|
| /Linux-v5.15/Documentation/driver-api/dmaengine/ |
| 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 …]
|
| 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-v5.15/drivers/staging/greybus/tools/ |
| D | README.loopback | 27 size - payload size of the transfer. 35 3 - transfer 79 -t must be one of the test names - sink, transfer or ping 102 * Run a 1000 transfers of a 100 byte packet. Each transfer is started only 148 * Run a transfer test 10 iterations of size 100 bytes on all available devices 149 #/loopback_test -t transfer -i 10 -s 100 150 …1970-1-1 0:10:7,transfer,1-4.17,100,10,0,443,509,471.700012,66,1963,2256,2124.600098,293,102776,11… 151 …1970-1-1 0:10:7,transfer,1-5.17,100,10,0,399,542,463.399994,143,1845,2505,2175.800049,660,92568,12… 155 #/loopback_test -t transfer -i 10 -s 100 -a 156 …1970-1-1 0:10:35,transfer,1-4.17,100,10,0,448,580,494.100006,132,1722,2230,2039.400024,508,103936,… [all …]
|
| /Linux-v5.15/drivers/spi/ |
| D | spi-fsi.c | 256 struct spi_transfer *transfer) in fsi_spi_transfer_data() argument 261 if (transfer->tx_buf) { in fsi_spi_transfer_data() 265 const u8 *tx = transfer->tx_buf; in fsi_spi_transfer_data() 267 while (transfer->len > sent) { in fsi_spi_transfer_data() 269 (int)transfer->len - sent); in fsi_spi_transfer_data() 292 } else if (transfer->rx_buf) { in fsi_spi_transfer_data() 295 u8 *rx = transfer->rx_buf; in fsi_spi_transfer_data() 297 while (transfer->len > recv) { in fsi_spi_transfer_data() 318 (int)transfer->len - recv); in fsi_spi_transfer_data() 388 struct spi_transfer *transfer; in fsi_spi_transfer_one_message() local [all …]
|
| D | spi-cadence.c | 248 struct spi_transfer *transfer) in cdns_spi_config_clock_freq() argument 259 if (xspi->speed_hz != transfer->speed_hz) { in cdns_spi_config_clock_freq() 263 (frequency / (2 << baud_rate_val)) > transfer->speed_hz) in cdns_spi_config_clock_freq() 286 struct spi_transfer *transfer) in cdns_spi_setup_transfer() argument 290 cdns_spi_config_clock_freq(spi, transfer); in cdns_spi_setup_transfer() 412 struct spi_transfer *transfer) in cdns_transfer_one() argument 416 xspi->txbuf = transfer->tx_buf; in cdns_transfer_one() 417 xspi->rxbuf = transfer->rx_buf; in cdns_transfer_one() 418 xspi->tx_bytes = transfer->len; in cdns_transfer_one() 419 xspi->rx_bytes = transfer->len; in cdns_transfer_one() [all …]
|
| D | spi-mpc52xx.c | 81 struct spi_transfer *transfer; /* current transfer */ member 113 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer() 114 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer() 115 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer() 120 ms->cs_change = ms->transfer->cs_change; in mpc52xx_spi_start_transfer() 192 ms->transfer = container_of(ms->message->transfers.next, in mpc52xx_spi_fsmstate_idle() 251 if (ms->transfer->delay.unit == SPI_DELAY_UNIT_USECS) in mpc52xx_spi_fsmstate_transfer() 252 ms->timestamp += ms->transfer->delay.value * in mpc52xx_spi_fsmstate_transfer() 284 ms->message->actual_length += ms->transfer->len; in mpc52xx_spi_fsmstate_wait() 289 if (ms->transfer->transfer_list.next == &ms->message->transfers) { in mpc52xx_spi_fsmstate_wait() [all …]
|
| D | spi-pic32.c | 499 struct spi_transfer *transfer) in pic32_spi_one_transfer() argument 509 if (transfer->bits_per_word && in pic32_spi_one_transfer() 510 (transfer->bits_per_word != pic32s->bits_per_word)) { in pic32_spi_one_transfer() 511 ret = pic32_spi_set_word_size(pic32s, transfer->bits_per_word); in pic32_spi_one_transfer() 514 pic32s->bits_per_word = transfer->bits_per_word; in pic32_spi_one_transfer() 518 if (transfer->speed_hz && (transfer->speed_hz != pic32s->speed_hz)) { in pic32_spi_one_transfer() 519 pic32_spi_set_clk_rate(pic32s, transfer->speed_hz); in pic32_spi_one_transfer() 520 pic32s->speed_hz = transfer->speed_hz; in pic32_spi_one_transfer() 526 if (transfer->rx_sg.nents && transfer->tx_sg.nents) { in pic32_spi_one_transfer() 527 ret = pic32_spi_dma_transfer(pic32s, transfer); in pic32_spi_one_transfer() [all …]
|
| 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(master, 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 …]
|
| D | spi-imx.c | 229 struct spi_transfer *transfer) in spi_imx_can_dma() argument 242 if (transfer->len < spi_imx->devtype_data->fifo_size) in spi_imx_can_dma() 1347 struct spi_transfer *transfer) in spi_imx_dma_transfer() argument 1353 struct sg_table *tx = &transfer->tx_sg, *rx = &transfer->rx_sg; in spi_imx_dma_transfer() 1359 bytes_per_word = spi_imx_bytes_per_word(transfer->bits_per_word); in spi_imx_dma_transfer() 1414 transfer_timeout = spi_imx_calculate_timeout(spi_imx, transfer->len); in spi_imx_dma_transfer() 1435 return transfer->len; in spi_imx_dma_transfer() 1438 transfer->error |= SPI_TRANS_FAIL_NO_START; in spi_imx_dma_transfer() 1443 struct spi_transfer *transfer) in spi_imx_pio_transfer() argument 1449 spi_imx->tx_buf = transfer->tx_buf; in spi_imx_pio_transfer() [all …]
|
| /Linux-v5.15/drivers/usb/gadget/udc/ |
| D | max3420_udc.c | 204 struct spi_transfer transfer; in spi_ack_ctrl() local 208 memset(&transfer, 0, sizeof(transfer)); in spi_ack_ctrl() 213 transfer.tx_buf = txdata; in spi_ack_ctrl() 214 transfer.len = 1; in spi_ack_ctrl() 216 spi_message_add_tail(&transfer, &msg); in spi_ack_ctrl() 223 struct spi_transfer transfer; in spi_rd8_ack() local 227 memset(&transfer, 0, sizeof(transfer)); in spi_rd8_ack() 232 transfer.tx_buf = txdata; in spi_rd8_ack() 233 transfer.rx_buf = rxdata; in spi_rd8_ack() 234 transfer.len = 2; in spi_rd8_ack() [all …]
|
| /Linux-v5.15/Documentation/userspace-api/media/v4l/ |
| 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 …]
|
| /Linux-v5.15/drivers/net/wireless/rsi/ |
| D | rsi_91x_usb.c | 52 int transfer; in rsi_usb_card_write() local 58 transfer = len; in rsi_usb_card_write() 63 &transfer, in rsi_usb_card_write() 365 u16 transfer; in rsi_usb_read_register_multiple() local 376 transfer = min_t(u16, count, RSI_USB_BUF_SIZE); in rsi_usb_read_register_multiple() 383 transfer, USB_CTRL_GET_TIMEOUT); in rsi_usb_read_register_multiple() 391 memcpy(data, buf, transfer); in rsi_usb_read_register_multiple() 392 count -= transfer; in rsi_usb_read_register_multiple() 393 data += transfer; in rsi_usb_read_register_multiple() 394 addr += transfer; in rsi_usb_read_register_multiple() [all …]
|
| /Linux-v5.15/Documentation/driver-api/usb/ |
| 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-v5.15/Documentation/mhi/ |
| 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.
|
| 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-v5.15/drivers/usb/host/ |
| D | max3421-hcd.c | 355 struct spi_transfer transfer; in spi_rd8() local 358 memset(&transfer, 0, sizeof(transfer)); in spi_rd8() 366 transfer.tx_buf = max3421_hcd->tx->data; in spi_rd8() 367 transfer.rx_buf = max3421_hcd->rx->data; in spi_rd8() 368 transfer.len = 2; in spi_rd8() 370 spi_message_add_tail(&transfer, &msg); in spi_rd8() 381 struct spi_transfer transfer; in spi_wr8() local 384 memset(&transfer, 0, sizeof(transfer)); in spi_wr8() 393 transfer.tx_buf = max3421_hcd->tx->data; in spi_wr8() 394 transfer.len = 2; in spi_wr8() [all …]
|
| /Linux-v5.15/drivers/iio/adc/ |
| 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()
|
| /Linux-v5.15/Documentation/driver-api/mmc/ |
| 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-v5.15/Documentation/devicetree/bindings/dma/ |
| D | milbeaut-m10v-hdmac.txt | 3 Milbeaut AHB DMA controller has transfer capability below. 4 - device to memory transfer 5 - memory to device transfer
|