Lines Matching refs:timer_handle
29 static timer_handle_t timer_handle; variable
44 int ret = csi_timer_get_current_value(timer_handle, &cv); in timer_current_value()
64 timer_handle = csi_timer_initialize(CLOCK_GETTIME_USE_TIMER_ID, timer_cb_fun); in clock_timer_init()
66 if (timer_handle == NULL) { in clock_timer_init()
74 int ret = csi_timer_config(timer_handle, TIMER_MODE_RELOAD); in clock_timer_init()
80 ret = csi_timer_set_timeout(timer_handle, timer_loadtimer); in clock_timer_init()
87 csi_timer_get_current_value(timer_handle, &cv1); in clock_timer_init()
88 csi_timer_get_current_value(timer_handle, &cv2); in clock_timer_init()
103 if (csi_timer_uninitialize(timer_handle) != 0) { in clock_timer_uninit()
107 timer_handle = NULL; in clock_timer_uninit()
117 ret = csi_timer_start(timer_handle); in clock_timer_start()
148 if (csi_timer_stop(timer_handle) != 0) { in clock_timer_stop()
161 if (timer_handle == 0) { in clock_gettime()