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
138 * IIO_MOUNT_MATRIX() - Initialize mount matrix extended channel attribute
151 * struct iio_event_spec - specification for a channel event
174 * struct iio_chan_spec - specification of a single channel
222 * @datasheet_name: A name used in in-kernel mapping of channels. It should
225 * possible compound name (e.g. IND-INC).
271 * iio_channel_has_info() - Checks whether a channel supports a info attribute
281 return (chan->info_mask_separate & BIT(type)) | in iio_channel_has_info()
282 (chan->info_mask_shared_by_type & BIT(type)) | in iio_channel_has_info()
283 (chan->info_mask_shared_by_dir & BIT(type)) | in iio_channel_has_info()
284 (chan->info_mask_shared_by_all & BIT(type)); in iio_channel_has_info()
288 * iio_channel_has_available() - Checks if a channel has an available attribute
298 return (chan->info_mask_separate_available & BIT(type)) | in iio_channel_has_available()
299 (chan->info_mask_shared_by_type_available & BIT(type)) | in iio_channel_has_available()
300 (chan->info_mask_shared_by_dir_available & BIT(type)) | in iio_channel_has_available()
301 (chan->info_mask_shared_by_all_available & BIT(type)); in iio_channel_has_available()
306 .channel = -1, \
339 * struct iio_info - constant information about device
378 * When #iio-cells is greater than '0', the driver could
383 * fifo watermark level; see hwfifo_* entries in
384 * Documentation/ABI/testing/sysfs-bus-iio for details on
385 * how the hardware fifo operates
387 * in the hardware fifo to the device buffer. The driver
465 * struct iio_buffer_setup_ops - buffer setup related callbacks
484 * struct iio_dev - industrial I/O device
564 * iio_device_register() - register a device with the IIO subsystem
572 * devm_iio_device_register - Resource-managed iio_device_register()
595 * iio_device_put() - reference counted deallocation of struct device
601 put_device(&indio_dev->dev); in iio_device_put()
605 * iio_device_get_clock() - Retrieve current timestamping clock for the device
610 return indio_dev->clock_id; in iio_device_get_clock()
616 * dev_to_iio_dev() - Get IIO device struct from a device struct
627 * iio_device_get() - increment reference count for the device
634 return indio_dev ? dev_to_iio_dev(get_device(&indio_dev->dev)) : NULL; in iio_device_get()
638 * iio_device_set_parent() - assign parent device to the IIO device object
655 indio_dev->dev.parent = parent; in iio_device_set_parent()
659 * iio_device_set_drvdata() - Set device driver data
668 dev_set_drvdata(&indio_dev->dev, data); in iio_device_set_drvdata()
672 * iio_device_get_drvdata() - Get device driver data
679 return dev_get_drvdata(&indio_dev->dev); in iio_device_get_drvdata()
686 /* The information at the returned address is guaranteed to be cacheline aligned */
689 return indio_dev->priv; in iio_priv()
698 * iio_buffer_enabled() - helper function to test if the buffer is enabled
703 return indio_dev->currentmode in iio_buffer_enabled()
709 * iio_get_debugfs_dentry() - helper function to get the debugfs_dentry
727 * IIO_DEGREE_TO_RAD() - Convert degree to rad
735 * IIO_RAD_TO_DEGREE() - Convert rad to degree
744 * IIO_G_TO_M_S_2() - Convert g to meter / second**2
752 * IIO_M_S_2_TO_G() - Convert meter / second**2 to g