Lines Matching refs:osc
73 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_prepare() local
74 struct regmap *regmap = osc->regmap; in clk_main_osc_prepare()
96 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_unprepare() local
97 struct regmap *regmap = osc->regmap; in clk_main_osc_unprepare()
113 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_is_prepared() local
114 struct regmap *regmap = osc->regmap; in clk_main_osc_is_prepared()
128 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_save_context() local
130 osc->pms.status = clk_main_osc_is_prepared(hw); in clk_main_osc_save_context()
137 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_restore_context() local
139 if (osc->pms.status) in clk_main_osc_restore_context()
157 struct clk_main_osc *osc; in at91_clk_register_main_osc() local
165 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_osc()
166 if (!osc) in at91_clk_register_main_osc()
175 osc->hw.init = &init; in at91_clk_register_main_osc()
176 osc->regmap = regmap; in at91_clk_register_main_osc()
184 hw = &osc->hw; in at91_clk_register_main_osc()
185 ret = clk_hw_register(NULL, &osc->hw); in at91_clk_register_main_osc()
187 kfree(osc); in at91_clk_register_main_osc()
205 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_prepare() local
206 struct regmap *regmap = osc->regmap; in clk_main_rc_osc_prepare()
224 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_unprepare() local
225 struct regmap *regmap = osc->regmap; in clk_main_rc_osc_unprepare()
239 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_is_prepared() local
240 struct regmap *regmap = osc->regmap; in clk_main_rc_osc_is_prepared()
252 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_recalc_rate() local
254 return osc->frequency; in clk_main_rc_osc_recalc_rate()
260 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_recalc_accuracy() local
262 return osc->accuracy; in clk_main_rc_osc_recalc_accuracy()
267 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_save_context() local
269 osc->pms.status = clk_main_rc_osc_is_prepared(hw); in clk_main_rc_osc_save_context()
276 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_restore_context() local
278 if (osc->pms.status) in clk_main_rc_osc_restore_context()
297 struct clk_main_rc_osc *osc; in at91_clk_register_main_rc_osc() local
305 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_rc_osc()
306 if (!osc) in at91_clk_register_main_rc_osc()
315 osc->hw.init = &init; in at91_clk_register_main_rc_osc()
316 osc->regmap = regmap; in at91_clk_register_main_rc_osc()
317 osc->frequency = frequency; in at91_clk_register_main_rc_osc()
318 osc->accuracy = accuracy; in at91_clk_register_main_rc_osc()
320 hw = &osc->hw; in at91_clk_register_main_rc_osc()
323 kfree(osc); in at91_clk_register_main_rc_osc()