Lines Matching refs:this_attr

469 	struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);  in iio_read_channel_ext_info()  local
472 ext_info = &this_attr->c->ext_info[this_attr->address]; in iio_read_channel_ext_info()
474 return ext_info->read(indio_dev, ext_info->private, this_attr->c, buf); in iio_read_channel_ext_info()
483 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_write_channel_ext_info() local
486 ext_info = &this_attr->c->ext_info[this_attr->address]; in iio_write_channel_ext_info()
489 this_attr->c, buf, len); in iio_write_channel_ext_info()
716 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_label() local
719 return indio_dev->info->read_label(indio_dev, this_attr->c, buf); in iio_read_channel_label()
721 if (this_attr->c->extend_name) in iio_read_channel_label()
722 return sysfs_emit(buf, "%s\n", this_attr->c->extend_name); in iio_read_channel_label()
732 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_info() local
738 ret = indio_dev->info->read_raw_multi(indio_dev, this_attr->c, in iio_read_channel_info()
741 this_attr->address); in iio_read_channel_info()
743 ret = indio_dev->info->read_raw(indio_dev, this_attr->c, in iio_read_channel_info()
744 &vals[0], &vals[1], this_attr->address); in iio_read_channel_info()
820 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_info_avail() local
826 ret = indio_dev->info->read_avail(indio_dev, this_attr->c, in iio_read_channel_info_avail()
828 this_attr->address); in iio_read_channel_info_avail()
936 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_write_channel_info() local
948 this_attr->c, this_attr->address)) { in iio_write_channel_info()
981 ret = indio_dev->info->write_raw(indio_dev, this_attr->c, in iio_write_channel_info()
982 integer, fract, this_attr->address); in iio_write_channel_info()