Lines Matching refs:this

184   struct clkpwr_status *this = &nhw_clkpwr_st[inst];  in nhw_pwrclk_eval_interrupt()  local
188 && (this->INTEN & CLOCK_INTENCLR_##x##_Msk)){ \ in nhw_pwrclk_eval_interrupt()
255 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_signal_handler() local
256 NRF_CLOCK_Type *CLOCK_regs = this->CLOCK_regs; in nhw_clock_signal_handler()
260 this->LF_Clock_state = Starting; in nhw_clock_signal_handler()
262 this->Timer_CLOCK_LF = nsi_hws_get_time(); //we assume the clock is ready in 1 delta in nhw_clock_signal_handler()
274 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_LFCLKSTOP() local
276 if ((this->LF_Clock_state == Started) || (this->LF_Clock_state == Starting)) { in nhw_clock_TASKS_LFCLKSTOP()
278 this->LF_Clock_state = Stopping; in nhw_clock_TASKS_LFCLKSTOP()
279 this->Timer_CLOCK_LF = nsi_hws_get_time(); //we assume the clock is stopped in 1 delta in nhw_clock_TASKS_LFCLKSTOP()
285 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_HFCLKSTART() local
287 if ((this->HF_Clock_state == Stopped ) || (this->HF_Clock_state == Stopping)) { in nhw_clock_TASKS_HFCLKSTART()
288 this->HF_Clock_state = Starting; in nhw_clock_TASKS_HFCLKSTART()
290 this->Timer_CLOCK_HF = nsi_hws_get_time(); //we assume the clock is ready in 1 delta in nhw_clock_TASKS_HFCLKSTART()
296 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_HFCLKSTOP() local
298 if ((this->HF_Clock_state == Started) || (this->HF_Clock_state == Starting)) { in nhw_clock_TASKS_HFCLKSTOP()
300 this->HF_Clock_state = Stopping; in nhw_clock_TASKS_HFCLKSTOP()
301 this->Timer_CLOCK_HF = nsi_hws_get_time(); //we assume the clock is stopped in 1 delta in nhw_clock_TASKS_HFCLKSTOP()
339 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_CAL() local
341 if (this->HF_Clock_state != Started) { /* LCOV_EXCL_START */ in nhw_clock_TASKS_CAL()
347this->LF_cal_state = Started; //We don't check for re-triggers, as we are going to be done right a… in nhw_clock_TASKS_CAL()
348 this->Timer_LF_cal = nsi_hws_get_time(); //we assume the calibration is done in 1 delta in nhw_clock_TASKS_CAL()
354 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_CTSTART() local
356 if ( this->caltimer_state == Started ) { /* LCOV_EXCL_START */ in nhw_clock_TASKS_CTSTART()
361 this->caltimer_state = Started; in nhw_clock_TASKS_CTSTART()
362 this->Timer_caltimer = nsi_hws_get_time() + (bs_time_t)NRF_CLOCK_regs[inst]->CTIV * 250000; in nhw_clock_TASKS_CTSTART()
369 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; in nhw_clock_TASKS_CTSTOP() local
371 if ( this->caltimer_state == Stopped ) { /* LCOV_EXCL_START */ in nhw_clock_TASKS_CTSTOP()
375 this->caltimer_state = Stopped; in nhw_clock_TASKS_CTSTOP()
376 this->Timer_caltimer = TIME_NEVER; in nhw_clock_TASKS_CTSTOP()
384 struct clkpwr_status *this = &nhw_clkpwr_st[i]; in nhw_CLOCK_regw_sideeffects_INTENSET() local
386 this->INTEN |= NRF_CLOCK_regs[i]->INTENSET; in nhw_CLOCK_regw_sideeffects_INTENSET()
387 NRF_CLOCK_regs[i]->INTENSET = this->INTEN; in nhw_CLOCK_regw_sideeffects_INTENSET()
394 struct clkpwr_status *this = &nhw_clkpwr_st[i]; in nhw_CLOCK_regw_sideeffects_INTENCLR() local
396 this->INTEN &= ~NRF_CLOCK_regs[i]->INTENCLR; in nhw_CLOCK_regw_sideeffects_INTENCLR()
397 NRF_CLOCK_regs[i]->INTENSET = this->INTEN; in nhw_CLOCK_regw_sideeffects_INTENCLR()
434 void nhw_clock_LFTimer_triggered(struct clkpwr_status *this) { in nhw_clock_LFTimer_triggered() argument
435 NRF_CLOCK_Type *CLOCK_regs = this->CLOCK_regs; in nhw_clock_LFTimer_triggered()
440 if (this->LF_Clock_state == Starting) { /* LCOV_EXCL_BR_LINE */ in nhw_clock_LFTimer_triggered()
444 nhw_clock_signal_LFCLKSTARTED(this->inst); in nhw_clock_LFTimer_triggered()
447 } else if (this->LF_Clock_state == Stopping) { in nhw_clock_LFTimer_triggered()
448 this->LF_Clock_state = Stopped; in nhw_clock_LFTimer_triggered()
452 this->Timer_CLOCK_LF = TIME_NEVER; in nhw_clock_LFTimer_triggered()
460 void nhw_clock_HFTimer_triggered(struct clkpwr_status *this) { in nhw_clock_HFTimer_triggered() argument
461 NRF_CLOCK_Type *CLOCK_regs = this->CLOCK_regs; in nhw_clock_HFTimer_triggered()
463 if ( this->HF_Clock_state == Starting ){ in nhw_clock_HFTimer_triggered()
464 this->HF_Clock_state = Started; in nhw_clock_HFTimer_triggered()
469 nhw_clock_signal_HFCLKSTARTED(this->inst); in nhw_clock_HFTimer_triggered()
471 } else if ( this->HF_Clock_state == Stopping ){ in nhw_clock_HFTimer_triggered()
472 this->HF_Clock_state = Stopped; in nhw_clock_HFTimer_triggered()
476 this->Timer_CLOCK_HF = TIME_NEVER; in nhw_clock_HFTimer_triggered()
480 void nhw_clock_LF_cal_triggered(struct clkpwr_status *this) { in nhw_clock_LF_cal_triggered() argument
481 this->LF_cal_state = Stopped; in nhw_clock_LF_cal_triggered()
482 this->Timer_LF_cal = TIME_NEVER; in nhw_clock_LF_cal_triggered()
485 nhw_clock_signal_DONE(this->inst); in nhw_clock_LF_cal_triggered()
489 void nhw_clock_caltimer_triggered(struct clkpwr_status *this) { in nhw_clock_caltimer_triggered() argument
491 if (this->caltimer_state != Started) { /* LCOV_EXCL_START */ in nhw_clock_caltimer_triggered()
494 this->caltimer_state = Stopped; in nhw_clock_caltimer_triggered()
495 this->Timer_caltimer = TIME_NEVER; in nhw_clock_caltimer_triggered()
497 nhw_clock_signal_CTTO(this->inst); in nhw_clock_caltimer_triggered()
538 struct clkpwr_status *this = &nhw_clkpwr_st[inst]; \
540 nhw_dppi_common_subscribe_sideeffect(this->dppi_map, \
541 this->CLOCK_regs->SUBSCRIBE_##TASK_N, \
542 &this->subscribed_##TASK_N, \