/Zephyr-Core-2.7.6/tests/boards/mec15xxevb_assy6853/qspi/src/ |
D | main.c | 46 struct spi_buf_set tx_bufs, rx_bufs; variable 78 tx_bufs.buffers = (const struct spi_buf *)&txb[0]; in test_spi_device() 79 tx_bufs.count = 1U; in test_spi_device() 90 (const struct spi_buf_set *)&tx_bufs, in test_spi_device() 114 tx_bufs.buffers = (const struct spi_buf *)&txb[0]; in test_spi_sector_erase() 115 tx_bufs.count = 1U; in test_spi_sector_erase() 122 (const struct spi_buf_set *)&tx_bufs, in test_spi_sector_erase() 134 tx_bufs.buffers = (const struct spi_buf *)&txb[0]; in test_spi_sector_erase() 135 tx_bufs.count = 1U; in test_spi_sector_erase() 142 (const struct spi_buf_set *)&tx_bufs, in test_spi_sector_erase() [all …]
|
/Zephyr-Core-2.7.6/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 Z_OOPS(Z_SYSCALL_MEMORY_READ(tx_bufs, in z_vrfy_spi_transceive()
|
D | spi_nrfx_spis.c | 146 const struct spi_buf_set *tx_bufs, in transceive() argument 159 } else if ((tx_bufs && tx_bufs->count > 1) || in transceive() 163 } else if (tx_bufs && tx_bufs->buffers[0].len && in transceive() 164 !nrfx_is_in_ram(tx_bufs->buffers[0].buf)) { in transceive() 168 spi_context_buffers_setup(&dev_data->ctx, tx_bufs, rx_bufs, 1); in transceive() 182 const struct spi_buf_set *tx_bufs, in spi_nrfx_transceive() argument 185 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, false, NULL); in spi_nrfx_transceive() 191 const struct spi_buf_set *tx_bufs, in spi_nrfx_transceive_async() argument 195 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, async); in spi_nrfx_transceive_async()
|
D | spi_sam.c | 272 const struct spi_buf_set *tx_bufs, in spi_sam_fast_transceive() argument 282 if (tx_bufs) { in spi_sam_fast_transceive() 283 tx = tx_bufs->buffers; in spi_sam_fast_transceive() 284 tx_count = tx_bufs->count; in spi_sam_fast_transceive() 323 static bool spi_sam_is_regular(const struct spi_buf_set *tx_bufs, in spi_sam_is_regular() argument 331 if (tx_bufs) { in spi_sam_is_regular() 332 tx = tx_bufs->buffers; in spi_sam_is_regular() 333 tx_count = tx_bufs->count; in spi_sam_is_regular() 361 const struct spi_buf_set *tx_bufs, in spi_sam_transceive() argument 383 if (spi_sam_is_regular(tx_bufs, rx_bufs)) { in spi_sam_transceive() [all …]
|
D | spi_sam0.c | 303 const struct spi_buf_set *tx_bufs, in spi_sam0_fast_transceive() argument 313 if (tx_bufs) { in spi_sam0_fast_transceive() 314 tx = tx_bufs->buffers; in spi_sam0_fast_transceive() 315 tx_count = tx_bufs->count; in spi_sam0_fast_transceive() 356 static bool spi_sam0_is_regular(const struct spi_buf_set *tx_bufs, in spi_sam0_is_regular() argument 364 if (tx_bufs) { in spi_sam0_is_regular() 365 tx = tx_bufs->buffers; in spi_sam0_is_regular() 366 tx_count = tx_bufs->count; in spi_sam0_is_regular() 390 const struct spi_buf_set *tx_bufs, in spi_sam0_transceive() argument 412 if (spi_sam0_is_regular(tx_bufs, rx_bufs)) { in spi_sam0_transceive() [all …]
|
D | spi_test.c | 19 const struct spi_buf_set *tx_bufs, in vnd_spi_transceive() argument 28 const struct spi_buf_set *tx_bufs, in vnd_spi_transceive_async() argument
|
D | spi_b91.c | 129 static uint32_t spi_b91_get_txrx_len(const struct spi_buf_set *tx_bufs, in spi_b91_get_txrx_len() argument 134 const struct spi_buf *tx_buf = tx_bufs->buffers; in spi_b91_get_txrx_len() 138 for (int i = 0; i < tx_bufs->count; i++) { in spi_b91_get_txrx_len() 373 const struct spi_buf_set *tx_bufs, in spi_b91_transceive() argument 378 uint32_t txrx_len = spi_b91_get_txrx_len(tx_bufs, rx_bufs); in spi_b91_transceive() 388 spi_context_buffers_setup(&data->ctx, tx_bufs, rx_bufs, 1); in spi_b91_transceive() 414 const struct spi_buf_set *tx_bufs, in spi_b91_transceive_async() argument 420 ARG_UNUSED(tx_bufs); in spi_b91_transceive_async()
|
D | spi_rv32m1_lpspi.c | 199 const struct spi_buf_set *tx_bufs, in transceive() argument 214 spi_context_buffers_setup(&data->ctx, tx_bufs, rx_bufs, 1); in transceive() 229 const struct spi_buf_set *tx_bufs, in spi_mcux_transceive() argument 232 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, false, NULL); in spi_mcux_transceive() 238 const struct spi_buf_set *tx_bufs, in spi_mcux_transceive_async() argument 242 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, async); in spi_mcux_transceive_async()
|
D | spi_nrfx_spi.c | 202 const struct spi_buf_set *tx_bufs, in transceive() argument 216 spi_context_buffers_setup(&dev_data->ctx, tx_bufs, rx_bufs, 1); in transceive() 231 const struct spi_buf_set *tx_bufs, in spi_nrfx_transceive() argument 234 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, false, NULL); in spi_nrfx_transceive() 240 const struct spi_buf_set *tx_bufs, in spi_nrfx_transceive_async() argument 244 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, async); in spi_nrfx_transceive_async()
|
D | spi_mcux_lpspi.c | 202 const struct spi_buf_set *tx_bufs, in transceive() argument 217 spi_context_buffers_setup(&data->ctx, tx_bufs, rx_bufs, 1); in transceive() 232 const struct spi_buf_set *tx_bufs, in spi_mcux_transceive() argument 235 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, false, NULL); in spi_mcux_transceive() 241 const struct spi_buf_set *tx_bufs, in spi_mcux_transceive_async() argument 245 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, async); in spi_mcux_transceive_async()
|
D | spi_esp32_spim.c | 282 const struct spi_buf_set *tx_bufs, in transceive() argument 290 if (!tx_bufs && !rx_bufs) { in transceive() 309 spi_context_buffers_setup(&data->ctx, tx_bufs, rx_bufs, data->dfs); in transceive() 334 const struct spi_buf_set *tx_bufs, in spi_esp32_transceive() argument 337 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, false, NULL); in spi_esp32_transceive() 343 const struct spi_buf_set *tx_bufs, in spi_esp32_transceive_async() argument 347 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, async); in spi_esp32_transceive_async()
|
D | spi_litespi.c | 130 const struct spi_buf_set *tx_bufs, in spi_litespi_transceive() argument 136 spi_context_buffers_setup(&SPI_DATA(dev)->ctx, tx_bufs, rx_bufs, 1); in spi_litespi_transceive() 144 const struct spi_buf_set *tx_bufs, in spi_litespi_transceive_async() argument
|
D | spi_nrfx_spim.c | 260 const struct spi_buf_set *tx_bufs, in transceive() argument 274 spi_context_buffers_setup(&dev_data->ctx, tx_bufs, rx_bufs, 1); in transceive() 289 const struct spi_buf_set *tx_bufs, in spi_nrfx_transceive() argument 292 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, false, NULL); in spi_nrfx_transceive() 298 const struct spi_buf_set *tx_bufs, in spi_nrfx_transceive_async() argument 302 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, async); in spi_nrfx_transceive_async()
|
D | spi_oc_simple.c | 90 const struct spi_buf_set *tx_bufs, in spi_oc_simple_transceive() argument 114 spi_context_buffers_setup(ctx, tx_bufs, rx_bufs, 1); in spi_oc_simple_transceive() 163 const struct spi_buf_set *tx_bufs, in spi_oc_simple_transceive_async() argument
|
D | spi_dw.c | 333 const struct spi_buf_set *tx_bufs, in transceive() argument 360 } else if (!tx_bufs || !tx_bufs->buffers) { in transceive() 398 spi_context_buffers_setup(&spi->ctx, tx_bufs, rx_bufs, spi->dfs); in transceive() 444 const struct spi_buf_set *tx_bufs, in spi_dw_transceive() argument 447 LOG_DBG("%p, %p, %p", dev, tx_bufs, rx_bufs); in spi_dw_transceive() 449 return transceive(dev, config, tx_bufs, rx_bufs, false, NULL); in spi_dw_transceive() 455 const struct spi_buf_set *tx_bufs, in spi_dw_transceive_async() argument 459 LOG_DBG("%p, %p, %p, %p", dev, tx_bufs, rx_bufs, async); in spi_dw_transceive_async() 461 return transceive(dev, config, tx_bufs, rx_bufs, true, async); in spi_dw_transceive_async()
|
D | spi_xec_qmspi.c | 508 const struct spi_buf_set *tx_bufs, in qmspi_transceive() argument 529 if (tx_bufs != NULL) { in qmspi_transceive() 530 ptx = tx_bufs->buffers; in qmspi_transceive() 531 nb = tx_bufs->count; in qmspi_transceive() 575 const struct spi_buf_set *tx_bufs, in qmspi_transceive_sync() argument 578 return qmspi_transceive(dev, config, tx_bufs, rx_bufs); in qmspi_transceive_sync() 584 const struct spi_buf_set *tx_bufs, in qmspi_transceive_async() argument
|
/Zephyr-Core-2.7.6/include/drivers/ |
D | spi.h | 385 const struct spi_buf_set *tx_bufs, 395 const struct spi_buf_set *tx_bufs, 462 const struct spi_buf_set *tx_bufs, 467 const struct spi_buf_set *tx_bufs, in z_impl_spi_transceive() argument 473 return api->transceive(dev, config, tx_bufs, rx_bufs); in z_impl_spi_transceive() 492 const struct spi_buf_set *tx_bufs, in spi_transceive_dt() argument 495 return spi_transceive(spec->bus, &spec->config, tx_bufs, rx_bufs); in spi_transceive_dt() 557 const struct spi_buf_set *tx_bufs) in spi_write() argument 559 return spi_transceive(dev, config, tx_bufs, NULL); in spi_write() 575 const struct spi_buf_set *tx_bufs) in spi_write_dt() argument [all …]
|
/Zephyr-Core-2.7.6/tests/drivers/spi/spi_loopback/src/ |
D | spi.c | 109 struct spi_buf tx_bufs[2]; in spi_complete_multiple() local 111 .buffers = tx_bufs, in spi_complete_multiple() 112 .count = ARRAY_SIZE(tx_bufs) in spi_complete_multiple() 114 tx_bufs[0].buf = buffer_tx; in spi_complete_multiple() 115 tx_bufs[0].len = BUF_SIZE; in spi_complete_multiple() 117 tx_bufs[1].buf = buffer2_tx; in spi_complete_multiple() 118 tx_bufs[1].len = BUF2_SIZE; in spi_complete_multiple() 174 const struct spi_buf tx_bufs[] = { in spi_complete_loop() local 187 .buffers = tx_bufs, in spi_complete_loop() 188 .count = ARRAY_SIZE(tx_bufs) in spi_complete_loop() [all …]
|
/Zephyr-Core-2.7.6/drivers/misc/ft8xx/ |
D | ft8xx_drv.c | 122 struct spi_buf_set tx_bufs = { in ft8xx_drv_write() local 127 ret = spi_write(spi_ft8xx_dev, &spi_cfg, &tx_bufs); in ft8xx_drv_write() 149 struct spi_buf_set tx_bufs = { in ft8xx_drv_read() local 170 ret = spi_transceive(spi_ft8xx_dev, &spi_cfg, &tx_bufs, &rx_bufs); in ft8xx_drv_read() 191 struct spi_buf_set tx_bufs = { in ft8xx_drv_command() local 196 ret = spi_write(spi_ft8xx_dev, &spi_cfg, &tx_bufs); in ft8xx_drv_command()
|
/Zephyr-Core-2.7.6/subsys/emul/ |
D | emul_bmi160.c | 184 const struct spi_buf_set *tx_bufs, in bmi160_emul_io_spi() argument 196 __ASSERT_NO_MSG(tx_bufs || rx_bufs); in bmi160_emul_io_spi() 197 __ASSERT_NO_MSG(!tx_bufs || !rx_bufs || in bmi160_emul_io_spi() 198 tx_bufs->count == rx_bufs->count); in bmi160_emul_io_spi() 199 count = tx_bufs ? tx_bufs->count : rx_bufs->count; in bmi160_emul_io_spi() 203 tx = tx_bufs->buffers; in bmi160_emul_io_spi() 204 txd = &tx_bufs->buffers[1]; in bmi160_emul_io_spi()
|
/Zephyr-Core-2.7.6/drivers/led_strip/ |
D | apa102.c | 24 const struct spi_buf tx_bufs[] = { in apa102_update() local 45 .buffers = tx_bufs, in apa102_update() 46 .count = ARRAY_SIZE(tx_bufs) in apa102_update()
|
/Zephyr-Core-2.7.6/samples/drivers/espi/src/ |
D | main.c | 208 struct spi_buf_set tx_bufs; in spi_saf_init() local 235 tx_bufs.buffers = (const struct spi_buf *)&txb; in spi_saf_init() 236 tx_bufs.count = 1U; in spi_saf_init() 245 (const struct spi_buf_set *)&tx_bufs, in spi_saf_init() 264 tx_bufs.buffers = (const struct spi_buf *)&txb; in spi_saf_init() 265 tx_bufs.count = 1U; in spi_saf_init() 274 (const struct spi_buf_set *)&tx_bufs, in spi_saf_init() 295 tx_bufs.buffers = (const struct spi_buf *)&txb; in spi_saf_init() 296 tx_bufs.count = 1U; in spi_saf_init() 303 (const struct spi_buf_set *)&tx_bufs, in spi_saf_init() [all …]
|
/Zephyr-Core-2.7.6/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-Core-2.7.6/drivers/display/ |
D | display_ili9xxx.c | 31 struct spi_buf_set tx_bufs = { .buffers = &tx_buf, .count = 1U }; in ili9xxx_transmit() local 38 r = spi_write_dt(&config->spi, &tx_bufs); in ili9xxx_transmit() 49 r = spi_write_dt(&config->spi, &tx_bufs); in ili9xxx_transmit() 122 struct spi_buf_set tx_bufs; in ili9xxx_write() local 153 tx_bufs.buffers = &tx_buf; in ili9xxx_write() 154 tx_bufs.count = 1; in ili9xxx_write() 161 r = spi_write_dt(&config->spi, &tx_bufs); in ili9xxx_write()
|
D | display_st7789v.c | 79 struct spi_buf_set tx_bufs = { .buffers = &tx_buf, .count = 1 }; in st7789v_transmit() local 82 spi_write(data->spi_dev, &data->spi_config, &tx_bufs); in st7789v_transmit() 88 spi_write(data->spi_dev, &data->spi_config, &tx_bufs); in st7789v_transmit() 164 struct spi_buf_set tx_bufs; in st7789v_write() local 189 tx_bufs.buffers = &tx_buf; in st7789v_write() 190 tx_bufs.count = 1; in st7789v_write() 196 spi_write(data->spi_dev, &data->spi_config, &tx_bufs); in st7789v_write()
|