Home
last modified time | relevance | path

Searched refs:ps_pulse_width (Results 1 – 12 of 12) sorted by relevance

/openbsd/sys/dev/fdt/
H A Dqcpwm.c177 ps->ps_pulse_width = dcycles; in qcpwm_get_state()
196 dcycles = ps->ps_pulse_width; in qcpwm_set_state()
223 ps->ps_pulse_width = (dcycles * ps->ps_period) / pcycles; in qcpwm_set_state()
224 if (ps->ps_pulse_width > ps->ps_period) in qcpwm_set_state()
225 ps->ps_pulse_width = ps->ps_period; in qcpwm_set_state()
228 dcycles = ps->ps_pulse_width; in qcpwm_set_state()
229 pwmval = ((uint64_t)ps->ps_pulse_width * qcpwm_clk_rates[clksel]) / in qcpwm_set_state()
H A Dpwmleds.c121 ps.ps_pulse_width = 0; in pwmleds_activate()
165 ((uint64_t)ps.ps_pulse_width * kbl->max) / ps.ps_period : 0; in pwmleds_get_kbd_backlight()
183 ps.ps_pulse_width = in pwmleds_set_kbd_backlight()
185 ps.ps_enabled = (ps.ps_pulse_width > 0); in pwmleds_set_kbd_backlight()
H A Dpwmbl.c141 ps.ps_pulse_width = 0; in pwmbl_activate()
159 *level = (ps.ps_pulse_width * sc->sc_max_level) / ps.ps_period; in pwmbl_get_brightness()
197 ps.ps_pulse_width = (ps.ps_period * level) / sc->sc_max_level; in pwmbl_set_brightness()
H A Dpwmreg.c118 x = (ps.ps_pulse_width * sc->sc_dutycycle_unit) / ps.ps_period; in pwmreg_get_voltage()
141 ps.ps_pulse_width = (y * ps.ps_period) / sc->sc_dutycycle_unit; in pwmreg_set_voltage()
H A Drkpwm.c140 ps->ps_pulse_width = (NS_PER_S * act_cycles) / rate; in rkpwm_get_state()
164 act_cycles = (rate * ps->ps_pulse_width) / NS_PER_S; in rkpwm_set_state()
H A Dsxipwm.c173 ps->ps_pulse_width = (NS_PER_S * act_cycles) / rate; in sxipwm_get_state()
206 act_cycles = (rate * ps->ps_pulse_width) / NS_PER_S; in sxipwm_set_state()
H A Dimxpwm.c161 ps->ps_pulse_width = dcycles; in imxpwm_get_state()
182 dcycles = (pcycles * ps->ps_pulse_width) / ps->ps_period; in imxpwm_set_state()
H A Damlpwm.c168 ps->ps_pulse_width = cycles_to_ns(sc->sc_clkin[idx], clk_div, high); in amlpwm_get_state()
202 high = ns_to_cycles(sc->sc_clkin[idx], clk_div, ps->ps_pulse_width); in amlpwm_set_state()
H A Dpwmfan.c129 ps.ps_pulse_width = (ps.ps_period * level) / 255; in pwmfan_set_cooling_level()
/openbsd/sys/arch/arm64/dev/
H A Daplpwm.c124 ps->ps_pulse_width = (on_cycles * NS_PER_S) / sc->sc_clkin; in aplpwm_get_state()
138 if (ps->ps_pulse_width > ps->ps_period) in aplpwm_set_state()
142 on_cycles = (ps->ps_pulse_width * sc->sc_clkin) / NS_PER_S; in aplpwm_set_state()
/openbsd/sys/dev/ofw/
H A Dofw_misc.h118 uint32_t ps_pulse_width; member
H A Dofw_misc.c509 ps->ps_pulse_width = 0; in pwm_init_state()