Lines Matching refs:conf
159 u16 conf; member
187 st->conf &= ~AD7793_CONF_CHAN_MASK; in ad7793_set_channel()
188 st->conf |= AD7793_CONF_CHAN(channel); in ad7793_set_channel()
190 return ad_sd_write_reg(&st->sd, AD7793_REG_CONF, 2, st->conf); in ad7793_set_channel()
287 st->conf = 0; in ad7793_setup()
292 st->conf |= AD7793_CONF_REFSEL(pdata->refsel); in ad7793_setup()
294 st->conf |= AD7793_CONF_VBIAS(pdata->bias_voltage); in ad7793_setup()
296 st->conf |= AD7793_CONF_BUF; in ad7793_setup()
299 st->conf |= AD7793_CONF_BOOST; in ad7793_setup()
301 st->conf |= AD7793_CONF_BO_EN; in ad7793_setup()
303 st->conf |= AD7793_CONF_UNIPOLAR; in ad7793_setup()
306 st->conf |= AD7793_CONF_GAIN(7); in ad7793_setup()
332 (!!(st->conf & AD7793_CONF_UNIPOLAR) ? 0 : 1)); in ad7793_setup()
462 bool unipolar = !!(st->conf & AD7793_CONF_UNIPOLAR); in ad7793_read_raw()
477 scale_avail[(st->conf >> 8) & 0x7][0]; in ad7793_read_raw()
479 scale_avail[(st->conf >> 8) & 0x7][1]; in ad7793_read_raw()
541 tmp = st->conf; in ad7793_write_raw()
542 st->conf &= ~AD7793_CONF_GAIN(-1); in ad7793_write_raw()
543 st->conf |= AD7793_CONF_GAIN(i); in ad7793_write_raw()
545 if (tmp == st->conf) in ad7793_write_raw()
549 sizeof(st->conf), st->conf); in ad7793_write_raw()