Lines Matching refs:hb2
1299 double_lock_hb(struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2) in double_lock_hb() argument
1301 if (hb1 <= hb2) { in double_lock_hb()
1303 if (hb1 < hb2) in double_lock_hb()
1304 spin_lock_nested(&hb2->lock, SINGLE_DEPTH_NESTING); in double_lock_hb()
1306 spin_lock(&hb2->lock); in double_lock_hb()
1312 double_unlock_hb(struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2) in double_unlock_hb() argument
1315 if (hb1 != hb2) in double_unlock_hb()
1316 spin_unlock(&hb2->lock); in double_unlock_hb()
1380 struct futex_hash_bucket *hb1, *hb2; in futex_wake_op() local
1394 hb2 = hash_futex(&key2); in futex_wake_op()
1397 double_lock_hb(hb1, hb2); in futex_wake_op()
1401 double_unlock_hb(hb1, hb2); in futex_wake_op()
1443 plist_for_each_entry_safe(this, next, &hb2->chain, list) { in futex_wake_op()
1458 double_unlock_hb(hb1, hb2); in futex_wake_op()
1477 struct futex_hash_bucket *hb2, union futex_key *key2) in requeue_futex() argument
1484 if (likely(&hb1->chain != &hb2->chain)) { in requeue_futex()
1487 hb_waiters_inc(hb2); in requeue_futex()
1488 plist_add(&q->list, &hb2->chain); in requeue_futex()
1489 q->lock_ptr = &hb2->lock; in requeue_futex()
1548 struct futex_hash_bucket *hb2, in futex_proxy_trylock_atomic() argument
1586 ret = futex_lock_pi_atomic(pifutex, hb2, key2, ps, top_waiter->task, in futex_proxy_trylock_atomic()
1589 requeue_pi_wake_futex(top_waiter, key2, hb2); in futex_proxy_trylock_atomic()
1620 struct futex_hash_bucket *hb1, *hb2; in futex_requeue() local
1671 hb2 = hash_futex(&key2); in futex_requeue()
1674 hb_waiters_inc(hb2); in futex_requeue()
1675 double_lock_hb(hb1, hb2); in futex_requeue()
1683 double_unlock_hb(hb1, hb2); in futex_requeue()
1684 hb_waiters_dec(hb2); in futex_requeue()
1710 ret = futex_proxy_trylock_atomic(uaddr2, hb1, hb2, &key1, in futex_requeue()
1735 ret = lookup_pi_state(ret, hb2, &key2, &pi_state); in futex_requeue()
1744 double_unlock_hb(hb1, hb2); in futex_requeue()
1745 hb_waiters_dec(hb2); in futex_requeue()
1761 double_unlock_hb(hb1, hb2); in futex_requeue()
1762 hb_waiters_dec(hb2); in futex_requeue()
1822 requeue_pi_wake_futex(this, &key2, hb2); in futex_requeue()
1832 requeue_futex(this, hb1, hb2, &key2); in futex_requeue()
1838 double_unlock_hb(hb1, hb2); in futex_requeue()
1840 hb_waiters_dec(hb2); in futex_requeue()