Lines Matching refs:err_code
169 int err_code; in z_nrf_grtc_timer_chan_alloc() local
175 err_code = nrfx_grtc_channel_alloc(&chan); in z_nrf_grtc_timer_chan_alloc()
176 if (err_code < 0) { in z_nrf_grtc_timer_chan_alloc()
186 int err_code = nrfx_grtc_channel_free(chan); in z_nrf_grtc_timer_chan_free() local
188 if (err_code == 0) { in z_nrf_grtc_timer_chan_free()
344 int err_code; in z_nrf_grtc_wakeup_prepare() local
367 err_code = nrfx_grtc_channel_alloc(&systemoff_channel); in z_nrf_grtc_wakeup_prepare()
368 if (err_code < 0) { in z_nrf_grtc_wakeup_prepare()
370 return err_code; in z_nrf_grtc_wakeup_prepare()
453 int err_code; in sys_clock_driver_init() local
477 err_code = nrfx_grtc_init(0); in sys_clock_driver_init()
478 if (err_code < 0) { in sys_clock_driver_init()
479 return err_code; in sys_clock_driver_init()
483 err_code = nrfx_grtc_syscounter_start(true, &system_clock_channel_data.channel); in sys_clock_driver_init()
484 if (err_code < 0) { in sys_clock_driver_init()
485 return err_code; in sys_clock_driver_init()
488 err_code = nrfx_grtc_channel_alloc(&system_clock_channel_data.channel); in sys_clock_driver_init()
489 if (err_code < 0) { in sys_clock_driver_init()
490 return err_code; in sys_clock_driver_init()