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()
132 p_os = &gki_cb.os; in GKI_init()
210 pthread_mutex_init(&gki_cb.os.thread_evt_mutex[task_id], nullptr); in GKI_create_task()
211 pthread_cond_init(&gki_cb.os.thread_evt_cond[task_id], &attr); in GKI_create_task()
212 pthread_mutex_init(&gki_cb.os.thread_timeout_mutex[task_id], nullptr); in GKI_create_task()
213 pthread_cond_init(&gki_cb.os.thread_timeout_cond[task_id], &attr); in GKI_create_task()
237 ret = pthread_create(&gki_cb.os.thread_id[task_id], &attr1, gki_task_entry, in GKI_create_task()
246 if (pthread_getschedparam(gki_cb.os.thread_id[task_id], &policy, ¶m) == in GKI_create_task()
259 pthread_setschedparam(gki_cb.os.thread_id[task_id], policy, ¶m); in GKI_create_task()
264 gki_cb.os.thread_id[task_id], taskname, stack, stacksize); in GKI_create_task()
283 volatile int* p_run_cond = &gki_cb.os.no_timer_suspend; in GKI_shutdown()
311 result = pthread_join(gki_cb.os.thread_id[task_id - 1], NULL); in GKI_shutdown()
324 pthread_mutex_destroy(&gki_cb.os.GKI_mutex); in GKI_shutdown()
338 pthread_cond_signal(&gki_cb.os.gki_timer_cond); in GKI_shutdown()
353 tGKI_OS* p_os = &gki_cb.os; in gki_system_tick_start_stop_cback()
426 volatile int* p_run_cond = &gki_cb.os.no_timer_suspend; in GKI_run()
483 pthread_mutex_lock(&gki_cb.os.gki_timer_mutex); in GKI_run()
484 pthread_cond_wait(&gki_cb.os.gki_timer_cond, &gki_cb.os.gki_timer_mutex); in GKI_run()
485 pthread_mutex_unlock(&gki_cb.os.gki_timer_mutex); in GKI_run()
570 pthread_mutex_lock(&gki_cb.os.thread_evt_mutex[rtask]); in GKI_wait()
609 pthread_cond_timedwait(&gki_cb.os.thread_evt_cond[rtask], in GKI_wait()
610 &gki_cb.os.thread_evt_mutex[rtask], &abstime); in GKI_wait()
613 pthread_cond_wait(&gki_cb.os.thread_evt_cond[rtask], in GKI_wait()
614 &gki_cb.os.thread_evt_mutex[rtask]); in GKI_wait()
638 pthread_mutex_unlock(&gki_cb.os.thread_evt_mutex[rtask]); in GKI_wait()
642 gki_cb.os.thread_id[rtask] = 0; in GKI_wait()
658 pthread_mutex_unlock(&gki_cb.os.thread_evt_mutex[rtask]); in GKI_wait()
725 pthread_mutex_lock(&gki_cb.os.thread_evt_mutex[task_id]); in GKI_send_event()
730 pthread_cond_signal(&gki_cb.os.thread_evt_cond[task_id]); in GKI_send_event()
732 pthread_mutex_unlock(&gki_cb.os.thread_evt_mutex[task_id]); in GKI_send_event()
785 if (gki_cb.os.thread_id[i] == thread_id) { in GKI_get_taskid()
834 pthread_mutex_unlock(&gki_cb.os.GKI_mutex); in GKI_enable()
857 pthread_mutex_lock(&gki_cb.os.GKI_mutex); in GKI_disable()
1081 pthread_mutex_destroy(&gki_cb.os.thread_evt_mutex[task_id]); in GKI_exit_task()
1082 pthread_cond_destroy(&gki_cb.os.thread_evt_cond[task_id]); in GKI_exit_task()
1083 pthread_mutex_destroy(&gki_cb.os.thread_timeout_mutex[task_id]); in GKI_exit_task()
1084 pthread_cond_destroy(&gki_cb.os.thread_timeout_cond[task_id]); in GKI_exit_task()