Lines Matching refs:layout
31 const struct clk_master_layout *layout; member
90 const struct clk_master_layout *layout = master->layout; in clk_master_div_recalc_rate() local
96 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_recalc_rate()
99 mckr &= layout->mask; in clk_master_div_recalc_rate()
121 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_save_context()
124 mckr &= master->layout->mask; in clk_master_div_save_context()
142 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_restore_context()
145 mckr &= master->layout->mask; in clk_master_div_restore_context()
188 ret = regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_div_set()
192 mckr &= master->layout->mask; in clk_master_div_set()
205 ret = regmap_write(master->regmap, master->layout->offset, mckr); in clk_master_div_set()
274 ret = regmap_read(master_div->regmap, master_div->layout->offset, in clk_master_div_notifier_fn()
281 mckr &= master_div->layout->mask; in clk_master_div_notifier_fn()
295 ret = regmap_read(master_div->regmap, master_div->layout->offset, in clk_master_div_notifier_fn()
302 mckr &= master_div->layout->mask; in clk_master_div_notifier_fn()
387 regmap_read(master->regmap, master->layout->offset, &val); in clk_master_pres_recalc_rate()
390 val &= master->layout->mask; in clk_master_pres_recalc_rate()
391 pres = (val >> master->layout->pres_shift) & MASTER_PRES_MASK; in clk_master_pres_recalc_rate()
407 regmap_read(master->regmap, master->layout->offset, &mckr); in clk_master_pres_get_parent()
410 mckr &= master->layout->mask; in clk_master_pres_get_parent()
423 regmap_read(master->regmap, master->layout->offset, &val); in clk_master_pres_save_context()
426 val &= master->layout->mask; in clk_master_pres_save_context()
427 pres = (val >> master->layout->pres_shift) & MASTER_PRES_MASK; in clk_master_pres_save_context()
447 regmap_read(master->regmap, master->layout->offset, &val); in clk_master_pres_restore_context()
450 val &= master->layout->mask; in clk_master_pres_restore_context()
451 pres = (val >> master->layout->pres_shift) & MASTER_PRES_MASK; in clk_master_pres_restore_context()
477 const struct clk_master_layout *layout, in at91_clk_register_master_internal() argument
505 master->layout = layout; in at91_clk_register_master_internal()
512 regmap_read(master->regmap, master->layout->offset, &mckr); in at91_clk_register_master_internal()
515 mckr &= layout->mask; in at91_clk_register_master_internal()
535 const struct clk_master_layout *layout, in at91_clk_register_master_pres() argument
540 parent_names, parent_hws, layout, in at91_clk_register_master_pres()
549 struct clk_hw *parent_hw, const struct clk_master_layout *layout, in at91_clk_register_master_div() argument
563 parent_hw ? &parent_hw : NULL, layout, in at91_clk_register_master_div()