Lines Matching refs:this

215   struct timer_status *this = &nhw_timer_st[t];  in update_cc_timer()  local
217 if ((this->is_running == true) && (NRF_TIMER_regs[t].MODE == 0)) { in update_cc_timer()
218 bs_time_t next_match = this->start_t in update_cc_timer()
223 this->CC_timers[cc] = next_match; in update_cc_timer()
225 this->CC_timers[cc] = TIME_NEVER; in update_cc_timer()
240 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_eval_interrupts() local
243 for (int cc = 0; cc < this->n_CCs; cc++) { in nhw_timer_eval_interrupts()
244 int mask = this->INTEN & (TIMER_INTENSET_COMPARE0_Msk << cc); in nhw_timer_eval_interrupts()
264 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_TASK_START() local
267 if (this->is_running == false) { in nhw_timer_TASK_START()
268 this->is_running = true; in nhw_timer_TASK_START()
270this->start_t = nsi_hws_get_time() - counter_to_time(this->Counter, t); //If the counter is not ze… in nhw_timer_TASK_START()
278 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_TASK_STOP() local
281 if (this->is_running == true) { in nhw_timer_TASK_STOP()
282 this->is_running = false; in nhw_timer_TASK_STOP()
284this->Counter = time_to_counter(nsi_hws_get_time() - this->start_t, t); //we save the value when t… in nhw_timer_TASK_STOP()
286 for (int cc = 0 ; cc < this->n_CCs ; cc++) { in nhw_timer_TASK_STOP()
287 this->CC_timers[cc] = TIME_NEVER; in nhw_timer_TASK_STOP()
294 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_TASK_SHUTDOWN() local
304 this->is_running = false; in nhw_timer_TASK_SHUTDOWN()
305 this->Counter = 0; in nhw_timer_TASK_SHUTDOWN()
306 this->start_t = TIME_NEVER; in nhw_timer_TASK_SHUTDOWN()
307 for (int cc = 0 ; cc < this->n_CCs ; cc++){ in nhw_timer_TASK_SHUTDOWN()
308 this->CC_timers[cc] = TIME_NEVER; in nhw_timer_TASK_SHUTDOWN()
314 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_TASK_CAPTURE() local
316 if (cc_n >= this->n_CCs) { in nhw_timer_TASK_CAPTURE()
319 t, cc_n, this->n_CCs); in nhw_timer_TASK_CAPTURE()
321 if ((NRF_TIMER_regs[t].MODE != 0 /* Count mode */) || (this->is_running == false)) { in nhw_timer_TASK_CAPTURE()
322 NRF_TIMER_regs[t].CC[cc_n] = this->Counter & mask_from_bitmode(t); in nhw_timer_TASK_CAPTURE()
324 bs_time_t Elapsed = nsi_hws_get_time() - this->start_t; in nhw_timer_TASK_CAPTURE()
334 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_TASK_CLEAR() local
336 this->Counter = 0; in nhw_timer_TASK_CLEAR()
339 this->start_t = nsi_hws_get_time(); in nhw_timer_TASK_CLEAR()
346 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_signal_COMPARE() local
347 NRF_TIMER_Type *TIMER_regs = this->NRF_TIMER_regs; in nhw_timer_signal_COMPARE()
382 nhw_dppi_event_signal_if(this->dppi_map, in nhw_timer_signal_COMPARE()
388 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_signal_COMPARE_if() local
390 if ((this->oneshot_flag[cc_n] == false) && this->NRF_TIMER_regs->ONESHOTEN[cc_n]) { in nhw_timer_signal_COMPARE_if()
394 this->oneshot_flag[cc_n] = false; in nhw_timer_signal_COMPARE_if()
399 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_TASK_COUNT() local
401 if ((NRF_TIMER_regs[t].MODE != 0 /* Count mode */) && (this->is_running == true)) { in nhw_timer_TASK_COUNT()
402 this->Counter = (this->Counter + 1) & mask_from_bitmode(t); in nhw_timer_TASK_COUNT()
404 for (int cc_n = 0; cc_n < this->n_CCs; cc_n++) { in nhw_timer_TASK_COUNT()
405 if (this->Counter == (NRF_TIMER_regs[t].CC[cc_n] & mask_from_bitmode(t))){ in nhw_timer_TASK_COUNT()
463 struct timer_status *this = &nhw_timer_st[inst]; in nhw_timer_regw_sideeffects_SUBSCRIBE_CAPTURE() local
465 nhw_dppi_common_subscribe_sideeffect(this->dppi_map, in nhw_timer_regw_sideeffects_SUBSCRIBE_CAPTURE()
466 this->NRF_TIMER_regs->SUBSCRIBE_CAPTURE[cc_n], in nhw_timer_regw_sideeffects_SUBSCRIBE_CAPTURE()
467 &this->subscribed_CAPTURE[cc_n], in nhw_timer_regw_sideeffects_SUBSCRIBE_CAPTURE()
480 struct timer_status *this = &nhw_timer_st[inst]; \
482 nhw_dppi_common_subscribe_sideeffect(this->dppi_map, \
483 this->NRF_TIMER_regs->SUBSCRIBE_##TASK_N, \
484 &this->subscribed_##TASK_N, \
503 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_regw_sideeffects_INTENSET() local
506 this->INTEN |= NRF_TIMER_regs[t].INTENSET; in nhw_timer_regw_sideeffects_INTENSET()
507 NRF_TIMER_regs[t].INTENSET = this->INTEN; in nhw_timer_regw_sideeffects_INTENSET()
513 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_regw_sideeffects_INTENCLR() local
516 this->INTEN &= ~NRF_TIMER_regs[t].INTENCLR; in nhw_timer_regw_sideeffects_INTENCLR()
517 NRF_TIMER_regs[t].INTENSET = this->INTEN; in nhw_timer_regw_sideeffects_INTENCLR()
524 struct timer_status *this = &nhw_timer_st[t]; in nhw_timer_regw_sideeffects_CC() local
526 if (cc_n >= this->n_CCs) { in nhw_timer_regw_sideeffects_CC()
529 __func__, t, cc_n, this->n_CCs); in nhw_timer_regw_sideeffects_CC()
532 this->oneshot_flag[cc_n] = true; in nhw_timer_regw_sideeffects_CC()
534 if ( (this->is_running == true) && ( NRF_TIMER_regs[t].MODE == 0 ) ) { in nhw_timer_regw_sideeffects_CC()