Lines Matching refs:ctl4

1526 	u8 reg, ctl4;  in temp_auto_pwm_min_show()  local
1529 ctl4 = data->block9[nr][LM93_PWM_CTL4]; in temp_auto_pwm_min_show()
1530 return sprintf(buf, "%d\n", LM93_PWM_FROM_REG(reg, (ctl4 & 0x07) ? in temp_auto_pwm_min_show()
1541 u8 reg, ctl4; in temp_auto_pwm_min_store() local
1551 ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4)); in temp_auto_pwm_min_store()
1553 LM93_PWM_TO_REG(val, (ctl4 & 0x07) ? in temp_auto_pwm_min_store()
1731 u8 ctl4 = lm93_read_byte(client, in fan_smart_tach_store() local
1733 if ((ctl4 & 0x07) == 0) in fan_smart_tach_store()
1752 u8 ctl2, ctl4; in pwm_show() local
1756 ctl4 = data->block9[nr][LM93_PWM_CTL4]; in pwm_show()
1760 rc = LM93_PWM_FROM_REG(ctl2 >> 4, (ctl4 & 0x07) ? in pwm_show()
1771 u8 ctl2, ctl4; in pwm_store() local
1781 ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4)); in pwm_store()
1782 ctl2 = (ctl2 & 0x0f) | LM93_PWM_TO_REG(val, (ctl4 & 0x07) ? in pwm_store()
1786 (ctl4 & 0x07) ? LM93_PWM_MAP_LO_FREQ : in pwm_store()
1858 u8 ctl4; in pwm_freq_show() local
1860 ctl4 = data->block9[nr][LM93_PWM_CTL4]; in pwm_freq_show()
1861 return sprintf(buf, "%d\n", LM93_PWM_FREQ_FROM_REG(ctl4)); in pwm_freq_show()
1895 u8 ctl4; in pwm_freq_store() local
1904 ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4)); in pwm_freq_store()
1905 ctl4 = (ctl4 & 0xf8) | LM93_PWM_FREQ_TO_REG(val); in pwm_freq_store()
1906 data->block9[nr][LM93_PWM_CTL4] = ctl4; in pwm_freq_store()
1908 if (!ctl4) in pwm_freq_store()
1910 lm93_write_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4), ctl4); in pwm_freq_store()
1958 u8 ctl3, ctl4; in pwm_auto_spinup_min_show() local
1961 ctl4 = data->block9[nr][LM93_PWM_CTL4]; in pwm_auto_spinup_min_show()
1963 LM93_PWM_FROM_REG(ctl3 & 0x0f, (ctl4 & 0x07) ? in pwm_auto_spinup_min_show()
1974 u8 ctl3, ctl4; in pwm_auto_spinup_min_store() local
1984 ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4)); in pwm_auto_spinup_min_store()
1985 ctl3 = (ctl3 & 0xf0) | LM93_PWM_TO_REG(val, (ctl4 & 0x07) ? in pwm_auto_spinup_min_store()