Lines Matching refs:layout
31 const struct clk_programmable_layout *layout; member
42 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_get_rate() local
48 if (layout->is_pres_direct) in clk_programmable_get_rate()
49 rate = parent_rate / (PROG_PRES(layout, pckr) + 1); in clk_programmable_get_rate()
51 rate = parent_rate >> PROG_PRES(layout, pckr); in clk_programmable_get_rate()
59 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_parent() local
60 unsigned int mask = layout->css_mask; in clk_programmable_set_parent()
73 if (layout->have_slck_mck) in clk_programmable_set_parent()
76 if (index > layout->css_mask) { in clk_programmable_set_parent()
77 if (index > PROG_MAX_RM9200_CSS && !layout->have_slck_mck) in clk_programmable_set_parent()
91 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_rate() local
99 if (layout->is_pres_direct) { in clk_programmable_set_rate()
102 if (shift > layout->pres_mask) in clk_programmable_set_rate()
110 if (shift >= layout->pres_mask) in clk_programmable_set_rate()
115 layout->pres_mask << layout->pres_shift, in clk_programmable_set_rate()
116 shift << layout->pres_shift); in clk_programmable_set_rate()
118 if (layout->is_pres_direct) in clk_programmable_set_rate()
132 const struct clk_programmable_layout *layout, in at91_clk_register_programmable() argument
141 !layout || !clk_mux_table || !mux_table || id > PROG_ID_MAX) in at91_clk_register_programmable()
149 prog->layout = layout; in at91_clk_register_programmable()
156 val = tmp & prog->layout->css_mask; in at91_clk_register_programmable()
157 if (layout->have_slck_mck && (tmp & AT91_PMC_CSSMCK_MCK) && !val) in at91_clk_register_programmable()