/linux-6.6.21/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 | 108 struct spi_transfer transfer[2]; in qcaspi_write_burst() local 111 memset(&transfer, 0, sizeof(transfer)); in qcaspi_write_burst() 115 transfer[0].tx_buf = &cmd; in qcaspi_write_burst() 116 transfer[0].len = QCASPI_CMD_LEN; in qcaspi_write_burst() 117 transfer[1].tx_buf = src; in qcaspi_write_burst() 118 transfer[1].len = len; in qcaspi_write_burst() 120 spi_message_add_tail(&transfer[0], &msg); in qcaspi_write_burst() 121 spi_message_add_tail(&transfer[1], &msg); in qcaspi_write_burst() 136 struct spi_transfer transfer; in qcaspi_write_legacy() local 139 memset(&transfer, 0, sizeof(transfer)); in qcaspi_write_legacy() [all …]
|
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/usb/image/ |
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 …]
|
/linux-6.6.21/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-6.6.21/drivers/spi/ |
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 …]
|
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 …]
|
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 …]
|
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 …]
|
D | spi-hisi-kunpeng.c | 216 static u8 hisi_spi_n_bytes(struct spi_transfer *transfer) in hisi_spi_n_bytes() argument 218 if (transfer->bits_per_word <= 8) in hisi_spi_n_bytes() 220 else if (transfer->bits_per_word <= 16) in hisi_spi_n_bytes() 377 struct spi_device *spi, struct spi_transfer *transfer) in hisi_spi_transfer_one() argument 384 transfer->effective_speed_hz = in hisi_spi_transfer_one() 385 hisi_calc_effective_speed(host, chip, transfer->speed_hz); in hisi_spi_transfer_one() 388 cr |= FIELD_PREP(CR_BPW_MASK, transfer->bits_per_word - 1); in hisi_spi_transfer_one() 393 hs->n_bytes = hisi_spi_n_bytes(transfer); in hisi_spi_transfer_one() 394 hs->tx = transfer->tx_buf; in hisi_spi_transfer_one() 395 hs->tx_len = transfer->len / hs->n_bytes; in hisi_spi_transfer_one() [all …]
|
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() 1404 struct spi_transfer *transfer) in spi_imx_dma_transfer() argument 1410 struct sg_table *tx = &transfer->tx_sg, *rx = &transfer->rx_sg; in spi_imx_dma_transfer() 1416 bytes_per_word = spi_imx_bytes_per_word(transfer->bits_per_word); in spi_imx_dma_transfer() 1471 transfer_timeout = spi_imx_calculate_timeout(spi_imx, transfer->len); in spi_imx_dma_transfer() 1495 transfer->error |= SPI_TRANS_FAIL_NO_START; in spi_imx_dma_transfer() 1500 struct spi_transfer *transfer) in spi_imx_pio_transfer() argument 1506 spi_imx->tx_buf = transfer->tx_buf; in spi_imx_pio_transfer() 1507 spi_imx->rx_buf = transfer->rx_buf; in spi_imx_pio_transfer() [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/dma/ |
D | st,stm32-mdma.yaml | 24 0x2: Source address pointer is incremented after each data transfer 25 0x3: Source address pointer is decremented after each data transfer 28 0x2: Destination address pointer is incremented after each data transfer 29 0x3: Destination address pointer is decremented after each data transfer 40 -bit 25-18: The number of bytes to be transferred in a single transfer 43 0x00: Each MDMA request triggers a buffer transfer (max 128 bytes) 44 0x1: Each MDMA request triggers a block transfer (max 64K bytes) 45 0x2: Each MDMA request triggers a repeated block transfer 46 0x3: Each MDMA request triggers a linked list transfer
|
/linux-6.6.21/drivers/usb/gadget/udc/ |
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-6.6.21/Documentation/devicetree/bindings/mailbox/ |
D | arm,mhuv2.yaml | 33 - Data-transfer: Each transfer is made of one or more words, using one or more 36 - Doorbell: Each transfer is made up of single bit flag, using any one of the 96 The first field of a tuple signifies the transfer protocol, 0 is reserved 97 for doorbell protocol, and 1 is reserved for data-transfer protocol. 103 windows that implement the doorbell protocol. For data-transfer protocol, 105 the data-transfer protocol. 120 7 windows (separately) used in data-transfer protocol. 135 doorbell, or data-transfer protocol, and the second argument (only 144 mboxes = <&mhu 2 0>; // Channel Window Group 2, data transfer protocol with 1 window. 145 mboxes = <&mhu 3 0>; // Channel Window Group 3, data transfer protocol with 5 windows. [all …]
|
/linux-6.6.21/drivers/cxl/core/ |
D | memdev.c | 763 struct cxl_mbox_transfer_fw *transfer; in cxl_mem_abort_fw_xfer() local 767 transfer = kzalloc(struct_size(transfer, data, 0), GFP_KERNEL); in cxl_mem_abort_fw_xfer() 768 if (!transfer) in cxl_mem_abort_fw_xfer() 774 .size_in = sizeof(*transfer), in cxl_mem_abort_fw_xfer() 775 .payload_in = transfer, in cxl_mem_abort_fw_xfer() 780 transfer->action = CXL_FW_TRANSFER_ACTION_ABORT; in cxl_mem_abort_fw_xfer() 783 kfree(transfer); in cxl_mem_abort_fw_xfer() 812 struct cxl_mbox_transfer_fw *transfer; in cxl_fw_prepare() local 817 mds->fw.oneshot = struct_size(transfer, data, size) < in cxl_fw_prepare() 839 struct cxl_mbox_transfer_fw *transfer; in cxl_fw_write() local [all …]
|
/linux-6.6.21/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-6.6.21/drivers/net/wireless/rsi/ |
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-6.6.21/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-6.6.21/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.
|
/linux-6.6.21/drivers/usb/host/ |
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 …]
|
/linux-6.6.21/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-6.6.21/drivers/mmc/host/ |
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 …]
|