/freebsd/usr.sbin/pwm/ |
H A D | pwm.c | 77 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 D | pwm_backlight.c | 71 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 D | pwmbus_if.m | 52 # 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 D | pwmbus.c | 206 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 D | pwmc.c | 80 state.period, state.duty); in pwm_ioctl() 95 &state.period, &state.duty); in pwm_ioctl()
|
H A D | pwmc.h | 35 u_int duty; member
|
H A D | ofw_pwm.h | 37 uint64_t duty; member
|
/freebsd/sys/dev/pwm/controller/rockchip/ |
H A D | rk_pwm.c | 115 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 D | aw_pwm.c | 85 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 D | pwm-vibrator.yaml | 14 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 D | pwm-vibrator.txt | 4 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 D | pwm-regulator.txt | 7 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 D | pwm-regulator.yaml | 19 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 D | am335x_ehrpwm.c | 172 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 D | am335x_ecap.c | 106 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 D | am335x_pwm.h | 31 int am335x_pwm_config_ecap(int unit, int period, int duty);
|
/freebsd/sys/contrib/device-tree/Bindings/leds/backlight/ |
H A D | pwm-backlight.txt | 19 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 D | spi-ir-led.txt | 11 - duty-cycle: 8 bit value that represents the percentage of one period 28 duty-cycle = /bits/ 8 <60>;
|
H A D | ir-spi-led.yaml | 26 duty-cycle: 55 duty-cycle = /bits/ 8 <60>;
|
/freebsd/sys/contrib/device-tree/Bindings/hwmon/ |
H A D | g762.txt | 15 - "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty) 16 and 1 (negative duty).
|
H A D | adt7475.yaml | 45 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 D | microchip,corepwm.yaml | 45 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 D | pwm-zx.txt | 9 calculating period and duty cycles.
|
H A D | clk-pwm.yaml | 15 It's often possible to control duty-cycle of such clocks which makes them
|
/freebsd/sys/contrib/device-tree/Bindings/pinctrl/ |
H A D | pinctrl-mt6797.txt | 53 duty cycle when asserted (high pulse width adjustment). Valid arguments 56 duty cycle when asserted (high pulse width adjustment). Valid arguments
|