Lines Matching +full:chan +full:- +full:name

1 /* SPDX-License-Identifier: GPL-2.0-only */
19 * struct iio_channel - everything needed for a consumer to use a channel
31 * iio_channel_get() - get description of all that is needed to access channel.
32 * @dev: Pointer to consumer device. Device name must match
33 * the name of the device as provided in the iio_map
36 * @consumer_channel: Unique name to identify the channel on the consumer
44 * iio_channel_release() - release channels obtained via iio_channel_get
45 * @chan: The channel to be released.
47 void iio_channel_release(struct iio_channel *chan);
50 * devm_iio_channel_get() - Resource managed version of iio_channel_get().
51 * @dev: Pointer to consumer device. Device name must match
52 * the name of the device as provided in the iio_map
55 * @consumer_channel: Unique name to identify the channel on the consumer
68 * iio_channel_get_all() - get all channels associated with a client
79 * iio_channel_release_all() - reverse iio_channel_get_all
80 * @chan: Array of channels to be released.
82 void iio_channel_release_all(struct iio_channel *chan);
85 * devm_iio_channel_get_all() - Resource managed version of
102 * fwnode_iio_channel_get_by_name() - get description of all that is needed to access channel.
104 * @consumer_channel: Unique name to identify the channel on the consumer
109 const char *name);
112 * devm_fwnode_iio_channel_get_by_name() - Resource managed version of
116 * @consumer_channel: Unique name to identify the channel on the consumer
132 * iio_channel_get_all_cb() - register callback for triggered capture
146 * iio_channel_cb_set_buffer_watermark() - set the buffer watermark.
157 * iio_channel_release_all_cb() - release and unregister the callback.
163 * iio_channel_start_all_cb() - start the flow of data through callback.
169 * iio_channel_stop_all_cb() - stop the flow of data through the callback.
175 * iio_channel_cb_get_channels() - get access to the underlying channels.
188 * iio_channel_cb_get_iio_dev() - get access to the underlying device.
200 * iio_read_channel_raw() - read from a given channel
201 * @chan: The channel being queried.
207 int iio_read_channel_raw(struct iio_channel *chan,
211 * iio_read_channel_average_raw() - read from a given channel
212 * @chan: The channel being queried.
221 int iio_read_channel_average_raw(struct iio_channel *chan, int *val);
224 * iio_read_channel_processed() - read processed value from a given channel
225 * @chan: The channel being queried.
236 int iio_read_channel_processed(struct iio_channel *chan, int *val);
239 * iio_read_channel_processed_scale() - read and scale a processed value
240 * @chan: The channel being queried.
250 int iio_read_channel_processed_scale(struct iio_channel *chan, int *val,
254 * iio_write_channel_attribute() - Write values to the device attribute.
255 * @chan: The channel being queried.
262 int iio_write_channel_attribute(struct iio_channel *chan, int val,
266 * iio_read_channel_attribute() - Read values from the device attribute.
267 * @chan: The channel being queried.
276 int iio_read_channel_attribute(struct iio_channel *chan, int *val,
280 * iio_write_channel_raw() - write to a given channel
281 * @chan: The channel being queried.
287 int iio_write_channel_raw(struct iio_channel *chan, int val);
290 * iio_read_max_channel_raw() - read maximum available raw value from a given
292 * @chan: The channel being queried.
298 int iio_read_max_channel_raw(struct iio_channel *chan, int *val);
301 * iio_read_avail_channel_raw() - read available raw values from a given channel
302 * @chan: The channel being queried.
314 int iio_read_avail_channel_raw(struct iio_channel *chan,
318 * iio_read_avail_channel_attribute() - read available channel attribute values
319 * @chan: The channel being queried.
327 int iio_read_avail_channel_attribute(struct iio_channel *chan,
332 * iio_get_channel_type() - get the type of a channel
342 * iio_read_channel_offset() - read the offset value for a channel
343 * @chan: The channel being queried.
351 int iio_read_channel_offset(struct iio_channel *chan, int *val,
355 * iio_read_channel_scale() - read the scale value for a channel
356 * @chan: The channel being queried.
364 int iio_read_channel_scale(struct iio_channel *chan, int *val,
368 * iio_convert_raw_to_processed() - Converts a raw value to a processed value
369 * @chan: The channel being queried
387 int iio_convert_raw_to_processed(struct iio_channel *chan, int raw,
391 * iio_get_channel_ext_info_count() - get number of ext_info attributes
393 * @chan: The channel being queried
397 unsigned int iio_get_channel_ext_info_count(struct iio_channel *chan);
400 * iio_read_channel_ext_info() - read ext_info attribute from a given channel
401 * @chan: The channel being queried.
409 ssize_t iio_read_channel_ext_info(struct iio_channel *chan,
413 * iio_write_channel_ext_info() - write ext_info attribute from a given channel
414 * @chan: The channel being queried.
416 * @buf: The new attribute value. Strings needs to be zero-
424 ssize_t iio_write_channel_ext_info(struct iio_channel *chan, const char *attr,