Lines Matching refs:dppi_inst
178 static void nhw_dppi_check_inst_valid(unsigned int dppi_inst, in nhw_dppi_check_inst_valid() argument
181 if (dppi_inst >= NHW_DPPI_TOTAL_INST) { /* LCOV_EXCL_START */ in nhw_dppi_check_inst_valid()
183 __func__, type, dppi_inst, NHW_DPPI_TOTAL_INST); in nhw_dppi_check_inst_valid()
187 static void nhw_dppi_check_ch_valid(unsigned int dppi_inst, in nhw_dppi_check_ch_valid() argument
191 nhw_dppi_check_inst_valid(dppi_inst, type); in nhw_dppi_check_ch_valid()
193 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_check_ch_valid()
197 __func__, type, dppi_inst); in nhw_dppi_check_ch_valid()
202 __func__, type, ch_n, this->n_ch, dppi_inst); in nhw_dppi_check_ch_valid()
206 static void nhw_dppi_check_chg_valid(unsigned int dppi_inst, in nhw_dppi_check_chg_valid() argument
210 nhw_dppi_check_inst_valid(dppi_inst, type); in nhw_dppi_check_chg_valid()
212 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_check_chg_valid()
217 __func__, type, dppi_inst); in nhw_dppi_check_chg_valid()
222 __func__, type, chg_n, this->n_chg, dppi_inst); in nhw_dppi_check_chg_valid()
240 void nhw_dppi_channel_subscribe(unsigned int dppi_inst, in nhw_dppi_channel_subscribe() argument
245 nhw_dppi_check_ch_valid(dppi_inst, ch_n, "subscribe to"); in nhw_dppi_channel_subscribe()
247 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_channel_subscribe()
255 __func__, dppi_inst, ch_n); in nhw_dppi_channel_subscribe()
292 void nhw_dppi_channel_unsubscribe(unsigned int dppi_inst, in nhw_dppi_channel_unsubscribe() argument
297 nhw_dppi_check_ch_valid(dppi_inst, ch_n, "unsubscribe from"); in nhw_dppi_channel_unsubscribe()
299 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_channel_unsubscribe()
312 __func__, dppi_inst, ch_n); in nhw_dppi_channel_unsubscribe()
323 void nhw_dppi_event_signal(uint dppi_inst, uint ch_n) in nhw_dppi_event_signal() argument
325 nhw_dppi_check_ch_valid(dppi_inst, ch_n, "send event to"); in nhw_dppi_event_signal()
326 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_event_signal()
344 __func__, dppi_inst, ch_n, i); in nhw_dppi_event_signal()
349 static void nhw_dppi_task_chg_en(uint dppi_inst, uint n) in nhw_dppi_task_chg_en() argument
351 nhw_dppi_check_chg_valid(dppi_inst, n, "triggered TASK_CHGn_EN in"); in nhw_dppi_task_chg_en()
353 NRF_DPPIC_Type *regs = nhw_dppi_st[dppi_inst].NRF_DPPIC_regs; in nhw_dppi_task_chg_en()
359 static void nhw_dppi_task_chg_dis(uint dppi_inst, uint n) in nhw_dppi_task_chg_dis() argument
361 nhw_dppi_check_chg_valid(dppi_inst, n, "triggered TASK_CHGn_EN in"); in nhw_dppi_task_chg_dis()
363 NRF_DPPIC_Type *regs = nhw_dppi_st[dppi_inst].NRF_DPPIC_regs; in nhw_dppi_task_chg_dis()
369 void nhw_dppi_regw_sideeffects_TASK_CHGn_EN(uint dppi_inst, uint n) in nhw_dppi_regw_sideeffects_TASK_CHGn_EN() argument
371 nhw_dppi_check_chg_valid(dppi_inst, n, "write to TASK_CHGn_EN register in"); in nhw_dppi_regw_sideeffects_TASK_CHGn_EN()
373 NRF_DPPIC_Type *regs = nhw_dppi_st[dppi_inst].NRF_DPPIC_regs; in nhw_dppi_regw_sideeffects_TASK_CHGn_EN()
377 nhw_dppi_task_chg_en(dppi_inst, n); in nhw_dppi_regw_sideeffects_TASK_CHGn_EN()
381 void nhw_dppi_regw_sideeffects_TASK_CHGn_DIS(uint dppi_inst, uint n) in nhw_dppi_regw_sideeffects_TASK_CHGn_DIS() argument
383 nhw_dppi_check_chg_valid(dppi_inst, n, "write to TASK_CHGn_DIS register in"); in nhw_dppi_regw_sideeffects_TASK_CHGn_DIS()
385 NRF_DPPIC_Type *regs = nhw_dppi_st[dppi_inst].NRF_DPPIC_regs; in nhw_dppi_regw_sideeffects_TASK_CHGn_DIS()
389 nhw_dppi_task_chg_dis(dppi_inst, n); in nhw_dppi_regw_sideeffects_TASK_CHGn_DIS()
394 unsigned int dppi_inst = (uintptr_t)param >> 16; in nhw_dppi_taskwrap_chg_en() local
396 nhw_dppi_task_chg_en(dppi_inst, n); in nhw_dppi_taskwrap_chg_en()
400 unsigned int dppi_inst = (uintptr_t)param >> 16; in nhw_dppi_taskwrap_chg_dis() local
402 nhw_dppi_task_chg_dis(dppi_inst, n); in nhw_dppi_taskwrap_chg_dis()
405 void nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_EN(unsigned int dppi_inst, uint n) in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_EN() argument
407 nhw_dppi_check_chg_valid(dppi_inst, n, "write to SUBSCRIBE_CHG_EN register in"); in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_EN()
409 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_EN()
410 NRF_DPPIC_Type *regs = nhw_dppi_st[dppi_inst].NRF_DPPIC_regs; in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_EN()
416 (void*)((dppi_inst << 16) + n)); in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_EN()
419 void nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_DIS(unsigned int dppi_inst, uint n) in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_DIS() argument
421 nhw_dppi_check_chg_valid(dppi_inst, n, "write to SUBSCRIBE_CHG_DIS register in"); in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_DIS()
423 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_DIS()
424 NRF_DPPIC_Type *regs = nhw_dppi_st[dppi_inst].NRF_DPPIC_regs; in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_DIS()
430 (void*)((dppi_inst << 16) + n)); in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_DIS()
436 void nhw_dppi_regw_sideeffects_CHENSET(uint dppi_inst) in nhw_dppi_regw_sideeffects_CHENSET() argument
438 nhw_dppi_check_inst_valid(dppi_inst, "access CHENSET register in"); in nhw_dppi_regw_sideeffects_CHENSET()
440 NRF_DPPIC_Type *regs = nhw_dppi_st[dppi_inst].NRF_DPPIC_regs; in nhw_dppi_regw_sideeffects_CHENSET()
451 void nhw_dppi_regw_sideeffects_CHENCLR(uint dppi_inst) in nhw_dppi_regw_sideeffects_CHENCLR() argument
453 nhw_dppi_check_inst_valid(dppi_inst, "access CHENCLR register in"); in nhw_dppi_regw_sideeffects_CHENCLR()
455 NRF_DPPIC_Type *regs = nhw_dppi_st[dppi_inst].NRF_DPPIC_regs; in nhw_dppi_regw_sideeffects_CHENCLR()
463 void nhw_dppi_regw_sideeffects_CHEN(uint dppi_inst) in nhw_dppi_regw_sideeffects_CHEN() argument
465 nhw_dppi_check_inst_valid(dppi_inst, "access CHENSET register in"); in nhw_dppi_regw_sideeffects_CHEN()
467 NRF_DPPIC_Type *regs = nhw_dppi_st[dppi_inst].NRF_DPPIC_regs; in nhw_dppi_regw_sideeffects_CHEN()
471 void nhw_dppi_regw_sideeffects_CHGn(uint dppi_inst, uint n) in nhw_dppi_regw_sideeffects_CHGn() argument
473 nhw_dppi_check_chg_valid(dppi_inst, n, "access CHENSET register in"); in nhw_dppi_regw_sideeffects_CHGn()
475 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_regw_sideeffects_CHGn()
476 NRF_DPPIC_Type *regs = nhw_dppi_st[dppi_inst].NRF_DPPIC_regs; in nhw_dppi_regw_sideeffects_CHGn()
487 __func__, dppi_inst, n); in nhw_dppi_regw_sideeffects_CHGn()
502 void nhw_dppi_event_signal_if(uint dppi_inst, uint32_t publish_reg) { in nhw_dppi_event_signal_if() argument
511 nhw_dppi_event_signal(dppi_inst, chidx); in nhw_dppi_event_signal_if()
527 void nhw_dppi_common_subscribe_sideeffect(unsigned int dppi_inst, in nhw_dppi_common_subscribe_sideeffect() argument
543 nhw_dppi_channel_unsubscribe(dppi_inst, in nhw_dppi_common_subscribe_sideeffect()
551 nhw_dppi_channel_subscribe(dppi_inst, in nhw_dppi_common_subscribe_sideeffect()