Home
last modified time | relevance | path

Searched refs:this_attr (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/iio/
H A Dindustrialio-event.c280 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_state_store() local
292 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_state_store()
293 iio_ev_attr_dir(this_attr), val); in iio_ev_state_store()
303 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_state_show() local
310 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_state_show()
311 iio_ev_attr_dir(this_attr)); in iio_ev_state_show()
323 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_value_show() local
331 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_value_show()
332 iio_ev_attr_dir(this_attr), iio_ev_attr_info(this_attr), in iio_ev_value_show()
347 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_value_store() local
[all …]
H A Dindustrialio-core.c489 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_ext_info() local
492 ext_info = &this_attr->c->ext_info[this_attr->address]; in iio_read_channel_ext_info()
494 return ext_info->read(indio_dev, ext_info->private, this_attr->c, buf); in iio_read_channel_ext_info()
502 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_write_channel_ext_info() local
505 ext_info = &this_attr->c->ext_info[this_attr->address]; in iio_write_channel_ext_info()
508 this_attr->c, buf, len); in iio_write_channel_ext_info()
755 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_info() local
761 ret = indio_dev->info->read_raw_multi(indio_dev, this_attr->c, in iio_read_channel_info()
764 this_attr->address); in iio_read_channel_info()
766 ret = indio_dev->info->read_raw(indio_dev, this_attr->c, in iio_read_channel_info()
[all …]
H A Dindustrialio-buffer.c404 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_show_fixed_type() local
408 scan_type = iio_get_current_scan_type(indio_dev, this_attr->c); in iio_show_fixed_type()
574 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_scan_el_store() local
575 struct iio_buffer *buffer = this_attr->buffer; in iio_scan_el_store()
585 ret = iio_scan_mask_query(indio_dev, buffer, this_attr->address); in iio_scan_el_store()
593 ret = iio_scan_mask_set(indio_dev, buffer, this_attr->address); in iio_scan_el_store()
595 ret = iio_scan_mask_clear(buffer, this_attr->address); in iio_scan_el_store()
/linux/drivers/iio/dummy/
H A Diio_dummy_evgen.c138 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_evgen_poke() local
146 iio_evgen->regs[this_attr->address].reg_id = this_attr->address; in iio_evgen_poke()
147 iio_evgen->regs[this_attr->address].reg_data = event; in iio_evgen_poke()
149 irq = irq_find_mapping(iio_evgen->irq_sim_domain, this_attr->address); in iio_evgen_poke()
/linux/drivers/staging/iio/frequency/
H A Dad9834.c148 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9834_write() local
157 switch ((u32)this_attr->address) { in ad9834_write()
160 ret = ad9834_write_frequency(st, this_attr->address, val); in ad9834_write()
164 ret = ad9834_write_phase(st, this_attr->address, val); in ad9834_write()
191 st->control &= ~(this_attr->address | AD9834_PIN_SW); in ad9834_write()
193 st->control |= this_attr->address; in ad9834_write()
226 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9834_store_wavetype() local
232 switch ((u32)this_attr->address) { in ad9834_store_wavetype()
H A Dad9832.c179 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9832_write() local
188 switch ((u32)this_attr->address) { in ad9832_write()
191 ret = ad9832_write_frequency(st, this_attr->address, val); in ad9832_write()
197 ret = ad9832_write_phase(st, this_attr->address, val); in ad9832_write()
/linux/drivers/staging/iio/impedance-analyzer/
H A Dad5933.c266 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_show_frequency() local
277 ret = ad5933_i2c_read(st->client, this_attr->address, 3, &dat.d8[1]); in ad5933_show_frequency()
297 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_store_frequency() local
311 ret = ad5933_set_freq(st, this_attr->address, val); in ad5933_store_frequency()
333 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_show() local
337 switch ((u32)this_attr->address) { in ad5933_show()
376 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_store() local
381 if (this_attr->address != AD5933_IN_PGA_GAIN) { in ad5933_store()
391 switch ((u32)this_attr->address) { in ad5933_store()
/linux/drivers/staging/iio/accel/
H A Dadis16240.c205 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in adis16240_spi_read_signed() local
208 this_attr->address, (u16 *)&val); in adis16240_spi_read_signed()
/linux/drivers/iio/frequency/
H A Dad9523.c513 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9523_store() local
526 switch ((u32)this_attr->address) { in ad9523_store()
546 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9523_show() local
554 (u32)this_attr->address))); in ad9523_show()
/linux/drivers/iio/adc/
H A Dpac1934.c484 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in pac1934_shunt_value_show() local
486 return sysfs_emit(buf, "%u\n", info->shunts[this_attr->address]); in pac1934_shunt_value_show()
495 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in pac1934_shunt_value_store() local
504 info->shunts[this_attr->address] = sh_val; in pac1934_shunt_value_store()
H A Dad7192.c686 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7192_set() local
698 switch ((u32)this_attr->address) { in ad7192_set()
/linux/drivers/staging/iio/addac/
H A Dadt7316.c1890 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in adt7316_show_ad_bound() local
1898 this_attr->address > ADT7316_EX_TEMP_LOW) in adt7316_show_ad_bound()
1901 ret = chip->bus.read(chip->bus.client, this_attr->address, &val); in adt7316_show_ad_bound()
1921 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in adt7316_set_ad_bound() local
1929 this_attr->address > ADT7316_EX_TEMP_LOW) in adt7316_set_ad_bound()
1950 ret = chip->bus.write(chip->bus.client, this_attr->address, val); in adt7316_set_ad_bound()