Lines Matching refs:t_st
91 struct timer_status *t_st = &nhw_timer_st[t]; in nhw_timer_init() local
93 t_st->NRF_TIMER_regs = &NRF_TIMER_regs[t]; in nhw_timer_init()
95 t_st->INTEN = 0; in nhw_timer_init()
96 t_st->is_running = false; in nhw_timer_init()
97 t_st->start_t = TIME_NEVER; in nhw_timer_init()
98 t_st->Counter = 0; in nhw_timer_init()
100 t_st->base_freq = Timer_freqs[t]; in nhw_timer_init()
101 t_st->n_CCs = Timer_n_CCs[t]; in nhw_timer_init()
102 t_st->CC_timers = (bs_time_t *)bs_malloc(sizeof(bs_time_t)*Timer_n_CCs[t]); in nhw_timer_init()
103 t_st->oneshot_flag = (bool *)bs_calloc(Timer_n_CCs[t], sizeof(bool)); in nhw_timer_init()
105 for (unsigned int cc = 0; cc < t_st->n_CCs ; cc++) { in nhw_timer_init()
106 t_st->CC_timers[cc] = TIME_NEVER; in nhw_timer_init()
110 t_st->dppi_map = nhw_timer_dppi_map[t]; in nhw_timer_init()
111 …t_st->subscribed_CAPTURE = (struct nhw_subsc_mem*)bs_calloc(Timer_n_CCs[t], sizeof(struct nhw_subs… in nhw_timer_init()
125 struct timer_status *t_st = &nhw_timer_st[t]; in nhw_timer_free() local
127 free(t_st->CC_timers); in nhw_timer_free()
128 t_st->CC_timers = NULL; in nhw_timer_free()
130 free(t_st->oneshot_flag); in nhw_timer_free()
131 t_st->oneshot_flag = NULL; in nhw_timer_free()
134 free(t_st->subscribed_CAPTURE); in nhw_timer_free()
135 t_st->subscribed_CAPTURE = NULL; in nhw_timer_free()
197 struct timer_status *t_st = &nhw_timer_st[t]; in update_master_timer() local
199 if ((t_st->is_running == true) && (NRF_TIMER_regs[t].MODE == 0)) { in update_master_timer()
200 for (unsigned int cc = 0 ; cc < t_st->n_CCs ; cc++) { in update_master_timer()
201 if (t_st->CC_timers[cc] < Timer_TIMERs) { in update_master_timer()
202 Timer_TIMERs = t_st->CC_timers[cc]; in update_master_timer()
561 struct timer_status *t_st = &nhw_timer_st[t]; in nhw_hw_model_timer_timer_triggered() local
563 if ( !((t_st->is_running == true) && (NRF_TIMER_regs[t].MODE == 0)) ) { in nhw_hw_model_timer_timer_triggered()
566 for (cc = 0 ; cc < t_st->n_CCs ; cc++) { in nhw_hw_model_timer_timer_triggered()
567 if (t_st->CC_timers[cc] == Timer_TIMERs) { in nhw_hw_model_timer_timer_triggered()