Lines Matching refs:period
42 unsigned long period; member
81 tmp = readl_relaxed(pc->base + pc->data->regs.period); in rockchip_pwm_get_state()
83 state->period = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate); in rockchip_pwm_get_state()
105 unsigned long period, duty; in rockchip_pwm_config() local
116 div = clk_rate * state->period; in rockchip_pwm_config()
117 period = DIV_ROUND_CLOSEST_ULL(div, in rockchip_pwm_config()
133 writel(period, pc->base + pc->data->regs.period); in rockchip_pwm_config()
235 .period = 0x08,
248 .period = 0x04,
262 .period = 0x04,
276 .period = 0x04,