/Zephyr-latest/tests/boards/mec15xxevb_assy6853/qspi/src/ |
D | main.c | 45 static struct spi_buf_set tx_bufs, rx_bufs; variable 77 tx_bufs.buffers = (const struct spi_buf *)&txb[0]; in ZTEST_USER() 78 tx_bufs.count = 1U; in ZTEST_USER() 89 (const struct spi_buf_set *)&tx_bufs, in ZTEST_USER() 113 tx_bufs.buffers = (const struct spi_buf *)&txb[0]; in ZTEST_USER() 114 tx_bufs.count = 1U; in ZTEST_USER() 121 (const struct spi_buf_set *)&tx_bufs, in ZTEST_USER() 133 tx_bufs.buffers = (const struct spi_buf *)&txb[0]; in ZTEST_USER() 134 tx_bufs.count = 1U; in ZTEST_USER() 141 (const struct spi_buf_set *)&tx_bufs, in ZTEST_USER() [all …]
|
/Zephyr-latest/drivers/spi/ |
D | spi_handlers.c | 57 struct spi_buf_set *tx_bufs, in copy_bufs_and_transceive() argument 60 struct spi_buf tx_buf_copy[tx_bufs->count ? tx_bufs->count : 1]; in copy_bufs_and_transceive() 63 tx_bufs = copy_and_check(tx_bufs, tx_buf_copy, 0); in copy_bufs_and_transceive() 67 tx_bufs, rx_bufs); in copy_bufs_and_transceive() 72 const struct spi_buf_set *tx_bufs, in z_vrfy_spi_transceive() argument 82 if (tx_bufs) { in z_vrfy_spi_transceive() 84 (const struct spi_buf_set *)tx_bufs; in z_vrfy_spi_transceive() 86 K_OOPS(K_SYSCALL_MEMORY_READ(tx_bufs, in z_vrfy_spi_transceive()
|
D | spi_rtio.c | 76 struct spi_buf tx_bufs[CONFIG_SPI_RTIO_FALLBACK_MSGS]; in spi_rtio_iodev_default_submit_sync() local 79 .buffers = tx_bufs, in spi_rtio_iodev_default_submit_sync() 96 tx_bufs[i].buf = NULL; in spi_rtio_iodev_default_submit_sync() 97 tx_bufs[i].len = sqe->rx.buf_len; in spi_rtio_iodev_default_submit_sync() 102 tx_bufs[i].buf = (uint8_t *)sqe->tx.buf; in spi_rtio_iodev_default_submit_sync() 103 tx_bufs[i].len = sqe->tx.buf_len; in spi_rtio_iodev_default_submit_sync() 108 tx_bufs[i].buf = (uint8_t *)sqe->tiny_tx.buf; in spi_rtio_iodev_default_submit_sync() 109 tx_bufs[i].len = sqe->tiny_tx.buf_len; in spi_rtio_iodev_default_submit_sync() 114 tx_bufs[i].buf = (uint8_t *)sqe->txrx.tx_buf; in spi_rtio_iodev_default_submit_sync() 115 tx_bufs[i].len = sqe->txrx.buf_len; in spi_rtio_iodev_default_submit_sync() [all …]
|
D | spi_test.c | 20 const struct spi_buf_set *tx_bufs, in vnd_spi_transceive() argument 29 const struct spi_buf_set *tx_bufs, in vnd_spi_transceive_async() argument
|
D | spi_sam0.c | 268 const struct spi_buf_set *tx_bufs, in spi_sam0_fast_transceive() argument 278 if (tx_bufs) { in spi_sam0_fast_transceive() 279 tx = tx_bufs->buffers; in spi_sam0_fast_transceive() 280 tx_count = tx_bufs->count; in spi_sam0_fast_transceive() 321 static bool spi_sam0_is_regular(const struct spi_buf_set *tx_bufs, in spi_sam0_is_regular() argument 329 if (tx_bufs) { in spi_sam0_is_regular() 330 tx = tx_bufs->buffers; in spi_sam0_is_regular() 331 tx_count = tx_bufs->count; in spi_sam0_is_regular() 355 const struct spi_buf_set *tx_bufs, in spi_sam0_transceive() argument 377 if (spi_sam0_is_regular(tx_bufs, rx_bufs)) { in spi_sam0_transceive() [all …]
|
D | spi_nrfx_spis.c | 168 const struct spi_buf_set *tx_bufs, in transceive() argument 176 const struct spi_buf *tx_buf = tx_bufs ? tx_bufs->buffers : NULL; in transceive() 187 } else if ((tx_bufs && tx_bufs->count > 1) || in transceive() 239 const struct spi_buf_set *tx_bufs, in spi_nrfx_transceive() argument 242 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, false, NULL, NULL); in spi_nrfx_transceive() 248 const struct spi_buf_set *tx_bufs, in spi_nrfx_transceive_async() argument 253 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, cb, userdata); in spi_nrfx_transceive_async()
|
D | spi_xec_qmspi_ldma.c | 441 const struct spi_buf_set *tx_bufs, in qmspi_xfr_cm_init() argument 460 if (tx_bufs && rx_bufs) { in qmspi_xfr_cm_init() 613 const struct spi_buf_set *tx_bufs, in qmspi_xfr_sync() argument 622 int ret = qmspi_xfr_cm_init(dev, tx_bufs, rx_bufs); in qmspi_xfr_sync() 674 static int qmspi_xfr_start_async(const struct device *dev, const struct spi_buf_set *tx_bufs, in qmspi_xfr_start_async() argument 682 ret = qmspi_xfr_cm_init(dev, tx_bufs, rx_bufs); in qmspi_xfr_start_async() 703 const struct spi_buf_set *tx_bufs, in qmspi_xfr_async() argument 712 err = qmspi_xfr_start_async(dev, tx_bufs, rx_bufs); in qmspi_xfr_async() 721 const struct spi_buf_set *tx_bufs, in qmspi_transceive() argument 735 if (!tx_bufs && !rx_bufs) { in qmspi_transceive() [all …]
|
D | spi_b91.c | 128 static uint32_t spi_b91_get_txrx_len(const struct spi_buf_set *tx_bufs, in spi_b91_get_txrx_len() argument 133 const struct spi_buf *tx_buf = tx_bufs->buffers; in spi_b91_get_txrx_len() 137 for (int i = 0; i < tx_bufs->count; i++) { in spi_b91_get_txrx_len() 383 const struct spi_buf_set *tx_bufs, in spi_b91_transceive() argument 388 uint32_t txrx_len = spi_b91_get_txrx_len(tx_bufs, rx_bufs); in spi_b91_transceive() 398 spi_context_buffers_setup(&data->ctx, tx_bufs, rx_bufs, 1); in spi_b91_transceive() 424 const struct spi_buf_set *tx_bufs, in spi_b91_transceive_async() argument 431 ARG_UNUSED(tx_bufs); in spi_b91_transceive_async()
|
D | spi_sam.c | 527 const struct spi_buf_set *tx_bufs, in spi_sam_fast_transceive() argument 537 if (tx_bufs) { in spi_sam_fast_transceive() 538 tx = tx_bufs->buffers; in spi_sam_fast_transceive() 539 tx_count = tx_bufs->count; in spi_sam_fast_transceive() 615 static bool spi_sam_is_regular(const struct spi_buf_set *tx_bufs, in spi_sam_is_regular() argument 623 if (tx_bufs) { in spi_sam_is_regular() 624 tx = tx_bufs->buffers; in spi_sam_is_regular() 625 tx_count = tx_bufs->count; in spi_sam_is_regular() 739 const struct spi_buf_set *tx_bufs, in spi_sam_transceive() argument 750 err = spi_rtio_transceive(rtio_ctx, config, tx_bufs, rx_bufs); in spi_sam_transceive() [all …]
|
D | spi_bitbang.c | 71 const struct spi_buf_set *tx_bufs, in spi_bitbang_transceive() argument 93 if (tx_bufs && rx_bufs) { in spi_bitbang_transceive() 96 } else if (tx_bufs && !rx_bufs) { in spi_bitbang_transceive() 99 } else if (!tx_bufs && rx_bufs) { in spi_bitbang_transceive() 122 spi_context_buffers_setup(ctx, tx_bufs, rx_bufs, data->dfs); in spi_bitbang_transceive() 237 const struct spi_buf_set *tx_bufs, in spi_bitbang_transceive_async() argument
|
D | spi_emul.c | 68 const struct spi_buf_set *tx_bufs, const struct spi_buf_set *rx_bufs) in spi_emul_io() argument 84 ret = emul->mock_api->io(emul->target, config, tx_bufs, rx_bufs); in spi_emul_io() 90 return api->io(emul->target, config, tx_bufs, rx_bufs); in spi_emul_io()
|
D | spi_npcx_spip.c | 254 const struct spi_buf_set *tx_bufs, const struct spi_buf_set *rx_bufs, in transceive() argument 263 if (!tx_bufs && !rx_bufs) { in transceive() 282 spi_context_buffers_setup(ctx, tx_bufs, rx_bufs, data->bytes_per_frame); in transceive() 325 const struct spi_buf_set *tx_bufs, in spi_npcx_spip_transceive() argument 328 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, false, NULL, NULL); in spi_npcx_spip_transceive() 334 const struct spi_buf_set *tx_bufs, in spi_npcx_spip_transceive_async() argument 338 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, cb, userdata); in spi_npcx_spip_transceive_async()
|
D | spi_xmc4xxx.c | 260 const struct spi_buf_set *tx_bufs, in spi_xmc4xxx_transceive() argument 269 if (!tx_bufs && !rx_bufs) { in spi_xmc4xxx_transceive() 290 spi_context_buffers_setup(ctx, tx_bufs, rx_bufs, 1); in spi_xmc4xxx_transceive() 317 const struct spi_buf_set *tx_bufs, in spi_xmc4xxx_transceive_async() argument 322 return spi_xmc4xxx_transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, cb, userdata); in spi_xmc4xxx_transceive_async() 347 const struct spi_buf_set *tx_bufs, in spi_xmc4xxx_transceive_dma() argument 359 if (!tx_bufs && !rx_bufs) { in spi_xmc4xxx_transceive_dma() 380 spi_context_buffers_setup(ctx, tx_bufs, rx_bufs, 1); in spi_xmc4xxx_transceive_dma() 483 const struct spi_buf_set *tx_bufs, in spi_xmc4xxx_transceive_sync() argument 490 return spi_xmc4xxx_transceive_dma(dev, spi_cfg, tx_bufs, rx_bufs, false, NULL, in spi_xmc4xxx_transceive_sync() [all …]
|
D | spi_ifx_cat1.c | 239 const struct spi_buf_set *tx_bufs, const struct spi_buf_set *rx_bufs, in transceive() argument 254 spi_context_buffers_setup(ctx, tx_bufs, rx_bufs, data->dfs_value); in transceive() 268 const struct spi_buf_set *tx_bufs, in ifx_cat1_spi_transceive_sync() argument 271 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, false, NULL, NULL); in ifx_cat1_spi_transceive_sync() 276 const struct spi_buf_set *tx_bufs, in ifx_cat1_spi_transceive_async() argument 280 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, cb, userdata); in ifx_cat1_spi_transceive_async()
|
/Zephyr-latest/tests/drivers/spi/spi_loopback/src/ |
D | spi.c | 104 struct spi_buf tx_bufs[2]; in spi_complete_multiple() local 106 .buffers = tx_bufs, in spi_complete_multiple() 107 .count = ARRAY_SIZE(tx_bufs) in spi_complete_multiple() 110 tx_bufs[0].buf = buffer_tx; in spi_complete_multiple() 111 tx_bufs[0].len = BUF_SIZE; in spi_complete_multiple() 113 tx_bufs[1].buf = buffer2_tx; in spi_complete_multiple() 114 tx_bufs[1].len = BUF2_SIZE; in spi_complete_multiple() 165 const struct spi_buf tx_bufs[] = { in spi_complete_loop() local 178 .buffers = tx_bufs, in spi_complete_loop() 179 .count = ARRAY_SIZE(tx_bufs) in spi_complete_loop() [all …]
|
/Zephyr-latest/tests/drivers/sensor/bmi160/include/ |
D | checks.h | 25 static inline bool bmi160_spi_is_touching_reg(const struct spi_buf_set *tx_bufs, in bmi160_spi_is_touching_reg() argument 28 __ASSERT_NO_MSG(tx_bufs->count == 2); in bmi160_spi_is_touching_reg() 29 const struct spi_buf *tx = &tx_bufs->buffers[0]; in bmi160_spi_is_touching_reg() 30 const struct spi_buf *tx_data = &tx_bufs->buffers[1]; in bmi160_spi_is_touching_reg()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | spi.h | 589 const struct spi_buf_set *tx_bufs, in spi_transceive_stats() argument 599 if (tx_bufs) { in spi_transceive_stats() 600 tx_bytes = tx_bufs->count ? tx_bufs->buffers->len : 0; in spi_transceive_stats() 627 #define spi_transceive_stats(dev, error, tx_bufs, rx_bufs) argument 649 const struct spi_buf_set *tx_bufs, 668 const struct spi_buf_set *tx_bufs, 773 const struct spi_buf_set *tx_bufs, 778 const struct spi_buf_set *tx_bufs, in z_impl_spi_transceive() argument 785 ret = api->transceive(dev, config, tx_bufs, rx_bufs); in z_impl_spi_transceive() 786 spi_transceive_stats(dev, ret, tx_bufs, rx_bufs); in z_impl_spi_transceive() [all …]
|
/Zephyr-latest/drivers/misc/ft8xx/ |
D | ft8xx_drv.c | 103 struct spi_buf_set tx_bufs = { in ft8xx_drv_write() local 108 ret = spi_write_dt(&dev_data->spi, &tx_bufs); in ft8xx_drv_write() 131 struct spi_buf_set tx_bufs = { in ft8xx_drv_read() local 152 ret = spi_transceive_dt(&dev_data->spi, &tx_bufs, &rx_bufs); in ft8xx_drv_read() 174 struct spi_buf_set tx_bufs = { in ft8xx_drv_command() local 179 ret = spi_write_dt(&dev_data->spi, &tx_bufs); in ft8xx_drv_command()
|
/Zephyr-latest/tests/drivers/sensor/bmi160/src/ |
D | spi.c | 20 const struct spi_buf_set *tx_bufs, const struct spi_buf_set *rx_bufs) in mock_spi_io() argument 25 bmi160_spi_is_touching_reg(tx_bufs, rx_bufs, mock_spi_io_fail_reg_number)) { in mock_spi_io()
|
/Zephyr-latest/include/zephyr/drivers/spi/ |
D | rtio.h | 58 const struct spi_buf_set *tx_bufs, 98 const struct spi_buf_set *tx_bufs,
|
/Zephyr-latest/drivers/led_strip/ |
D | apa102.c | 27 const struct spi_buf tx_bufs[] = { in apa102_update() local 48 .buffers = tx_bufs, in apa102_update() 49 .count = ARRAY_SIZE(tx_bufs) in apa102_update()
|
/Zephyr-latest/samples/drivers/espi/src/ |
D | main.c | 201 struct spi_buf_set tx_bufs; in spi_saf_init() local 230 tx_bufs.buffers = (const struct spi_buf *)&txb; in spi_saf_init() 231 tx_bufs.count = 1U; in spi_saf_init() 240 (const struct spi_buf_set *)&tx_bufs, in spi_saf_init() 259 tx_bufs.buffers = (const struct spi_buf *)&txb; in spi_saf_init() 260 tx_bufs.count = 1U; in spi_saf_init() 269 (const struct spi_buf_set *)&tx_bufs, in spi_saf_init() 290 tx_bufs.buffers = (const struct spi_buf *)&txb; in spi_saf_init() 291 tx_bufs.count = 1U; in spi_saf_init() 297 (const struct spi_buf_set *)&tx_bufs, in spi_saf_init() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bmi160/ |
D | emul_bmi160.c | 164 const struct spi_buf_set *tx_bufs, const struct spi_buf_set *rx_bufs) in bmi160_emul_io_spi() argument 175 __ASSERT_NO_MSG(tx_bufs || rx_bufs); in bmi160_emul_io_spi() 176 __ASSERT_NO_MSG(!tx_bufs || !rx_bufs || tx_bufs->count == rx_bufs->count); in bmi160_emul_io_spi() 177 count = tx_bufs ? tx_bufs->count : rx_bufs->count; in bmi160_emul_io_spi() 183 tx = tx_bufs ? tx_bufs->buffers : NULL; in bmi160_emul_io_spi() 184 txd = tx_bufs ? &tx_bufs->buffers[1] : NULL; in bmi160_emul_io_spi()
|
/Zephyr-latest/samples/bluetooth/hci_spi/src/ |
D | main.c | 63 const static struct spi_buf_set tx_bufs = { variable 142 ret = spi_transceive(spi_hci_dev, &spi_cfg, &tx_bufs, &rx_bufs); in spi_send() 151 ret = spi_write(spi_hci_dev, &spi_cfg, &tx_bufs); in spi_send() 191 &tx_bufs, &rx_bufs); in bt_tx_thread() 212 &tx_bufs, &rx_bufs); in bt_tx_thread()
|
/Zephyr-latest/drivers/fpga/ |
D | fpga_ice40_spi.c | 26 const struct spi_buf_set tx_bufs = { in fpga_ice40_load() local 106 ret = spi_write_dt(&bus, &tx_bufs); in fpga_ice40_load() 122 ret = spi_write_dt(&bus, &tx_bufs); in fpga_ice40_load() 138 ret = spi_write_dt(&bus, &tx_bufs); in fpga_ice40_load()
|