| /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 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 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 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/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()
  | 
| /freebsd/share/man/man9/ | 
| H A D | pwmbus.9 | 41 .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/usr.sbin/pwm/ | 
| H A D | pwm.c | 68 	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 D | pwm.8 | 38 .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/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: 41       Duty cycle of the direction PWM channel in nanoseconds, 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/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() 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()  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 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)  in aw_pwm_channel_get_config()  argument 328 	*duty = sc->duty;  in aw_pwm_channel_get_config()
  | 
| /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
  | 
| H A D | pwm-backlight.yaml | 48       table. This way a high resolution pwm duty cycle can be used without
  | 
| /freebsd/sys/arm/ti/am335x/ | 
| H A D | am335x_ehrpwm.c | 53  * 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 D | am335x_ecap.c | 103  * 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/sys/contrib/device-tree/Bindings/hwmon/ | 
| 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. 71       - 3: The default PWM duty cycle in nanoseconds 129         /* PWMs at 22.5 kHz frequency, 50% duty*/
  | 
| H A D | g762.txt | 15  - "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty) 16 	       and 1 (negative duty).
  | 
| /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/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 18 	 * being off is around 20%. Duty cycle for the lowest brightness level
  | 
| H A D | sun50i-a64-pinephone-1.2.dts | 22 	 * 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/share/man/man4/ | 
| H A D | pwmc.4 | 59 duty cycle of any one channel may affect other channels within the 102 	u_int		duty; 110 .It Va duty
  | 
| /freebsd/sys/dev/videomode/ | 
| H A D | vesagtf.c | 170 /* 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()
  | 
| /freebsd/sys/dev/acpica/ | 
| H A D | acpi_throttle.c | 137 	/* 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()
  |