Lines Matching refs:mutex_task
22 mutex->mutex_task = NULL; in mutex_create()
91 if (mutex->mutex_task != NULL) { in krhino_mutex_del()
92 mutex_release(mutex->mutex_task, mutex); in krhino_mutex_del()
168 if (mutex->mutex_task != NULL) { in krhino_mutex_dyn_del()
169 mutex_release(mutex->mutex_task, mutex); in krhino_mutex_dyn_del()
269 ktask_t *mutex_task; in mutex_task_pri_reset() local
273 mutex_task = mutex_tmp->mutex_task; in mutex_task_pri_reset()
276 if (mutex_task->prio == task->prio) { in mutex_task_pri_reset()
277 mutex_release(mutex_task, NULL); in mutex_task_pri_reset()
287 ktask_t *mutex_task; in krhino_mutex_lock() local
309 if (g_active_task[cur_cpu_num] == mutex->mutex_task) { in krhino_mutex_lock()
324 mutex_task = mutex->mutex_task; in krhino_mutex_lock()
325 if (mutex_task == NULL) { in krhino_mutex_lock()
327 mutex->mutex_task = g_active_task[cur_cpu_num]; in krhino_mutex_lock()
355 if (g_active_task[cur_cpu_num]->prio < mutex_task->prio) { in krhino_mutex_lock()
356 task_pri_change(mutex_task, g_active_task[cur_cpu_num]->prio); in krhino_mutex_lock()
358 TRACE_TASK_PRI_INV(g_active_task[cur_cpu_num], mutex_task); in krhino_mutex_lock()
405 if (g_active_task[cur_cpu_num] != mutex->mutex_task) { in krhino_mutex_unlock()
424 mutex->mutex_task = NULL; in krhino_mutex_unlock()
441 mutex->mutex_task = task; in krhino_mutex_unlock()