Lines Matching full: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()
158 struct clk_main_osc *osc; in at91_clk_register_main_osc() local
166 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_osc()
167 if (!osc) in at91_clk_register_main_osc()
179 osc->hw.init = &init; in at91_clk_register_main_osc()
180 osc->regmap = regmap; in at91_clk_register_main_osc()
188 hw = &osc->hw; in at91_clk_register_main_osc()
189 ret = clk_hw_register(NULL, &osc->hw); in at91_clk_register_main_osc()
191 kfree(osc); in at91_clk_register_main_osc()
209 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_prepare() local
210 struct regmap *regmap = osc->regmap; in clk_main_rc_osc_prepare()
228 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_unprepare() local
229 struct regmap *regmap = osc->regmap; in clk_main_rc_osc_unprepare()
243 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_is_prepared() local
244 struct regmap *regmap = osc->regmap; in clk_main_rc_osc_is_prepared()
256 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_recalc_rate() local
258 return osc->frequency; in clk_main_rc_osc_recalc_rate()
264 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_recalc_accuracy() local
266 return osc->accuracy; in clk_main_rc_osc_recalc_accuracy()
271 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_save_context() local
273 osc->pms.status = clk_main_rc_osc_is_prepared(hw); in clk_main_rc_osc_save_context()
280 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_restore_context() local
282 if (osc->pms.status) in clk_main_rc_osc_restore_context()
301 struct clk_main_rc_osc *osc; in at91_clk_register_main_rc_osc() local
309 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_rc_osc()
310 if (!osc) in at91_clk_register_main_rc_osc()
319 osc->hw.init = &init; in at91_clk_register_main_rc_osc()
320 osc->regmap = regmap; in at91_clk_register_main_rc_osc()
321 osc->frequency = frequency; in at91_clk_register_main_rc_osc()
322 osc->accuracy = accuracy; in at91_clk_register_main_rc_osc()
324 hw = &osc->hw; in at91_clk_register_main_rc_osc()
327 kfree(osc); in at91_clk_register_main_rc_osc()