Home
last modified time | relevance | path

Searched refs:iio_buffer (Results 1 – 23 of 23) sorted by relevance

/linux/include/linux/iio/
H A Dbuffer_impl.h16 struct iio_buffer;
68 int (*store_to)(struct iio_buffer *buffer, const void *data);
69 int (*read)(struct iio_buffer *buffer, size_t n, char __user *buf);
70 size_t (*data_available)(struct iio_buffer *buffer);
71 int (*remove_from)(struct iio_buffer *buffer, void *data);
72 int (*write)(struct iio_buffer *buffer, size_t n, const char __user *buf);
73 size_t (*space_available)(struct iio_buffer *buffer);
75 int (*request_update)(struct iio_buffer *buffer);
77 int (*set_bytes_per_datum)(struct iio_buffer *buffer, size_t bpd);
78 int (*set_length)(struct iio_buffer *buffer, unsigned int length);
[all …]
H A Dbuffer-dma.h118 struct iio_buffer buffer;
147 int iio_dma_buffer_enable(struct iio_buffer *buffer,
149 int iio_dma_buffer_disable(struct iio_buffer *buffer,
151 int iio_dma_buffer_read(struct iio_buffer *buffer, size_t n,
153 int iio_dma_buffer_write(struct iio_buffer *buffer, size_t n,
155 size_t iio_dma_buffer_usage(struct iio_buffer *buffer);
156 int iio_dma_buffer_set_bytes_per_datum(struct iio_buffer *buffer, size_t bpd);
157 int iio_dma_buffer_set_length(struct iio_buffer *buffer, unsigned int length);
158 int iio_dma_buffer_request_update(struct iio_buffer *buffer);
166 iio_dma_buffer_attach_dmabuf(struct iio_buffer *buffer,
[all …]
H A Dkfifo_buf.h5 struct iio_buffer;
11 struct iio_buffer *iio_kfifo_allocate(void);
12 void iio_kfifo_free(struct iio_buffer *r);
H A Dbuffer.h12 struct iio_buffer;
21 int iio_pop_from_buffer(struct iio_buffer *buffer, void *data);
56 struct iio_buffer *buffer);
H A Dsysfs.h12 struct iio_buffer;
28 struct iio_buffer *buffer;
H A Dbackend.h113 struct iio_buffer *(*request_buffer)(struct iio_backend *back,
116 struct iio_buffer *buffer);
H A Diio-opaque.h52 struct iio_buffer **attached_buffers;
H A Diio.h608 struct iio_buffer *buffer;
/linux/drivers/iio/buffer/
H A Dkfifo_buf.c17 struct iio_buffer buffer;
42 static int iio_request_update_kfifo(struct iio_buffer *r) in iio_request_update_kfifo()
62 static int iio_mark_update_needed_kfifo(struct iio_buffer *r) in iio_mark_update_needed_kfifo()
69 static int iio_set_bytes_per_datum_kfifo(struct iio_buffer *r, size_t bpd) in iio_set_bytes_per_datum_kfifo()
78 static int iio_set_length_kfifo(struct iio_buffer *r, unsigned int length) in iio_set_length_kfifo()
90 static int iio_store_to_kfifo(struct iio_buffer *r, in iio_store_to_kfifo()
101 static int iio_read_kfifo(struct iio_buffer *r, size_t n, char __user *buf) in iio_read_kfifo()
120 static size_t iio_kfifo_buf_data_available(struct iio_buffer *r) in iio_kfifo_buf_data_available()
132 static void iio_kfifo_buffer_release(struct iio_buffer *buffer) in iio_kfifo_buffer_release()
141 static size_t iio_kfifo_buf_space_available(struct iio_buffer *r) in iio_kfifo_buf_space_available()
[all …]
H A Dindustrialio-buffer-dma.c169 static struct iio_dma_buffer_queue *iio_buffer_to_queue(struct iio_buffer *buf) in iio_buffer_to_queue()
325 int iio_dma_buffer_request_update(struct iio_buffer *buffer) in iio_dma_buffer_request_update()
493 int iio_dma_buffer_enable(struct iio_buffer *buffer, in iio_dma_buffer_enable()
519 int iio_dma_buffer_disable(struct iio_buffer *buffer, in iio_dma_buffer_disable()
571 static int iio_dma_buffer_io(struct iio_buffer *buffer, size_t n, in iio_dma_buffer_io()
634 int iio_dma_buffer_read(struct iio_buffer *buffer, size_t n, in iio_dma_buffer_read()
650 int iio_dma_buffer_write(struct iio_buffer *buffer, size_t n, in iio_dma_buffer_write()
666 size_t iio_dma_buffer_usage(struct iio_buffer *buf) in iio_dma_buffer_usage()
702 iio_dma_buffer_attach_dmabuf(struct iio_buffer *buffer, in iio_dma_buffer_attach_dmabuf()
728 void iio_dma_buffer_detach_dmabuf(struct iio_buffer *buffer, in iio_dma_buffer_detach_dmabuf()
[all …]
H A Dindustrialio-buffer-dmaengine.c43 struct iio_buffer *buffer) in iio_buffer_to_dmaengine_buffer()
152 static void iio_dmaengine_buffer_release(struct iio_buffer *buf) in iio_dmaengine_buffer_release()
192 struct iio_buffer *buffer = to_iio_dev_attr(attr)->buffer; in iio_dmaengine_buffer_get_length_align()
219 static struct iio_buffer *iio_dmaengine_buffer_alloc(struct device *dev, in iio_dmaengine_buffer_alloc()
279 void iio_dmaengine_buffer_free(struct iio_buffer *buffer) in iio_dmaengine_buffer_free()
291 struct iio_buffer *iio_dmaengine_buffer_setup_ext(struct device *dev, in iio_dmaengine_buffer_setup_ext()
296 struct iio_buffer *buffer; in iio_dmaengine_buffer_setup_ext()
339 struct iio_buffer *buffer; in devm_iio_dmaengine_buffer_setup_ext()
H A Dindustrialio-buffer-cb.c15 struct iio_buffer buffer;
22 static struct iio_cb_buffer *buffer_to_cb_buffer(struct iio_buffer *buffer) in buffer_to_cb_buffer()
27 static int iio_buffer_cb_store_to(struct iio_buffer *buffer, const void *data) in iio_buffer_cb_store_to()
33 static void iio_buffer_cb_release(struct iio_buffer *buffer) in iio_buffer_cb_release()
H A Dindustrialio-hw-consumer.c30 struct iio_buffer buffer;
35 struct iio_buffer *buffer) in iio_buffer_to_hw_consumer_buffer()
40 static void iio_hw_buf_release(struct iio_buffer *buffer) in iio_hw_buf_release()
H A Dindustrialio-triggered-buffer.c46 struct iio_buffer *buffer; in iio_triggered_buffer_setup_ext()
/linux/drivers/iio/
H A Dindustrialio-buffer.c45 struct iio_buffer *buffer;
70 static bool iio_buffer_is_active(struct iio_buffer *buf) in iio_buffer_is_active()
75 static size_t iio_buffer_data_available(struct iio_buffer *buf) in iio_buffer_data_available()
81 struct iio_buffer *buf, size_t required) in iio_buffer_flush_hwfifo()
89 static bool iio_buffer_ready(struct iio_dev *indio_dev, struct iio_buffer *buf, in iio_buffer_ready()
144 struct iio_buffer *rb = ib->buffer; in iio_buffer_read()
201 static size_t iio_buffer_space_available(struct iio_buffer *buf) in iio_buffer_space_available()
213 struct iio_buffer *rb = ib->buffer; in iio_buffer_write()
276 struct iio_buffer *rb = ib->buffer; in iio_buffer_poll()
302 struct iio_buffer *rb = ib->buffer; in iio_buffer_read_wrapper()
[all …]
H A Diio_core.h15 struct iio_buffer;
23 struct iio_buffer *buffer;
53 struct iio_buffer *buffer,
H A Dindustrialio-backend.c73 struct iio_buffer *buffer;
510 struct iio_buffer *buffer; in devm_iio_backend_request_buffer()
H A Dindustrialio-core.c1163 struct iio_buffer *buffer, in __iio_add_chan_devattr()
/linux/drivers/iio/adc/
H A Dadi-axi-adc.c293 static struct iio_buffer *axi_adc_request_buffer(struct iio_backend *back, in axi_adc_request_buffer()
306 struct iio_buffer *buffer) in axi_adc_free_buffer()
/linux/drivers/iio/dac/
H A Dadi-axi-dac.c118 static struct iio_buffer *axi_dac_request_buffer(struct iio_backend *back, in axi_dac_request_buffer()
132 struct iio_buffer *buffer) in axi_dac_free_buffer()
H A Dad5766.c578 struct iio_buffer *buffer = indio_dev->buffer; in ad5766_trigger_handler()
H A Dad3552r.c597 struct iio_buffer *buf = indio_dev->buffer; in ad3552r_trigger_handler()
/linux/Documentation/driver-api/iio/
H A Dbuffers.rst5 * struct iio_buffer — general buffer structure