Lines Matching refs:os

91       p_pthread_info->task_id, gki_cb.os.thread_id[p_pthread_info->task_id],  in gki_task_entry()
94 gki_cb.os.thread_id[p_pthread_info->task_id] = thread_id; in gki_task_entry()
100 gki_cb.os.thread_id[p_pthread_info->task_id] = 0; in gki_task_entry()
130 p_os = &gki_cb.os; in GKI_init()
208 pthread_mutex_init(&gki_cb.os.thread_evt_mutex[task_id], nullptr); in GKI_create_task()
209 pthread_cond_init(&gki_cb.os.thread_evt_cond[task_id], &attr); in GKI_create_task()
210 pthread_mutex_init(&gki_cb.os.thread_timeout_mutex[task_id], nullptr); in GKI_create_task()
211 pthread_cond_init(&gki_cb.os.thread_timeout_cond[task_id], &attr); in GKI_create_task()
235 ret = pthread_create(&gki_cb.os.thread_id[task_id], &attr1, gki_task_entry, in GKI_create_task()
244 if (pthread_getschedparam(gki_cb.os.thread_id[task_id], &policy, &param) == in GKI_create_task()
257 pthread_setschedparam(gki_cb.os.thread_id[task_id], policy, &param); in GKI_create_task()
262 gki_cb.os.thread_id[task_id], taskname, stack, stacksize); in GKI_create_task()
281 volatile int* p_run_cond = &gki_cb.os.no_timer_suspend; in GKI_shutdown()
309 result = pthread_join(gki_cb.os.thread_id[task_id - 1], NULL); in GKI_shutdown()
322 pthread_mutex_destroy(&gki_cb.os.GKI_mutex); in GKI_shutdown()
336 pthread_cond_signal(&gki_cb.os.gki_timer_cond); in GKI_shutdown()
351 tGKI_OS* p_os = &gki_cb.os; in gki_system_tick_start_stop_cback()
424 volatile int* p_run_cond = &gki_cb.os.no_timer_suspend; in GKI_run()
481 pthread_mutex_lock(&gki_cb.os.gki_timer_mutex); in GKI_run()
482 pthread_cond_wait(&gki_cb.os.gki_timer_cond, &gki_cb.os.gki_timer_mutex); in GKI_run()
483 pthread_mutex_unlock(&gki_cb.os.gki_timer_mutex); in GKI_run()
568 pthread_mutex_lock(&gki_cb.os.thread_evt_mutex[rtask]); in GKI_wait()
607 pthread_cond_timedwait(&gki_cb.os.thread_evt_cond[rtask], in GKI_wait()
608 &gki_cb.os.thread_evt_mutex[rtask], &abstime); in GKI_wait()
611 pthread_cond_wait(&gki_cb.os.thread_evt_cond[rtask], in GKI_wait()
612 &gki_cb.os.thread_evt_mutex[rtask]); in GKI_wait()
636 pthread_mutex_unlock(&gki_cb.os.thread_evt_mutex[rtask]); in GKI_wait()
640 gki_cb.os.thread_id[rtask] = 0; in GKI_wait()
656 pthread_mutex_unlock(&gki_cb.os.thread_evt_mutex[rtask]); in GKI_wait()
723 pthread_mutex_lock(&gki_cb.os.thread_evt_mutex[task_id]); in GKI_send_event()
728 pthread_cond_signal(&gki_cb.os.thread_evt_cond[task_id]); in GKI_send_event()
730 pthread_mutex_unlock(&gki_cb.os.thread_evt_mutex[task_id]); in GKI_send_event()
783 if (gki_cb.os.thread_id[i] == thread_id) { in GKI_get_taskid()
832 pthread_mutex_unlock(&gki_cb.os.GKI_mutex); in GKI_enable()
855 pthread_mutex_lock(&gki_cb.os.GKI_mutex); in GKI_disable()
1079 pthread_mutex_destroy(&gki_cb.os.thread_evt_mutex[task_id]); in GKI_exit_task()
1080 pthread_cond_destroy(&gki_cb.os.thread_evt_cond[task_id]); in GKI_exit_task()
1081 pthread_mutex_destroy(&gki_cb.os.thread_timeout_mutex[task_id]); in GKI_exit_task()
1082 pthread_cond_destroy(&gki_cb.os.thread_timeout_cond[task_id]); in GKI_exit_task()