Home
last modified time | relevance | path

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

/external/u-boot/drivers/pwm/
Dsandbox_pwm.c19 uint duty_ns; member
29 uint period_ns, uint duty_ns) in sandbox_pwm_set_config() argument
38 chan->duty_ns = duty_ns; in sandbox_pwm_set_config()
Drk_pwm.c39 uint duty_ns) in rk_pwm_set_config() argument
45 debug("%s: period_ns=%u, duty_ns=%u\n", __func__, period_ns, duty_ns); in rk_pwm_set_config()
52 duty = lldiv((uint64_t)(priv->freq / 1000) * duty_ns, 1000000); in rk_pwm_set_config()
Dexynos_pwm.c19 uint period_ns, uint duty_ns) in exynos_pwm_set_config() argument
31 __func__, dev->name, channel, period_ns, duty_ns); in exynos_pwm_set_config()
43 tcmp = duty_ns / rate_ns; in exynos_pwm_set_config()
Dsunxi_pwm.c66 uint period_ns, uint duty_ns) in sunxi_pwm_set_config() argument
75 debug("%s: period_ns=%u, duty_ns=%u\n", __func__, period_ns, duty_ns); in sunxi_pwm_set_config()
92 duty = lldiv(scaled_freq * duty_ns, nsecs_per_sec); in sunxi_pwm_set_config()
Dpwm-imx-util.c48 int pwm_imx_get_parms(int period_ns, int duty_ns, unsigned long *period_c, in pwm_imx_get_parms() argument
66 c = *period_c * (unsigned long long)duty_ns; in pwm_imx_get_parms()
Dpwm-uclass.c22 uint duty_ns) in pwm_set_config() argument
29 return ops->set_config(dev, channel, period_ns, duty_ns); in pwm_set_config()
Dpwm-imx.c27 int pwm_config(int pwm_id, int duty_ns, int period_ns) in pwm_config() argument
36 pwm_imx_get_parms(period_ns, duty_ns, &period_cycles, &duty_cycles, in pwm_config()
Dtegra_pwm.c18 uint period_ns, uint duty_ns) in tegra_pwm_set_config() argument
31 pulse_width = duty_ns * 255 / period_ns; in tegra_pwm_set_config()
Dpwm-imx-util.h13 int pwm_imx_get_parms(int period_ns, int duty_ns, unsigned long *period_c,
/external/u-boot/include/
Dpwm.h25 uint duty_ns);
59 uint duty_ns);
84 int pwm_config (int pwm_id, int duty_ns, int period_ns);
/external/u-boot/arch/arm/cpu/armv7/s5p-common/
Dpwm.c58 int pwm_config(int pwm_id, int duty_ns, int period_ns) in pwm_config() argument
75 if (period_ns > NS_IN_SEC || duty_ns > NS_IN_SEC || period_ns == 0) in pwm_config()
78 if (duty_ns > period_ns) in pwm_config()
90 tcmp = duty_ns / tin_ns; in pwm_config()