Lines Matching refs:divclk
212 static unsigned long clk_pwm_tdiv_bits(struct pwm_tdiv_clk *divclk) in clk_pwm_tdiv_bits() argument
214 return pwm_tdiv_div_bits(divclk->divisor); in clk_pwm_tdiv_bits()
217 static void clk_pwm_tdiv_update(struct pwm_tdiv_clk *divclk) in clk_pwm_tdiv_update() argument
220 unsigned long bits = clk_pwm_tdiv_bits(divclk); in clk_pwm_tdiv_update()
222 unsigned long shift = S3C2410_TCFG1_SHIFT(divclk->clk.id); in clk_pwm_tdiv_update()
236 struct pwm_tdiv_clk *divclk = to_tdiv(clk); in clk_pwm_tdiv_set_rate() local
250 divclk->divisor = divisor; in clk_pwm_tdiv_set_rate()
256 clk_pwm_tdiv_update(divclk); in clk_pwm_tdiv_set_rate()
312 struct pwm_tdiv_clk *divclk = &clk_timer_tdiv[id]; in clk_pwm_tdiv_register() local
318 divclk->clk.id = id; in clk_pwm_tdiv_register()
319 divclk->divisor = tcfg_to_divisor(tcfg1); in clk_pwm_tdiv_register()
321 return s3c24xx_register_clock(&divclk->clk); in clk_pwm_tdiv_register()