/Linux-v6.1/kernel/bpf/ |
D | hashtab.c | 131 static inline bool htab_is_prealloc(const struct bpf_htab *htab) in htab_is_prealloc() argument 133 return !(htab->map.map_flags & BPF_F_NO_PREALLOC); in htab_is_prealloc() 136 static void htab_init_buckets(struct bpf_htab *htab) in htab_init_buckets() argument 140 for (i = 0; i < htab->n_buckets; i++) { in htab_init_buckets() 141 INIT_HLIST_NULLS_HEAD(&htab->buckets[i].head, i); in htab_init_buckets() 142 raw_spin_lock_init(&htab->buckets[i].raw_lock); in htab_init_buckets() 143 lockdep_set_class(&htab->buckets[i].raw_lock, in htab_init_buckets() 144 &htab->lockdep_key); in htab_init_buckets() 149 static inline int htab_lock_bucket(const struct bpf_htab *htab, in htab_lock_bucket() argument 158 if (unlikely(__this_cpu_inc_return(*(htab->map_locked[hash])) != 1)) { in htab_lock_bucket() [all …]
|
/Linux-v6.1/net/core/ |
D | sock_map.c | 848 static struct bpf_shtab_bucket *sock_hash_select_bucket(struct bpf_shtab *htab, in sock_hash_select_bucket() argument 851 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket() 871 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in __sock_hash_lookup_elem() local 879 bucket = sock_hash_select_bucket(htab, hash); in __sock_hash_lookup_elem() 885 static void sock_hash_free_elem(struct bpf_shtab *htab, in sock_hash_free_elem() argument 888 atomic_dec(&htab->count); in sock_hash_free_elem() 895 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in sock_hash_delete_from_link() local 900 bucket = sock_hash_select_bucket(htab, elem->hash); in sock_hash_delete_from_link() 912 sock_hash_free_elem(htab, elem); in sock_hash_delete_from_link() 919 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in sock_hash_delete_elem() local [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/progs/ |
D | htab_update.c | 14 } htab SEC(".maps"); 27 update_err = bpf_map_update_elem(&htab, &key, &value, 0); in lookup_elem_raw()
|
D | sample_map_ret0.c | 10 } htab SEC(".maps"); 26 value = bpf_map_lookup_elem(&htab, &key); in func()
|
/Linux-v6.1/drivers/s390/char/ |
D | sclp_rw.c | 41 sclp_make_buffer(void *page, unsigned short columns, unsigned short htab) in sclp_make_buffer() argument 59 buffer->htab = htab; in sclp_make_buffer() 235 } while (buffer->current_length % buffer->htab); in sclp_write()
|
D | sclp_rw.h | 75 unsigned short htab; member
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | htab_update.c | 39 err = bpf_map_update_elem(bpf_map__fd(skel->maps.htab), &key, &value, 0); in test_reenter_update() 86 ctx.fd = bpf_map__fd(skel->maps.htab); in test_concurrent_update()
|
/Linux-v6.1/arch/powerpc/kvm/ |
D | book3s_32_mmu_host.c | 46 static ulong htab; variable 110 ulong pteg = htab; in kvmppc_mmu_get_pteg() 123 htab, hash, htabmask, pteg); in kvmppc_mmu_get_pteg() 380 htab = (ulong)__va(sdr1 & 0xffff0000); in kvmppc_mmu_init_pr()
|
/Linux-v6.1/arch/powerpc/platforms/ps3/ |
D | Makefile | 2 obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o
|
/Linux-v6.1/net/xfrm/ |
D | xfrm_policy.c | 4042 struct xfrm_policy_hash *htab; in xfrm_policy_init() local 4048 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init() 4049 htab->table = xfrm_hash_alloc(sz); in xfrm_policy_init() 4050 if (!htab->table) in xfrm_policy_init() 4052 htab->hmask = hmask; in xfrm_policy_init() 4053 htab->dbits4 = 32; in xfrm_policy_init() 4054 htab->sbits4 = 32; in xfrm_policy_init() 4055 htab->dbits6 = 128; in xfrm_policy_init() 4056 htab->sbits6 = 128; in xfrm_policy_init() 4073 struct xfrm_policy_hash *htab; in xfrm_policy_init() local [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_offload.py | 1209 htab = maps[0] if maps[0]["type"] == "hash" else maps[1] variable 1271 bpftool("map delete id %d key %s" % (htab["id"], int2str("I", i))) 1276 (htab["id"], int2str("I", i)), fail=False)
|