Home
last modified time | relevance | path

Searched refs:htab (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.10/kernel/bpf/
Dhashtab.c111 struct bpf_htab *htab; member
125 static inline bool htab_is_prealloc(const struct bpf_htab *htab) in htab_is_prealloc() argument
127 return !(htab->map.map_flags & BPF_F_NO_PREALLOC); in htab_is_prealloc()
130 static inline bool htab_use_raw_lock(const struct bpf_htab *htab) in htab_use_raw_lock() argument
132 return (!IS_ENABLED(CONFIG_PREEMPT_RT) || htab_is_prealloc(htab)); in htab_use_raw_lock()
135 static void htab_init_buckets(struct bpf_htab *htab) in htab_init_buckets() argument
139 for (i = 0; i < htab->n_buckets; i++) { in htab_init_buckets()
140 INIT_HLIST_NULLS_HEAD(&htab->buckets[i].head, i); in htab_init_buckets()
141 if (htab_use_raw_lock(htab)) in htab_init_buckets()
142 raw_spin_lock_init(&htab->buckets[i].raw_lock); in htab_init_buckets()
[all …]
/Linux-v5.10/net/core/
Dsock_map.c872 static struct bpf_shtab_bucket *sock_hash_select_bucket(struct bpf_shtab *htab, in sock_hash_select_bucket() argument
875 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket()
895 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in __sock_hash_lookup_elem() local
903 bucket = sock_hash_select_bucket(htab, hash); in __sock_hash_lookup_elem()
909 static void sock_hash_free_elem(struct bpf_shtab *htab, in sock_hash_free_elem() argument
912 atomic_dec(&htab->count); in sock_hash_free_elem()
919 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in sock_hash_delete_from_link() local
924 bucket = sock_hash_select_bucket(htab, elem->hash); in sock_hash_delete_from_link()
936 sock_hash_free_elem(htab, elem); in sock_hash_delete_from_link()
943 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in sock_hash_delete_elem() local
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dsample_map_ret0.c5 struct bpf_map_def SEC("maps") htab = {
26 value = bpf_map_lookup_elem(&htab, &key); in func()
/Linux-v5.10/drivers/s390/char/
Dsclp_rw.c48 sclp_make_buffer(void *page, unsigned short columns, unsigned short htab) in sclp_make_buffer() argument
66 buffer->htab = htab; in sclp_make_buffer()
242 } while (buffer->current_length % buffer->htab); in sclp_write()
Dsclp_rw.h75 unsigned short htab; member
/Linux-v5.10/arch/powerpc/kvm/
Dbook3s_32_mmu_host.c46 static ulong htab; variable
110 ulong pteg = htab; in kvmppc_mmu_get_pteg()
123 htab, hash, htabmask, pteg); in kvmppc_mmu_get_pteg()
383 htab = (ulong)__va(sdr1 & 0xffff0000); in kvmppc_mmu_init_pr()
/Linux-v5.10/arch/powerpc/platforms/ps3/
DMakefile2 obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o
/Linux-v5.10/net/xfrm/
Dxfrm_policy.c4033 struct xfrm_policy_hash *htab; in xfrm_policy_init() local
4039 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init()
4040 htab->table = xfrm_hash_alloc(sz); in xfrm_policy_init()
4041 if (!htab->table) in xfrm_policy_init()
4043 htab->hmask = hmask; in xfrm_policy_init()
4044 htab->dbits4 = 32; in xfrm_policy_init()
4045 htab->sbits4 = 32; in xfrm_policy_init()
4046 htab->dbits6 = 128; in xfrm_policy_init()
4047 htab->sbits6 = 128; in xfrm_policy_init()
4064 struct xfrm_policy_hash *htab; in xfrm_policy_init() local
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/
Dtest_offload.py1209 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)