Searched refs:pwm_max (Results 1 – 6 of 6) sorted by relevance
| /linux-6.15/drivers/hwmon/ |
| H A D | qnap-mcu-hwmon.c | 22 unsigned int pwm_max; member 111 val = clamp_val(val, hwm->pwm_min, hwm->pwm_max); in qnap_mcu_hwmon_write() 276 if (hwm->fan_cooling_levels[i] > hwm->pwm_max) in qnap_mcu_hwmon_get_cooling_data() 278 hwm->fan_cooling_levels[i], hwm->pwm_max); in qnap_mcu_hwmon_get_cooling_data() 310 hwm->pwm_max = variant->fan_pwm_max; in qnap_mcu_hwmon_probe() 317 ret = qnap_mcu_hwmon_set_pwm(hwm, hwm->pwm_max); in qnap_mcu_hwmon_probe()
|
| H A D | emc2305.c | 27 #define EMC2305_PWM_DUTY2STATE(duty, max_state, pwm_max) \ argument 28 DIV_ROUND_CLOSEST((duty) * (max_state), (pwm_max)) 29 #define EMC2305_PWM_STATE2DUTY(state, max_state, pwm_max) \ argument 30 DIV_ROUND_CLOSEST((state) * (pwm_max), (max_state))
|
| H A D | adt7470.c | 165 u8 pwm_max[ADT7470_PWM_COUNT]; member 410 data->pwm_max[i] = val; in adt7470_update_limits() 857 return sprintf(buf, "%d\n", data->pwm_max[attr->index]); in pwm_max_show() 875 data->pwm_max[attr->index] = temp; in pwm_max_store() 1039 static SENSOR_DEVICE_ATTR_RW(pwm1_auto_point2_pwm, pwm_max, 0); 1040 static SENSOR_DEVICE_ATTR_RW(pwm2_auto_point2_pwm, pwm_max, 1); 1041 static SENSOR_DEVICE_ATTR_RW(pwm3_auto_point2_pwm, pwm_max, 2); 1042 static SENSOR_DEVICE_ATTR_RW(pwm4_auto_point2_pwm, pwm_max, 3);
|
| H A D | adt7462.c | 216 u8 pwm_max; /* only one per chip */ member 766 data->pwm_max = i2c_smbus_read_byte_data(client, ADT7462_REG_PWM_MAX); in adt7462_update_device() 1117 return sprintf(buf, "%d\n", data->pwm_max); in pwm_max_show() 1134 data->pwm_max = temp; in pwm_max_store() 1555 static SENSOR_DEVICE_ATTR_RW(pwm1_auto_point2_pwm, pwm_max, 0); 1556 static SENSOR_DEVICE_ATTR_RW(pwm2_auto_point2_pwm, pwm_max, 1); 1557 static SENSOR_DEVICE_ATTR_RW(pwm3_auto_point2_pwm, pwm_max, 2); 1558 static SENSOR_DEVICE_ATTR_RW(pwm4_auto_point2_pwm, pwm_max, 3);
|
| H A D | nct6775-core.c | 3322 SENSOR_TEMPLATE_2(pwm_max, "pwm%d_max", 0644, show_pwm, store_pwm, 0, 3);
|
| /linux-6.15/drivers/ufs/host/ |
| H A D | ufs-exynos.c | 532 const unsigned long pwm_max = 9 * 1000 * 1000; in exynos_ufs_calc_pwm_clk_div() local 540 if (_clk >= pwm_min && _clk <= pwm_max) { in exynos_ufs_calc_pwm_clk_div()
|