Lines Matching refs:cur
357 struct MUTEX_WAITER *cur; in __ww_mutex_check_waiters() local
361 for (cur = __ww_waiter_first(lock); cur; in __ww_mutex_check_waiters()
362 cur = __ww_waiter_next(lock, cur)) { in __ww_mutex_check_waiters()
364 if (!cur->ww_ctx) in __ww_mutex_check_waiters()
367 if (__ww_mutex_die(lock, cur, ww_ctx) || in __ww_mutex_check_waiters()
368 __ww_mutex_wound(lock, cur->ww_ctx, ww_ctx)) in __ww_mutex_check_waiters()
446 struct MUTEX_WAITER *cur; in __ww_mutex_check_kill() local
465 for (cur = __ww_waiter_prev(lock, waiter); cur; in __ww_mutex_check_kill()
466 cur = __ww_waiter_prev(lock, cur)) { in __ww_mutex_check_kill()
468 if (!cur->ww_ctx) in __ww_mutex_check_kill()
493 struct MUTEX_WAITER *cur, *pos = NULL; in __ww_mutex_add_waiter() local
510 for (cur = __ww_waiter_last(lock); cur; in __ww_mutex_add_waiter()
511 cur = __ww_waiter_prev(lock, cur)) { in __ww_mutex_add_waiter()
513 if (!cur->ww_ctx) in __ww_mutex_add_waiter()
516 if (__ww_ctx_less(ww_ctx, cur->ww_ctx)) { in __ww_mutex_add_waiter()
532 pos = cur; in __ww_mutex_add_waiter()
535 __ww_mutex_die(lock, cur, ww_ctx); in __ww_mutex_add_waiter()