Lines Matching refs:inst

77   uint inst;  member
149 c_el->inst = i; in nhw_clock_init()
181 static void nhw_pwrclk_eval_interrupt(int inst) { in nhw_pwrclk_eval_interrupt() argument
187 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_pwrclk_eval_interrupt()
190 if (NRF_CLOCK_regs[inst]->EVENTS_##x \ in nhw_pwrclk_eval_interrupt()
210 if (clock_int_line[inst] == false && new_int_line == true) { in nhw_pwrclk_eval_interrupt()
211 clock_int_line[inst] = true; in nhw_pwrclk_eval_interrupt()
212 hw_irq_ctrl_raise_level_irq_line(nhw_clock_irq_map[inst].cntl_inst, in nhw_pwrclk_eval_interrupt()
213 nhw_clock_irq_map[inst].int_nbr); in nhw_pwrclk_eval_interrupt()
214 } else if (clock_int_line[inst] == true && new_int_line == false) { in nhw_pwrclk_eval_interrupt()
215 clock_int_line[inst] = false; in nhw_pwrclk_eval_interrupt()
216 hw_irq_ctrl_lower_level_irq_line(nhw_clock_irq_map[inst].cntl_inst, in nhw_pwrclk_eval_interrupt()
217 nhw_clock_irq_map[inst].int_nbr); in nhw_pwrclk_eval_interrupt()
257 void nhw_clock_TASKS_LFCLKSTART(uint inst) { in nhw_clock_signal_handler()
258 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_signal_handler()
269 void nhw_clock_TASKS_LFCLKSTOP(uint inst) { in nhw_clock_TASKS_LFCLKSTOP() argument
271 if ((NRF_CLOCK_regs[inst]->LFCLKSTAT & CLOCK_LFCLKRUN_STATUS_Msk) == 0) { /* LCOV_EXCL_START */ in nhw_clock_TASKS_LFCLKSTOP()
274 "the spec)\n", __func__, inst); in nhw_clock_TASKS_LFCLKSTOP()
277 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_LFCLKSTOP()
280 NRF_CLOCK_regs[inst]->LFCLKRUN = 0; in nhw_clock_TASKS_LFCLKSTOP()
287 void nhw_clock_TASKS_HFCLKSTART(uint inst) { in nhw_clock_TASKS_HFCLKSTART() argument
288 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_HFCLKSTART()
292 NRF_CLOCK_regs[inst]->HFCLKRUN = CLOCK_HFCLKRUN_STATUS_Msk; in nhw_clock_TASKS_HFCLKSTART()
298 void nhw_clock_TASKS_HFCLKSTOP(uint inst) { in nhw_clock_TASKS_HFCLKSTOP() argument
299 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_HFCLKSTOP()
302 NRF_CLOCK_regs[inst]->HFCLKRUN = 0; in nhw_clock_TASKS_HFCLKSTOP()
311 if (!has_this_clock[inst]) { \
313 "this type of clock (" #CLK_NAME ")", inst); \
316 void nhw_clock_TASKS_HFCLKAUDIOSTART(uint inst) { in nhw_clock_TASKS_HFCLKAUDIOSTART() argument
322 void nhw_clock_TASKS_HFCLKAUDIOSTOP(uint inst) { in nhw_clock_TASKS_HFCLKAUDIOSTOP() argument
328 void nhw_clock_TASKS_HFCLK192MSTART(uint inst) { in nhw_clock_TASKS_HFCLK192MSTART() argument
334 void nhw_clock_TASKS_HFCLK192MSTOP(uint inst) { in nhw_clock_TASKS_HFCLK192MSTOP() argument
341 void nhw_clock_TASKS_CAL(uint inst) { in nhw_clock_TASKS_CAL() argument
342 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_CAL()
347 "the spec)\n", __func__, inst); in nhw_clock_TASKS_CAL()
356 void nhw_clock_TASKS_CTSTART(uint inst) { in nhw_clock_TASKS_CTSTART() argument
357 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_CTSTART()
362 "Timeout is not affected.\n", __func__, inst); in nhw_clock_TASKS_CTSTART()
365 this->Timer_caltimer = nsi_hws_get_time() + (bs_time_t)NRF_CLOCK_regs[inst]->CTIV * 250000; in nhw_clock_TASKS_CTSTART()
368 nhw_clock_signal_CTSTARTED(inst); in nhw_clock_TASKS_CTSTART()
371 void nhw_clock_TASKS_CTSTOP(uint inst) { in nhw_clock_TASKS_CTSTOP() argument
372 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_CTSTOP()
376 "Raising CTSTOPPED event immediately.\n", __func__, inst); in nhw_clock_TASKS_CTSTOP()
381 nhw_clock_signal_CTSTOPPED(inst); in nhw_clock_TASKS_CTSTOP()
447 nhw_clock_signal_LFCLKSTARTED(this->inst); in nhw_clock_LFTimer_triggered()
472 nhw_clock_signal_HFCLKSTARTED(this->inst); in nhw_clock_HFTimer_triggered()
488 nhw_clock_signal_DONE(this->inst); in nhw_clock_LF_cal_triggered()
500 nhw_clock_signal_CTTO(this->inst); in nhw_clock_caltimer_triggered()
539 void nhw_CLOCK_regw_sideeffects_SUBSCRIBE_##TASK_N(uint inst) \
541 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; \
547 (void*) inst); \