Home
last modified time | relevance | path

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

12

/Zephyr-Core-2.7.6/tests/boards/mec15xxevb_assy6853/qspi/src/
Dmain.c46 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/
Dspi_handlers.c57 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()
Dspi_nrfx_spis.c146 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()
Dspi_sam.c272 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 …]
Dspi_sam0.c303 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 …]
Dspi_test.c19 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
Dspi_b91.c129 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()
Dspi_rv32m1_lpspi.c199 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()
Dspi_nrfx_spi.c202 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()
Dspi_mcux_lpspi.c202 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()
Dspi_esp32_spim.c282 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()
Dspi_litespi.c130 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
Dspi_nrfx_spim.c260 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()
Dspi_oc_simple.c90 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
Dspi_dw.c333 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()
Dspi_xec_qmspi.c508 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/
Dspi.h385 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/
Dspi.c109 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/
Dft8xx_drv.c122 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/
Demul_bmi160.c184 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/
Dapa102.c24 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/
Dmain.c208 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/
Dmain.c63 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/
Ddisplay_ili9xxx.c31 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()
Ddisplay_st7789v.c79 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()

12