Lines Matching refs:sc_conf
82 uint32_t sc_conf; member
236 conf = sc->sc_conf; in lm75_type_detect()
242 sc->sc_conf = LM75_TEST_PATTERN; in lm75_type_detect()
252 if (sc->sc_conf != LM75_TEST_PATTERN) in lm75_type_detect()
278 sc->sc_conf = conf; in lm75_type_detect()
359 sc->sc_conf = (uint32_t)buf8; in lm75_conf_read()
370 buf8[1] = (uint8_t)sc->sc_conf & LM75_CONF_MASK; in lm75_conf_write()
491 tmp = (sc->sc_conf & LM75_CONF_FAULT) >> LM75_CONF_FSHIFT; in lm75_faults_sysctl()
505 sc->sc_conf &= ~LM75_CONF_FAULT; in lm75_faults_sysctl()
506 sc->sc_conf |= newf << LM75_CONF_FSHIFT; in lm75_faults_sysctl()
524 if (sc->sc_conf & LM75_CONF_MODE) { in lm75_mode_sysctl()
538 sc->sc_conf &= ~LM75_CONF_MODE; in lm75_mode_sysctl()
540 sc->sc_conf |= LM75_CONF_MODE; in lm75_mode_sysctl()
558 if (sc->sc_conf & LM75_CONF_POL) { in lm75_pol_sysctl()
572 sc->sc_conf &= ~LM75_CONF_POL; in lm75_pol_sysctl()
574 sc->sc_conf |= LM75_CONF_POL; in lm75_pol_sysctl()
591 tmp = shutdown = (sc->sc_conf & LM75_CONF_SHUTD) ? 1 : 0; in lm75_shutdown_sysctl()
598 sc->sc_conf &= ~LM75_CONF_SHUTD; in lm75_shutdown_sysctl()
600 sc->sc_conf |= LM75_CONF_SHUTD; in lm75_shutdown_sysctl()