Lines Matching refs:pms
33 struct at91_clk_pms pms; member
128 master->pms.parent_rate = clk_hw_get_rate(parent_hw); in clk_master_div_save_context()
129 master->pms.rate = DIV_ROUND_CLOSEST(master->pms.parent_rate, div); in clk_master_div_save_context()
149 if (div != DIV_ROUND_CLOSEST(master->pms.parent_rate, master->pms.rate)) in clk_master_div_restore_context()
232 ret = clk_master_div_set(master, master->pms.parent_rate, in clk_master_div_restore_context_chg()
233 DIV_ROUND_CLOSEST(master->pms.parent_rate, in clk_master_div_restore_context_chg()
234 master->pms.rate)); in clk_master_div_restore_context_chg()
433 master->pms.parent = val & AT91_PMC_CSS; in clk_master_pres_save_context()
434 master->pms.parent_rate = clk_hw_get_rate(parent_hw); in clk_master_pres_save_context()
435 master->pms.rate = DIV_ROUND_CLOSEST_ULL(master->pms.parent_rate, pres); in clk_master_pres_save_context()
457 if (master->pms.rate != in clk_master_pres_restore_context()
458 DIV_ROUND_CLOSEST_ULL(master->pms.parent_rate, pres) || in clk_master_pres_restore_context()
459 (master->pms.parent != (val & AT91_PMC_CSS))) in clk_master_pres_restore_context()
779 master->pms.status = clk_sama7g5_master_is_enabled(hw); in clk_sama7g5_master_save_context()
788 if (master->pms.status) in clk_sama7g5_master_restore_context()
789 clk_sama7g5_master_set(master, master->pms.status); in clk_sama7g5_master_restore_context()