Lines Matching defs:config
129 u16 config;
149 st->config = val;
166 return st->config;
170 static int ad799x_update_config(struct ad799x_state *st, u16 config)
174 ret = ad799x_write_config(st, config);
180 st->config = ret;
203 cmd = st->config |
251 st->config &= ~(GENMASK(7, 0) << AD799X_CHANNEL_SHIFT);
252 st->config |= (*scan_mask << AD799X_CHANNEL_SHIFT);
253 return ad799x_write_config(st, st->config);
267 cmd = st->config | (BIT(ch) << AD799X_CHANNEL_SHIFT);
390 if (!(st->config & AD7998_ALERT_EN))
393 if ((st->config >> AD799X_CHANNEL_SHIFT) & BIT(chan->scan_index))
413 st->config |= BIT(chan->scan_index) << AD799X_CHANNEL_SHIFT;
415 st->config &= ~(BIT(chan->scan_index) << AD799X_CHANNEL_SHIFT);
417 if (st->config >> AD799X_CHANNEL_SHIFT)
418 st->config |= AD7998_ALERT_EN;
420 st->config &= ~AD7998_ALERT_EN;
422 ret = ad799x_write_config(st, st->config);
905 /* resync config */
906 ret = ad799x_update_config(st, st->config);