Lines Matching +full:fifo +full:- +full:watermark +full:- +full:aligned
1 /* SPDX-License-Identifier: GPL-2.0-only */
37 * struct iio_chan_spec_ext_info - Extended channel info attribute
56 * struct iio_enum - Enum channel info attribute
87 * IIO_ENUM() - Initialize enum extended channel attribute
104 * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute
120 * struct iio_mount_matrix - iio mounting matrix
137 * IIO_MOUNT_MATRIX() - Initialize mount matrix extended channel attribute
150 * struct iio_event_spec - specification for a channel event
173 * struct iio_chan_spec - specification of a single channel
221 * @datasheet_name: A name used in in-kernel mapping of channels. It should
224 * possible compound name (e.g. IND-INC).
270 * iio_channel_has_info() - Checks whether a channel supports a info attribute
280 return (chan->info_mask_separate & BIT(type)) | in iio_channel_has_info()
281 (chan->info_mask_shared_by_type & BIT(type)) | in iio_channel_has_info()
282 (chan->info_mask_shared_by_dir & BIT(type)) | in iio_channel_has_info()
283 (chan->info_mask_shared_by_all & BIT(type)); in iio_channel_has_info()
287 * iio_channel_has_available() - Checks if a channel has an available attribute
297 return (chan->info_mask_separate_available & BIT(type)) | in iio_channel_has_available()
298 (chan->info_mask_shared_by_type_available & BIT(type)) | in iio_channel_has_available()
299 (chan->info_mask_shared_by_dir_available & BIT(type)) | in iio_channel_has_available()
300 (chan->info_mask_shared_by_all_available & BIT(type)); in iio_channel_has_available()
305 .channel = -1, \
338 * struct iio_info - constant information about device
379 * When #iio-cells is greater than '0', the driver could
384 * fifo watermark level; see hwfifo_* entries in
385 * Documentation/ABI/testing/sysfs-bus-iio for details on
386 * how the hardware fifo operates
388 * in the hardware fifo to the device buffer. The driver
470 * struct iio_buffer_setup_ops - buffer setup related callbacks
489 * struct iio_dev - industrial I/O device
549 * iio_device_register() - register a device with the IIO subsystem
557 * devm_iio_device_register - Resource-managed iio_device_register()
580 * iio_device_put() - reference counted deallocation of struct device
586 put_device(&indio_dev->dev); in iio_device_put()
593 * dev_to_iio_dev() - Get IIO device struct from a device struct
604 * iio_device_get() - increment reference count for the device
611 return indio_dev ? dev_to_iio_dev(get_device(&indio_dev->dev)) : NULL; in iio_device_get()
615 * iio_device_set_parent() - assign parent device to the IIO device object
632 indio_dev->dev.parent = parent; in iio_device_set_parent()
636 * iio_device_set_drvdata() - Set device driver data
645 dev_set_drvdata(&indio_dev->dev, data); in iio_device_set_drvdata()
649 * iio_device_get_drvdata() - Get device driver data
656 return dev_get_drvdata(&indio_dev->dev); in iio_device_get_drvdata()
663 /* The information at the returned address is guaranteed to be cacheline aligned */
666 return indio_dev->priv; in iio_priv()
675 * iio_buffer_enabled() - helper function to test if the buffer is enabled
680 return indio_dev->currentmode in iio_buffer_enabled()
686 * iio_get_debugfs_dentry() - helper function to get the debugfs_dentry
704 * IIO_DEGREE_TO_RAD() - Convert degree to rad
712 * IIO_RAD_TO_DEGREE() - Convert rad to degree
721 * IIO_G_TO_M_S_2() - Convert g to meter / second**2
729 * IIO_M_S_2_TO_G() - Convert meter / second**2 to g