Lines Matching refs:bucket

562 	struct bpf_htab_bucket *bucket;  in __sock_hash_lookup_elem()  local
568 bucket = sock_hash_select_bucket(htab, hash); in __sock_hash_lookup_elem()
569 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in __sock_hash_lookup_elem()
586 struct bpf_htab_bucket *bucket; in sock_hash_delete_from_link() local
589 bucket = sock_hash_select_bucket(htab, elem->hash); in sock_hash_delete_from_link()
595 raw_spin_lock_bh(&bucket->lock); in sock_hash_delete_from_link()
596 elem_probe = sock_hash_lookup_elem_raw(&bucket->head, elem->hash, in sock_hash_delete_from_link()
603 raw_spin_unlock_bh(&bucket->lock); in sock_hash_delete_from_link()
610 struct bpf_htab_bucket *bucket; in sock_hash_delete_elem() local
615 bucket = sock_hash_select_bucket(htab, hash); in sock_hash_delete_elem()
617 raw_spin_lock_bh(&bucket->lock); in sock_hash_delete_elem()
618 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in sock_hash_delete_elem()
625 raw_spin_unlock_bh(&bucket->lock); in sock_hash_delete_elem()
662 struct bpf_htab_bucket *bucket; in sock_hash_update_common() local
685 bucket = sock_hash_select_bucket(htab, hash); in sock_hash_update_common()
687 raw_spin_lock_bh(&bucket->lock); in sock_hash_update_common()
688 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in sock_hash_update_common()
707 hlist_add_head_rcu(&elem_new->node, &bucket->head); in sock_hash_update_common()
713 raw_spin_unlock_bh(&bucket->lock); in sock_hash_update_common()
716 raw_spin_unlock_bh(&bucket->lock); in sock_hash_update_common()
853 struct bpf_htab_bucket *bucket; in sock_hash_free() local
861 bucket = sock_hash_select_bucket(htab, i); in sock_hash_free()
862 raw_spin_lock_bh(&bucket->lock); in sock_hash_free()
863 hlist_for_each_entry_safe(elem, node, &bucket->head, node) { in sock_hash_free()
867 raw_spin_unlock_bh(&bucket->lock); in sock_hash_free()