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;
59 const struct clk_pll_layout *layout = pll->layout;
73 mul = PLL_MUL(pllr, layout);
87 regmap_update_bits(regmap, offset, layout->pllr_mask,
90 ((pll->mul & layout->mul_mask) << layout->mul_shift));
108 unsigned int mask = pll->layout->pllr_mask;
128 const struct clk_pll_layout *layout = pll->layout;
163 * layout (limited by the MUL or DIV field size).
165 maxdiv = DIV_ROUND_UP(parent_rate * PLL_MUL_MAX(layout), rate);
289 (PLL_MUL(pllr, pll->layout) + 1);
314 const struct clk_pll_layout *layout,
339 pll->layout = layout;
344 pll->mul = PLL_MUL(pllr, layout);