Lines Matching refs:error_code

101 	sl_status_t error_code;  in counter_gecko_start()  local
104 error_code = sl_sleeptimer_is_timer_running(&top_timer, &is_top_timer_running); in counter_gecko_start()
105 if ((error_code == SL_STATUS_OK) && (is_top_timer_running == true)) { in counter_gecko_start()
110 error_code = sl_sleeptimer_start_timer(&top_timer, dev_data->top_data.ticks, top_callback, in counter_gecko_start()
112 return error_code; in counter_gecko_start()
119 sl_status_t error_code; in counter_gecko_stop() local
122 error_code = sl_sleeptimer_is_timer_running(&top_timer, &is_top_timer_running); in counter_gecko_stop()
123 if ((error_code == SL_STATUS_OK) && (is_top_timer_running == true)) { in counter_gecko_stop()
126 return error_code; in counter_gecko_stop()
132 sl_status_t error_code; in counter_gecko_set_top_value() local
145 error_code = sl_sleeptimer_is_timer_running(&top_timer, &is_top_timer_running); in counter_gecko_set_top_value()
146 if ((error_code == SL_STATUS_OK) && (is_top_timer_running == true)) { in counter_gecko_set_top_value()
155 error_code = sl_sleeptimer_start_periodic_timer(&top_timer, cfg->ticks, top_callback, in counter_gecko_set_top_value()
158 return error_code; in counter_gecko_set_top_value()
173 sl_status_t error_code; in counter_gecko_set_alarm() local
186 error_code = sl_sleeptimer_is_timer_running(&alarm_timer[chan_id], &is_alarm_timer_running); in counter_gecko_set_alarm()
187 if ((error_code == SL_STATUS_OK) && (is_alarm_timer_running == true)) { in counter_gecko_set_alarm()
193 error_code = counter_gecko_get_value(dev, &now_ticks); in counter_gecko_set_alarm()
211 error_code = in counter_gecko_set_alarm()