Lines Matching refs:iio_dev
27 struct iio_dev;
75 * struct iio_dev - industrial I/O device
102 struct iio_dev {
148 static inline int iio_scan_mask_query(struct iio_dev *dev_info, int bit)
170 static inline int iio_scan_mask_set(struct iio_dev *dev_info, int bit)
189 static inline int iio_scan_mask_clear(struct iio_dev *dev_info, int bit)
203 static inline int iio_scan_mask_count_to_right(struct iio_dev *dev_info,
223 int iio_device_register(struct iio_dev *dev_info);
229 void iio_device_unregister(struct iio_dev *dev_info);
242 struct iio_dev *dev_info;
262 struct iio_dev *dev_info,
267 void iio_unregister_interrupt_line(struct iio_dev *dev_info,
279 int iio_push_event(struct iio_dev *dev_info,
323 * @dev_info: iio_dev for which chrdev is being created
325 int iio_allocate_chrdev(struct iio_handler *handler, struct iio_dev *dev_info);
341 static inline void iio_put_device(struct iio_dev *dev)
348 * to_iio_dev() - get iio_dev for which we have the struct device
351 static inline struct iio_dev *to_iio_dev(struct device *d)
353 return container_of(d, struct iio_dev, dev);
358 * @d: the iio_dev associated with the device
360 static inline void *iio_dev_get_devdata(struct iio_dev *d)
366 * iio_allocate_device() - allocate an iio_dev from a driver
368 struct iio_dev *iio_allocate_device(void);
371 * iio_free_device() - free an iio_dev from a driver
372 * @dev: the iio_dev associated with the device
374 void iio_free_device(struct iio_dev *dev);
396 static inline bool iio_ring_enabled(struct iio_dev *dev_info)