Lines Matching defs:layout
20 #define PLL_MUL(reg, layout) (((reg) >> (layout)->mul_shift) & \
21 (layout)->mul_mask)
23 #define PLL_MUL_MASK(layout) ((layout)->mul_mask)
24 #define PLL_MUL_MAX(layout) (PLL_MUL_MASK(layout) + 1)
41 const struct clk_pll_layout *layout;
58 const struct clk_pll_layout *layout = pll->layout;
72 mul = PLL_MUL(pllr, layout);
86 regmap_update_bits(regmap, offset, layout->pllr_mask,
89 ((pll->mul & layout->mul_mask) << layout->mul_shift));
107 unsigned int mask = pll->layout->pllr_mask;
127 const struct clk_pll_layout *layout = pll->layout;
162 * layout (limited by the MUL or DIV field size).
164 maxdiv = DIV_ROUND_UP(parent_rate * PLL_MUL_MAX(layout), rate);
275 const struct clk_pll_layout *layout,
300 pll->layout = layout;
305 pll->mul = PLL_MUL(pllr, layout);