• Home
  • Raw
  • Download

Lines Matching refs:osc

74 	struct clk_main_osc *osc = dev_id;  in clk_main_osc_irq_handler()  local
76 wake_up(&osc->wait); in clk_main_osc_irq_handler()
77 disable_irq_nosync(osc->irq); in clk_main_osc_irq_handler()
84 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_prepare() local
85 struct at91_pmc *pmc = osc->pmc; in clk_main_osc_prepare()
98 enable_irq(osc->irq); in clk_main_osc_prepare()
99 wait_event(osc->wait, in clk_main_osc_prepare()
108 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_unprepare() local
109 struct at91_pmc *pmc = osc->pmc; in clk_main_osc_unprepare()
124 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_is_prepared() local
125 struct at91_pmc *pmc = osc->pmc; in clk_main_osc_is_prepared()
149 struct clk_main_osc *osc; in at91_clk_register_main_osc() local
156 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_osc()
157 if (!osc) in at91_clk_register_main_osc()
166 osc->hw.init = &init; in at91_clk_register_main_osc()
167 osc->pmc = pmc; in at91_clk_register_main_osc()
168 osc->irq = irq; in at91_clk_register_main_osc()
170 init_waitqueue_head(&osc->wait); in at91_clk_register_main_osc()
171 irq_set_status_flags(osc->irq, IRQ_NOAUTOEN); in at91_clk_register_main_osc()
172 ret = request_irq(osc->irq, clk_main_osc_irq_handler, in at91_clk_register_main_osc()
173 IRQF_TRIGGER_HIGH, name, osc); in at91_clk_register_main_osc()
175 kfree(osc); in at91_clk_register_main_osc()
185 clk = clk_register(NULL, &osc->hw); in at91_clk_register_main_osc()
187 free_irq(irq, osc); in at91_clk_register_main_osc()
188 kfree(osc); in at91_clk_register_main_osc()
220 struct clk_main_rc_osc *osc = dev_id; in clk_main_rc_osc_irq_handler() local
222 wake_up(&osc->wait); in clk_main_rc_osc_irq_handler()
223 disable_irq_nosync(osc->irq); in clk_main_rc_osc_irq_handler()
230 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_prepare() local
231 struct at91_pmc *pmc = osc->pmc; in clk_main_rc_osc_prepare()
242 enable_irq(osc->irq); in clk_main_rc_osc_prepare()
243 wait_event(osc->wait, in clk_main_rc_osc_prepare()
252 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_unprepare() local
253 struct at91_pmc *pmc = osc->pmc; in clk_main_rc_osc_unprepare()
265 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_is_prepared() local
266 struct at91_pmc *pmc = osc->pmc; in clk_main_rc_osc_is_prepared()
275 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_recalc_rate() local
277 return osc->frequency; in clk_main_rc_osc_recalc_rate()
283 struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); in clk_main_rc_osc_recalc_accuracy() local
285 return osc->accuracy; in clk_main_rc_osc_recalc_accuracy()
303 struct clk_main_rc_osc *osc; in at91_clk_register_main_rc_osc() local
310 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_rc_osc()
311 if (!osc) in at91_clk_register_main_rc_osc()
320 osc->hw.init = &init; in at91_clk_register_main_rc_osc()
321 osc->pmc = pmc; in at91_clk_register_main_rc_osc()
322 osc->irq = irq; in at91_clk_register_main_rc_osc()
323 osc->frequency = frequency; in at91_clk_register_main_rc_osc()
324 osc->accuracy = accuracy; in at91_clk_register_main_rc_osc()
326 init_waitqueue_head(&osc->wait); in at91_clk_register_main_rc_osc()
327 irq_set_status_flags(osc->irq, IRQ_NOAUTOEN); in at91_clk_register_main_rc_osc()
328 ret = request_irq(osc->irq, clk_main_rc_osc_irq_handler, in at91_clk_register_main_rc_osc()
329 IRQF_TRIGGER_HIGH, name, osc); in at91_clk_register_main_rc_osc()
333 clk = clk_register(NULL, &osc->hw); in at91_clk_register_main_rc_osc()
335 free_irq(irq, osc); in at91_clk_register_main_rc_osc()
336 kfree(osc); in at91_clk_register_main_rc_osc()