Searched refs:duty_cycle (Results 51 - 75 of 116) sorted by relevance

12345

/linux-master/drivers/pwm/
H A Dpwm-lpss.c175 pwm_lpss_prepare(lpwm, pwm, state->duty_cycle, state->period);
233 state->duty_cycle = on_time_div;
H A Dpwm-keembay.c112 state->duty_cycle = DIV_ROUND_UP_ULL(high, clk_rate);
154 div = clk_rate * state->duty_cycle;
H A Dpwm-atmel-tcb.c344 int duty_cycle, period; local
353 duty_cycle = state->duty_cycle < INT_MAX ? state->duty_cycle : INT_MAX;
355 ret = atmel_tcb_pwm_config(chip, pwm, duty_cycle, period);
H A Dpwm-mxs.c86 c *= state->duty_cycle;
H A Dpwm-lpc32xx.c107 err = lpc32xx_pwm_config(chip, pwm, state->duty_cycle, state->period);
H A Dpwm-ep93xx.c120 c *= state->duty_cycle;
H A Dpwm-imx1.c139 err = pwm_imx1_config(chip, pwm, state->duty_cycle, state->period);
H A Dpwm-sti.c354 result->duty_cycle = 0;
368 result->duty_cycle = high * NSEC_PER_SEC;
369 result->duty_cycle /= effective_ticks;
409 err = sti_pwm_config(chip, pwm, state->duty_cycle, state->period);
H A Dpwm-mtk-disp.c133 high_width = mul_u64_u64_div_u64(state->duty_cycle, rate, div);
217 state->duty_cycle = DIV64_U64_ROUND_UP(high_width * (clk_div + 1) * NSEC_PER_SEC,
H A Dpwm-pca9685.c414 duty = PCA9685_COUNTER_RANGE * state->duty_cycle;
463 state->duty_cycle = 0;
470 state->duty_cycle = DIV_ROUND_DOWN_ULL(duty * state->period, PCA9685_COUNTER_RANGE);
H A Dpwm-stm32.c142 * contains period + duty_cycle. So, subtract period.
298 result->duty_cycle = DIV_ROUND_UP_ULL(dty, rate);
456 state->duty_cycle, state->period);
514 state->duty_cycle = DIV_ROUND_UP_ULL(dty, rate);
H A Dpwm-rockchip.c86 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate);
121 div = clk_rate * state->duty_cycle;
H A Dpwm-atmel.c88 * active because otherwise pmw_config(duty_cycle=0); pwm_disable();
230 unsigned long long cycles = state->duty_cycle;
376 /* Wait for an updated duty_cycle queued in hardware */
383 state->duty_cycle = DIV64_U64_ROUND_UP(tmp, rate);
/linux-master/drivers/leds/
H A Dleds-pwm.c55 led_dat->pwmstate.duty_cycle = duty;
114 brightness *= led_data->pwmstate.duty_cycle;
/linux-master/drivers/hwmon/
H A Daspeed-g6-pwm-tach.c25 * Use to determine whether duty_cycle bigger than 0.
31 * - Enabled changing when the duty_cycle bigger than 0% and less than 100%.
32 * - Polarity changing when the duty_cycle bigger than 0% and less than 100%.
178 state->duty_cycle = DIV_ROUND_UP_ULL(dividend, priv->clk_rate);
180 state->duty_cycle = clk_en ? state->period : 0;
197 dev_dbg(pwmchip_parent(chip), "expect period: %lldns, duty_cycle: %lldns",
198 expect_period, state->duty_cycle);
222 /* duty_pt = duty_cycle * (PERIOD + 1) / period */
223 duty_pt = div64_u64(state->duty_cycle * priv->clk_rate,
225 dev_dbg(pwmchip_parent(chip), "duty_cycle
[all...]
H A Dpwm-fan.c184 state->duty_cycle = 0;
210 state->duty_cycle = DIV_ROUND_UP(pwm * (period - 1), MAX_PWM);
277 state->duty_cycle = 0;
/linux-master/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dtestmode.c440 u8 duty_cycle = td->tx_duty_cycle; local
459 /* if all three params are set, duty_cycle will be ignored */
460 if (duty_cycle && tx_time && !ipg) {
461 ipg = tx_time * 100 / duty_cycle - tx_time;
462 } else if (duty_cycle && !tx_time && ipg) {
463 if (duty_cycle < 100)
464 tx_time = duty_cycle * ipg / (100 - duty_cycle);
/linux-master/sound/soc/starfive/
H A Djh7110_pwmdac.c82 enum JH7110_PWMDAC_DUTY_CYCLE_VAL duty_cycle; member in struct:jh7110_pwmdac_cfg
143 value |= (dev->cfg.duty_cycle & 0x3) << JH7110_PWMDAC_DUTY_CYCLE_SHIFT;
431 dev->cfg.duty_cycle = PWMDAC_CYCLE_CENTER;
/linux-master/drivers/net/wireless/realtek/rtw89/
H A Drtw8852b.h103 u8 duty_cycle; member in struct:rtw8852b_bb_pmac_info
/linux-master/drivers/clk/
H A Dclk-pwm.c54 duty->num = state.duty_cycle;
/linux-master/drivers/video/fbdev/core/
H A Dfbmon.c1059 * xres * duty_cycle
1061 * 100 - duty_cycle
1074 u32 c_val, m_val, duty_cycle, hblank; local
1080 duty_cycle = c_val - m_val;
1081 hblank = (xres * duty_cycle)/(100000 - duty_cycle);
1092 * xres * duty_cycle
1094 * 100 - duty_cycle
1107 u32 duty_cycle, h_period, hblank; local
1120 duty_cycle
[all...]
/linux-master/drivers/media/i2c/
H A Dir-kbd-i2c.c542 ir->duty_cycle * XTAL_FREQ / 1000, ir->carrier);
544 (100 - ir->duty_cycle) * XTAL_FREQ / 1000, ir->carrier);
751 static int zilog_tx_duty_cycle(struct rc_dev *dev, u32 duty_cycle) argument
755 ir->duty_cycle = duty_cycle;
944 ir->duty_cycle = 40;
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dgpio.c435 sc->btcoex.duty_cycle = ATH_BTCOEX_DEF_DUTY_CYCLE;
472 ATH_DUMP_BTCOEX("Duty Cycle", btcoex->duty_cycle);
505 ATH_DUMP_BTCOEX("Duty Cycle", btcoex->duty_cycle);
/linux-master/drivers/input/misc/
H A Dpwm-vibra.c67 state.duty_cycle = vibrator->direction_duty_cycle;
/linux-master/drivers/leds/rgb/
H A Dleds-pwm-multicolor.c52 priv->leds[i].state.duty_cycle = duty;

Completed in 298 milliseconds

12345