Lines Matching refs:inst
77 uint inst; member
146 c_el->inst = i; in nhw_clock_init()
178 static void nhw_pwrclk_eval_interrupt(int inst) { in nhw_pwrclk_eval_interrupt() argument
184 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_pwrclk_eval_interrupt()
187 if (NRF_CLOCK_regs[inst]->EVENTS_##x \ in nhw_pwrclk_eval_interrupt()
207 if (clock_int_line[inst] == false && new_int_line == true) { in nhw_pwrclk_eval_interrupt()
208 clock_int_line[inst] = true; in nhw_pwrclk_eval_interrupt()
209 hw_irq_ctrl_raise_level_irq_line(nhw_clock_irq_map[inst].cntl_inst, in nhw_pwrclk_eval_interrupt()
210 nhw_clock_irq_map[inst].int_nbr); in nhw_pwrclk_eval_interrupt()
211 } else if (clock_int_line[inst] == true && new_int_line == false) { in nhw_pwrclk_eval_interrupt()
212 clock_int_line[inst] = false; in nhw_pwrclk_eval_interrupt()
213 hw_irq_ctrl_lower_level_irq_line(nhw_clock_irq_map[inst].cntl_inst, in nhw_pwrclk_eval_interrupt()
214 nhw_clock_irq_map[inst].int_nbr); in nhw_pwrclk_eval_interrupt()
254 void nhw_clock_TASKS_LFCLKSTART(uint inst) { in nhw_clock_signal_handler()
255 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_signal_handler()
266 void nhw_clock_TASKS_LFCLKSTOP(uint inst) { in nhw_clock_TASKS_LFCLKSTOP() argument
268 if ((NRF_CLOCK_regs[inst]->LFCLKSTAT & CLOCK_LFCLKRUN_STATUS_Msk) == 0) { /* LCOV_EXCL_START */ in nhw_clock_TASKS_LFCLKSTOP()
271 "the spec)\n", __func__, inst); in nhw_clock_TASKS_LFCLKSTOP()
274 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_LFCLKSTOP()
277 NRF_CLOCK_regs[inst]->LFCLKRUN = 0; in nhw_clock_TASKS_LFCLKSTOP()
284 void nhw_clock_TASKS_HFCLKSTART(uint inst) { in nhw_clock_TASKS_HFCLKSTART() argument
285 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_HFCLKSTART()
289 NRF_CLOCK_regs[inst]->HFCLKRUN = CLOCK_HFCLKRUN_STATUS_Msk; in nhw_clock_TASKS_HFCLKSTART()
295 void nhw_clock_TASKS_HFCLKSTOP(uint inst) { in nhw_clock_TASKS_HFCLKSTOP() argument
296 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_HFCLKSTOP()
299 NRF_CLOCK_regs[inst]->HFCLKRUN = 0; in nhw_clock_TASKS_HFCLKSTOP()
308 if (!has_this_clock[inst]) { \
310 "this type of clock (" #CLK_NAME ")", inst); \
313 void nhw_clock_TASKS_HFCLKAUDIOSTART(uint inst) { in nhw_clock_TASKS_HFCLKAUDIOSTART() argument
319 void nhw_clock_TASKS_HFCLKAUDIOSTOP(uint inst) { in nhw_clock_TASKS_HFCLKAUDIOSTOP() argument
325 void nhw_clock_TASKS_HFCLK192MSTART(uint inst) { in nhw_clock_TASKS_HFCLK192MSTART() argument
331 void nhw_clock_TASKS_HFCLK192MSTOP(uint inst) { in nhw_clock_TASKS_HFCLK192MSTOP() argument
338 void nhw_clock_TASKS_CAL(uint inst) { in nhw_clock_TASKS_CAL() argument
339 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_CAL()
344 "the spec)\n", __func__, inst); in nhw_clock_TASKS_CAL()
353 void nhw_clock_TASKS_CTSTART(uint inst) { in nhw_clock_TASKS_CTSTART() argument
354 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_CTSTART()
359 "Timeout is not affected.\n", __func__, inst); in nhw_clock_TASKS_CTSTART()
362 this->Timer_caltimer = nsi_hws_get_time() + (bs_time_t)NRF_CLOCK_regs[inst]->CTIV * 250000; in nhw_clock_TASKS_CTSTART()
365 nhw_clock_signal_CTSTARTED(inst); in nhw_clock_TASKS_CTSTART()
368 void nhw_clock_TASKS_CTSTOP(uint inst) { in nhw_clock_TASKS_CTSTOP() argument
369 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_CTSTOP()
373 "Raising CTSTOPPED event immediately.\n", __func__, inst); in nhw_clock_TASKS_CTSTOP()
378 nhw_clock_signal_CTSTOPPED(inst); in nhw_clock_TASKS_CTSTOP()
444 nhw_clock_signal_LFCLKSTARTED(this->inst); in nhw_clock_LFTimer_triggered()
469 nhw_clock_signal_HFCLKSTARTED(this->inst); in nhw_clock_HFTimer_triggered()
485 nhw_clock_signal_DONE(this->inst); in nhw_clock_LF_cal_triggered()
497 nhw_clock_signal_CTTO(this->inst); in nhw_clock_caltimer_triggered()
536 void nhw_clock_regw_sideeffects_SUBSCRIBE_##TASK_N(uint inst) \
538 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; \
544 (void*) inst); \