/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() 139 device_printf(dev, "Default duty cycle: %ju\n", (uintmax_t)sc->channel->duty); 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() 151 device_printf(dev, "Default duty cycle: %ju\n", (uintmax_t)sc->channel->duty); 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() [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 | 196 pwmbus_channel_config(device_t dev, u_int chan, u_int period, u_int duty) in pwmbus_channel_config() argument 198 return (PWMBUS_CHANNEL_CONFIG(device_get_parent(dev), chan, period, duty)); in pwmbus_channel_config() 202 pwmbus_channel_get_config(device_t dev, u_int chan, u_int *period, u_int *duty) in pwmbus_channel_get_config() argument 204 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() 265 rk_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) in rk_pwm_channel_config() argument 282 duty_freq = NS_PER_SEC / duty; in rk_pwm_channel_config() 296 duty_out = (sc->clk_freq * duty) / NS_PER_SEC; in rk_pwm_channel_config() 321 sc->duty = duty; in rk_pwm_channel_config() 327 rk_pwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_int *duty) in rk_pwm_channel_get_config() argument 334 *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() 241 aw_pwm_channel_config(device_t dev, u_int channel, u_int period, u_int duty) in aw_pwm_channel_config() argument 269 duty_freq = NS_PER_SEC / duty; in aw_pwm_channel_config() 315 sc->duty = duty; in aw_pwm_channel_config() 321 aw_pwm_channel_get_config(device_t dev, u_int channel, u_int *period, u_int *duty) in aw_pwm_channel_get_config() argument 328 *duty = sc->duty; in aw_pwm_channel_get_config()
|
/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
|
/freebsd/sys/contrib/device-tree/Bindings/input/ |
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/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>;
|
/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 | aspeed-pwm-tacho.txt | 42 - cooling-levels: PWM duty cycle values in a range from 0 to 255
|
H A D | npcm750-pwm-fan.txt | 47 - cooling-levels: PWM duty cycle values in a range from 0 to 255
|
/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
|
H A D | pinctrl-mt8183.txt | 56 duty cycle when asserted (high pulse width adjustment). Valid arguments 59 duty cycle when asserted (high pulse width adjustment). Valid arguments
|
/freebsd/sys/contrib/device-tree/Bindings/pwm/ |
H A D | pwm-zx.txt | 9 calculating period and duty cycles.
|
/freebsd/sys/contrib/device-tree/src/arm64/allwinner/ |
H A D | sun50i-a64-pinephone-1.1.dts | 17 * 1.0, and the lowest PWM duty cycle that doesn't lead to backlight
|
H A D | sun50i-a64-pinephone-1.2.dts | 22 * and the lowest PWM duty cycle that doesn't lead to backlight being off
|
/freebsd/sys/contrib/device-tree/Bindings/clock/ |
H A D | nvidia,tegra124-dfll.txt | 64 corresponding to a 1/33th increase in duty cycle. Eg the voltage for 2/33th 65 duty cycle would be: nvidia,pwm-min-microvolts +
|