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
35 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_recalc_rate() local
41 if (layout->is_pres_direct) in clk_programmable_recalc_rate()
42 rate = parent_rate / (PROG_PRES(layout, pckr) + 1); in clk_programmable_recalc_rate()
44 rate = parent_rate >> PROG_PRES(layout, pckr); in clk_programmable_recalc_rate()
53 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_determine_rate() local
67 if (layout->is_pres_direct) { in clk_programmable_determine_rate()
68 for (shift = 0; shift <= layout->pres_mask; shift++) { in clk_programmable_determine_rate()
74 for (shift = 0; shift < layout->pres_mask; shift++) { in clk_programmable_determine_rate()
105 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_parent() local
106 unsigned int mask = layout->css_mask; in clk_programmable_set_parent()
109 if (layout->have_slck_mck) in clk_programmable_set_parent()
115 if (index > layout->css_mask) { in clk_programmable_set_parent()
116 if (index > PROG_MAX_RM9200_CSS && !layout->have_slck_mck) in clk_programmable_set_parent()
130 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_get_parent() local
136 ret = pckr & layout->css_mask; in clk_programmable_get_parent()
138 if (layout->have_slck_mck && (pckr & AT91_PMC_CSSMCK_MCK) && !ret) in clk_programmable_get_parent()
151 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_rate() local
158 if (layout->is_pres_direct) { in clk_programmable_set_rate()
161 if (shift > layout->pres_mask) in clk_programmable_set_rate()
169 if (shift >= layout->pres_mask) in clk_programmable_set_rate()
174 layout->pres_mask << layout->pres_shift, in clk_programmable_set_rate()
175 shift << layout->pres_shift); in clk_programmable_set_rate()
192 const struct clk_programmable_layout *layout, in at91_clk_register_programmable() argument
214 prog->layout = layout; in at91_clk_register_programmable()