Lines Matching defs:iio_buffer_access_funcs
67 struct iio_buffer_access_funcs { struct
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);
80 int (*enable)(struct iio_buffer *buffer, struct iio_dev *indio_dev);
81 int (*disable)(struct iio_buffer *buffer, struct iio_dev *indio_dev);
83 void (*release)(struct iio_buffer *buffer);
85 struct iio_dma_buffer_block * (*attach_dmabuf)(struct iio_buffer *buffer,
87 void (*detach_dmabuf)(struct iio_buffer *buffer,
89 int (*enqueue_dmabuf)(struct iio_buffer *buffer,
93 void (*lock_queue)(struct iio_buffer *buffer);
94 void (*unlock_queue)(struct iio_buffer *buffer);
96 unsigned int modes;
97 unsigned int flags;