Lines Matching refs:this_attr

511 	struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);  in iio_read_channel_ext_info()  local
514 ext_info = &this_attr->c->ext_info[this_attr->address]; in iio_read_channel_ext_info()
516 return ext_info->read(indio_dev, ext_info->private, this_attr->c, buf); in iio_read_channel_ext_info()
525 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_write_channel_ext_info() local
528 ext_info = &this_attr->c->ext_info[this_attr->address]; in iio_write_channel_ext_info()
531 this_attr->c, buf, len); in iio_write_channel_ext_info()
758 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_label() local
761 return indio_dev->info->read_label(indio_dev, this_attr->c, buf); in iio_read_channel_label()
763 if (this_attr->c->extend_name) in iio_read_channel_label()
764 return sysfs_emit(buf, "%s\n", this_attr->c->extend_name); in iio_read_channel_label()
774 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_info() local
780 ret = indio_dev->info->read_raw_multi(indio_dev, this_attr->c, in iio_read_channel_info()
783 this_attr->address); in iio_read_channel_info()
785 ret = indio_dev->info->read_raw(indio_dev, this_attr->c, in iio_read_channel_info()
786 &vals[0], &vals[1], this_attr->address); in iio_read_channel_info()
862 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_info_avail() local
868 ret = indio_dev->info->read_avail(indio_dev, this_attr->c, in iio_read_channel_info_avail()
870 this_attr->address); in iio_read_channel_info_avail()
978 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_write_channel_info() local
990 this_attr->c, this_attr->address)) { in iio_write_channel_info()
1023 ret = indio_dev->info->write_raw(indio_dev, this_attr->c, in iio_write_channel_info()
1024 integer, fract, this_attr->address); in iio_write_channel_info()