Lines Matching refs:utmi
43 struct clk_utmi *utmi = to_clk_utmi(hw); in clk_utmi_prepare() local
79 if (utmi->regmap_sfr) { in clk_utmi_prepare()
80 regmap_update_bits(utmi->regmap_sfr, AT91_SFR_UTMICKTRIM, in clk_utmi_prepare()
87 regmap_update_bits(utmi->regmap_pmc, AT91_CKGR_UCKR, uckr, uckr); in clk_utmi_prepare()
89 while (!clk_utmi_ready(utmi->regmap_pmc)) in clk_utmi_prepare()
97 struct clk_utmi *utmi = to_clk_utmi(hw); in clk_utmi_is_prepared() local
99 return clk_utmi_ready(utmi->regmap_pmc); in clk_utmi_is_prepared()
104 struct clk_utmi *utmi = to_clk_utmi(hw); in clk_utmi_unprepare() local
106 regmap_update_bits(utmi->regmap_pmc, AT91_CKGR_UCKR, in clk_utmi_unprepare()
119 struct clk_utmi *utmi = to_clk_utmi(hw); in clk_utmi_save_context() local
121 utmi->pms.status = clk_utmi_is_prepared(hw); in clk_utmi_save_context()
128 struct clk_utmi *utmi = to_clk_utmi(hw); in clk_utmi_restore_context() local
130 if (utmi->pms.status) in clk_utmi_restore_context()
150 struct clk_utmi *utmi; in at91_clk_register_utmi_internal() local
158 utmi = kzalloc(sizeof(*utmi), GFP_KERNEL); in at91_clk_register_utmi_internal()
159 if (!utmi) in at91_clk_register_utmi_internal()
171 utmi->hw.init = &init; in at91_clk_register_utmi_internal()
172 utmi->regmap_pmc = regmap_pmc; in at91_clk_register_utmi_internal()
173 utmi->regmap_sfr = regmap_sfr; in at91_clk_register_utmi_internal()
175 hw = &utmi->hw; in at91_clk_register_utmi_internal()
176 ret = clk_hw_register(NULL, &utmi->hw); in at91_clk_register_utmi_internal()
178 kfree(utmi); in at91_clk_register_utmi_internal()
196 struct clk_utmi *utmi = to_clk_utmi(hw); in clk_utmi_sama7g5_prepare() local
222 regmap_write(utmi->regmap_pmc, AT91_PMC_XTALF, val); in clk_utmi_sama7g5_prepare()
230 struct clk_utmi *utmi = to_clk_utmi(hw); in clk_utmi_sama7g5_is_prepared() local
238 regmap_read(utmi->regmap_pmc, AT91_PMC_XTALF, &val); in clk_utmi_sama7g5_is_prepared()
265 struct clk_utmi *utmi = to_clk_utmi(hw); in clk_utmi_sama7g5_save_context() local
267 utmi->pms.status = clk_utmi_sama7g5_is_prepared(hw); in clk_utmi_sama7g5_save_context()
274 struct clk_utmi *utmi = to_clk_utmi(hw); in clk_utmi_sama7g5_restore_context() local
276 if (utmi->pms.status) in clk_utmi_sama7g5_restore_context()