Lines Matching defs:conf
158 u16 conf;
186 st->conf &= ~AD7793_CONF_CHAN_MASK;
187 st->conf |= AD7793_CONF_CHAN(channel);
189 return ad_sd_write_reg(&st->sd, AD7793_REG_CONF, 2, st->conf);
288 st->conf = 0;
293 st->conf |= AD7793_CONF_REFSEL(pdata->refsel);
295 st->conf |= AD7793_CONF_VBIAS(pdata->bias_voltage);
297 st->conf |= AD7793_CONF_BUF;
300 st->conf |= AD7793_CONF_BOOST;
302 st->conf |= AD7793_CONF_BO_EN;
304 st->conf |= AD7793_CONF_UNIPOLAR;
307 st->conf |= AD7793_CONF_GAIN(7);
333 (!!(st->conf & AD7793_CONF_UNIPOLAR) ? 0 : 1));
405 bool unipolar = !!(st->conf & AD7793_CONF_UNIPOLAR);
420 scale_avail[(st->conf >> 8) & 0x7][0];
422 scale_avail[(st->conf >> 8) & 0x7][1];
485 tmp = st->conf;
486 st->conf &= ~AD7793_CONF_GAIN(-1);
487 st->conf |= AD7793_CONF_GAIN(i);
489 if (tmp == st->conf)
493 sizeof(st->conf), st->conf);