/Zephyr-latest/drivers/i3c/ |
D | i3c_rtio.c | 22 struct rtio_sqe *i3c_rtio_copy(struct rtio *r, struct rtio_iodev *iodev, const struct i3c_msg *msgs, in i3c_rtio_copy() argument 38 rtio_sqe_prep_read(sqe, iodev, RTIO_PRIO_NORM, msgs[i].buf, msgs[i].len, in i3c_rtio_copy() 41 rtio_sqe_prep_write(sqe, iodev, RTIO_PRIO_NORM, msgs[i].buf, msgs[i].len, in i3c_rtio_copy() 65 ctx->iodev.api = &i3c_iodev_api; in i3c_rtio_init() 129 struct rtio_iodev *iodev = &ctx->iodev; in i3c_rtio_transfer() local 139 sqe = i3c_rtio_copy(r, iodev, msgs, num_msgs); in i3c_rtio_transfer() 162 struct rtio_iodev *iodev = &ctx->iodev; in i3c_rtio_configure() local 178 sqe->iodev = iodev; in i3c_rtio_configure() 195 struct rtio_iodev *iodev = &ctx->iodev; in i3c_rtio_ccc() local 211 sqe->iodev = iodev; in i3c_rtio_ccc() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_rtio.c | 21 struct rtio_sqe *i2c_rtio_copy(struct rtio *r, struct rtio_iodev *iodev, const struct i2c_msg *msgs, in i2c_rtio_copy() argument 37 rtio_sqe_prep_read(sqe, iodev, RTIO_PRIO_NORM, msgs[i].buf, msgs[i].len, in i2c_rtio_copy() 40 rtio_sqe_prep_write(sqe, iodev, RTIO_PRIO_NORM, msgs[i].buf, msgs[i].len, in i2c_rtio_copy() 62 ctx->iodev.data = &ctx->dt_spec; in i2c_rtio_init() 63 ctx->iodev.api = &i2c_iodev_api; in i2c_rtio_init() 126 struct rtio_iodev *iodev = &ctx->iodev; in i2c_rtio_transfer() local 136 sqe = i2c_rtio_copy(r, iodev, msgs, num_msgs); in i2c_rtio_transfer() 159 struct rtio_iodev *iodev = &ctx->iodev; in i2c_rtio_configure() local 175 sqe->iodev = iodev; in i2c_rtio_configure() 191 struct rtio_iodev *iodev = &ctx->iodev; in i2c_rtio_recover() local [all …]
|
/Zephyr-latest/drivers/spi/ |
D | spi_rtio.c | 23 struct spi_dt_spec *dt_spec = iodev_sqe->sqe.iodev->data; in spi_rtio_iodev_default_submit_sync() 130 struct rtio_iodev *iodev, in spi_rtio_copy() argument 176 rtio_sqe_prep_read(sqe, iodev, RTIO_PRIO_NORM, in spi_rtio_copy() 179 rtio_sqe_prep_write(sqe, iodev, RTIO_PRIO_NORM, in spi_rtio_copy() 182 rtio_sqe_prep_transceive(sqe, iodev, RTIO_PRIO_NORM, in spi_rtio_copy() 202 rtio_sqe_prep_read(sqe, iodev, RTIO_PRIO_NORM, in spi_rtio_copy() 215 rtio_sqe_prep_write(sqe, iodev, RTIO_PRIO_NORM, in spi_rtio_copy() 228 rtio_sqe_prep_transceive(sqe, iodev, RTIO_PRIO_NORM, in spi_rtio_copy() 244 rtio_sqe_prep_transceive(sqe, iodev, RTIO_PRIO_NORM, in spi_rtio_copy() 309 ctx->iodev.data = &ctx->dt_spec; in spi_rtio_init() [all …]
|
/Zephyr-latest/samples/subsys/rtio/sensor_batch_processing/src/ |
D | main.c | 28 struct rtio_iodev *iodev = vnd_sensor->data; in main() local 34 rtio_sqe_prep_read_with_pool(sqe, iodev, RTIO_PRIO_HIGH, NULL); in main() 90 rtio_sqe_prep_read_with_pool(sqe, iodev, RTIO_PRIO_HIGH, NULL); in main()
|
D | vnd_sensor.c | 22 struct rtio_iodev iodev; member 85 struct vnd_sensor_data *data = (struct vnd_sensor_data *) iodev_sqe->sqe.iodev; in vnd_sensor_iodev_submit() 142 .iodev = \
|
/Zephyr-latest/include/zephyr/rtio/ |
D | rtio.h | 295 const struct rtio_iodev *iodev; /**< Device to operation on */ member 562 const struct rtio_iodev *iodev, in rtio_sqe_prep_nop() argument 567 sqe->iodev = iodev; in rtio_sqe_prep_nop() 575 const struct rtio_iodev *iodev, in rtio_sqe_prep_read() argument 584 sqe->iodev = iodev; in rtio_sqe_prep_read() 596 const struct rtio_iodev *iodev, int8_t prio, 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() 604 const struct rtio_iodev *iodev, int8_t prio, in rtio_sqe_prep_read_multishot() argument 607 rtio_sqe_prep_read_with_pool(sqe, iodev, prio, userdata); in rtio_sqe_prep_read_multishot() 615 const struct rtio_iodev *iodev, in rtio_sqe_prep_write() argument [all …]
|
/Zephyr-latest/drivers/sensor/ |
D | sensor_handlers.c | 71 static inline int z_vrfy_sensor_reconfigure_read_iodev(struct rtio_iodev *iodev, in z_vrfy_sensor_reconfigure_read_iodev() argument 76 K_OOPS(K_SYSCALL_OBJ(iodev, K_OBJ_RTIO_IODEV)); in z_vrfy_sensor_reconfigure_read_iodev() 79 return z_impl_sensor_reconfigure_read_iodev(iodev, sensor, channels, num_channels); in z_vrfy_sensor_reconfigure_read_iodev()
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_rtio_stream.c | 107 const struct sensor_read_config *cfg = iodev_sqe->sqe.iodev->data; in lsm6dsv16x_submit_stream() 163 struct rtio_iodev *iodev = lsm6dsv16x->iodev; in lsm6dsv16x_read_fifo_cb() local 171 read_config = (struct sensor_read_config *)lsm6dsv16x->streaming_sqe->sqe.iodev->data; in lsm6dsv16x_read_fifo_cb() 293 rtio_sqe_prep_tiny_write(write_fifo_mode, iodev, in lsm6dsv16x_read_fifo_cb() 357 rtio_sqe_prep_tiny_write(write_fifo_dout_addr, iodev, RTIO_PRIO_NORM, ®, 1, NULL); in lsm6dsv16x_read_fifo_cb() 359 rtio_sqe_prep_read(read_fifo_dout_reg, iodev, RTIO_PRIO_NORM, in lsm6dsv16x_read_fifo_cb() 376 struct rtio_iodev *iodev = lsm6dsv16x->iodev; in lsm6dsv16x_stream_irq_handler() local 416 rtio_sqe_prep_tiny_write(write_fifo_status_addr, iodev, RTIO_PRIO_NORM, ®, 1, in lsm6dsv16x_stream_irq_handler() 419 rtio_sqe_prep_read(read_fifo_status_reg, iodev, RTIO_PRIO_NORM, in lsm6dsv16x_stream_irq_handler()
|
/Zephyr-latest/drivers/sensor/adi/adxl372/ |
D | adxl372_stream.c | 35 rtio_sqe_prep_tiny_write(sqe, data->iodev, RTIO_PRIO_NORM, reg_addr_w, 2, NULL); in adxl372_fifo_flush_rtio() 44 rtio_sqe_prep_tiny_write(sqe, data->iodev, RTIO_PRIO_NORM, reg_addr_w2, 2, NULL); in adxl372_fifo_flush_rtio() 53 rtio_sqe_prep_tiny_write(sqe, data->iodev, RTIO_PRIO_NORM, reg_addr_w3, 2, NULL); in adxl372_fifo_flush_rtio() 64 rtio_sqe_prep_tiny_write(sqe, data->iodev, RTIO_PRIO_NORM, reg_addr_w4, 2, NULL); in adxl372_fifo_flush_rtio() 73 (const struct sensor_read_config *)iodev_sqe->sqe.iodev->data; in adxl372_submit_stream() 284 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, ®_addr, 1, NULL); in adxl372_process_fifo_samples_cb() 286 rtio_sqe_prep_read(read_fifo_data, data->iodev, RTIO_PRIO_NORM, read_buf, read_len, in adxl372_process_fifo_samples_cb() 307 read_config = (struct sensor_read_config *)data->sqe->sqe.iodev->data; in adxl372_process_status1_cb() 413 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, ®_addr, 1, NULL); in adxl372_process_status1_cb() 415 rtio_sqe_prep_read(read_fifo_data, data->iodev, RTIO_PRIO_NORM, data->fifo_ent, 2, in adxl372_process_status1_cb() [all …]
|
D | adxl372_rtio.c | 18 (const struct sensor_read_config *)iodev_sqe->sqe.iodev->data; in adxl372_submit_fetch() 49 (const struct sensor_read_config *)iodev_sqe->sqe.iodev->data; in adxl372_submit()
|
/Zephyr-latest/include/zephyr/drivers/spi/ |
D | rtio.h | 25 struct rtio_iodev iodev; member 57 struct rtio_iodev *iodev,
|
/Zephyr-latest/include/zephyr/drivers/i2c/ |
D | rtio.h | 26 struct rtio_iodev iodev; member 51 struct rtio_sqe *i2c_rtio_copy(struct rtio *r, struct rtio_iodev *iodev, const struct i2c_msg *msgs,
|
/Zephyr-latest/drivers/sensor/adi/adxl345/ |
D | adxl345_stream.c | 17 (const struct sensor_read_config *) iodev_sqe->sqe.iodev->data; in adxl345_submit_stream() 85 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, reg_addr_w2, in adxl345_fifo_flush_rtio() 95 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, reg_addr_w3, in adxl345_fifo_flush_rtio() 212 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, ®_addr, in adxl345_process_fifo_samples_cb() 215 rtio_sqe_prep_read(read_fifo_data, data->iodev, RTIO_PRIO_NORM, in adxl345_process_fifo_samples_cb() 247 read_config = (struct sensor_read_config *)data->sqe->sqe.iodev->data; in adxl345_process_status1_cb() 343 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, ®_addr, 1, NULL); in adxl345_process_status1_cb() 345 rtio_sqe_prep_read(read_fifo_data, data->iodev, RTIO_PRIO_NORM, data->fifo_ent, 1, in adxl345_process_status1_cb() 371 rtio_sqe_prep_tiny_write(write_status_addr, data->iodev, RTIO_PRIO_NORM, ®, 1, NULL); in adxl345_stream_irq_handler() 373 rtio_sqe_prep_read(read_status_reg, data->iodev, RTIO_PRIO_NORM, &data->status1, 1, NULL); in adxl345_stream_irq_handler()
|
D | adxl345_rtio.c | 18 (const struct sensor_read_config *) iodev_sqe->sqe.iodev->data; in adxl345_submit_fetch() 47 (const struct sensor_read_config *) iodev_sqe->sqe.iodev->data; in adxl345_submit()
|
/Zephyr-latest/drivers/sensor/adi/adxl362/ |
D | adxl362_stream.c | 30 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, reg_addr_w, 3, NULL); in adxl362_fifo_flush_rtio() 40 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, in adxl362_fifo_flush_rtio() 53 (const struct sensor_read_config *)iodev_sqe->sqe.iodev->data; in adxl362_submit_stream() 239 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, ®_addr, 1, NULL); in adxl362_process_fifo_samples_cb() 241 rtio_sqe_prep_read(read_fifo_data, data->iodev, RTIO_PRIO_NORM, read_buf, read_len, in adxl362_process_fifo_samples_cb() 262 read_config = (struct sensor_read_config *)data->sqe->sqe.iodev->data; in adxl362_process_status_cb() 373 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, reg, 2, NULL); in adxl362_process_status_cb() 375 rtio_sqe_prep_read(read_fifo_data, data->iodev, RTIO_PRIO_NORM, data->fifo_ent, 2, in adxl362_process_status_cb() 399 rtio_sqe_prep_tiny_write(write_status_addr, data->iodev, RTIO_PRIO_NORM, reg, 2, NULL); in adxl362_stream_irq_handler() 401 rtio_sqe_prep_read(read_status_reg, data->iodev, RTIO_PRIO_NORM, &data->status, 1, NULL); in adxl362_stream_irq_handler()
|
D | adxl362_rtio.c | 18 (const struct sensor_read_config *) iodev_sqe->sqe.iodev->data; in adxl362_submit_fetch() 47 (const struct sensor_read_config *) iodev_sqe->sqe.iodev->data; in adxl362_submit()
|
/Zephyr-latest/include/zephyr/drivers/i3c/ |
D | rtio.h | 27 struct rtio_iodev iodev; member 52 struct rtio_sqe *i3c_rtio_copy(struct rtio *r, struct rtio_iodev *iodev, const struct i3c_msg *msgs,
|
/Zephyr-latest/tests/subsys/rtio/rtio_api/src/ |
D | rtio_iodev_test.h | 108 struct rtio_iodev *iodev = (struct rtio_iodev *)iodev_sqe->sqe.iodev; in rtio_iodev_test_submit() local 109 struct rtio_iodev_test_data *data = iodev->data; in rtio_iodev_test_submit()
|
/Zephyr-latest/drivers/sensor/adi/adxl367/ |
D | adxl367_stream.c | 45 rtio_sqe_prep_tiny_write(sqe, data->iodev, RTIO_PRIO_NORM, reg_addr_w, 3, NULL); in adxl367_fifo_flush_rtio() 51 rtio_sqe_prep_tiny_write(sqe, data->iodev, RTIO_PRIO_NORM, reg_addr_w2, 3, NULL); in adxl367_fifo_flush_rtio() 57 rtio_sqe_prep_tiny_write(sqe, data->iodev, RTIO_PRIO_NORM, reg_addr_w3, 3, NULL); in adxl367_fifo_flush_rtio() 68 rtio_sqe_prep_tiny_write(sqe, data->iodev, RTIO_PRIO_NORM, reg_addr_w4, 3, NULL); in adxl367_fifo_flush_rtio() 77 (const struct sensor_read_config *)iodev_sqe->sqe.iodev->data; in adxl367_submit_stream() 399 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, ®_addr, 1, NULL); in adxl367_process_fifo_samples_cb() 401 rtio_sqe_prep_read(read_fifo_data, data->iodev, RTIO_PRIO_NORM, read_buf, read_len, in adxl367_process_fifo_samples_cb() 420 read_config = (struct sensor_read_config *)data->sqe->sqe.iodev->data; in adxl367_process_status_cb() 526 rtio_sqe_prep_tiny_write(write_fifo_addr, data->iodev, RTIO_PRIO_NORM, reg, 2, NULL); in adxl367_process_status_cb() 528 rtio_sqe_prep_read(read_fifo_data, data->iodev, RTIO_PRIO_NORM, data->fifo_ent, 2, in adxl367_process_status_cb() [all …]
|
D | adxl367_rtio.c | 18 (const struct sensor_read_config *) iodev_sqe->sqe.iodev->data; in adxl367_submit_fetch() 61 (const struct sensor_read_config *) iodev_sqe->sqe.iodev->data; in adxl367_submit()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | sensor.h | 1018 __syscall int sensor_reconfigure_read_iodev(struct rtio_iodev *iodev, const struct device *sensor, 1022 static inline int z_impl_sensor_reconfigure_read_iodev(struct rtio_iodev *iodev, in z_impl_sensor_reconfigure_read_iodev() argument 1027 struct sensor_read_config *cfg = (struct sensor_read_config *)iodev->data; in z_impl_sensor_reconfigure_read_iodev() 1039 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() 1076 static inline int sensor_read(struct rtio_iodev *iodev, struct rtio *ctx, uint8_t *buf, in sensor_read() argument 1082 rtio_sqe_prep_read(&sqe, iodev, RTIO_PRIO_NORM, buf, buf_len, buf); in sensor_read() 1090 rtio_sqe_prep_read(sqe, iodev, RTIO_PRIO_NORM, buf, buf_len, buf); in sensor_read() 1118 static inline int sensor_read_async_mempool(struct rtio_iodev *iodev, struct rtio *ctx, in sensor_read_async_mempool() argument [all …]
|
/Zephyr-latest/samples/sensor/bme280/src/ |
D | main.c | 22 SENSOR_DT_READ_IODEV(iodev, DT_COMPAT_GET_ANY_STATUS_OKAY(bosch_bme280), 59 int rc = sensor_read(&iodev, &ctx, buf, 128); in main()
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_rtio.c | 50 const struct sensor_read_config *cfg = iodev_sqe->sqe.iodev->data; in icm42688_submit_one_shot() 84 const struct sensor_read_config *cfg = iodev_sqe->sqe.iodev->data; in icm42688_submit_sync()
|
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/ |
D | akm09918c_async.c | 18 const struct sensor_read_config *cfg = iodev_sqe->sqe.iodev->data; in akm09918c_submit_sync() 81 const struct sensor_read_config *cfg = ctx->iodev_sqe->sqe.iodev->data; in akm09918_async_fetch()
|
/Zephyr-latest/doc/services/rtio/ |
D | index.rst | 15 driven I/O. This section covers the RTIO API, queues, executor, iodev, 85 and device on the bus it is embodied in what RTIO calls an iodev. 87 Multiple operations against the same iodev are done in the order provided as 116 job of objects implementing the iodev (IO device) API. This API accepts requests 117 in the form of the iodev submit API call. It is the io devices job to work 120 object, that accepts a never ending queue of I/O like requests. How the iodev 121 does this work is up to the author of the iodev, perhaps the entire queue of 140 to read into is left to the iodev to allocate from a memory pool associated with 144 the iodev. Below is a snippet setting up the RTIO context with a memory pool. 163 with a call to :c:func:`rtio_sqe_prep_read_with_pool`. The iodev requires [all …]
|