Searched refs:duty_ns (Results 1 – 11 of 11) sorted by relevance
/external/u-boot/drivers/pwm/ |
D | sandbox_pwm.c | 19 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()
|
D | rk_pwm.c | 39 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()
|
D | exynos_pwm.c | 19 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()
|
D | sunxi_pwm.c | 66 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()
|
D | pwm-imx-util.c | 48 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()
|
D | pwm-uclass.c | 22 uint duty_ns) in pwm_set_config() argument 29 return ops->set_config(dev, channel, period_ns, duty_ns); in pwm_set_config()
|
D | pwm-imx.c | 27 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()
|
D | tegra_pwm.c | 18 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()
|
D | pwm-imx-util.h | 13 int pwm_imx_get_parms(int period_ns, int duty_ns, unsigned long *period_c,
|
/external/u-boot/include/ |
D | pwm.h | 25 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/ |
D | pwm.c | 58 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()
|