Lines Matching refs:inst
91 static void nhw_egu_eval_interrupt(uint inst) in nhw_egu_eval_interrupt() argument
97 struct egu_status *this = &nhw_egu_st[inst]; in nhw_egu_eval_interrupt()
109 hw_irq_ctrl_toggle_level_irq_line_if(&egu_int_line[inst], in nhw_egu_eval_interrupt()
111 &nhw_egu_irq_map[inst]); in nhw_egu_eval_interrupt()
122 static void nhw_egu_signal_EVENTS_TRIGGERED(uint inst, uint event_nbr) in nhw_egu_signal_EVENTS_TRIGGERED() argument
124 struct egu_status *this = &nhw_egu_st[inst]; in nhw_egu_signal_EVENTS_TRIGGERED()
128 nhw_egu_eval_interrupt(inst); in nhw_egu_signal_EVENTS_TRIGGERED()
141 nrf_ppi_event(PPI_EGU_EVENTS_base[inst]+ event_nbr); in nhw_egu_signal_EVENTS_TRIGGERED()
152 void nhw_egu_TASK_TRIGGER(uint inst, uint task_nbr) in nhw_egu_TASK_TRIGGER() argument
154 nhw_egu_check_inst_event(inst, task_nbr, "task"); in nhw_egu_TASK_TRIGGER()
155 nhw_egu_signal_EVENTS_TRIGGERED(inst, task_nbr); in nhw_egu_TASK_TRIGGER()
160 unsigned int inst = (uintptr_t)param >> 16; in nhw_egu_tasktrigger_wrap() local
162 nhw_egu_TASK_TRIGGER(inst, n); in nhw_egu_tasktrigger_wrap()
165 void nhw_egu_regw_sideeffects_SUBSCRIBE_TRIGGER(uint inst, uint n) { in nhw_egu_regw_sideeffects_SUBSCRIBE_TRIGGER() argument
166 struct egu_status *this = &nhw_egu_st[inst]; in nhw_egu_regw_sideeffects_SUBSCRIBE_TRIGGER()
168 nhw_egu_check_inst_event(inst, n, "subscribe"); in nhw_egu_regw_sideeffects_SUBSCRIBE_TRIGGER()
174 (void*)((inst << 16) + n)); in nhw_egu_regw_sideeffects_SUBSCRIBE_TRIGGER()
178 void nhw_egu_regw_sideeffect_INTENSET(uint inst) { in nhw_egu_regw_sideeffect_INTENSET() argument
179 NRF_EGU_Type *EGU_regs = &NRF_EGU_regs[inst]; in nhw_egu_regw_sideeffect_INTENSET()
184 nhw_egu_eval_interrupt(inst); in nhw_egu_regw_sideeffect_INTENSET()
188 void nhw_egu_regw_sideeffect_INTENCLR(uint inst) { in nhw_egu_regw_sideeffect_INTENCLR() argument
189 NRF_EGU_Type *EGU_regs = &NRF_EGU_regs[inst]; in nhw_egu_regw_sideeffect_INTENCLR()
195 nhw_egu_eval_interrupt(inst); in nhw_egu_regw_sideeffect_INTENCLR()
199 void nhw_egu_regw_sideeffect_INTEN(uint inst) { in nhw_egu_regw_sideeffect_INTEN() argument
200 NRF_EGU_Type *EGU_regs = &NRF_EGU_regs[inst]; in nhw_egu_regw_sideeffect_INTEN()
202 nhw_egu_eval_interrupt(inst); in nhw_egu_regw_sideeffect_INTEN()
205 void nhw_egu_regw_sideeffect_EVENTS_TRIGGERED(uint inst, uint event_nbr) { in nhw_egu_regw_sideeffect_EVENTS_TRIGGERED() argument
206 nhw_egu_check_inst_event(inst, event_nbr, "event"); in nhw_egu_regw_sideeffect_EVENTS_TRIGGERED()
207 nhw_egu_eval_interrupt(inst); in nhw_egu_regw_sideeffect_EVENTS_TRIGGERED()
210 void nhw_egu_regw_sideeffects_TASK_TRIGGER(uint inst, uint task_nbr){ in nhw_egu_regw_sideeffects_TASK_TRIGGER() argument
211 nhw_egu_check_inst_event(inst, task_nbr, "task"); in nhw_egu_regw_sideeffects_TASK_TRIGGER()
213 if (NRF_EGU_regs[inst].TASKS_TRIGGER[task_nbr] != 0) { in nhw_egu_regw_sideeffects_TASK_TRIGGER()
214 NRF_EGU_regs[inst].TASKS_TRIGGER[task_nbr] = 0; in nhw_egu_regw_sideeffects_TASK_TRIGGER()
215 nhw_egu_TASK_TRIGGER(inst, task_nbr); in nhw_egu_regw_sideeffects_TASK_TRIGGER()