/drivers/iio/ |
D | industrialio-event.c | 266 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_state_store() local 275 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_state_store() 276 iio_ev_attr_dir(this_attr), val); in iio_ev_state_store() 286 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_state_show() local 290 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_state_show() 291 iio_ev_attr_dir(this_attr)); in iio_ev_state_show() 303 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_value_show() local 308 this_attr->c, iio_ev_attr_type(this_attr), in iio_ev_value_show() 309 iio_ev_attr_dir(this_attr), iio_ev_attr_info(this_attr), in iio_ev_value_show() 324 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_ev_value_store() local [all …]
|
D | industrialio-core.c | 416 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_ext_info() local 419 ext_info = &this_attr->c->ext_info[this_attr->address]; in iio_read_channel_ext_info() 421 return ext_info->read(indio_dev, ext_info->private, this_attr->c, buf); in iio_read_channel_ext_info() 430 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_write_channel_ext_info() local 433 ext_info = &this_attr->c->ext_info[this_attr->address]; in iio_write_channel_ext_info() 436 this_attr->c, buf, len); in iio_write_channel_ext_info() 661 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_read_channel_info() local 667 ret = indio_dev->info->read_raw_multi(indio_dev, this_attr->c, in iio_read_channel_info() 670 this_attr->address); in iio_read_channel_info() 672 ret = indio_dev->info->read_raw(indio_dev, this_attr->c, in iio_read_channel_info() [all …]
|
D | industrialio-buffer.c | 236 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_show_fixed_type() local 237 u8 type = this_attr->c->scan_type.endianness; in iio_show_fixed_type() 246 if (this_attr->c->scan_type.repeat > 1) in iio_show_fixed_type() 249 this_attr->c->scan_type.sign, in iio_show_fixed_type() 250 this_attr->c->scan_type.realbits, in iio_show_fixed_type() 251 this_attr->c->scan_type.storagebits, in iio_show_fixed_type() 252 this_attr->c->scan_type.repeat, in iio_show_fixed_type() 253 this_attr->c->scan_type.shift); in iio_show_fixed_type() 257 this_attr->c->scan_type.sign, in iio_show_fixed_type() 258 this_attr->c->scan_type.realbits, in iio_show_fixed_type() [all …]
|
/drivers/staging/iio/meter/ |
D | ade7854.c | 33 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_8bit() local 35 ret = st->read_reg_8(dev, this_attr->address, &val); in ade7854_read_8bit() 50 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_16bit() local 52 ret = st->read_reg_16(dev, this_attr->address, &val); in ade7854_read_16bit() 67 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_24bit() local 69 ret = st->read_reg_24(dev, this_attr->address, &val); in ade7854_read_24bit() 82 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_32bit() local 86 ret = st->read_reg_32(dev, this_attr->address, &val); in ade7854_read_32bit() 98 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_write_8bit() local 108 ret = st->write_reg_8(dev, this_attr->address, val); in ade7854_write_8bit() [all …]
|
D | ade7759.c | 189 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7759_read_8bit() local 191 ret = ade7759_spi_read_reg_8(dev, this_attr->address, &val); in ade7759_read_8bit() 204 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7759_read_16bit() local 206 ret = ade7759_spi_read_reg_16(dev, this_attr->address, &val); in ade7759_read_16bit() 219 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7759_read_40bit() local 221 ret = ade7759_spi_read_reg_40(dev, this_attr->address, &val); in ade7759_read_40bit() 233 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7759_write_8bit() local 240 ret = ade7759_spi_write_reg_8(dev, this_attr->address, val); in ade7759_write_8bit() 251 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7759_write_16bit() local 258 ret = ade7759_spi_write_reg_16(dev, this_attr->address, val); in ade7759_write_16bit()
|
D | ade7753.c | 207 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7753_read_8bit() local 209 ret = ade7753_spi_read_reg_8(dev, this_attr->address, &val); in ade7753_read_8bit() 222 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7753_read_16bit() local 224 ret = ade7753_spi_read_reg_16(dev, this_attr->address, &val); in ade7753_read_16bit() 237 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7753_read_24bit() local 239 ret = ade7753_spi_read_reg_24(dev, this_attr->address, &val); in ade7753_read_24bit() 251 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7753_write_8bit() local 258 ret = ade7753_spi_write_reg_8(dev, this_attr->address, val); in ade7753_write_8bit() 269 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7753_write_16bit() local 276 ret = ade7753_spi_write_reg_16(dev, this_attr->address, val); in ade7753_write_16bit()
|
D | ade7754.c | 227 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7754_read_8bit() local 229 ret = ade7754_spi_read_reg_8(dev, this_attr->address, &val); in ade7754_read_8bit() 242 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7754_read_16bit() local 244 ret = ade7754_spi_read_reg_16(dev, this_attr->address, &val); in ade7754_read_16bit() 257 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7754_read_24bit() local 259 ret = ade7754_spi_read_reg_24(dev, this_attr->address, &val); in ade7754_read_24bit() 271 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7754_write_8bit() local 278 ret = ade7754_spi_write_reg_8(dev, this_attr->address, val); in ade7754_write_8bit() 289 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7754_write_16bit() local 296 ret = ade7754_spi_write_reg_16(dev, this_attr->address, val); in ade7754_write_16bit()
|
D | ade7758_core.c | 216 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7758_read_8bit() local 218 ret = ade7758_spi_read_reg_8(dev, this_attr->address, &val); in ade7758_read_8bit() 230 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7758_read_16bit() local 232 ret = ade7758_spi_read_reg_16(dev, this_attr->address, &val); in ade7758_read_16bit() 244 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7758_read_24bit() local 246 ret = ade7758_spi_read_reg_24(dev, this_attr->address, &val); in ade7758_read_24bit() 257 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7758_write_8bit() local 264 ret = ade7758_spi_write_reg_8(dev, this_attr->address, val); in ade7758_write_8bit() 274 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7758_write_16bit() local 281 ret = ade7758_spi_write_reg_16(dev, this_attr->address, val); in ade7758_write_16bit()
|
/drivers/staging/iio/adc/ |
D | ad7280a.c | 402 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7280_show_balance_sw() local 405 !!(st->cb_mask[this_attr->address >> 8] & in ad7280_show_balance_sw() 406 (1 << ((this_attr->address & 0xFF) + 2)))); in ad7280_show_balance_sw() 416 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7280_store_balance_sw() local 425 devaddr = this_attr->address >> 8; in ad7280_store_balance_sw() 426 ch = this_attr->address & 0xFF; in ad7280_store_balance_sw() 447 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7280_show_balance_timer() local 452 ret = ad7280_read(st, this_attr->address >> 8, in ad7280_show_balance_timer() 453 this_attr->address & 0xFF); in ad7280_show_balance_timer() 471 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7280_store_balance_timer() local [all …]
|
D | ad7192.c | 386 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7192_set() local 398 switch ((u32)this_attr->address) { in ad7192_set()
|
/drivers/iio/dummy/ |
D | iio_dummy_evgen.c | 184 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in iio_evgen_poke() local 192 iio_evgen->regs[this_attr->address].reg_id = this_attr->address; in iio_evgen_poke() 193 iio_evgen->regs[this_attr->address].reg_data = event; in iio_evgen_poke() 195 iio_evgen->handler.irq = iio_evgen->base + this_attr->address; in iio_evgen_poke() 196 if (iio_evgen->enabled[this_attr->address]) in iio_evgen_poke()
|
/drivers/staging/iio/frequency/ |
D | ad9834.c | 146 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9834_write() local 155 switch ((u32)this_attr->address) { in ad9834_write() 158 ret = ad9834_write_frequency(st, this_attr->address, val); in ad9834_write() 162 ret = ad9834_write_phase(st, this_attr->address, val); in ad9834_write() 189 st->control &= ~(this_attr->address | AD9834_PIN_SW); in ad9834_write() 191 st->control |= this_attr->address; in ad9834_write() 224 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9834_store_wavetype() local 230 switch ((u32)this_attr->address) { in ad9834_store_wavetype()
|
D | ad9832.c | 174 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9832_write() local 183 switch ((u32)this_attr->address) { in ad9832_write() 186 ret = ad9832_write_frequency(st, this_attr->address, val); in ad9832_write() 192 ret = ad9832_write_phase(st, this_attr->address, val); in ad9832_write()
|
/drivers/staging/iio/impedance-analyzer/ |
D | ad5933.c | 302 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_show_frequency() local 313 ret = ad5933_i2c_read(st->client, this_attr->address, 3, &dat.d8[1]); in ad5933_show_frequency() 333 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_store_frequency() local 347 ret = ad5933_set_freq(st, this_attr->address, val); in ad5933_store_frequency() 369 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_show() local 373 switch ((u32)this_attr->address) { in ad5933_show() 412 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad5933_store() local 417 if (this_attr->address != AD5933_IN_PGA_GAIN) { in ad5933_store() 427 switch ((u32)this_attr->address) { in ad5933_store()
|
/drivers/staging/iio/cdc/ |
D | ad7150.c | 350 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7150_show_timeout() local 354 int chan = IIO_EVENT_CODE_EXTRACT_CHAN(this_attr->address); in ad7150_show_timeout() 355 int rising = !!(IIO_EVENT_CODE_EXTRACT_DIR(this_attr->address) in ad7150_show_timeout() 358 switch (IIO_EVENT_CODE_EXTRACT_TYPE(this_attr->address)) { in ad7150_show_timeout() 379 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7150_store_timeout() local 380 int chan = IIO_EVENT_CODE_EXTRACT_CHAN(this_attr->address); in ad7150_store_timeout() 387 type = IIO_EVENT_CODE_EXTRACT_TYPE(this_attr->address); in ad7150_store_timeout() 388 dir = IIO_EVENT_CODE_EXTRACT_DIR(this_attr->address); in ad7150_store_timeout()
|
D | ad7152.c | 103 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad7152_start_calib() local 114 if (this_attr->address == 0) in ad7152_start_calib()
|
/drivers/staging/iio/accel/ |
D | adis16240.c | 213 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in adis16240_spi_read_signed() local 216 this_attr->address, (u16 *)&val); in adis16240_spi_read_signed()
|
/drivers/iio/frequency/ |
D | ad9523.c | 502 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9523_store() local 514 switch ((u32)this_attr->address) { in ad9523_store() 534 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ad9523_show() local 541 (u32)this_attr->address))); in ad9523_show()
|
/drivers/staging/iio/addac/ |
D | adt7316.c | 1881 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in adt7316_show_ad_bound() local 1889 this_attr->address > ADT7316_EX_TEMP_LOW) in adt7316_show_ad_bound() 1892 ret = chip->bus.read(chip->bus.client, this_attr->address, &val); in adt7316_show_ad_bound() 1912 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in adt7316_set_ad_bound() local 1920 this_attr->address > ADT7316_EX_TEMP_LOW) in adt7316_set_ad_bound() 1941 ret = chip->bus.write(chip->bus.client, this_attr->address, val); in adt7316_set_ad_bound()
|
/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_core.c | 675 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in inv_attr_show() local 678 switch (this_attr->address) { in inv_attr_show()
|