Lines Matching refs:err_code
168 nrfx_err_t err_code; in z_nrf_grtc_timer_chan_alloc() local
174 err_code = nrfx_grtc_channel_alloc(&chan); in z_nrf_grtc_timer_chan_alloc()
175 if (err_code != NRFX_SUCCESS) { in z_nrf_grtc_timer_chan_alloc()
185 nrfx_err_t err_code = nrfx_grtc_channel_free(chan); in z_nrf_grtc_timer_chan_free() local
187 if (err_code == NRFX_SUCCESS) { in z_nrf_grtc_timer_chan_free()
373 nrfx_err_t err_code; in z_nrf_grtc_wakeup_prepare() local
395 err_code = nrfx_grtc_channel_alloc(&systemoff_channel); in z_nrf_grtc_wakeup_prepare()
396 if (err_code != NRFX_SUCCESS) { in z_nrf_grtc_wakeup_prepare()
470 nrfx_err_t err_code; in sys_clock_driver_init() local
475 err_code = nrfx_grtc_init(0); in sys_clock_driver_init()
476 if (err_code != NRFX_SUCCESS) { in sys_clock_driver_init()
481 err_code = nrfx_grtc_syscounter_start(true, &system_clock_channel_data.channel); in sys_clock_driver_init()
482 if (err_code != NRFX_SUCCESS) { in sys_clock_driver_init()
483 return err_code == NRFX_ERROR_NO_MEM ? -ENOMEM : -EPERM; in sys_clock_driver_init()
486 err_code = nrfx_grtc_channel_alloc(&system_clock_channel_data.channel); in sys_clock_driver_init()
487 if (err_code != NRFX_SUCCESS) { in sys_clock_driver_init()