Lines Matching refs:pckr
18 #define PROG_PRES(layout, pckr) ((pckr >> layout->pres_shift) & layout->pres_mask) argument
35 unsigned int pckr; in clk_programmable_recalc_rate() local
38 regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr); in clk_programmable_recalc_rate()
41 rate = parent_rate / (PROG_PRES(layout, pckr) + 1); in clk_programmable_recalc_rate()
43 rate = parent_rate >> PROG_PRES(layout, pckr); in clk_programmable_recalc_rate()
106 unsigned int pckr = index; in clk_programmable_set_parent() local
115 pckr |= AT91_PMC_CSSMCK_MCK; in clk_programmable_set_parent()
118 regmap_update_bits(prog->regmap, AT91_PMC_PCKR(prog->id), mask, pckr); in clk_programmable_set_parent()
127 unsigned int pckr; in clk_programmable_get_parent() local
130 regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr); in clk_programmable_get_parent()
132 ret = pckr & layout->css_mask; in clk_programmable_get_parent()
134 if (layout->have_slck_mck && (pckr & AT91_PMC_CSSMCK_MCK) && !ret) in clk_programmable_get_parent()