Lines Matching defs:value
111 * value using u32 pointer
134 u8 reg; /* reg value */
148 unsigned int gain; /* PGA gain value */
149 u8 reg; /* field value */
181 .value = st->sdecode_delay_us,
202 static int ads131e08_write_reg(struct ads131e08_state *st, u8 reg, u8 value)
210 .value = st->sdecode_delay_us,
218 st->tx_buf[2] = value;
259 dev_err(&st->spi->dev, "invalid data rate value\n");
294 dev_err(&st->spi->dev, "invalid PGA gain value\n");
331 dev_err(&st->spi->dev, "invalid channel mux value\n");
354 unsigned int channel, bool value)
363 reg |= FIELD_PREP(ADS131E08_CHR_PWD_MASK, value);
480 struct iio_chan_spec const *channel, int *value)
494 *value = sign_extend32(get_unaligned_be32(src) >> (32 - num_bits), num_bits - 1);
500 struct iio_chan_spec const *channel, int *value,
512 ret = ads131e08_read_direct(indio_dev, channel, value);
525 *value = ret / 1000;
527 *value = st->vref_mv;
530 *value /= st->channel_config[channel->address].pga_gain;
536 *value = st->data_rate;
546 struct iio_chan_spec const *channel, int value,
558 ret = ads131e08_set_data_rate(st, value);