Lines Matching full:hb

158  * @hb:                    ptr to the private local hash.
163 void futex_hash_get(struct futex_hash_bucket *hb) in futex_hash_get() argument
165 struct futex_private_hash *fph = hb->priv; in futex_hash_get()
172 void futex_hash_put(struct futex_hash_bucket *hb) in futex_hash_put() argument
174 struct futex_private_hash *fph = hb->priv; in futex_hash_put()
305 struct futex_hash_bucket *hb; in futex_hash() local
309 hb = __futex_hash(key, NULL); in futex_hash()
310 fph = hb->priv; in futex_hash()
313 return hb; in futex_hash()
421 struct futex_hash_bucket *hb; in __futex_hash() local
423 hb = __futex_hash_private(key, fph); in __futex_hash()
424 if (hb) in __futex_hash()
425 return hb; in __futex_hash()
799 * @hb: the hash bucket the futex_q's reside in
802 * Must be called with the hb lock held.
804 struct futex_q *futex_top_waiter(struct futex_hash_bucket *hb, union futex_key *key) in futex_top_waiter() argument
808 plist_for_each_entry(this, &hb->chain, list) { in futex_top_waiter()
854 struct futex_hash_bucket *hb; in __futex_unqueue() local
860 hb = container_of(q->lock_ptr, struct futex_hash_bucket, lock); in __futex_unqueue()
861 plist_del(&q->list, &hb->chain); in __futex_unqueue()
862 futex_hb_waiters_dec(hb); in __futex_unqueue()
866 void futex_q_lock(struct futex_q *q, struct futex_hash_bucket *hb) in futex_q_lock() argument
867 __acquires(&hb->lock) in futex_q_lock()
877 futex_hb_waiters_inc(hb); /* implies smp_mb(); (A) */ in futex_q_lock()
879 q->lock_ptr = &hb->lock; in futex_q_lock()
881 spin_lock(&hb->lock); in futex_q_lock()
884 void futex_q_unlock(struct futex_hash_bucket *hb) in futex_q_unlock() argument
885 __releases(&hb->lock) in futex_q_unlock()
887 futex_hb_waiters_dec(hb); in futex_q_unlock()
888 spin_unlock(&hb->lock); in futex_q_unlock()
891 void __futex_queue(struct futex_q *q, struct futex_hash_bucket *hb, in __futex_queue() argument
907 plist_add(&q->list, &hb->chain); in __futex_queue()
1336 * below. The hb pointer is acquired under the pi_lock so we can't block in exit_pi_state_list()
1352 CLASS(hb, hb)(&key); in exit_pi_state_list()
1372 spin_lock(&hb->lock); in exit_pi_state_list()
1382 spin_unlock(&hb->lock); in exit_pi_state_list()
1394 spin_unlock(&hb->lock); in exit_pi_state_list()