Home
last modified time | relevance | path

Searched refs:reg_ctl (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/clk/nuvoton/
H A Dclk-ma35d1-pll.c99 static unsigned long ma35d1_calc_pll_freq(u8 mode, u32 *reg_ctl, unsigned long parent_rate) in ma35d1_calc_pll_freq() argument
104 if (reg_ctl[1] & PLL_CTL1_BP) in ma35d1_calc_pll_freq()
107 n = FIELD_GET(PLL_CTL0_FBDIV, reg_ctl[0]); in ma35d1_calc_pll_freq()
108 m = FIELD_GET(PLL_CTL0_INDIV, reg_ctl[0]); in ma35d1_calc_pll_freq()
109 p = FIELD_GET(PLL_CTL1_OUTDIV, reg_ctl[1]); in ma35d1_calc_pll_freq()
115 x = FIELD_GET(PLL_CTL1_FRAC, reg_ctl[1]); in ma35d1_calc_pll_freq()
124 unsigned long parent_rate, u32 *reg_ctl, in ma35d1_pll_find_closest() argument
169 reg_ctl[0] = FIELD_PREP(PLL_CTL0_INDIV, m) | in ma35d1_pll_find_closest()
171 reg_ctl[1] = FIELD_PREP(PLL_CTL1_OUTDIV, p); in ma35d1_pll_find_closest()
189 u32 reg_ctl[3] = { 0 }; in ma35d1_clk_pll_set_rate() local
[all …]
/linux/drivers/clocksource/
H A Dtimer-econet-en751221.c35 static inline void __iomem *reg_ctl(u32 timer_n) in reg_ctl() function
62 return ioread32(reg_ctl(cpu_id)) & ctl_bit_pending(cpu_id); in cevt_is_pending()
103 reg = ioread32(reg_ctl(cpu)) | ctl_bit_enabled(cpu); in cevt_init_cpu()
104 iowrite32(reg, reg_ctl(cpu)); in cevt_init_cpu()