Home
last modified time | relevance | path

Searched refs:xfers (Results 1 – 25 of 25) sorted by relevance

/kernel/linux/linux-5.10/drivers/base/regmap/
Dregmap-i3c.c13 struct i3c_priv_xfer xfers[] = { in regmap_i3c_write() local
21 return i3c_device_do_priv_xfers(i3c, xfers, 1); in regmap_i3c_write()
30 struct i3c_priv_xfer xfers[2]; in regmap_i3c_read() local
32 xfers[0].rnw = false; in regmap_i3c_read()
33 xfers[0].len = reg_size; in regmap_i3c_read()
34 xfers[0].data.out = reg; in regmap_i3c_read()
36 xfers[1].rnw = true; in regmap_i3c_read()
37 xfers[1].len = val_size; in regmap_i3c_read()
38 xfers[1].data.in = val; in regmap_i3c_read()
40 return i3c_device_do_priv_xfers(i3c, xfers, 2); in regmap_i3c_read()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-mem.c286 struct spi_transfer xfers[4] = { }; in spi_mem_exec_op() local
330 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op()
331 xfers[xferpos].len = op->cmd.nbytes; in spi_mem_exec_op()
332 xfers[xferpos].tx_nbits = op->cmd.buswidth; in spi_mem_exec_op()
333 spi_message_add_tail(&xfers[xferpos], &msg); in spi_mem_exec_op()
344 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op()
345 xfers[xferpos].len = op->addr.nbytes; in spi_mem_exec_op()
346 xfers[xferpos].tx_nbits = op->addr.buswidth; in spi_mem_exec_op()
347 spi_message_add_tail(&xfers[xferpos], &msg); in spi_mem_exec_op()
354 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op()
[all …]
Dspi-loopback-test.c673 struct spi_transfer *xfers = test->transfers; in spi_test_fill_pattern() local
689 if (xfers[i].rx_buf) in spi_test_fill_pattern()
690 memset(xfers[i].rx_buf, SPI_TEST_PATTERN_UNWRITTEN, in spi_test_fill_pattern()
691 xfers[i].len); in spi_test_fill_pattern()
693 tx_buf = (u8 *)xfers[i].tx_buf; in spi_test_fill_pattern()
697 for (j = 0; j < xfers[i].len; j++, tx_buf++, count++) { in spi_test_fill_pattern()
Dspi.c3202 struct spi_transfer *xfer = *xferp, *xfers; in __spi_split_transfer_maxsize() local
3214 xfers = srt->inserted_transfers; in __spi_split_transfer_maxsize()
3229 xfers[0].len = min_t(size_t, maxsize, xfer[0].len); in __spi_split_transfer_maxsize()
3234 if (xfers[i].rx_buf) in __spi_split_transfer_maxsize()
3235 xfers[i].rx_buf += offset; in __spi_split_transfer_maxsize()
3236 if (xfers[i].rx_dma) in __spi_split_transfer_maxsize()
3237 xfers[i].rx_dma += offset; in __spi_split_transfer_maxsize()
3238 if (xfers[i].tx_buf) in __spi_split_transfer_maxsize()
3239 xfers[i].tx_buf += offset; in __spi_split_transfer_maxsize()
3240 if (xfers[i].tx_dma) in __spi_split_transfer_maxsize()
[all …]
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
Dsja1105_spi.c32 #define sja1105_hdr_xfer(xfers, chunk) \ argument
33 ((xfers) + 2 * (chunk))
34 #define sja1105_chunk_xfer(xfers, chunk) \ argument
35 ((xfers) + 2 * (chunk) + 1)
55 struct spi_transfer *xfers; in sja1105_xfer() local
65 xfers = kcalloc(2 * num_chunks, sizeof(struct spi_transfer), in sja1105_xfer()
67 if (!xfers) in sja1105_xfer()
76 kfree(xfers); in sja1105_xfer()
81 struct spi_transfer *chunk_xfer = sja1105_chunk_xfer(xfers, i); in sja1105_xfer()
82 struct spi_transfer *hdr_xfer = sja1105_hdr_xfer(xfers, i); in sja1105_xfer()
[all …]
/kernel/linux/linux-5.10/drivers/iio/gyro/
Dadxrs450.c95 struct spi_transfer xfers[] = { in adxrs450_spi_read_reg_16() local
115 ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers)); in adxrs450_spi_read_reg_16()
169 struct spi_transfer xfers[] = { in adxrs450_spi_sensor_data() local
185 ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers)); in adxrs450_spi_sensor_data()
209 struct spi_transfer xfers = { in adxrs450_spi_initial() local
221 ret = spi_sync_transfer(st->us, &xfers, 1); in adxrs450_spi_initial()
/kernel/linux/linux-5.10/drivers/iio/imu/
Dadis.c43 struct spi_transfer xfers[] = { in __adis_write_reg() local
91 spi_message_add_tail(&xfers[0], &msg); in __adis_write_reg()
113 xfers[size].cs_change = 0; in __adis_write_reg()
116 spi_message_add_tail(&xfers[i], &msg); in __adis_write_reg()
143 struct spi_transfer xfers[] = { in __adis_read_reg() local
186 spi_message_add_tail(&xfers[0], &msg); in __adis_read_reg()
193 spi_message_add_tail(&xfers[1], &msg); in __adis_read_reg()
198 spi_message_add_tail(&xfers[2], &msg); in __adis_read_reg()
199 spi_message_add_tail(&xfers[3], &msg); in __adis_read_reg()
/kernel/linux/linux-5.10/drivers/i3c/
Ddevice.c32 struct i3c_priv_xfer *xfers, in i3c_device_do_priv_xfers() argument
41 if (!xfers[i].len || !xfers[i].data.in) in i3c_device_do_priv_xfers()
46 ret = i3c_dev_do_priv_xfers_locked(dev->desc, xfers, nxfers); in i3c_device_do_priv_xfers()
Dinternals.h19 struct i3c_priv_xfer *xfers,
Dmaster.c2136 struct i2c_msg *xfers, int nxfers) in i3c_master_i2c_adapter_xfer() argument
2143 if (!xfers || !master || nxfers <= 0) in i3c_master_i2c_adapter_xfer()
2150 addr = xfers[0].addr; in i3c_master_i2c_adapter_xfer()
2152 if (addr != xfers[i].addr) in i3c_master_i2c_adapter_xfer()
2161 ret = master->ops->i2c_xfers(dev, xfers, nxfers); in i3c_master_i2c_adapter_xfer()
2598 struct i3c_priv_xfer *xfers, in i3c_dev_do_priv_xfers_locked() argument
2607 if (!master || !xfers) in i3c_dev_do_priv_xfers_locked()
2613 return master->ops->priv_xfers(dev, xfers, nxfers); in i3c_dev_do_priv_xfers_locked()
/kernel/linux/linux-5.10/drivers/i3c/master/
Di3c-master-cdns.c735 struct i3c_priv_xfer *xfers, in cdns_i3c_master_priv_xfers() argument
744 if (xfers[i].len > CMD0_FIFO_PL_LEN_MAX) in cdns_i3c_master_priv_xfers()
760 if (xfers[i].rnw) in cdns_i3c_master_priv_xfers()
761 rxslots += DIV_ROUND_UP(xfers[i].len, 4); in cdns_i3c_master_priv_xfers()
763 txslots += DIV_ROUND_UP(xfers[i].len, 4); in cdns_i3c_master_priv_xfers()
776 u32 pl_len = xfers[i].len; in cdns_i3c_master_priv_xfers()
781 if (xfers[i].rnw) { in cdns_i3c_master_priv_xfers()
783 ccmd->rx_buf = xfers[i].data.in; in cdns_i3c_master_priv_xfers()
784 ccmd->rx_len = xfers[i].len; in cdns_i3c_master_priv_xfers()
787 ccmd->tx_buf = xfers[i].data.out; in cdns_i3c_master_priv_xfers()
[all …]
/kernel/linux/linux-5.10/tools/virtio/
Dvringh_test.c143 unsigned long xfers = 0, notifies = 0, receives = 0; in parallel_test() local
195 while (xfers < NUM_XFERS) { in parallel_test()
271 xfers++; in parallel_test()
328 while (xfers < NUM_XFERS) { in parallel_test()
332 bool output = !(xfers % 2); in parallel_test()
344 dbuf = data + (xfers % (RINGSIZE + 1)); in parallel_test()
347 *dbuf = xfers; in parallel_test()
351 switch ((xfers / sizeof(*dbuf)) % 4) { in parallel_test()
379 __kmalloc_fake = indirects + (xfers % RINGSIZE) * 4; in parallel_test()
402 xfers++; in parallel_test()
[all …]
/kernel/linux/linux-5.10/drivers/staging/iio/meter/
Dade7854-spi.c77 struct spi_transfer xfers[] = { in ade7854_spi_read_reg() local
95 ret = spi_sync_transfer(st->spi, xfers, ARRAY_SIZE(xfers)); in ade7854_spi_read_reg()
/kernel/linux/linux-5.10/drivers/iio/adc/
Dmax1241.c44 struct spi_transfer xfers[] = { in max1241_read() local
63 return spi_sync_transfer(adc->spi, xfers, ARRAY_SIZE(xfers)); in max1241_read()
Dmax1118.c73 struct spi_transfer xfers[] = { in max1118_read() local
106 ret = spi_sync_transfer(spi, xfers + 1, 2); in max1118_read()
108 ret = spi_sync_transfer(spi, xfers, 3); in max1118_read()
/kernel/linux/linux-5.10/drivers/firmware/
Darm_scpi.c239 struct scpi_xfer *xfers; member
882 struct scpi_xfer *xfers; in scpi_alloc_xfer_list() local
884 xfers = devm_kcalloc(dev, MAX_SCPI_XFERS, sizeof(*xfers), GFP_KERNEL); in scpi_alloc_xfer_list()
885 if (!xfers) in scpi_alloc_xfer_list()
888 ch->xfers = xfers; in scpi_alloc_xfer_list()
889 for (i = 0; i < MAX_SCPI_XFERS; i++, xfers++) { in scpi_alloc_xfer_list()
890 init_completion(&xfers->done); in scpi_alloc_xfer_list()
891 list_add_tail(&xfers->node, &ch->xfers_list); in scpi_alloc_xfer_list()
/kernel/linux/linux-5.10/include/linux/i3c/
Dmaster.h442 struct i3c_priv_xfer *xfers,
447 const struct i2c_msg *xfers, int nxfers);
521 const struct i2c_msg *xfers,
Ddevice.h293 struct i3c_priv_xfer *xfers,
/kernel/linux/linux-5.10/drivers/iio/dac/
Dad5761.c139 struct spi_transfer xfers[] = { in _ad5761_spi_read() local
156 ret = spi_sync_transfer(st->spi, xfers, ARRAY_SIZE(xfers)); in _ad5761_spi_read()
Dad5791.c120 struct spi_transfer xfers[] = { in ad5791_spi_read() local
138 ret = spi_sync_transfer(st->spi, xfers, ARRAY_SIZE(xfers)); in ad5791_spi_read()
/kernel/linux/linux-5.10/include/linux/spi/
Dspi.h1087 struct spi_transfer *xfers, unsigned int num_xfers) in spi_message_init_with_transfers() argument
1093 spi_message_add_tail(&xfers[i], m); in spi_message_init_with_transfers()
1258 spi_sync_transfer(struct spi_device *spi, struct spi_transfer *xfers, in spi_sync_transfer() argument
1263 spi_message_init_with_transfers(&msg, xfers, num_xfers); in spi_sync_transfer()
/kernel/linux/linux-5.10/drivers/input/joystick/
Dpsxpad-spi.c74 struct spi_transfer xfers = { in psxpad_command() local
81 err = spi_sync_transfer(pad->spi, &xfers, 1); in psxpad_command()
/kernel/linux/linux-5.10/drivers/staging/iio/resolver/
Dad2s1210.c133 struct spi_transfer xfers[] = { in ad2s1210_config_read() local
150 ret = spi_sync_transfer(st->sdev, xfers, 2); in ad2s1210_config_read()
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/wifi/
Dray_cs.rst146 linux. If you want to watch ftp xfers, or do similar things, you
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_edid.c1788 unsigned char xfers = segment ? 3 : 2; in drm_do_probe_ddc_edid() local
1822 ret = i2c_transfer(adapter, &msgs[3 - xfers], xfers); in drm_do_probe_ddc_edid()
1829 } while (ret != xfers && --retries); in drm_do_probe_ddc_edid()
1831 return ret == xfers ? 0 : -1; in drm_do_probe_ddc_edid()