/linux-6.1.9/drivers/base/regmap/ |
D | regmap-i3c.c | 13 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()
|
/linux-6.1.9/drivers/media/test-drivers/vivid/ |
D | vivid-cec.c | 53 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 …]
|
/linux-6.1.9/drivers/fpga/ |
D | microchip-spi.c | 50 struct spi_transfer xfers[2] = { 0 }; in mpf_read_status() local 58 xfers[0].tx_buf = &status_command; in mpf_read_status() 59 xfers[1].tx_buf = &status_command; in mpf_read_status() 60 xfers[0].rx_buf = &status; in mpf_read_status() 61 xfers[1].rx_buf = &status; in mpf_read_status() 62 xfers[0].len = 1; in mpf_read_status() 63 xfers[1].len = 1; in mpf_read_status() 64 xfers[0].cs_change = 1; in mpf_read_status() 66 ret = spi_sync_transfer(spi, xfers, 2); in mpf_read_status() 278 struct spi_transfer xfers[2] = { 0 }; in mpf_ops_write() local [all …]
|
/linux-6.1.9/drivers/mfd/ |
D | ocelot-spi.c | 143 struct spi_transfer xfers[3] = {0}; in ocelot_spi_regmap_bus_read() local 153 xfers[index].tx_buf = reg; in ocelot_spi_regmap_bus_read() 154 xfers[index].len = reg_size; in ocelot_spi_regmap_bus_read() 158 xfers[index].len = ddata->spi_padding_bytes; in ocelot_spi_regmap_bus_read() 159 xfers[index].tx_buf = ddata->dummy_buf; in ocelot_spi_regmap_bus_read() 160 xfers[index].dummy_data = 1; in ocelot_spi_regmap_bus_read() 164 xfers[index].rx_buf = val; in ocelot_spi_regmap_bus_read() 165 xfers[index].len = val_size; in ocelot_spi_regmap_bus_read() 168 spi_message_init_with_transfers(&msg, xfers, index); in ocelot_spi_regmap_bus_read()
|
/linux-6.1.9/drivers/misc/ |
D | gehc-achc.c | 218 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 …]
|
/linux-6.1.9/drivers/spi/ |
D | spi-mem.c | 316 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 …]
|
D | spi-loopback-test.c | 700 struct spi_transfer *xfers = test->transfers; in spi_test_fill_pattern() local 716 if (xfers[i].rx_buf) in spi_test_fill_pattern() 717 memset(xfers[i].rx_buf, SPI_TEST_PATTERN_UNWRITTEN, in spi_test_fill_pattern() 718 xfers[i].len); in spi_test_fill_pattern() 720 tx_buf = (u8 *)xfers[i].tx_buf; in spi_test_fill_pattern() 724 for (j = 0; j < xfers[i].len; j++, tx_buf++, count++) { in spi_test_fill_pattern()
|
/linux-6.1.9/drivers/iio/gyro/ |
D | adxrs450.c | 95 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()
|
/linux-6.1.9/drivers/iio/imu/ |
D | adis.c | 39 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()
|
/linux-6.1.9/drivers/i3c/ |
D | device.c | 32 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()
|
D | internals.h | 19 struct i3c_priv_xfer *xfers,
|
/linux-6.1.9/drivers/i3c/master/ |
D | i3c-master-cdns.c | 735 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 …]
|
D | svc-i3c-master.c | 1261 struct i3c_priv_xfer *xfers, in svc_i3c_master_priv_xfers() argument 1280 cmd->rnw = xfers[i].rnw; in svc_i3c_master_priv_xfers() 1281 cmd->in = xfers[i].rnw ? xfers[i].data.in : NULL; in svc_i3c_master_priv_xfers() 1282 cmd->out = xfers[i].rnw ? NULL : xfers[i].data.out; in svc_i3c_master_priv_xfers() 1283 cmd->len = xfers[i].len; in svc_i3c_master_priv_xfers() 1284 cmd->read_len = xfers[i].rnw ? xfers[i].len : 0; in svc_i3c_master_priv_xfers() 1299 const struct i2c_msg *xfers, in svc_i3c_master_i2c_xfers() argument 1318 cmd->rnw = xfers[i].flags & I2C_M_RD; in svc_i3c_master_i2c_xfers() 1319 cmd->in = cmd->rnw ? xfers[i].buf : NULL; in svc_i3c_master_i2c_xfers() 1320 cmd->out = cmd->rnw ? NULL : xfers[i].buf; in svc_i3c_master_i2c_xfers() [all …]
|
/linux-6.1.9/tools/virtio/ |
D | vringh_test.c | 143 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 …]
|
/linux-6.1.9/drivers/staging/iio/meter/ |
D | ade7854-spi.c | 77 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()
|
/linux-6.1.9/drivers/iio/adc/ |
D | max1241.c | 44 struct spi_transfer xfers[] = { in max1241_read() local 63 return spi_sync_transfer(adc->spi, xfers, ARRAY_SIZE(xfers)); in max1241_read()
|
D | max1118.c | 72 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()
|
/linux-6.1.9/drivers/firmware/ |
D | arm_scpi.c | 239 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()
|
/linux-6.1.9/include/linux/i3c/ |
D | master.h | 441 struct i3c_priv_xfer *xfers, 446 const struct i2c_msg *xfers, int nxfers); 520 const struct i2c_msg *xfers,
|
/linux-6.1.9/drivers/iio/dac/ |
D | ad5761.c | 139 struct spi_transfer xfers[] = { in _ad5761_spi_read() local 156 ret = spi_sync_transfer(st->spi, xfers, ARRAY_SIZE(xfers)); in _ad5761_spi_read()
|
D | ad5791.c | 120 struct spi_transfer xfers[] = { in ad5791_spi_read() local 138 ret = spi_sync_transfer(st->spi, xfers, ARRAY_SIZE(xfers)); in ad5791_spi_read()
|
D | ad5766.c | 148 struct spi_transfer xfers[] = { in __ad5766_spi_read() local 165 ret = spi_sync_transfer(st->spi, xfers, ARRAY_SIZE(xfers)); in __ad5766_spi_read()
|
/linux-6.1.9/include/linux/spi/ |
D | spi.h | 1105 struct spi_transfer *xfers, unsigned int num_xfers) in spi_message_init_with_transfers() argument 1111 spi_message_add_tail(&xfers[i], m); in spi_message_init_with_transfers() 1260 spi_sync_transfer(struct spi_device *spi, struct spi_transfer *xfers, in spi_sync_transfer() argument 1265 spi_message_init_with_transfers(&msg, xfers, num_xfers); in spi_sync_transfer()
|
/linux-6.1.9/drivers/net/dsa/sja1105/ |
D | sja1105_spi.c | 40 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()
|
/linux-6.1.9/drivers/iio/accel/ |
D | sca3300.c | 258 struct spi_transfer xfers[2] = { in sca3300_transfer() local 276 ret = spi_sync_transfer(sca_data->spi, xfers, ARRAY_SIZE(xfers)); in sca3300_transfer()
|