duty_ns 597 drivers/gpu/drm/i915/display/intel_panel.c int duty_ns; duty_ns 599 drivers/gpu/drm/i915/display/intel_panel.c duty_ns = pwm_get_duty_cycle(panel->backlight.pwm); duty_ns 600 drivers/gpu/drm/i915/display/intel_panel.c return DIV_ROUND_UP(duty_ns * 100, CRC_PMIC_PWM_PERIOD_NS); duty_ns 673 drivers/gpu/drm/i915/display/intel_panel.c int duty_ns = DIV_ROUND_UP(level * CRC_PMIC_PWM_PERIOD_NS, 100); duty_ns 675 drivers/gpu/drm/i915/display/intel_panel.c pwm_config(panel->backlight.pwm, duty_ns, CRC_PMIC_PWM_PERIOD_NS); duty_ns 28 drivers/pwm/pwm-ab8500.c int duty_ns, int period_ns) duty_ns 38 drivers/pwm/pwm-ab8500.c lower_val = duty_ns & 0x00FF; duty_ns 43 drivers/pwm/pwm-ab8500.c higher_val = ((duty_ns & 0x0300) >> 8); duty_ns 284 drivers/pwm/pwm-atmel-tcb.c int duty_ns, int period_ns) duty_ns 330 drivers/pwm/pwm-atmel-tcb.c duty = div_u64(duty_ns, min); duty_ns 112 drivers/pwm/pwm-bcm-kona.c int duty_ns, int period_ns) duty_ns 137 drivers/pwm/pwm-bcm-kona.c val = rate * duty_ns; duty_ns 62 drivers/pwm/pwm-bcm2835.c int duty_ns, int period_ns) duty_ns 80 drivers/pwm/pwm-bcm2835.c writel(DIV_ROUND_CLOSEST(duty_ns, scaler), duty_ns 91 drivers/pwm/pwm-berlin.c int duty_ns, int period_ns) duty_ns 111 drivers/pwm/pwm-berlin.c cycles *= duty_ns; duty_ns 98 drivers/pwm/pwm-brcmstb.c int duty_ns, int period_ns) duty_ns 110 drivers/pwm/pwm-brcmstb.c if (duty_ns == period_ns) { duty_ns 130 drivers/pwm/pwm-brcmstb.c tmp = (duty_ns + 1) * rate; duty_ns 138 drivers/pwm/pwm-brcmstb.c if (pc == PWM_PERIOD_MIN || (dc < PWM_ON_MIN && duty_ns)) duty_ns 64 drivers/pwm/pwm-clps711x.c int duty_ns, int period_ns) duty_ns 72 drivers/pwm/pwm-clps711x.c duty = clps711x_get_duty(pwm, duty_ns); duty_ns 59 drivers/pwm/pwm-crc.c int duty_ns, int period_ns) duty_ns 85 drivers/pwm/pwm-crc.c level = duty_ns * PWM_MAX_LEVEL / period_ns; duty_ns 62 drivers/pwm/pwm-ep93xx.c int duty_ns, int period_ns) duty_ns 88 drivers/pwm/pwm-ep93xx.c c *= duty_ns; duty_ns 191 drivers/pwm/pwm-fsl-ftm.c unsigned int duty_ns) duty_ns 198 drivers/pwm/pwm-fsl-ftm.c duty = (unsigned long long)duty_ns * period; duty_ns 93 drivers/pwm/pwm-img.c int duty_ns, int period_ns) duty_ns 129 drivers/pwm/pwm-img.c duty = DIV_ROUND_UP(timebase * duty_ns, period_ns); duty_ns 64 drivers/pwm/pwm-imx1.c struct pwm_device *pwm, int duty_ns, int period_ns) duty_ns 87 drivers/pwm/pwm-imx1.c p = max * duty_ns / period_ns; duty_ns 96 drivers/pwm/pwm-lp3943.c int duty_ns, int period_ns) duty_ns 128 drivers/pwm/pwm-lp3943.c val = (u8)(duty_ns * LP3943_MAX_DUTY / period_ns); duty_ns 163 drivers/pwm/pwm-lpc18xx-sct.c struct pwm_device *pwm, int duty_ns) duty_ns 169 drivers/pwm/pwm-lpc18xx-sct.c val = (u64)duty_ns * lpc18xx_pwm->clk_rate; duty_ns 182 drivers/pwm/pwm-lpc18xx-sct.c int duty_ns, int period_ns) duty_ns 221 drivers/pwm/pwm-lpc18xx-sct.c lpc18xx_pwm_config_duty(chip, pwm, duty_ns); duty_ns 30 drivers/pwm/pwm-lpc32xx.c int duty_ns, int period_ns) duty_ns 47 drivers/pwm/pwm-lpc32xx.c duty_cycles = div64_u64((unsigned long long)(period_ns - duty_ns) * 256, duty_ns 83 drivers/pwm/pwm-lpss.c int duty_ns, int period_ns) duty_ns 101 drivers/pwm/pwm-lpss.c on_time_div = 255ULL * duty_ns; duty_ns 121 drivers/pwm/pwm-mediatek.c int duty_ns, int period_ns) duty_ns 161 drivers/pwm/pwm-mediatek.c cnt_duty = DIV_ROUND_CLOSEST_ULL((u64)duty_ns * 1000, resolution); duty_ns 70 drivers/pwm/pwm-mtk-disp.c int duty_ns, int period_ns) duty_ns 98 drivers/pwm/pwm-mtk-disp.c high_width = div64_u64(rate * duty_ns, div); duty_ns 45 drivers/pwm/pwm-mxs.c int duty_ns, int period_ns) duty_ns 66 drivers/pwm/pwm-mxs.c c *= duty_ns; duty_ns 94 drivers/pwm/pwm-omap-dmtimer.c int duty_ns, int period_ns) duty_ns 104 drivers/pwm/pwm-omap-dmtimer.c duty_ns, period_ns); duty_ns 107 drivers/pwm/pwm-omap-dmtimer.c if (duty_ns == pwm_get_duty_cycle(pwm) && duty_ns 145 drivers/pwm/pwm-omap-dmtimer.c duty_cycles = pwm_omap_dmtimer_get_clock_cycles(clk_rate, duty_ns); duty_ns 157 drivers/pwm/pwm-omap-dmtimer.c duty_ns, clk_rate); duty_ns 163 drivers/pwm/pwm-omap-dmtimer.c duty_ns, period_ns, clk_rate); duty_ns 73 drivers/pwm/pwm-pca9685.c int duty_ns; duty_ns 247 drivers/pwm/pwm-pca9685.c int duty_ns, int period_ns) duty_ns 283 drivers/pwm/pwm-pca9685.c pca->duty_ns = duty_ns; duty_ns 285 drivers/pwm/pwm-pca9685.c if (duty_ns < 1) { duty_ns 296 drivers/pwm/pwm-pca9685.c if (duty_ns == period_ns) { duty_ns 323 drivers/pwm/pwm-pca9685.c duty = PCA9685_COUNTER_RANGE * (unsigned long long)duty_ns; duty_ns 463 drivers/pwm/pwm-pca9685.c pca->duty_ns = 0; duty_ns 39 drivers/pwm/pwm-puv3.c int duty_ns, int period_ns) duty_ns 59 drivers/pwm/pwm-puv3.c if (duty_ns == period_ns) duty_ns 62 drivers/pwm/pwm-puv3.c dc = (pv + 1) * duty_ns / period_ns; duty_ns 61 drivers/pwm/pwm-pxa.c int duty_ns, int period_ns) duty_ns 84 drivers/pwm/pwm-pxa.c if (duty_ns == period_ns) duty_ns 87 drivers/pwm/pwm-pxa.c dc = (pv + 1) * duty_ns / period_ns; duty_ns 103 drivers/pwm/pwm-rcar.c static int rcar_pwm_set_counter(struct rcar_pwm_chip *rp, int div, int duty_ns, duty_ns 117 drivers/pwm/pwm-rcar.c tmp = duty_ns * 100ULL; duty_ns 245 drivers/pwm/pwm-renesas-tpu.c int duty_ns, int period_ns) duty_ns 275 drivers/pwm/pwm-renesas-tpu.c if (duty_ns) { duty_ns 277 drivers/pwm/pwm-renesas-tpu.c / (NSEC_PER_SEC / duty_ns); duty_ns 66 drivers/pwm/pwm-samsung.c u32 duty_ns; duty_ns 304 drivers/pwm/pwm-samsung.c int duty_ns, int period_ns, bool force_period) duty_ns 332 drivers/pwm/pwm-samsung.c duty_ns, period_ns, period); duty_ns 347 drivers/pwm/pwm-samsung.c tcmp = duty_ns / tin_ns; duty_ns 379 drivers/pwm/pwm-samsung.c chan->duty_ns = duty_ns; duty_ns 385 drivers/pwm/pwm-samsung.c int duty_ns, int period_ns) duty_ns 387 drivers/pwm/pwm-samsung.c return __pwm_samsung_config(chip, pwm, duty_ns, period_ns, false); duty_ns 619 drivers/pwm/pwm-samsung.c __pwm_samsung_config(chip, pwm, chan->duty_ns, duty_ns 78 drivers/pwm/pwm-spear.c int duty_ns, int period_ns) duty_ns 101 drivers/pwm/pwm-spear.c val = clk_rate * duty_ns; duty_ns 119 drivers/pwm/pwm-sprd.c int duty_ns, int period_ns) duty_ns 135 drivers/pwm/pwm-sprd.c duty = duty_ns * SPRD_PWM_MOD_MAX / period_ns; duty_ns 164 drivers/pwm/pwm-sti.c int duty_ns, int period_ns) duty_ns 227 drivers/pwm/pwm-sti.c value = cdata->max_pwm_cnt * duty_ns / period_ns; duty_ns 239 drivers/pwm/pwm-sti.c prescale, period_ns, duty_ns, value); duty_ns 320 drivers/pwm/pwm-stm32.c int duty_ns, int period_ns) duty_ns 362 drivers/pwm/pwm-stm32.c dty = prd * duty_ns; duty_ns 100 drivers/pwm/pwm-stmpe.c int duty_ns, int period_ns) duty_ns 153 drivers/pwm/pwm-stmpe.c pwm->hwpwm, duty_ns, period_ns); duty_ns 155 drivers/pwm/pwm-stmpe.c if (duty_ns == 0) { duty_ns 163 drivers/pwm/pwm-stmpe.c } else if (duty_ns == period_ns) { duty_ns 186 drivers/pwm/pwm-stmpe.c duty = duty_ns * 256; duty_ns 67 drivers/pwm/pwm-tegra.c int duty_ns, int period_ns) duty_ns 70 drivers/pwm/pwm-tegra.c unsigned long long c = duty_ns, hz; duty_ns 51 drivers/pwm/pwm-tiecap.c int duty_ns, int period_ns) duty_ns 71 drivers/pwm/pwm-tiecap.c c = c * duty_ns; duty_ns 219 drivers/pwm/pwm-tiehrpwm.c int duty_ns, int period_ns) duty_ns 240 drivers/pwm/pwm-tiehrpwm.c c = c * duty_ns; duty_ns 59 drivers/pwm/pwm-twl-led.c int duty_ns, int period_ns) duty_ns 61 drivers/pwm/pwm-twl-led.c int duty_cycle = DIV_ROUND_UP(duty_ns * TWL4030_LED_MAX, period_ns) + 1; duty_ns 141 drivers/pwm/pwm-twl-led.c int duty_ns, int period_ns) duty_ns 143 drivers/pwm/pwm-twl-led.c int duty_cycle = (duty_ns * TWL6030_LED_MAX) / period_ns; duty_ns 61 drivers/pwm/pwm-twl.c int duty_ns, int period_ns) duty_ns 63 drivers/pwm/pwm-twl.c int duty_cycle = DIV_ROUND_UP(duty_ns * TWL_PWM_MAX, period_ns) + 1; duty_ns 73 drivers/pwm/pwm-vt8500.c int duty_ns, int period_ns) duty_ns 104 drivers/pwm/pwm-vt8500.c c = (unsigned long long)pv * duty_ns; duty_ns 98 drivers/pwm/pwm-zx.c unsigned int duty_ns, unsigned int period_ns) duty_ns 125 drivers/pwm/pwm-zx.c c *= duty_ns; duty_ns 208 drivers/staging/greybus/pwm.c int duty_ns, int period_ns) duty_ns 212 drivers/staging/greybus/pwm.c return gb_pwm_config_operation(pwmc, pwm->hwpwm, duty_ns, period_ns); duty_ns 272 include/linux/pwm.h int duty_ns, int period_ns); duty_ns 330 include/linux/pwm.h static inline int pwm_config(struct pwm_device *pwm, int duty_ns, duty_ns 338 include/linux/pwm.h if (duty_ns < 0 || period_ns < 0) duty_ns 342 include/linux/pwm.h if (state.duty_cycle == duty_ns && state.period == period_ns) duty_ns 345 include/linux/pwm.h state.duty_cycle = duty_ns; duty_ns 440 include/linux/pwm.h static inline int pwm_config(struct pwm_device *pwm, int duty_ns,