Home
last modified time | relevance | path

Searched refs:MAX_PWM (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/hwmon/
H A Dpwm-fan.c23 #define MAX_PWM 255 macro
211 state->duty_cycle = DIV_ROUND_UP(pwm * (period - 1), MAX_PWM); in __set_pwm()
302 if (val < 0 || val > MAX_PWM) in pwm_fan_write()
453 if (ctx->pwm_fan_cooling_levels[i] > MAX_PWM) { in pwm_fan_get_cooling_data()
455 ctx->pwm_fan_cooling_levels[i], MAX_PWM); in pwm_fan_get_cooling_data()
523 if (ctx->pwm_state.period > ULONG_MAX / MAX_PWM + 1) { in pwm_fan_probe()
534 ret = set_pwm(ctx, MAX_PWM); in pwm_fan_probe()