Lines Matching full:layout

18 #define PROG_PRES(layout, pckr)	((pckr >> layout->pres_shift) & layout->pres_mask)  argument
26 const struct clk_programmable_layout *layout; member
36 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_recalc_rate() local
42 if (layout->is_pres_direct) in clk_programmable_recalc_rate()
43 rate = parent_rate / (PROG_PRES(layout, pckr) + 1); in clk_programmable_recalc_rate()
45 rate = parent_rate >> PROG_PRES(layout, pckr); in clk_programmable_recalc_rate()
54 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_determine_rate() local
68 if (layout->is_pres_direct) { in clk_programmable_determine_rate()
69 for (shift = 0; shift <= layout->pres_mask; shift++) { in clk_programmable_determine_rate()
75 for (shift = 0; shift < layout->pres_mask; shift++) { in clk_programmable_determine_rate()
106 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_parent() local
107 unsigned int mask = layout->css_mask; in clk_programmable_set_parent()
110 if (layout->have_slck_mck) in clk_programmable_set_parent()
116 if (index > layout->css_mask) { in clk_programmable_set_parent()
117 if (index > PROG_MAX_RM9200_CSS && !layout->have_slck_mck) in clk_programmable_set_parent()
131 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_get_parent() local
137 ret = pckr & layout->css_mask; in clk_programmable_get_parent()
139 if (layout->have_slck_mck && (pckr & AT91_PMC_CSSMCK_MCK) && !ret) in clk_programmable_get_parent()
152 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_rate() local
159 if (layout->is_pres_direct) { in clk_programmable_set_rate()
162 if (shift > layout->pres_mask) in clk_programmable_set_rate()
170 if (shift >= layout->pres_mask) in clk_programmable_set_rate()
175 layout->pres_mask << layout->pres_shift, in clk_programmable_set_rate()
176 shift << layout->pres_shift); in clk_programmable_set_rate()
219 const struct clk_programmable_layout *layout, in at91_clk_register_programmable() argument
241 prog->layout = layout; in at91_clk_register_programmable()