• Home
  • Raw
  • Download

Lines Matching refs:bucket

883 	struct bpf_shtab_bucket *bucket;  in __sock_hash_lookup_elem()  local
889 bucket = sock_hash_select_bucket(htab, hash); in __sock_hash_lookup_elem()
890 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in __sock_hash_lookup_elem()
907 struct bpf_shtab_bucket *bucket; in sock_hash_delete_from_link() local
910 bucket = sock_hash_select_bucket(htab, elem->hash); in sock_hash_delete_from_link()
916 raw_spin_lock_bh(&bucket->lock); in sock_hash_delete_from_link()
917 elem_probe = sock_hash_lookup_elem_raw(&bucket->head, elem->hash, in sock_hash_delete_from_link()
924 raw_spin_unlock_bh(&bucket->lock); in sock_hash_delete_from_link()
931 struct bpf_shtab_bucket *bucket; in sock_hash_delete_elem() local
937 bucket = sock_hash_select_bucket(htab, hash); in sock_hash_delete_elem()
939 raw_spin_lock_irqsave(&bucket->lock, flags); in sock_hash_delete_elem()
940 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in sock_hash_delete_elem()
947 raw_spin_unlock_irqrestore(&bucket->lock, flags); in sock_hash_delete_elem()
984 struct bpf_shtab_bucket *bucket; in sock_hash_update_common() local
1005 bucket = sock_hash_select_bucket(htab, hash); in sock_hash_update_common()
1007 raw_spin_lock_bh(&bucket->lock); in sock_hash_update_common()
1008 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, key, key_size); in sock_hash_update_common()
1027 hlist_add_head_rcu(&elem_new->node, &bucket->head); in sock_hash_update_common()
1033 raw_spin_unlock_bh(&bucket->lock); in sock_hash_update_common()
1036 raw_spin_unlock_bh(&bucket->lock); in sock_hash_update_common()
1136 struct bpf_shtab_bucket *bucket; in sock_hash_free() local
1148 bucket = sock_hash_select_bucket(htab, i); in sock_hash_free()
1156 raw_spin_lock_bh(&bucket->lock); in sock_hash_free()
1157 hlist_for_each_entry(elem, &bucket->head, node) in sock_hash_free()
1159 hlist_move_list(&bucket->head, &unlink_list); in sock_hash_free()
1160 raw_spin_unlock_bh(&bucket->lock); in sock_hash_free()
1304 struct bpf_shtab_bucket *bucket; in sock_hash_seq_find_next() local
1320 bucket = &htab->buckets[info->bucket_id]; in sock_hash_seq_find_next()
1321 node = rcu_dereference(hlist_first_rcu(&bucket->head)); in sock_hash_seq_find_next()