Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/iio/
Dindustrialio-event.c273 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_state_store() local
282 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_state_store()
283 iio_ev_attr_dir(this_attr), val); in iio_ev_state_store()
293 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_state_show() local
297 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_state_show()
298 iio_ev_attr_dir(this_attr)); in iio_ev_state_show()
310 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_value_show() local
315 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_value_show()
316 iio_ev_attr_dir(this_attr), iio_ev_attr_info(this_attr), in iio_ev_value_show()
331 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_value_store() local
[all …]
Dindustrialio-core.c511 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()
[all …]
Dindustrialio-buffer.c364 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_show_fixed_type() local
365 u8 type = this_attr->c->scan_type.endianness; in iio_show_fixed_type()
374 if (this_attr->c->scan_type.repeat > 1) in iio_show_fixed_type()
377 this_attr->c->scan_type.sign, in iio_show_fixed_type()
378 this_attr->c->scan_type.realbits, in iio_show_fixed_type()
379 this_attr->c->scan_type.storagebits, in iio_show_fixed_type()
380 this_attr->c->scan_type.repeat, in iio_show_fixed_type()
381 this_attr->c->scan_type.shift); in iio_show_fixed_type()
385 this_attr->c->scan_type.sign, in iio_show_fixed_type()
386 this_attr->c->scan_type.realbits, in iio_show_fixed_type()
[all …]
/linux-5.19.10/drivers/staging/iio/meter/
Dade7854.c32 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_8bit() local
34 ret = st->read_reg(dev, this_attr->address, &val, 8); in ade7854_read_8bit()
49 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_16bit() local
51 ret = st->read_reg(dev, this_attr->address, &val, 16); in ade7854_read_16bit()
66 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_24bit() local
68 ret = st->read_reg(dev, this_attr->address, &val, 24); in ade7854_read_24bit()
81 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_32bit() local
85 ret = st->read_reg(dev, this_attr->address, &val, 32); in ade7854_read_32bit()
97 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_write_8bit() local
107 ret = st->write_reg(dev, this_attr->address, val, 8); in ade7854_write_8bit()
[all …]
/linux-5.19.10/drivers/iio/dummy/
Diio_dummy_evgen.c140 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_evgen_poke() local
148 iio_evgen->regs[this_attr->address].reg_id = this_attr->address; in iio_evgen_poke()
149 iio_evgen->regs[this_attr->address].reg_data = event; in iio_evgen_poke()
151 irq = irq_find_mapping(iio_evgen->irq_sim_domain, this_attr->address); in iio_evgen_poke()
/linux-5.19.10/drivers/staging/iio/frequency/
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()
Dad9832.c176 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9832_write() local
185 switch ((u32)this_attr->address) { in ad9832_write()
188 ret = ad9832_write_frequency(st, this_attr->address, val); in ad9832_write()
194 ret = ad9832_write_phase(st, this_attr->address, val); in ad9832_write()
/linux-5.19.10/drivers/staging/iio/impedance-analyzer/
Dad5933.c267 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_show_frequency() local
278 ret = ad5933_i2c_read(st->client, this_attr->address, 3, &dat.d8[1]); in ad5933_show_frequency()
298 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_store_frequency() local
312 ret = ad5933_set_freq(st, this_attr->address, val); in ad5933_store_frequency()
334 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_show() local
338 switch ((u32)this_attr->address) { in ad5933_show()
377 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_store() local
382 if (this_attr->address != AD5933_IN_PGA_GAIN) { in ad5933_store()
392 switch ((u32)this_attr->address) { in ad5933_store()
/linux-5.19.10/drivers/staging/iio/accel/
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-5.19.10/drivers/iio/frequency/
Dad9523.c514 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9523_store() local
527 switch ((u32)this_attr->address) { in ad9523_store()
547 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9523_show() local
555 (u32)this_attr->address))); in ad9523_show()
/linux-5.19.10/drivers/staging/iio/addac/
Dadt7316.c1899 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in adt7316_show_ad_bound() local
1907 this_attr->address > ADT7316_EX_TEMP_LOW) in adt7316_show_ad_bound()
1910 ret = chip->bus.read(chip->bus.client, this_attr->address, &val); in adt7316_show_ad_bound()
1930 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in adt7316_set_ad_bound() local
1938 this_attr->address > ADT7316_EX_TEMP_LOW) in adt7316_set_ad_bound()
1959 ret = chip->bus.write(chip->bus.client, this_attr->address, val); in adt7316_set_ad_bound()
/linux-5.19.10/drivers/iio/adc/
Dad7192.c496 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7192_set() local
508 switch ((u32)this_attr->address) { in ad7192_set()
/linux-5.19.10/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_core.c1010 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in inv_attr_show() local
1013 switch (this_attr->address) { in inv_attr_show()