Lines Matching refs:ctl4
1622 u8 reg, ctl4; in show_temp_auto_pwm_min() local
1625 ctl4 = data->block9[nr][LM93_PWM_CTL4]; in show_temp_auto_pwm_min()
1626 return sprintf(buf, "%d\n", LM93_PWM_FROM_REG(reg, (ctl4 & 0x07) ? in show_temp_auto_pwm_min()
1637 u8 reg, ctl4; in store_temp_auto_pwm_min() local
1647 ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4)); in store_temp_auto_pwm_min()
1649 LM93_PWM_TO_REG(val, (ctl4 & 0x07) ? in store_temp_auto_pwm_min()
1841 u8 ctl4 = lm93_read_byte(client, in store_fan_smart_tach() local
1843 if ((ctl4 & 0x07) == 0) in store_fan_smart_tach()
1866 u8 ctl2, ctl4; in show_pwm() local
1870 ctl4 = data->block9[nr][LM93_PWM_CTL4]; in show_pwm()
1874 rc = LM93_PWM_FROM_REG(ctl2 >> 4, (ctl4 & 0x07) ? in show_pwm()
1885 u8 ctl2, ctl4; in store_pwm() local
1895 ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4)); in store_pwm()
1896 ctl2 = (ctl2 & 0x0f) | LM93_PWM_TO_REG(val, (ctl4 & 0x07) ? in store_pwm()
1900 (ctl4 & 0x07) ? LM93_PWM_MAP_LO_FREQ : in store_pwm()
1974 u8 ctl4; in show_pwm_freq() local
1976 ctl4 = data->block9[nr][LM93_PWM_CTL4]; in show_pwm_freq()
1977 return sprintf(buf, "%d\n", LM93_PWM_FREQ_FROM_REG(ctl4)); in show_pwm_freq()
2011 u8 ctl4; in store_pwm_freq() local
2020 ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4)); in store_pwm_freq()
2021 ctl4 = (ctl4 & 0xf8) | LM93_PWM_FREQ_TO_REG(val); in store_pwm_freq()
2022 data->block9[nr][LM93_PWM_CTL4] = ctl4; in store_pwm_freq()
2024 if (!ctl4) in store_pwm_freq()
2026 lm93_write_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4), ctl4); in store_pwm_freq()
2076 u8 ctl3, ctl4; in show_pwm_auto_spinup_min() local
2079 ctl4 = data->block9[nr][LM93_PWM_CTL4]; in show_pwm_auto_spinup_min()
2081 LM93_PWM_FROM_REG(ctl3 & 0x0f, (ctl4 & 0x07) ? in show_pwm_auto_spinup_min()
2092 u8 ctl3, ctl4; in store_pwm_auto_spinup_min() local
2102 ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4)); in store_pwm_auto_spinup_min()
2103 ctl3 = (ctl3 & 0xf0) | LM93_PWM_TO_REG(val, (ctl4 & 0x07) ? in store_pwm_auto_spinup_min()