Lines Matching refs:mckr
35 u32 mckr; member
93 unsigned int mckr; in clk_master_div_recalc_rate() local
96 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_recalc_rate()
99 mckr &= layout->mask; in clk_master_div_recalc_rate()
101 div = (mckr >> MASTER_DIV_SHIFT) & MASTER_DIV_MASK; in clk_master_div_recalc_rate()
118 unsigned int mckr, div; in clk_master_div_save_context() local
121 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_save_context()
124 mckr &= master->layout->mask; in clk_master_div_save_context()
125 div = (mckr >> MASTER_DIV_SHIFT) & MASTER_DIV_MASK; in clk_master_div_save_context()
138 unsigned int mckr; in clk_master_div_restore_context() local
142 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_restore_context()
145 mckr &= master->layout->mask; in clk_master_div_restore_context()
146 div = (mckr >> MASTER_DIV_SHIFT) & MASTER_DIV_MASK; in clk_master_div_restore_context()
169 unsigned int i, mckr, tmp; in clk_master_div_set() local
188 ret = regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_set()
192 mckr &= master->layout->mask; in clk_master_div_set()
193 tmp = (mckr >> MASTER_DIV_SHIFT) & MASTER_DIV_MASK; in clk_master_div_set()
203 mckr &= ~(MASTER_DIV_MASK << MASTER_DIV_SHIFT); in clk_master_div_set()
204 mckr |= (div_index << MASTER_DIV_SHIFT); in clk_master_div_set()
205 ret = regmap_write(master->regmap, master->layout->offset, mckr); in clk_master_div_set()
255 unsigned int mckr, div, new_div = 0; in clk_master_div_notifier_fn() local
275 &mckr); in clk_master_div_notifier_fn()
281 mckr &= master_div->layout->mask; in clk_master_div_notifier_fn()
282 div = (mckr >> MASTER_DIV_SHIFT) & MASTER_DIV_MASK; in clk_master_div_notifier_fn()
296 &mckr); in clk_master_div_notifier_fn()
302 mckr &= master_div->layout->mask; in clk_master_div_notifier_fn()
303 div = (mckr >> MASTER_DIV_SHIFT) & MASTER_DIV_MASK; in clk_master_div_notifier_fn()
404 unsigned int mckr; in clk_master_pres_get_parent() local
407 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_pres_get_parent()
410 mckr &= master->layout->mask; in clk_master_pres_get_parent()
412 return mckr & AT91_PMC_CSS; in clk_master_pres_get_parent()
484 unsigned int mckr; in at91_clk_register_master_internal() local
512 regmap_read(master->regmap, master->layout->offset, &mckr); in at91_clk_register_master_internal()
515 mckr &= layout->mask; in at91_clk_register_master_internal()
516 mckr = (mckr >> MASTER_DIV_SHIFT) & MASTER_DIV_MASK; in at91_clk_register_master_internal()
517 master->div = characteristics->divisors[mckr]; in at91_clk_register_master_internal()