Lines Matching refs:i
123 for (int i = 0; i < NHW_CLKPWR_TOTAL_INST; i++) { in nhw_clock_update_master_timer() local
124 struct clkpwr_status * c_el = &nhw_clkpwr_st[i]; in nhw_clock_update_master_timer()
146 for (int i = 0; i < NHW_CLKPWR_TOTAL_INST; i++) { in nhw_clock_init() local
147 struct clkpwr_status * c_el = &nhw_clkpwr_st[i]; in nhw_clock_init()
149 c_el->inst = i; in nhw_clock_init()
151 NRF_CLOCK_regs[i] = (NRF_CLOCK_Type *)&NRF_CLKPWR_regs[i]; in nhw_clock_init()
152 c_el->CLOCK_regs = (NRF_CLOCK_Type *)&NRF_CLKPWR_regs[i]; in nhw_clock_init()
153 NRF_POWER_regs[i] = (NRF_POWER_Type *)&NRF_CLKPWR_regs[i]; in nhw_clock_init()
154 c_el->POWER_regs = (NRF_POWER_Type *)&NRF_CLKPWR_regs[i]; in nhw_clock_init()
156 NRF_RESET_regs[i] = (NRF_RESET_Type *)&NRF_CLKPWR_regs[i]; in nhw_clock_init()
157 c_el->RESET_regs = (NRF_RESET_Type *)&NRF_CLKPWR_regs[i]; in nhw_clock_init()
170 c_el->dppi_map = nhw_clkpwr_dppi_map[i]; in nhw_clock_init()
174 NRF_CLOCK_regs[i]->HFXODEBOUNCE = 0x00000010; in nhw_clock_init()
223 static void nhw_clock_signal_##x(int i) { \
224 NRF_CLOCK_regs[i]->EVENTS_##x = 1; \
225 nhw_pwrclk_eval_interrupt(i); \
230 static void nhw_clock_signal_##x(int i) { \
231 NRF_CLOCK_regs[i]->EVENTS_##x = 1; \
232 nhw_pwrclk_eval_interrupt(i); \
233 nhw_dppi_event_signal_if(nhw_clkpwr_st[i].dppi_map, \
234 NRF_CLOCK_regs[i]->PUBLISH_##x);\
385 void nhw_CLOCK_regw_sideeffects_INTENSET(uint i) { in nhw_CLOCK_regw_sideeffects_INTENSET() argument
386 if (NRF_CLOCK_regs[i]->INTENSET) { /* LCOV_EXCL_BR_LINE */ in nhw_CLOCK_regw_sideeffects_INTENSET()
387 struct clkpwr_status *this = &nhw_clkpwr_st[i]; in nhw_CLOCK_regw_sideeffects_INTENSET()
389 this->INTEN |= NRF_CLOCK_regs[i]->INTENSET; in nhw_CLOCK_regw_sideeffects_INTENSET()
390 NRF_CLOCK_regs[i]->INTENSET = this->INTEN; in nhw_CLOCK_regw_sideeffects_INTENSET()
391 nhw_pwrclk_eval_interrupt(i); in nhw_CLOCK_regw_sideeffects_INTENSET()
395 void nhw_CLOCK_regw_sideeffects_INTENCLR(uint i) { in nhw_CLOCK_regw_sideeffects_INTENCLR() argument
396 if (NRF_CLOCK_regs[i]->INTENCLR) { /* LCOV_EXCL_BR_LINE */ in nhw_CLOCK_regw_sideeffects_INTENCLR()
397 struct clkpwr_status *this = &nhw_clkpwr_st[i]; in nhw_CLOCK_regw_sideeffects_INTENCLR()
399 this->INTEN &= ~NRF_CLOCK_regs[i]->INTENCLR; in nhw_CLOCK_regw_sideeffects_INTENCLR()
400 NRF_CLOCK_regs[i]->INTENSET = this->INTEN; in nhw_CLOCK_regw_sideeffects_INTENCLR()
401 NRF_CLOCK_regs[i]->INTENCLR = 0; in nhw_CLOCK_regw_sideeffects_INTENCLR()
402 nhw_pwrclk_eval_interrupt(i); in nhw_CLOCK_regw_sideeffects_INTENCLR()
407 void nhw_CLOCK_regw_sideeffects_TASKS_##x(uint i) { \
408 if (NRF_CLOCK_regs[i]->TASKS_##x) { /* LCOV_EXCL_BR_LINE */\
409 NRF_CLOCK_regs[i]->TASKS_##x = 0; \
410 nhw_clock_TASKS_##x(i); \
433 void nhw_pwrclk_regw_sideeffects_EVENTS_all(uint i) { in nhw_clock_regw_sideeffects_TASKS_()
434 nhw_pwrclk_eval_interrupt(i); in nhw_clock_regw_sideeffects_TASKS_()
506 for (int i = 0; i < NHW_CLKPWR_TOTAL_INST; i++) { in nhw_pwrclk_timer_triggered() local
507 struct clkpwr_status * c_el = &nhw_clkpwr_st[i]; in nhw_pwrclk_timer_triggered()