Home
last modified time | relevance | path

Searched refs:duty (Results 1 – 25 of 62) sorted by relevance

123

/freebsd/usr.sbin/pwm/
H A Dpwm.c77 u_int period, duty; in main() local
87 period = duty = -1; in main()
121 duty = strtoul(optarg, &percent, 10); in main()
123 if (duty > 100) { in main()
181 state.duty, in main()
197 state.duty = (uint64_t)state.period * duty / 100; in main()
199 state.duty = duty; in main()
/freebsd/sys/dev/pwm/
H A Dpwm_backlight.c71 uint64_t duty; member
133 sc->channel->duty = sc->channel->period * sc->levels[sc->default_level] / 100; in pwm_backlight_attach()
146 (unsigned int *)&sc->channel->duty); in pwm_backlight_attach()
147 if (sc->channel->duty > sc->channel->period) in pwm_backlight_attach()
148 sc->channel->duty = sc->channel->period; in pwm_backlight_attach()
158 sc->channel->period, sc->channel->duty); in pwm_backlight_attach()
163 sc->channel->period / sc->channel->duty); in pwm_backlight_attach()
224 sc->channel->duty = sc->channel->period * in pwm_backlight_update_status()
229 sc->channel->duty = sc->channel->period * in pwm_backlight_update_status()
234 sc->channel->period, sc->channel->duty); in pwm_backlight_update_status()
[all …]
H A Dpwmbus_if.m52 # the duty (active number of cycle in ns)
58 u_int duty;
63 # the duty (active number of cycle in ns)
69 u_int *duty;
H A Dpwmbus.c206 pwmbus_channel_config(device_t dev, u_int chan, u_int period, u_int duty) in pwmbus_channel_config() argument
208 return (PWMBUS_CHANNEL_CONFIG(device_get_parent(dev), chan, period, duty)); in pwmbus_channel_config()
212 pwmbus_channel_get_config(device_t dev, u_int chan, u_int *period, u_int *duty) in pwmbus_channel_get_config() argument
214 return (PWMBUS_CHANNEL_GET_CONFIG(device_get_parent(dev), chan, period, duty)); in pwmbus_channel_get_config()
H A Dpwmc.c80 state.period, state.duty); in pwm_ioctl()
95 &state.period, &state.duty); in pwm_ioctl()
H A Dpwmc.h35 u_int duty; member
H A Dofw_pwm.h37 uint64_t duty; member
/freebsd/sys/dev/pwm/controller/rockchip/
H A Drk_pwm.c115 unsigned int duty; member
209 sc->duty = NS_PER_SEC / in rk_pwm_attach()
264 rk_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) in rk_pwm_channel_config() argument
281 duty_freq = NS_PER_SEC / duty; in rk_pwm_channel_config()
295 duty_out = (sc->clk_freq * duty) / NS_PER_SEC; in rk_pwm_channel_config()
320 sc->duty = duty; in rk_pwm_channel_config()
326 rk_pwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_int *duty) in rk_pwm_channel_get_config() argument
333 *duty = sc->duty; in rk_pwm_channel_get_config()
/freebsd/sys/dev/pwm/controller/allwinner/
H A Daw_pwm.c85 unsigned int duty; member
180 sc->duty = NS_PER_SEC / in aw_pwm_attach()
243 aw_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) in aw_pwm_channel_config() argument
271 duty_freq = NS_PER_SEC / duty; in aw_pwm_channel_config()
317 sc->duty = duty; in aw_pwm_channel_config()
323 aw_pwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_int *duty) in aw_pwm_channel_get_config() argument
330 *duty = sc->duty; in aw_pwm_channel_get_config()
/freebsd/sys/contrib/device-tree/Bindings/input/
H A Dpwm-vibrator.yaml14 strength increases based on the duty cycle of the enable PWM channel
15 (100% duty cycle meaning strongest vibration, 0% meaning no vibration).
18 driven at fixed duty cycle. If available this is can be used to increase
39 direction-duty-cycle-ns:
58 direction-duty-cycle-ns = <1000000000>;
H A Dpwm-vibrator.txt4 strength increases based on the duty cycle of the enable PWM channel
5 (100% duty cycle meaning strongest vibration, 0% meaning no vibration).
8 driven at fixed duty cycle. If available this is can be used to increase
18 - direction-duty-cycle-ns: Duty cycle of the direction PWM channel in
64 direction-duty-cycle-ns = <1000000000>;
/freebsd/sys/contrib/device-tree/Bindings/regulator/
H A Dpwm-regulator.txt7 predefined voltage <=> duty-cycle values must be
10 Intermediary duty-cycle values which would normally
19 appropriate duty-cycle values. This allows for a much
22 assumption that a %50 duty-cycle value will cause the
35 Second cell is duty-cycle in percent (%)
38 - pwm-dutycycle-unit: Integer value encoding the duty cycle unit. If not
71 * Inverted PWM logic, and the duty cycle range is limited
H A Dpwm-regulator.yaml19 duty-cycle values must be provided via DT. Limitations are that the
21 Intermediary duty-cycle values which would normally allow finer grained
29 appropriate duty-cycle values. This allows for a much more fine grained
31 make an assumption that a %50 duty-cycle value will cause the regulator
54 - description: duty-cycle in percent (%)
63 Integer value encoding the duty cycle unit. If not
104 * Inverted PWM logic, and the duty cycle range is limited
/freebsd/sys/arm/ti/am335x/
H A Dam335x_ehrpwm.c172 u_int duty; /* on duration, in ns */ member
200 am335x_ehrpwm_cfg_duty(struct am335x_ehrpwm_softc *sc, u_int chan, u_int duty) in am335x_ehrpwm_cfg_duty() argument
204 if (duty == 0) in am335x_ehrpwm_cfg_duty()
207 tbcmp = max(1, duty / sc->sc_clktick); in am335x_ehrpwm_cfg_duty()
209 sc->sc_channels[chan].duty = tbcmp * sc->sc_clktick; in am335x_ehrpwm_cfg_duty()
319 am335x_ehrpwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) in am335x_ehrpwm_channel_config() argument
332 am335x_ehrpwm_cfg_duty(sc, channel, duty); in am335x_ehrpwm_channel_config()
340 u_int *period, u_int *duty) in am335x_ehrpwm_channel_get_config() argument
349 *duty = sc->sc_channels[channel].duty; in am335x_ehrpwm_channel_get_config()
H A Dam335x_ecap.c106 am335x_pwm_config_ecap(int unit, int period, int duty) in am335x_pwm_config_ecap() argument
116 if (duty > period) in am335x_pwm_config_ecap()
133 ECAP_WRITE4(sc, ECAP_CAP4, duty); in am335x_pwm_config_ecap()
H A Dam335x_pwm.h31 int am335x_pwm_config_ecap(int unit, int period, int duty);
/freebsd/sys/contrib/device-tree/Bindings/leds/backlight/
H A Dpwm-backlight.txt19 0 will do. The actual brightness level (PWM duty cycle)
20 will be interpolated from these values. 0 means a 0% duty
22 represents a 100% duty cycle (brightest).
27 resolution pwm duty cycle can be used without
/freebsd/sys/contrib/device-tree/Bindings/leds/irled/
H A Dspi-ir-led.txt11 - duty-cycle: 8 bit value that represents the percentage of one period
28 duty-cycle = /bits/ 8 <60>;
H A Dir-spi-led.yaml26 duty-cycle:
55 duty-cycle = /bits/ 8 <60>;
/freebsd/sys/contrib/device-tree/Bindings/hwmon/
H A Dg762.txt15 - "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty)
16 and 1 (negative duty).
H A Dadt7475.yaml45 the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm
46 uses a logic high output for 100% duty cycle.
/freebsd/sys/contrib/device-tree/Bindings/pwm/
H A Dmicrochip,corepwm.yaml45 control the duty cycle for channel x have a second "shadow"/buffer reg synthesised.
57 a minimum period pulse train whose High/Low average is that of the chosen duty
H A Dpwm-zx.txt9 calculating period and duty cycles.
H A Dclk-pwm.yaml15 It's often possible to control duty-cycle of such clocks which makes them
/freebsd/sys/contrib/device-tree/Bindings/pinctrl/
H A Dpinctrl-mt6797.txt53 duty cycle when asserted (high pulse width adjustment). Valid arguments
56 duty cycle when asserted (high pulse width adjustment). Valid arguments

123