Lines Matching defs:iio_buffer_access_funcs
53 struct iio_buffer_access_funcs { struct
54 int (*store_to)(struct iio_buffer *buffer, const void *data);
55 int (*read)(struct iio_buffer *buffer, size_t n, char __user *buf);
56 size_t (*data_available)(struct iio_buffer *buffer);
57 int (*remove_from)(struct iio_buffer *buffer, void *data);
58 int (*write)(struct iio_buffer *buffer, size_t n, const char __user *buf);
59 size_t (*space_available)(struct iio_buffer *buffer);
61 int (*request_update)(struct iio_buffer *buffer);
63 int (*set_bytes_per_datum)(struct iio_buffer *buffer, size_t bpd);
64 int (*set_length)(struct iio_buffer *buffer, unsigned int length);
66 int (*enable)(struct iio_buffer *buffer, struct iio_dev *indio_dev);
67 int (*disable)(struct iio_buffer *buffer, struct iio_dev *indio_dev);
69 void (*release)(struct iio_buffer *buffer);
71 unsigned int modes;
72 unsigned int flags;