/linux-master/drivers/pwm/ |
H A D | pwm-lpss.c | 175 pwm_lpss_prepare(lpwm, pwm, state->duty_cycle, state->period); 233 state->duty_cycle = on_time_div;
|
H A D | pwm-keembay.c | 112 state->duty_cycle = DIV_ROUND_UP_ULL(high, clk_rate); 154 div = clk_rate * state->duty_cycle;
|
H A D | pwm-atmel-tcb.c | 344 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 D | pwm-mxs.c | 86 c *= state->duty_cycle;
|
H A D | pwm-lpc32xx.c | 107 err = lpc32xx_pwm_config(chip, pwm, state->duty_cycle, state->period);
|
H A D | pwm-ep93xx.c | 120 c *= state->duty_cycle;
|
H A D | pwm-imx1.c | 139 err = pwm_imx1_config(chip, pwm, state->duty_cycle, state->period);
|
H A D | pwm-sti.c | 354 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 D | pwm-mtk-disp.c | 133 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 D | pwm-pca9685.c | 414 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 D | pwm-stm32.c | 142 * 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 D | pwm-rockchip.c | 86 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate); 121 div = clk_rate * state->duty_cycle;
|
H A D | pwm-atmel.c | 88 * 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 D | leds-pwm.c | 55 led_dat->pwmstate.duty_cycle = duty; 114 brightness *= led_data->pwmstate.duty_cycle;
|
/linux-master/drivers/hwmon/ |
H A D | aspeed-g6-pwm-tach.c | 25 * 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 D | pwm-fan.c | 184 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 D | testmode.c | 440 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 D | jh7110_pwmdac.c | 82 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 D | rtw8852b.h | 103 u8 duty_cycle; member in struct:rtw8852b_bb_pmac_info
|
/linux-master/drivers/clk/ |
H A D | clk-pwm.c | 54 duty->num = state.duty_cycle;
|
/linux-master/drivers/video/fbdev/core/ |
H A D | fbmon.c | 1059 * 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 D | ir-kbd-i2c.c | 542 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 D | gpio.c | 435 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 D | pwm-vibra.c | 67 state.duty_cycle = vibrator->direction_duty_cycle;
|
/linux-master/drivers/leds/rgb/ |
H A D | leds-pwm-multicolor.c | 52 priv->leds[i].state.duty_cycle = duty;
|