Lines Matching refs:duty_cycle
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 = %lld, duty_pt = %d\n",
226 state->duty_cycle, duty_pt);
230 * fine-grained resolution for duty_cycle at the expense of a