Lines Matching refs:this
193 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_check_ch_valid() local
194 if (this->registry == NULL) { /* LCOV_EXCL_START */ in nhw_dppi_check_ch_valid()
199 if (ch_n >= this->n_ch) { in nhw_dppi_check_ch_valid()
202 __func__, type, ch_n, this->n_ch, dppi_inst); in nhw_dppi_check_ch_valid()
212 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_check_chg_valid() local
214 if (this->registry == NULL) { /* LCOV_EXCL_START */ in nhw_dppi_check_chg_valid()
219 if (chg_n >= this->n_chg) { in nhw_dppi_check_chg_valid()
222 __func__, type, chg_n, this->n_chg, dppi_inst); in nhw_dppi_check_chg_valid()
247 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_channel_subscribe() local
248 struct dppi_registry_el *ch_reg = this->registry[ch_n]; in nhw_dppi_channel_subscribe()
250 for (uint i = 0; i < this->reg_used[ch_n]; i++) { in nhw_dppi_channel_subscribe()
259 if (this->reg_used[ch_n] >= this->reg_size[ch_n]) { in nhw_dppi_channel_subscribe()
260 this->reg_size[ch_n] += DPPI_ALLOC_CHUNK_SIZE; in nhw_dppi_channel_subscribe()
261 this->registry[ch_n] = bs_realloc(this->registry[ch_n], in nhw_dppi_channel_subscribe()
262 this->reg_size[ch_n] * sizeof(struct dppi_registry_el)); in nhw_dppi_channel_subscribe()
264 int n = this->reg_used[ch_n]; in nhw_dppi_channel_subscribe()
265 this->registry[ch_n][n].callback = callback; in nhw_dppi_channel_subscribe()
266 this->registry[ch_n][n].param = param; in nhw_dppi_channel_subscribe()
267 this->reg_used[ch_n]++; in nhw_dppi_channel_subscribe()
299 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_channel_unsubscribe() local
300 struct dppi_registry_el *ch_reg = this->registry[ch_n]; in nhw_dppi_channel_unsubscribe()
302 for (uint i = 0; i < this->reg_used[ch_n]; i++) { in nhw_dppi_channel_unsubscribe()
305 nhw_dppi_shift_registration(ch_reg, i, this->reg_used[ch_n]); in nhw_dppi_channel_unsubscribe()
306 this->reg_used[ch_n]--; in nhw_dppi_channel_unsubscribe()
326 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_event_signal() local
328 if ((this->NRF_DPPIC_regs->CHEN & ((uint32_t)0x1 << ch_n)) == 0) { in nhw_dppi_event_signal()
332 struct dppi_registry_el *ch_reg = this->registry[ch_n]; in nhw_dppi_event_signal()
334 for (uint i = 0; i < this->reg_used[ch_n]; i++) { in nhw_dppi_event_signal()
409 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_EN() local
412 nhw_dppi_common_subscribe_sideeffect(this->dppi_map, in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_EN()
414 &this->CHG_EN_subscribed[n], in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_EN()
423 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_DIS() local
426 nhw_dppi_common_subscribe_sideeffect(this->dppi_map, in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_DIS()
428 &this->CHG_DIS_subscribed[n], in nhw_dppi_regw_sideeffects_SUBSCRIBE_CHG_DIS()
475 struct dppi_status *this = &nhw_dppi_st[dppi_inst]; in nhw_dppi_regw_sideeffects_CHGn() local
488 regs->CHG[n] = this->shadow_CHG[n]; in nhw_dppi_regw_sideeffects_CHGn()
492 this->shadow_CHG[n] = regs->CHG[n]; in nhw_dppi_regw_sideeffects_CHGn()