/drivers/iio/ |
D | industrialio-event.c | 272 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_state_store() local 281 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_state_store() 282 iio_ev_attr_dir(this_attr), val); in iio_ev_state_store() 292 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_state_show() local 296 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_state_show() 297 iio_ev_attr_dir(this_attr)); in iio_ev_state_show() 309 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_value_show() local 314 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_value_show() 315 iio_ev_attr_dir(this_attr), iio_ev_attr_info(this_attr), in iio_ev_value_show() 330 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_value_store() local [all …]
|
D | industrialio-core.c | 509 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_ext_info() local 512 ext_info = &this_attr->c->ext_info[this_attr->address]; in iio_read_channel_ext_info() 514 return ext_info->read(indio_dev, ext_info->private, this_attr->c, buf); in iio_read_channel_ext_info() 523 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_write_channel_ext_info() local 526 ext_info = &this_attr->c->ext_info[this_attr->address]; in iio_write_channel_ext_info() 529 this_attr->c, buf, len); in iio_write_channel_ext_info() 753 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_label() local 756 return indio_dev->info->read_label(indio_dev, this_attr->c, buf); in iio_read_channel_label() 758 if (this_attr->c->extend_name) in iio_read_channel_label() 759 return sprintf(buf, "%s\n", this_attr->c->extend_name); in iio_read_channel_label() [all …]
|
D | industrialio-buffer.c | 270 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_show_fixed_type() local 271 u8 type = this_attr->c->scan_type.endianness; in iio_show_fixed_type() 280 if (this_attr->c->scan_type.repeat > 1) in iio_show_fixed_type() 283 this_attr->c->scan_type.sign, in iio_show_fixed_type() 284 this_attr->c->scan_type.realbits, in iio_show_fixed_type() 285 this_attr->c->scan_type.storagebits, in iio_show_fixed_type() 286 this_attr->c->scan_type.repeat, in iio_show_fixed_type() 287 this_attr->c->scan_type.shift); in iio_show_fixed_type() 291 this_attr->c->scan_type.sign, in iio_show_fixed_type() 292 this_attr->c->scan_type.realbits, in iio_show_fixed_type() [all …]
|
/drivers/staging/iio/meter/ |
D | ade7854.c | 32 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 …]
|
/drivers/staging/iio/adc/ |
D | ad7280a.c | 405 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7280_show_balance_sw() local 408 !!(st->cb_mask[this_attr->address >> 8] & in ad7280_show_balance_sw() 409 (1 << ((this_attr->address & 0xFF) + 2)))); in ad7280_show_balance_sw() 419 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7280_store_balance_sw() local 428 devaddr = this_attr->address >> 8; in ad7280_store_balance_sw() 429 ch = this_attr->address & 0xFF; in ad7280_store_balance_sw() 450 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7280_show_balance_timer() local 455 ret = ad7280_read(st, this_attr->address >> 8, in ad7280_show_balance_timer() 456 this_attr->address & 0xFF); in ad7280_show_balance_timer() 474 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7280_store_balance_timer() local [all …]
|
/drivers/iio/dummy/ |
D | iio_dummy_evgen.c | 140 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()
|
/drivers/staging/iio/frequency/ |
D | ad9834.c | 148 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()
|
D | ad9832.c | 176 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()
|
/drivers/staging/iio/impedance-analyzer/ |
D | ad5933.c | 267 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()
|
/drivers/staging/iio/accel/ |
D | adis16240.c | 205 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()
|
/drivers/iio/frequency/ |
D | ad9523.c | 514 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()
|
/drivers/staging/iio/addac/ |
D | adt7316.c | 1899 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()
|
/drivers/iio/adc/ |
D | ad7192.c | 456 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7192_set() local 468 switch ((u32)this_attr->address) { in ad7192_set()
|
/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_core.c | 1001 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in inv_attr_show() local 1004 switch (this_attr->address) { in inv_attr_show()
|