Lines Matching defs:config
132 u16 config;
152 st->config = val;
169 return st->config;
173 static int ad799x_update_config(struct ad799x_state *st, u16 config)
177 ret = ad799x_write_config(st, config);
183 st->config = ret;
200 cmd = st->config |
248 st->config &= ~(GENMASK(7, 0) << AD799X_CHANNEL_SHIFT);
249 st->config |= (*scan_mask << AD799X_CHANNEL_SHIFT);
250 return ad799x_write_config(st, st->config);
264 cmd = st->config | (BIT(ch) << AD799X_CHANNEL_SHIFT);
394 if (!(st->config & AD7998_ALERT_EN))
397 if ((st->config >> AD799X_CHANNEL_SHIFT) & BIT(chan->scan_index))
419 st->config |= BIT(chan->scan_index) << AD799X_CHANNEL_SHIFT;
421 st->config &= ~(BIT(chan->scan_index) << AD799X_CHANNEL_SHIFT);
423 if (st->config >> AD799X_CHANNEL_SHIFT)
424 st->config |= AD7998_ALERT_EN;
426 st->config &= ~AD7998_ALERT_EN;
428 ret = ad799x_write_config(st, st->config);
938 /* resync config */
939 ret = ad799x_update_config(st, st->config);