Lines Matching refs:apnr
142 #define F71805F_REG_PWM_AUTO_POINT_TEMP(pwmnr, apnr) \ argument
143 (0xA0 + 0x10 * (pwmnr) + (2 - (apnr)))
144 #define F71805F_REG_PWM_AUTO_POINT_FAN(pwmnr, apnr) \ argument
146 2 * (2 - (apnr)))
342 int nr, apnr; in f71805f_update_device() local
373 for (apnr = 0; apnr < 3; apnr++) { in f71805f_update_device()
374 data->auto_points[nr].temp[apnr] = in f71805f_update_device()
377 apnr)); in f71805f_update_device()
378 data->auto_points[nr].fan[apnr] = in f71805f_update_device()
381 apnr)); in f71805f_update_device()
799 int apnr = attr->index; in show_pwm_auto_point_temp() local
802 temp_from_reg(data->auto_points[pwmnr].temp[apnr])); in show_pwm_auto_point_temp()
812 int apnr = attr->index; in set_pwm_auto_point_temp() local
821 data->auto_points[pwmnr].temp[apnr] = temp_to_reg(val); in set_pwm_auto_point_temp()
822 f71805f_write8(data, F71805F_REG_PWM_AUTO_POINT_TEMP(pwmnr, apnr), in set_pwm_auto_point_temp()
823 data->auto_points[pwmnr].temp[apnr]); in set_pwm_auto_point_temp()
836 int apnr = attr->index; in show_pwm_auto_point_fan() local
839 fan_from_reg(data->auto_points[pwmnr].fan[apnr])); in show_pwm_auto_point_fan()
849 int apnr = attr->index; in set_pwm_auto_point_fan() local
858 data->auto_points[pwmnr].fan[apnr] = fan_to_reg(val); in set_pwm_auto_point_fan()
859 f71805f_write16(data, F71805F_REG_PWM_AUTO_POINT_FAN(pwmnr, apnr), in set_pwm_auto_point_fan()
860 data->auto_points[pwmnr].fan[apnr]); in set_pwm_auto_point_fan()