Lines Matching defs:config
247 uint8_t config, mode, val;
250 /* Read current config */
251 if ((error = cwfg_read(sc, CONFIG_REG, &config)) != 0)
255 alert_level = __SHIFTOUT(config, CONFIG_ATHD);
257 config &= ~CONFIG_ATHD;
258 config |= __SHIFTIN(sc->sc_alert_level, CONFIG_ATHD);
259 if ((error = cwfg_write(sc, CONFIG_REG, config)) != 0)
263 /* Re-read current config */
264 if ((error = cwfg_read(sc, CONFIG_REG, &config)) != 0)
272 need_update = (config & CONFIG_UFG) == 0;
296 if ((error = cwfg_read(sc, CONFIG_REG, &config)) != 0)
298 config |= CONFIG_UFG;
299 if ((error = cwfg_write(sc, CONFIG_REG, config)) != 0)
369 "cellwise,bat-config-info", &len);
425 /* This device is direct-config only. */