Home
last modified time | relevance | path

Searched refs:userdata (Results 1 – 25 of 73) sorted by relevance

123

/Zephyr-latest/tests/subsys/rtio/rtio_api/src/
Dtest_rtio_api.c50 uintptr_t userdata[2] = {0, 1}; in test_rtio_simple_() local
59 rtio_sqe_prep_nop(sqe, (struct rtio_iodev *)&iodev_test_simple, &userdata[0]); in test_rtio_simple_()
68 zassert_equal_ptr(cqe->userdata, &userdata[0], "Expected userdata back"); in test_rtio_simple_()
83 uintptr_t userdata[2] = {0, 1}; in ZTEST() local
91 rtio_sqe_prep_nop(sqe, (struct rtio_iodev *)&iodev_test_simple, &userdata[0]); in ZTEST()
117 uint32_t userdata[4] = {0, 1, 2, 3}; in test_rtio_chain_() local
126 &userdata[i]); in test_rtio_chain_()
128 TC_PRINT("produce %d, sqe %p, userdata %d\n", i, sqe, userdata[i]); in test_rtio_chain_()
144 TC_PRINT("consume %d, cqe %p, userdata %d\n", i, cqe, *(uint32_t *)cqe->userdata); in test_rtio_chain_()
147 zassert_equal_ptr(cqe->userdata, &userdata[i], "Expected in order completions"); in test_rtio_chain_()
[all …]
/Zephyr-latest/drivers/spi/
Dspi_signal.c19 void *userdata) in z_spi_transfer_signal_cb() argument
23 struct k_poll_signal *sig = userdata; in z_spi_transfer_signal_cb()
Dspi_mcux_lpspi.c405 static int transceive_dma_async(const struct device *dev, spi_callback_t cb, void *userdata) in transceive_dma_async() argument
414 ctx->callback_data = userdata; in transceive_dma_async()
486 bool asynchronous, spi_callback_t cb, void *userdata) in transceive_dma() argument
493 spi_context_lock(&data->ctx, asynchronous, cb, userdata, spi_cfg); in transceive_dma()
513 ret = transceive_dma_async(dev, cb, userdata); in transceive_dma()
654 bool asynchronous, spi_callback_t cb, void *userdata) in transceive() argument
660 spi_context_lock(&data->ctx, asynchronous, cb, userdata, spi_cfg); in transceive()
687 spi_callback_t cb, void *userdata, bool async) in spi_mcux_transceive() argument
692 return transceive_dma(dev, spi_cfg, tx_bufs, rx_bufs, async, cb, userdata); in spi_mcux_transceive()
699 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, async, cb, userdata); in spi_mcux_transceive()
[all …]
Dspi_test.c32 void *userdata) in vnd_spi_transceive_async() argument
Dspi_ifx_cat1.c237 bool asynchronous, spi_callback_t cb, void *userdata) in transceive() argument
243 spi_context_lock(ctx, asynchronous, cb, userdata, spi_cfg); in transceive()
275 void *userdata) in ifx_cat1_spi_transceive_async() argument
277 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, cb, userdata); in ifx_cat1_spi_transceive_async()
Dspi_mcux_ecspi.c227 void *userdata) in transceive() argument
232 spi_context_lock(&data->ctx, asynchronous, cb, userdata, spi_cfg); in transceive()
265 void *userdata) in spi_mcux_transceive_async() argument
267 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, cb, userdata); in spi_mcux_transceive_async()
Dspi_rv32m1_lpspi.c218 void *userdata) in transceive() argument
223 spi_context_lock(&data->ctx, asynchronous, cb, userdata, spi_cfg); in transceive()
257 void *userdata) in spi_mcux_transceive_async() argument
259 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, cb, userdata); in spi_mcux_transceive_async()
Dspi_npcx_spip.c255 bool asynchronous, spi_callback_t cb, void *userdata) in transceive() argument
274 spi_context_lock(ctx, asynchronous, cb, userdata, spi_cfg); in transceive()
336 void *userdata) 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()
Dspi_nrfx_spis.c170 void *userdata) in transceive() argument
178 spi_context_lock(&dev_data->ctx, asynchronous, cb, userdata, spi_cfg); in transceive()
247 void *userdata) in spi_nrfx_transceive_async() argument
249 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, cb, userdata); in spi_nrfx_transceive_async()
Dspi_nrfx_spi.c227 void *userdata) in transceive() argument
233 spi_context_lock(&dev_data->ctx, asynchronous, cb, userdata, spi_cfg); in transceive()
302 void *userdata) in spi_nrfx_transceive_async() argument
304 return transceive(dev, spi_cfg, tx_bufs, rx_bufs, true, cb, userdata); in spi_nrfx_transceive_async()
Dspi_psoc6.c301 void *userdata) in spi_psoc6_transceive() argument
307 spi_context_lock(&data->ctx, asynchronous, cb, userdata, spi_cfg); in spi_psoc6_transceive()
358 void *userdata) in spi_psoc6_transceive_async() argument
361 rx_bufs, true, cb, userdata); in spi_psoc6_transceive_async()
Dspi_sedi.c95 void *userdata) in transceive() argument
107 spi_context_lock(&spi->ctx, asynchronous, cb, userdata, config); in transceive()
234 void *userdata) in spi_sedi_transceive_async() argument
236 return transceive(dev, config, tx_bufs, rx_bufs, true, cb, userdata); in spi_sedi_transceive_async()
Dspi_xmc4xxx.c262 bool asynchronous, spi_callback_t cb, void *userdata) in spi_xmc4xxx_transceive() argument
279 spi_context_lock(ctx, asynchronous, cb, userdata, spi_cfg); in spi_xmc4xxx_transceive()
320 void *userdata) 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()
350 spi_callback_t cb, void *userdata) in spi_xmc4xxx_transceive_dma() argument
367 spi_context_lock(ctx, asynchronous, cb, userdata, spi_cfg); in spi_xmc4xxx_transceive_dma()
/Zephyr-latest/samples/subsys/rtio/sensor_batch_processing/src/
Dmain.c39 uint8_t *userdata[M] = {0}; in main() local
63 if (rtio_cqe_get_mempool_buffer(&ez_io, cqe, &userdata[m], &data_len[m])) { in main()
78 LOG_HEXDUMP_DBG(userdata[m], SAMPLE_SIZE, "Sample data:"); in main()
89 rtio_release_buffer(&ez_io, userdata[m], data_len[m]); in main()
/Zephyr-latest/include/zephyr/rtio/
Drtio.h304 void *userdata; member
367 void *userdata; /**< Associated userdata with operation */ member
563 void *userdata) in rtio_sqe_prep_nop() argument
568 sqe->userdata = userdata; in rtio_sqe_prep_nop()
579 void *userdata) in rtio_sqe_prep_read() argument
587 sqe->userdata = userdata; in rtio_sqe_prep_read()
597 void *userdata) in rtio_sqe_prep_read_with_pool() argument
599 rtio_sqe_prep_read(sqe, iodev, prio, NULL, 0, userdata); in rtio_sqe_prep_read_with_pool()
605 void *userdata) in rtio_sqe_prep_read_multishot() argument
607 rtio_sqe_prep_read_with_pool(sqe, iodev, prio, userdata); in rtio_sqe_prep_read_multishot()
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_mcux.c47 void *userdata; member
99 status_t status, void *userdata) in i2c_mcux_master_transfer_callback() argument
105 struct device *dev = userdata; in i2c_mcux_master_transfer_callback()
219 void *userdata = data->userdata; in i2c_mcux_async_done() local
225 data->userdata = NULL; in i2c_mcux_async_done()
231 cb(dev, result, userdata); in i2c_mcux_async_done()
277 uint16_t addr, i2c_callback_t cb, void *userdata) in i2c_mcux_transfer_cb() argument
292 data->userdata = userdata; in i2c_mcux_transfer_cb()
/Zephyr-latest/subsys/sensing/
Ddispatch.c111 if ((uintptr_t)cqe.userdata >= in dispatch_task()
113 (uintptr_t)cqe.userdata < (uintptr_t)STRUCT_SECTION_END(sensing_sensor)) { in dispatch_task()
114 struct sensing_sensor *sensor = cqe.userdata; in dispatch_task()
Dsensing_sensor.c18 struct sensing_sensor *sensor = (struct sensing_sensor *)iodev_sqe->sqe.userdata; in sensing_iodev_submit()
/Zephyr-latest/subsys/rtio/
Drtio_executor.c148 void *userdata; in rtio_executor_done() local
152 userdata = curr->sqe.userdata; in rtio_executor_done()
166 rtio_cqe_submit(r, result, userdata, cqe_flags); in rtio_executor_done()
/Zephyr-latest/drivers/sensor/
Dsensor_shell.h24 void sensor_shell_processing_callback(int result, uint8_t *buf, uint32_t buf_len, void *userdata);
/Zephyr-latest/include/zephyr/drivers/
Di2c.h230 void *userdata);
848 void *userdata) in i2c_transfer_cb() argument
858 cb(dev, 0, userdata); in i2c_transfer_cb()
866 return api->transfer_cb(dev, msgs, num_msgs, addr, cb, userdata); in i2c_transfer_cb()
888 void *userdata) in i2c_transfer_cb_dt() argument
890 return i2c_transfer_cb(spec->bus, msgs, num_msgs, spec->addr, cb, userdata); in i2c_transfer_cb_dt()
919 i2c_callback_t cb, void *userdata) in i2c_write_read_cb() argument
933 return i2c_transfer_cb(dev, msgs, num_msgs, addr, cb, userdata); in i2c_write_read_cb()
960 void *userdata) in i2c_write_read_cb_dt() argument
963 read_buf, num_read, cb, userdata); in i2c_write_read_cb_dt()
[all …]
Dsensor.h1039 static inline int sensor_stream(struct rtio_iodev *iodev, struct rtio *ctx, void *userdata, in sensor_stream() argument
1045 rtio_sqe_prep_read_multishot(&sqe, iodev, RTIO_PRIO_NORM, userdata); in sensor_stream()
1056 rtio_sqe_prep_read_multishot(sqe, iodev, RTIO_PRIO_NORM, userdata); in sensor_stream()
1097 __ASSERT(cqe->userdata == buf, in sensor_read()
1119 void *userdata) in sensor_read_async_mempool() argument
1124 rtio_sqe_prep_read_with_pool(&sqe, iodev, RTIO_PRIO_NORM, userdata); in sensor_read_async_mempool()
1132 rtio_sqe_prep_read_with_pool(sqe, iodev, RTIO_PRIO_NORM, userdata); in sensor_read_async_mempool()
1150 void *userdata);
/Zephyr-latest/tests/subsys/rtio/rtio_i2c/src/
Dmain.cpp81 sqe->userdata = NULL; in ZTEST()
274 sqe_write->userdata = &msg[0]; in ZTEST()
275 sqe_read->userdata = &msg[1]; in ZTEST()
276 sqe_dropped->userdata = &msg[2]; in ZTEST()
293 int msg_idx = (struct i2c_msg *)cqe[i]->userdata - msg; in ZTEST()
/Zephyr-latest/drivers/interrupt_controller/
Dintc_gpio_stm32wb0.c113 static void stm32wb0_gpio_isr(const void *userdata) in stm32wb0_gpio_isr() argument
115 const struct wb0_gpio_isr_argblock *arg = userdata; in stm32wb0_gpio_isr()
/Zephyr-latest/include/zephyr/modbus/
Dmodbus.h455 #define MODBUS_CUSTOM_FC_DEFINE(name, user_cb, user_fc, userdata) \ argument
458 .user_data = userdata, \

123