Lines Matching refs:i

113   for (int i = 0; i < NHW_DPPI_TOTAL_INST; i ++) {  in nhw_dppi_init()  local
114 struct dppi_status *el = &nhw_dppi_st[i]; in nhw_dppi_init()
116 el->NRF_DPPIC_regs = &NRF_DPPIC_regs[i]; in nhw_dppi_init()
117 el->n_ch = nhw_dppi_n_ch[i]; in nhw_dppi_init()
118 el->n_chg = nhw_dppi_n_chg[i]; in nhw_dppi_init()
120 int n_ch = nhw_dppi_n_ch[i]; in nhw_dppi_init()
131 int n_chg = nhw_dppi_n_chg[i]; in nhw_dppi_init()
133 el->dppi_map = nhw_dppi_dppi_map[i]; in nhw_dppi_init()
148 for (int i = 0; i < NHW_DPPI_TOTAL_INST; i ++) { in nhw_dppi_free() local
149 if (nhw_dppi_st[i].registry != NULL) { /* LCOV_EXCL_BR_LINE */ in nhw_dppi_free()
150 int n_ch = nhw_dppi_st[i].n_ch; in nhw_dppi_free()
152 if (nhw_dppi_st[i].registry[n] != NULL) { /* LCOV_EXCL_BR_LINE */ in nhw_dppi_free()
153 free(nhw_dppi_st[i].registry[n]); in nhw_dppi_free()
156 free(nhw_dppi_st[i].registry); in nhw_dppi_free()
157 nhw_dppi_st[i].registry = NULL; in nhw_dppi_free()
159 free(nhw_dppi_st[i].reg_size); in nhw_dppi_free()
160 nhw_dppi_st[i].reg_size = NULL; in nhw_dppi_free()
162 free(nhw_dppi_st[i].reg_used); in nhw_dppi_free()
163 nhw_dppi_st[i].reg_used = NULL; in nhw_dppi_free()
165 free(nhw_dppi_st[i].CHG_EN_subscribed); in nhw_dppi_free()
166 nhw_dppi_st[i].CHG_EN_subscribed = NULL; in nhw_dppi_free()
168 free(nhw_dppi_st[i].CHG_DIS_subscribed); in nhw_dppi_free()
169 nhw_dppi_st[i].CHG_DIS_subscribed = NULL; in nhw_dppi_free()
171 free(nhw_dppi_st[i].shadow_CHG); in nhw_dppi_free()
172 nhw_dppi_st[i].shadow_CHG = NULL; in nhw_dppi_free()
250 for (uint i = 0; i < this->reg_used[ch_n]; i++) { in nhw_dppi_channel_subscribe() local
251 if ((ch_reg[i].callback == callback) /* LCOV_EXCL_START */ in nhw_dppi_channel_subscribe()
252 && (ch_reg[i].param == param)) { in nhw_dppi_channel_subscribe()
274 for (int i = off+1; i < n; i++) { in nhw_dppi_shift_registration() local
275 ch_reg[i-1].callback = ch_reg[i].callback; in nhw_dppi_shift_registration()
276 ch_reg[i-1].param = ch_reg[i].param; in nhw_dppi_shift_registration()
302 for (uint i = 0; i < this->reg_used[ch_n]; i++) { in nhw_dppi_channel_unsubscribe() local
303 if ((ch_reg[i].callback == callback) in nhw_dppi_channel_unsubscribe()
304 && (ch_reg[i].param == param)) { in nhw_dppi_channel_unsubscribe()
305 nhw_dppi_shift_registration(ch_reg, i, this->reg_used[ch_n]); in nhw_dppi_channel_unsubscribe()
334 for (uint i = 0; i < this->reg_used[ch_n]; i++) { in nhw_dppi_event_signal() local
335 if (ch_reg[i].callback) { /* LCOV_EXCL_BR_LINE */ in nhw_dppi_event_signal()
336 if (ch_reg[i].param != (void*)DPPI_CB_NO_PARAM) { in nhw_dppi_event_signal()
337 ch_reg[i].callback(ch_reg[i].param); in nhw_dppi_event_signal()
339 ((dppi_callback_noparam_t)ch_reg[i].callback)(); in nhw_dppi_event_signal()
344 __func__, dppi_inst, ch_n, i); in nhw_dppi_event_signal()