Lines Matching refs:pwm

98 #define F71882FG_REG_POINT_PWM(pwm, point)	(0xAA + (point) + (16 * (pwm)))  argument
99 #define F71882FG_REG_POINT_TEMP(pwm, point) (0xA6 + (point) + (16 * (pwm))) argument
269 u8 pwm[4]; member
1286 data->pwm[nr] = in f71882fg_update_device()
1293 data->pwm[2] = f71882fg_read8(data, in f71882fg_update_device()
1733 val = data->pwm[nr]; in show_pwm()
1767 data->pwm[nr] = val; in store_pwm()
1790 val = data->pwm[nr]; in show_simple_pwm()
1810 data->pwm[nr] = val; in store_simple_pwm()
1904 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_pwm() local
1908 if (data->pwm_enable & (1 << (2 * pwm))) { in show_pwm_auto_point_pwm()
1910 result = data->pwm_auto_point_pwm[pwm][point]; in show_pwm_auto_point_pwm()
1913 result = 32 * 255 / (32 + data->pwm_auto_point_pwm[pwm][point]); in show_pwm_auto_point_pwm()
1925 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_pwm() local
1937 if (data->pwm_enable & (1 << (2 * pwm))) { in store_pwm_auto_point_pwm()
1946 f71882fg_write8(data, F71882FG_REG_POINT_PWM(pwm, point), val); in store_pwm_auto_point_pwm()
1947 data->pwm_auto_point_pwm[pwm][point] = val; in store_pwm_auto_point_pwm()
2104 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp() local
2107 result = data->pwm_auto_point_temp[pwm][point]; in show_pwm_auto_point_temp()
2116 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp() local
2132 f71882fg_write8(data, F71882FG_REG_POINT_TEMP(pwm, point), val); in store_pwm_auto_point_temp()
2133 data->pwm_auto_point_temp[pwm][point] = val; in store_pwm_auto_point_temp()