Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/base/regmap/
H A 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()
/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-cec.c53 for (i = 0; i < ARRAY_SIZE(dev->xfers); i++) { in xfer_ready()
54 if (dev->xfers[i].sft && in xfer_ready()
55 dev->xfers[i].sft <= dev->cec_sft) { in xfer_ready()
77 for (i = 0; i < ARRAY_SIZE(dev->xfers); i++) { in adjust_sfts()
78 if (dev->xfers[i].sft <= CEC_SIGNAL_FREE_TIME_RETRY) in adjust_sfts()
80 initiator = dev->xfers[i].msg[0] >> 4; in adjust_sfts()
82 dev->xfers[i].sft = CEC_SIGNAL_FREE_TIME_NEXT_XFER; in adjust_sfts()
84 dev->xfers[i].sft = CEC_SIGNAL_FREE_TIME_NEW_INITIATOR; in adjust_sfts()
128 for (i = 0; i < ARRAY_SIZE(dev->xfers); i++) { in vivid_cec_bus_thread()
129 if (!dev->xfers[i].sft || dev->xfers[i].sft > last_sft) in vivid_cec_bus_thread()
[all …]
/openbmc/u-boot/drivers/spi/
H A Dspi-mem.c275 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op()
276 xfers[xferpos].len = sizeof(op->cmd.opcode); in spi_mem_exec_op()
277 xfers[xferpos].tx_nbits = op->cmd.buswidth; in spi_mem_exec_op()
278 spi_message_add_tail(&xfers[xferpos], &msg); in spi_mem_exec_op()
289 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op()
290 xfers[xferpos].len = op->addr.nbytes; in spi_mem_exec_op()
291 xfers[xferpos].tx_nbits = op->addr.buswidth; in spi_mem_exec_op()
292 spi_message_add_tail(&xfers[xferpos], &msg); in spi_mem_exec_op()
299 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op()
300 xfers[xferpos].len = op->dummy.nbytes; in spi_mem_exec_op()
[all …]
/openbmc/linux/drivers/mfd/
H A Docelot-spi.c144 struct spi_transfer xfers[3] = {0}; in ocelot_spi_regmap_bus_read() local
154 xfers[index].tx_buf = reg; in ocelot_spi_regmap_bus_read()
155 xfers[index].len = reg_size; in ocelot_spi_regmap_bus_read()
159 xfers[index].len = ddata->spi_padding_bytes; in ocelot_spi_regmap_bus_read()
160 xfers[index].tx_buf = ddata->dummy_buf; in ocelot_spi_regmap_bus_read()
161 xfers[index].dummy_data = 1; in ocelot_spi_regmap_bus_read()
165 xfers[index].rx_buf = val; in ocelot_spi_regmap_bus_read()
166 xfers[index].len = val_size; in ocelot_spi_regmap_bus_read()
169 spi_message_init_with_transfers(&msg, xfers, index); in ocelot_spi_regmap_bus_read()
/openbmc/linux/drivers/misc/
H A Dgehc-achc.c218 struct spi_transfer xfers[2] = {}; in ezport_flash_transfer() local
237 xfers[0].tx_buf = command; in ezport_flash_transfer()
238 xfers[0].len = 4; in ezport_flash_transfer()
240 xfers[1].tx_buf = payload; in ezport_flash_transfer()
241 xfers[1].len = payload_size; in ezport_flash_transfer()
243 ret = spi_sync_transfer(spi, xfers, 2); in ezport_flash_transfer()
254 struct spi_transfer xfers[2] = {}; in ezport_flash_compare() local
267 xfers[0].tx_buf = buffer; in ezport_flash_compare()
268 xfers[0].len = 4; in ezport_flash_compare()
269 xfers[0].speed_hz = ACHC_FAST_READ_FREQ_HZ; in ezport_flash_compare()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-mem.c316 struct spi_transfer xfers[4] = { }; in spi_mem_exec_op() local
360 xfers[xferpos].tx_buf = tmpbuf; in spi_mem_exec_op()
361 xfers[xferpos].len = op->cmd.nbytes; in spi_mem_exec_op()
362 xfers[xferpos].tx_nbits = op->cmd.buswidth; in spi_mem_exec_op()
363 spi_message_add_tail(&xfers[xferpos], &msg); in spi_mem_exec_op()
374 xfers[xferpos].tx_buf = tmpbuf + 1; in spi_mem_exec_op()
375 xfers[xferpos].len = op->addr.nbytes; in spi_mem_exec_op()
376 xfers[xferpos].tx_nbits = op->addr.buswidth; in spi_mem_exec_op()
377 spi_message_add_tail(&xfers[xferpos], &msg); in spi_mem_exec_op()
384 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op()
[all …]
H A Dspi-loopback-test.c711 struct spi_transfer *xfers = test->transfers; in spi_test_fill_pattern() local
727 if (xfers[i].rx_buf) in spi_test_fill_pattern()
728 memset(xfers[i].rx_buf, SPI_TEST_PATTERN_UNWRITTEN, in spi_test_fill_pattern()
729 xfers[i].len); in spi_test_fill_pattern()
731 tx_buf = (u8 *)xfers[i].tx_buf; in spi_test_fill_pattern()
735 for (j = 0; j < xfers[i].len; j++, tx_buf++, count++) { in spi_test_fill_pattern()
/openbmc/openbmc-tools/bi2cp/
H A Dbi2cp411 xfers = (to_i2ctransfer(e) for e in csv.reader(data))
414 xfers = (e for e in xfers if e.timestamp > after)
417 xfers = (e for e in xfers if e.timestamp < before)
420 xfers = (e for e in xfers if e.duration > minimum)
422 xfers = (e for e in xfers if e.address == args.address)
428 for xfer in as_smbustransfers(xfers, style):
433 for xfer in xfers:
/openbmc/linux/drivers/iio/gyro/
H A 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()
/openbmc/linux/drivers/iio/imu/
H A Dadis.c39 struct spi_transfer xfers[] = { in __adis_write_reg() local
87 spi_message_add_tail(&xfers[0], &msg); in __adis_write_reg()
109 xfers[size].cs_change = 0; in __adis_write_reg()
112 spi_message_add_tail(&xfers[i], &msg); in __adis_write_reg()
139 struct spi_transfer xfers[] = { in __adis_read_reg() local
182 spi_message_add_tail(&xfers[0], &msg); in __adis_read_reg()
189 spi_message_add_tail(&xfers[1], &msg); in __adis_read_reg()
194 spi_message_add_tail(&xfers[2], &msg); in __adis_read_reg()
195 spi_message_add_tail(&xfers[3], &msg); in __adis_read_reg()
/openbmc/linux/drivers/i3c/
H A 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()
H A Dinternals.h20 struct i3c_priv_xfer *xfers,
/openbmc/linux/drivers/i3c/master/
H A 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 …]
H A Dsvc-i3c-master.c1459 struct i3c_priv_xfer *xfers, in svc_i3c_master_priv_xfers() argument
1477 cmd->xfer = &xfers[i]; in svc_i3c_master_priv_xfers()
1479 cmd->rnw = xfers[i].rnw; in svc_i3c_master_priv_xfers()
1480 cmd->in = xfers[i].rnw ? xfers[i].data.in : NULL; in svc_i3c_master_priv_xfers()
1481 cmd->out = xfers[i].rnw ? NULL : xfers[i].data.out; in svc_i3c_master_priv_xfers()
1482 cmd->len = xfers[i].len; in svc_i3c_master_priv_xfers()
1483 cmd->actual_len = xfers[i].rnw ? xfers[i].len : 0; in svc_i3c_master_priv_xfers()
1500 const struct i2c_msg *xfers, in svc_i3c_master_i2c_xfers() argument
1519 cmd->rnw = xfers[i].flags & I2C_M_RD; in svc_i3c_master_i2c_xfers()
1520 cmd->in = cmd->rnw ? xfers[i].buf : NULL; in svc_i3c_master_i2c_xfers()
[all …]
/openbmc/linux/tools/virtio/
H A 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()
329 while (xfers < NUM_XFERS) { in parallel_test()
333 bool output = !(xfers % 2); in parallel_test()
345 dbuf = data + (xfers % (RINGSIZE + 1)); in parallel_test()
348 *dbuf = xfers; in parallel_test()
352 switch ((xfers / sizeof(*dbuf)) % 4) { in parallel_test()
380 __kmalloc_fake = indirects + (xfers % RINGSIZE) * 4; in parallel_test()
403 xfers++; in parallel_test()
[all …]
/openbmc/linux/drivers/fpga/
H A Dmicrochip-spi.c57 struct spi_transfer xfers[2] = { in mpf_read_status() local
74 ret = spi_sync_transfer(priv->spi, xfers, 2); in mpf_read_status()
285 struct spi_transfer xfers[2] = { in mpf_spi_frame_write() local
302 return spi_sync_transfer(priv->spi, xfers, ARRAY_SIZE(xfers)); in mpf_spi_frame_write()
/openbmc/linux/drivers/iio/adc/
H A Dmax1241.c43 struct spi_transfer xfers[] = { in max1241_read() local
62 return spi_sync_transfer(adc->spi, xfers, ARRAY_SIZE(xfers)); in max1241_read()
H A Dmax1118.c72 struct spi_transfer xfers[] = { in max1118_read() local
105 ret = spi_sync_transfer(adc->spi, xfers + 1, 2); in max1118_read()
107 ret = spi_sync_transfer(adc->spi, xfers, 3); in max1118_read()
/openbmc/linux/drivers/firmware/
H A Darm_scpi.c239 struct scpi_xfer *xfers; member
885 struct scpi_xfer *xfers; in scpi_alloc_xfer_list() local
887 xfers = devm_kcalloc(dev, MAX_SCPI_XFERS, sizeof(*xfers), GFP_KERNEL); in scpi_alloc_xfer_list()
888 if (!xfers) in scpi_alloc_xfer_list()
891 ch->xfers = xfers; in scpi_alloc_xfer_list()
892 for (i = 0; i < MAX_SCPI_XFERS; i++, xfers++) { in scpi_alloc_xfer_list()
893 init_completion(&xfers->done); in scpi_alloc_xfer_list()
894 list_add_tail(&xfers->node, &ch->xfers_list); in scpi_alloc_xfer_list()
/openbmc/linux/include/linux/i3c/
H A Dmaster.h470 struct i3c_priv_xfer *xfers,
475 const struct i2c_msg *xfers, int nxfers);
554 const struct i2c_msg *xfers,
/openbmc/linux/drivers/iio/dac/
H A 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()
H A 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()
/openbmc/linux/include/linux/spi/
H A Dspi.h1193 struct spi_transfer *xfers, unsigned int num_xfers) in spi_message_init_with_transfers() argument
1199 spi_message_add_tail(&xfers[i], m); in spi_message_init_with_transfers()
1368 spi_sync_transfer(struct spi_device *spi, struct spi_transfer *xfers, in spi_sync_transfer() argument
1373 spi_message_init_with_transfers(&msg, xfers, num_xfers); in spi_sync_transfer()
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_spi.c40 struct spi_transfer xfers[2] = {0}; in sja1105_xfer() local
53 hdr_xfer = &xfers[0]; in sja1105_xfer()
54 chunk_xfer = &xfers[1]; in sja1105_xfer()
105 rc = spi_sync_transfer(spi, xfers, 2); in sja1105_xfer()
/openbmc/linux/drivers/iio/accel/
H A Dsca3300.c258 struct spi_transfer xfers[2] = { in sca3300_transfer() local
276 ret = spi_sync_transfer(sca_data->spi, xfers, ARRAY_SIZE(xfers)); in sca3300_transfer()

12