| /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/spi/ |
| H A D | spi-spacemit-k1.c | 107 struct spi_transfer *transfer; /* Current transfer */ member 180 struct spi_transfer *transfer) in k1_spi_can_dma() argument 188 if (transfer->len > SZ_2K) in k1_spi_can_dma() 192 burst_size = K1_SPI_THRESH * spi_bpw_to_bytes(transfer->bits_per_word); in k1_spi_can_dma() 194 return transfer->len >= burst_size; in k1_spi_can_dma() 213 drv_data->transfer->error |= SPI_TRANS_FAIL_IO; in k1_spi_dma_callback() 220 drv_data->transfer = NULL; in k1_spi_dma_callback() 228 struct spi_transfer *transfer, bool tx) in k1_spi_dma_prep() argument 252 sgt = &transfer->tx_sg; in k1_spi_dma_prep() 260 sgt = &transfer->rx_sg; in k1_spi_dma_prep() [all …]
|
| H A D | spi-imx.c | 257 struct spi_transfer *transfer) in spi_imx_can_dma() argument 273 if (transfer->len > MX53_MAX_TRANSFER_BYTES && spi_imx->target_mode) in spi_imx_can_dma() 276 if (transfer->len < spi_imx->devtype_data->fifo_size) in spi_imx_can_dma() 284 if (transfer->len >= MAX_SDMA_BD_BYTES) in spi_imx_can_dma() 1629 struct spi_transfer *transfer, in spi_imx_dma_data_prepare() argument 1655 } else if (transfer->len <= MX51_ECSPI_CTRL_MAX_BURST) { in spi_imx_dma_data_prepare() 1657 pre_bl = transfer->len * BITS_PER_BYTE - 1; in spi_imx_dma_data_prepare() 1658 } else if (!(transfer->len % MX51_ECSPI_CTRL_MAX_BURST)) { in spi_imx_dma_data_prepare() 1664 tail_bl = (transfer->len % MX51_ECSPI_CTRL_MAX_BURST) * BITS_PER_BYTE - 1; in spi_imx_dma_data_prepare() 1679 spi_imx->dma_data[0].data_len = transfer->len; in spi_imx_dma_data_prepare() [all …]
|
| H A D | spi-cadence.c | 266 struct spi_transfer *transfer) in cdns_spi_config_clock_freq() argument 277 if (xspi->speed_hz != transfer->speed_hz) { in cdns_spi_config_clock_freq() 281 (frequency / (2 << baud_rate_val)) > transfer->speed_hz) in cdns_spi_config_clock_freq() 304 struct spi_transfer *transfer) in cdns_spi_setup_transfer() argument 308 cdns_spi_config_clock_freq(spi, transfer); in cdns_spi_setup_transfer() 317 static u8 cdns_spi_n_bytes(struct spi_transfer *transfer) in cdns_spi_n_bytes() argument 319 if (transfer->bits_per_word <= 8) in cdns_spi_n_bytes() 321 else if (transfer->bits_per_word <= 16) in cdns_spi_n_bytes() 516 struct spi_transfer *transfer) in cdns_transfer_one() argument 520 xspi->txbuf = transfer->tx_buf; in cdns_transfer_one() [all …]
|
| H A D | spi-rzv2h-rspi.c | 245 struct spi_transfer *transfer, in rzv2h_rspi_transfer_pio() argument 254 rzv2h_rspi_send(rspi, transfer->tx_buf, i); in rzv2h_rspi_transfer_pio() 256 ret = rzv2h_rspi_receive(rspi, transfer->rx_buf, i); in rzv2h_rspi_transfer_pio() 322 struct spi_transfer *transfer, in rzv2h_rspi_transfer_dma() argument 335 &transfer->rx_sg, width, in rzv2h_rspi_transfer_dma() 341 &transfer->tx_sg, width, in rzv2h_rspi_transfer_dma() 386 struct spi_transfer *transfer) in rzv2h_rspi_transfer_one() argument 389 bool is_dma = spi_xfer_is_dma_mapped(controller, spi, transfer); in rzv2h_rspi_transfer_one() 393 transfer->effective_speed_hz = rspi->freq; in rzv2h_rspi_transfer_one() 394 words_to_transfer = transfer->len / rspi->bytes_per_word; in rzv2h_rspi_transfer_one() [all …]
|
| /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/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/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/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/drivers/mmc/host/ |
| H A D | litex_mmc.c | 130 u8 cmd, u32 arg, u8 response_len, u8 transfer) in litex_mmc_send_cmd() argument 139 cmd << 8 | transfer << 5 | response_len); in litex_mmc_send_cmd() 147 (transfer != SD_CTL_DATA_XFER_NONE || in litex_mmc_send_cmd() 170 if (transfer == SD_CTL_DATA_XFER_NONE) in litex_mmc_send_cmd() 180 reg = (transfer == SD_CTL_DATA_XFER_READ) ? in litex_mmc_send_cmd() 245 unsigned int *len, bool *direct, u8 *transfer) in litex_mmc_do_dma() argument 272 *transfer = SD_CTL_DATA_XFER_READ; in litex_mmc_do_dma() 281 *transfer = SD_CTL_DATA_XFER_WRITE; in litex_mmc_do_dma() 303 u8 transfer = SD_CTL_DATA_XFER_NONE; in litex_mmc_request() local 324 litex_mmc_do_dma(host, data, &len, &direct, &transfer); in litex_mmc_request() [all …]
|
| /linux/drivers/cxl/core/ |
| H A D | memdev.c | 936 struct cxl_mbox_transfer_fw *transfer; in cxl_mem_abort_fw_xfer() local 940 transfer = kzalloc_flex(*transfer, data, 0); in cxl_mem_abort_fw_xfer() 941 if (!transfer) in cxl_mem_abort_fw_xfer() 947 .size_in = sizeof(*transfer), in cxl_mem_abort_fw_xfer() 948 .payload_in = transfer, in cxl_mem_abort_fw_xfer() 953 transfer->action = CXL_FW_TRANSFER_ACTION_ABORT; in cxl_mem_abort_fw_xfer() 956 kfree(transfer); in cxl_mem_abort_fw_xfer() 985 struct cxl_mbox_transfer_fw *transfer; in cxl_fw_prepare() local 991 mds->fw.oneshot = struct_size(transfer, data, size) <= in cxl_fw_prepare() 1014 struct cxl_mbox_transfer_fw *transfer; in cxl_fw_write() local [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 | 86 struct spi_transfer transfer[2]; member 403 adc->transfer[0].tx_buf = &adc->tx_buf; in mcp320x_probe() 404 adc->transfer[0].len = sizeof(adc->tx_buf); in mcp320x_probe() 405 adc->transfer[1].rx_buf = adc->rx_buf; in mcp320x_probe() 406 adc->transfer[1].len = DIV_ROUND_UP(chip_info->resolution, 8); in mcp320x_probe() 411 &adc->transfer[1], 1); in mcp320x_probe() 413 spi_message_init_with_transfers(&adc->msg, adc->transfer, in mcp320x_probe() 414 ARRAY_SIZE(adc->transfer)); in mcp320x_probe() 423 adc->transfer[1].len++; in mcp320x_probe()
|
| /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 …]
|
| /linux/drivers/net/ethernet/asix/ |
| H A D | Kconfig | 23 bool "SPI transfer compression" 27 Say Y here to enable SPI transfer compression. It saves up 28 to 24 dummy cycles during each transfer which may noticeably
|
| /linux/Documentation/driver-api/soundwire/ |
| H A D | locking.rst | 29 SoundWire message transfer lock. This mutex is part of 38 Message transfer. 40 1. For every message transfer 74 2. For every message transfer in Prepare operation
|
| /linux/Documentation/driver-api/dmaengine/ |
| H A D | client.rst | 99 setting the DMA_PREP_REPEAT transfer flag. 101 A non-NULL return of this transfer API represents a "descriptor" for 198 after their transfer completion callback has run for the descriptor. 199 If no completion callback has been defined for the transfer, then the 201 In other words: if the aim is to read back metadata after the transfer is 229 3. submit the transfer 236 3. submit the transfer 237 4. when the transfer is completed, the metadata should be available in the 250 5. submit the transfer 255 2. submit the transfer [all …]
|
| /linux/Documentation/core-api/ |
| H A D | dma-isa-lpc.rst | 38 Also the transfer block may not cross page boundaries (which are 64 87 Now for the good stuff, the actual DMA transfer. :) 101 transfer using set_dma_mode(). Currently you have the options 104 Set the address from where the transfer should start (this needs to 106 transfer. Note that it's _bytes_. The DMA routines will do all the 112 Once the DMA transfer is finished (or timed out) you should disable 140 printk(KERN_ERR "driver: Incomplete DMA transfer!" 149 suspended while a DMA transfer is in progress. Also, all DMA settings
|