Lines Matching refs:period
15 * running period is completed. This way the hardware switches atomically
17 * - Disabling the hardware completes the currently running period and keeps
50 u32 period, duty_cycle, pwmc0;
58 * The biggest period the hardware can provide is
63 if (state->period > (0xffff << 3) * 1000)
64 period = (0xffff << 3) * 1000;
66 period = state->period;
68 if (state->duty_cycle > period)
69 duty_cycle = period;
78 period /= 1000;
81 if (!period)
87 * the smallest possible one. As period is at most 0xffff << 3, pwmc0 is
90 pwmc0 = fls(period >> 16);
94 period >>= pwmc0;
101 writel(period, priv->base + PIPGM_PCSR(pwm->hwpwm));
110 u32 period, duty, pwmc0, pwmc0_clk;
112 period = readl(priv->base + PIPGM_PCSR(pwm->hwpwm));
117 state->period = (period << pwmc0_clk) * NSEC_PER_USEC;