Lines Matching +full:convert +full:- +full:channels

1 /* SPDX-License-Identifier: GPL-2.0-only */
41 * struct iio_chan_spec_ext_info - Extended channel info attribute
43 * @shared: Whether this attribute is shared between all channels.
60 * struct iio_enum - Enum channel info attribute
91 * IIO_ENUM() - Initialize enum extended channel attribute
93 * @_shared: Whether the attribute is shared between all channels
108 * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute
110 * @_shared: Whether the attribute is shared between all channels
125 * struct iio_mount_matrix - iio mounting matrix
142 * IIO_MOUNT_MATRIX() - Initialize mount matrix extended channel attribute
143 * @_shared: Whether the attribute is shared between all channels
155 * struct iio_event_spec - specification for a channel event
166 * set in this mask will be shared by all channels.
178 * struct iio_scan_type - specification for channel data format in buffer
199 * struct iio_chan_spec - specification of a single channel
208 * @scan_type: struct describing the scan type - mutually exclusive
220 * by all channels of the same type.
222 * exported that is shared by all channels of the same
225 * by all channels of the same direction.
227 * exported that is shared by all channels of the same
230 * by all channels.
232 * exported that is shared by all channels.
243 * iio_info->read_label() to override the label, which
245 * @datasheet_name: A name used in in-kernel mapping of channels. It should
248 * possible compound name (e.g. IND-INC).
295 * iio_channel_has_info() - Checks whether a channel supports a info attribute
299 * Returns true if the channels supports reporting values for the given info
305 return (chan->info_mask_separate & BIT(type)) | in iio_channel_has_info()
306 (chan->info_mask_shared_by_type & BIT(type)) | in iio_channel_has_info()
307 (chan->info_mask_shared_by_dir & BIT(type)) | in iio_channel_has_info()
308 (chan->info_mask_shared_by_all & BIT(type)); in iio_channel_has_info()
312 * iio_channel_has_available() - Checks if a channel has an available attribute
322 return (chan->info_mask_separate_available & BIT(type)) | in iio_channel_has_available()
323 (chan->info_mask_shared_by_type_available & BIT(type)) | in iio_channel_has_available()
324 (chan->info_mask_shared_by_dir_available & BIT(type)) | in iio_channel_has_available()
325 (chan->info_mask_shared_by_all_available & BIT(type)); in iio_channel_has_available()
330 .channel = -1, \
345 * on-demand reads.
346 * b) A new value after performing an on-demand read otherwise.
347 * On most devices, this is a single-shot read. On some devices with data
348 * streams without an 'on-demand' function, this might also be the 'last value'
370 * non software visible channels (or DMA when there is no demux possible in
414 * struct iio_info - constant information about device
457 * channels have changed
462 * Documentation/ABI/testing/sysfs-bus-iio for details on
555 * struct iio_buffer_setup_ops - buffer setup related callbacks
574 * struct iio_dev - industrial I/O device
589 * channels
595 * @channels: [DRIVER] channel specification structure table
596 * @num_channels: [DRIVER] number of channels specified in @channels.
620 struct iio_chan_spec const *channels; member
638 * iio_device_register() - register a device with the IIO subsystem
646 * devm_iio_device_register - Resource-managed iio_device_register()
710 * iio_device_claim_direct_scoped() - Scoped call to iio_device_claim_direct.
723 * iio_device_put() - reference counted deallocation of struct device
729 put_device(&indio_dev->dev); in iio_device_put()
736 * dev_to_iio_dev() - Get IIO device struct from a device struct
747 * iio_device_get() - increment reference count for the device
754 return indio_dev ? dev_to_iio_dev(get_device(&indio_dev->dev)) : NULL; in iio_device_get()
758 * iio_device_set_parent() - assign parent device to the IIO device object
775 indio_dev->dev.parent = parent; in iio_device_set_parent()
779 * iio_device_set_drvdata() - Set device driver data
788 dev_set_drvdata(&indio_dev->dev, data); in iio_device_set_drvdata()
792 * iio_device_get_drvdata() - Get device driver data
799 return dev_get_drvdata(&indio_dev->dev); in iio_device_get_drvdata()
806 * them safe for use with non-coherent DMA.
827 * iio_get_debugfs_dentry() - helper function to get the debugfs_dentry
840 * iio_device_suspend_triggering() - suspend trigger attached to an iio_dev
848 * iio_device_resume_triggering() - resume trigger attached to an iio_dev
880 * iio_get_current_scan_type - Get the current scan type for a channel
897 if (chan->has_ext_scan_type) { in iio_get_current_scan_type()
898 ret = indio_dev->info->get_current_scan_type(indio_dev, chan); in iio_get_current_scan_type()
902 if (ret >= chan->num_ext_scan_type) in iio_get_current_scan_type()
903 return ERR_PTR(-EINVAL); in iio_get_current_scan_type()
905 return &chan->ext_scan_type[ret]; in iio_get_current_scan_type()
908 return &chan->scan_type; in iio_get_current_scan_type()
912 * iio_get_masklength - Get length of the channels mask
923 * iio_for_each_active_channel - Iterated over active channels
928 for_each_set_bit((chan), (indio_dev)->active_scan_mask, \
937 * IIO_DEGREE_TO_RAD() - Convert degree to rad
945 * IIO_RAD_TO_DEGREE() - Convert rad to degree
954 * IIO_G_TO_M_S_2() - Convert g to meter / second**2
962 * IIO_M_S_2_TO_G() - Convert meter / second**2 to g