Home
last modified time | relevance | path

Searched full:duty (Results 1 – 25 of 118) sorted by relevance

12345

/freebsd-src/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
33 - voltage-table: Voltage and Duty-Cycle table consisting of 2 cells
35 Second cell is duty-cycle in percent (%)
38 - pwm-dutycycle-unit: Integer value encoding the duty cycle unit. If not
46 Duty cycle values are expressed in pwm-dutycycle-unit.
71 * Inverted PWM logic, and the duty cycle range is limited
85 /* Voltage Duty-Cycle */
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
49 description: Voltage and Duty-Cycle table.
54 - description: duty-cycle in percent (%)
63 Integer value encoding the duty cycle unit. If not
75 Duty cycle values are expressed in pwm-dutycycle-unit.
104 * Inverted PWM logic, and the duty cycle range is limited
119 /* Voltage Duty-Cycle */
/freebsd-src/share/man/man9/
H A Dpwmbus.941 .Fn PWMBUS_CHANNEL_CONFIG "device_t bus" "u_int channel" "u_int period" "u_int duty"
47 .Fn PWMBUS_CHANNEL_GET_CONFIG "device_t bus" "u_int channel" "u_int *period" "u_int *duty"
64 .Va duty
71 In such cases, changing the period or duty cycle of any one channel may affect
77 .It Fn PWMBUS_CHANNEL_CONFIG "device_t bus" "u_int channel" "u_int period" "u_int duty"
78 Configure the period and duty (in nanoseconds) in the PWM controller on the bus
90 .It Fn PWMBUS_CHANNEL_GET_CONFIG "device_t bus" "u_int channel" "u_int *period" "u_int *duty"
91 Get the current configuration of the period and duty for the specified channel.
/freebsd-src/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()
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 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.c196 pwmbus_channel_config(device_t dev, u_int chan, u_int period, u_int duty) in pwmbus_detach()
198 return (PWMBUS_CHANNEL_CONFIG(device_get_parent(dev), chan, period, duty)); in pwmbus_detach()
202 pwmbus_channel_get_config(device_t dev, u_int chan, u_int *period, u_int *duty)
204 return (PWMBUS_CHANNEL_GET_CONFIG(device_get_parent(dev), chan, period, duty));
206 pwmbus_channel_config(device_t dev,u_int chan,u_int period,u_int duty) pwmbus_channel_config() argument
212 pwmbus_channel_get_config(device_t dev,u_int chan,u_int * period,u_int * duty) pwmbus_channel_get_config() argument
/freebsd-src/usr.sbin/pwm/
H A Dpwm.c68 fprintf(stderr, "\tpwm [-f dev] [-D | -E] [-I] [-p period] [-d duty[%%]]\n"); in usage()
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()
125 "Invalid duty percentage\n"); in main()
181 state.duty, in main()
197 state.duty = (uint64_t)state.period * duty / 100; in main()
199 state.duty = duty; in main()
H A Dpwm.838 .Op Fl d Ar duty
75 .It Fl d Ar duty
76 Configure the duty cycle (in nanoseconds or percentage) of the PWM channel.
77 Duty is the portion of the
95 Configure a 50000 ns period and a 25000 ns duty cycle
101 Configure a 50% duty cycle on the device and channel which
/freebsd-src/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:
41 Duty cycle of the direction PWM channel in nanoseconds,
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-src/sys/dev/pwm/controller/allwinner/
H A Daw_pwm.c85 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)
266 * duty are near 1 second. In some cases period_freq and duty_freq can in aw_pwm_channel_config()
267 * be equal even if the period and the duty are significantly different. in aw_pwm_channel_config()
269 duty_freq = NS_PER_SEC / duty; in aw_pwm_channel_config()
271 device_printf(sc->dev, "duty < period\n"); 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)
243 aw_pwm_channel_config(device_t dev,u_int channel,u_int period,u_int duty) aw_pwm_channel_config() argument
323 aw_pwm_channel_get_config(device_t dev,u_int channel,u_int * period,u_int * duty) aw_pwm_channel_get_config() argument
[all...]
/freebsd-src/sys/dev/pwm/controller/rockchip/
H A Drk_pwm.c115 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()
282 duty_freq = NS_PER_SEC / duty; in rk_pwm_channel_config()
284 device_printf(sc->dev, "duty < period\n"); in rk_pwm_channel_config()
294 /* XXX Expand API to allow for 64 bit period/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()
264 rk_pwm_channel_config(device_t dev,u_int channel,u_int period,u_int duty) rk_pwm_channel_config() argument
326 rk_pwm_channel_get_config(device_t dev,u_int channel,u_int * period,u_int * duty) rk_pwm_channel_get_config() argument
[all...]
/freebsd-src/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-src/sys/arm/ti/am335x/
H A Dam335x_ehrpwm.c53 * variable-duty-cycle PWM output.
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()
300 * registers (duty values), just zero them out. in am335x_ehrpwm_cfg_period()
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
[all...]
H A Dam335x_ecap.c103 * API function to set period/duty cycles for ECAPx
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()
/freebsd-src/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-src/sys/contrib/device-tree/src/arm64/allwinner/
H A Dsun50i-a64-pinephone-1.1.dts17 * 1.0, and the lowest PWM duty cycle that doesn't lead to backlight
18 * being off is around 20%. Duty cycle for the lowest brightness level
H A Dsun50i-a64-pinephone-1.2.dts22 * and the lowest PWM duty cycle that doesn't lead to backlight being off
23 * is around 10%. Duty cycle for the lowest brightness level also varries
/freebsd-src/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.
71 - 3: The default PWM duty cycle in nanoseconds
129 /* PWMs at 22.5 kHz frequency, 50% duty*/
/freebsd-src/share/man/man4/
H A Dpwmc.459 duty cycle of any one channel may affect other channels within the
102 u_int duty;
110 .It Va duty
/freebsd-src/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
/freebsd-src/sys/dev/acpica/
H A Dacpi_throttle.c137 /* Check for a valid duty width and parent CPU type. */ in acpi_throttle_identify()
172 * the chipset modulating the STPCLK# pin based on the duty cycle. in acpi_throttle_probe()
249 /* Validate the duty offset/width. */ in acpi_throttle_evaluate()
326 * See specification changes #13 ("Manual Throttle Duty Cycle") in acpi_throttle_quirks()
375 * Validate requested state converts to a duty cycle that is an in acpi_thr_set()
/freebsd-src/sys/dev/videomode/
H A Dvesagtf.c170 /* C' and M' are part of the Blanking Duty Cycle computation */
479 /* 18. Find the ideal blanking duty cycle from the blanking duty cycle in vesagtf_mode_params()
482 * [IDEAL DUTY CYCLE] = [C'] - ([M']*[H PERIOD]/1000) in vesagtf_mode_params()
492 * than the duty cycle used by VESA. But again, this reduces error in vesagtf_mode_params()
500 print_value(18, "[IDEAL DUTY CYCLE]", ideal_duty_cycle); in vesagtf_mode_params()
507 * [IDEAL DUTY CYCLE] / in vesagtf_mode_params()
508 * (100-[IDEAL DUTY CYCLE]) / in vesagtf_mode_params()

12345