Searched refs:duty_ns (Results 1 – 10 of 10) sorted by relevance
| /linux/drivers/pwm/ |
| H A D | pwm-airoha.c | 138 static u32 airoha_pwm_get_duty_ticks_from_ns(u32 period_ns, u32 duty_ns) in airoha_pwm_get_duty_ticks_from_ns() argument 140 return mul_u64_u32_div(duty_ns, AIROHA_PWM_DUTY_FULL, period_ns); in airoha_pwm_get_duty_ticks_from_ns() 161 u64 *period_ns, u64 *duty_ns) in airoha_pwm_get_bucket() argument 190 *duty_ns = airoha_pwm_get_duty_ns_from_ticks(period_tick, duty_tick); in airoha_pwm_get_bucket() 199 u32 duty_ns, best_duty_ns = 0; in airoha_pwm_get_generator() local 203 duty_ns = airoha_pwm_get_duty_ns_from_ticks(period_ticks, duty_ticks); in airoha_pwm_get_generator() 252 if (bucket_duty_ns > duty_ns) in airoha_pwm_get_generator() 509 u32 period_ns, duty_ns; in airoha_pwm_apply() local 532 duty_ns = period_ns; in airoha_pwm_apply() 534 duty_ns = state->duty_cycle; in airoha_pwm_apply() [all …]
|
| H A D | pwm-pxa.c | 68 u64 duty_ns, u64 period_ns) in pxa_pwm_config() argument 90 if (duty_ns == period_ns) in pxa_pwm_config() 93 dc = mul_u64_u64_div_u64(pv + 1, duty_ns, period_ns); in pxa_pwm_config()
|
| H A D | pwm-lpc18xx-sct.c | 163 struct pwm_device *pwm, u64 duty_ns) in lpc18xx_pwm_config_duty() argument 173 val = mul_u64_u64_div_u64(duty_ns, lpc18xx_pwm->clk_rate, NSEC_PER_SEC); in lpc18xx_pwm_config_duty() 185 int duty_ns, int period_ns) in lpc18xx_pwm_config() argument 217 lpc18xx_pwm_config_duty(chip, pwm, duty_ns); in lpc18xx_pwm_config()
|
| H A D | pwm-spear.c | 76 u64 duty_ns, u64 period_ns) in spear_pwm_config() argument 99 val = clk_rate * duty_ns; in spear_pwm_config()
|
| H A D | pwm-sprd.c | 123 int duty_ns, int period_ns) in sprd_pwm_config() argument 139 duty = duty_ns * SPRD_PWM_MOD_MAX / period_ns; in sprd_pwm_config()
|
| H A D | pwm-berlin.c | 75 u64 duty_ns, u64 period_ns) in berlin_pwm_config() argument 95 cycles *= duty_ns; in berlin_pwm_config()
|
| H A D | pwm-vt8500.c | 72 u64 duty_ns, u64 period_ns) in vt8500_pwm_config() argument 103 c = (unsigned long long)pv * duty_ns; in vt8500_pwm_config()
|
| H A D | pwm-img.c | 90 int duty_ns, int period_ns) in img_pwm_config() argument 126 duty = DIV_ROUND_UP(timebase * duty_ns, period_ns); in img_pwm_config()
|
| /linux/drivers/gpu/drm/panel/ |
| H A D | panel-novatek-nt35560.c | 154 int duty_ns = bl->props.brightness; in nt35560_set_brightness() local 168 pwm_ratio = max(((duty_ns * 256) / period_ns) - 1, 1); in nt35560_set_brightness()
|
| /linux/Documentation/driver-api/ |
| H A D | pwm.rst | 189 Currently a PWM can only be configured with period_ns and duty_ns. For several
|