Home
last modified time | relevance | path

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

/Linux-v5.4/kernel/bpf/
Dhashtab.c47 struct bpf_htab *htab; member
62 static bool htab_is_lru(const struct bpf_htab *htab) in htab_is_lru() argument
64 return htab->map.map_type == BPF_MAP_TYPE_LRU_HASH || in htab_is_lru()
65 htab->map.map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH; in htab_is_lru()
68 static bool htab_is_percpu(const struct bpf_htab *htab) in htab_is_percpu() argument
70 return htab->map.map_type == BPF_MAP_TYPE_PERCPU_HASH || in htab_is_percpu()
71 htab->map.map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH; in htab_is_percpu()
74 static bool htab_is_prealloc(const struct bpf_htab *htab) in htab_is_prealloc() argument
76 return !(htab->map.map_flags & BPF_F_NO_PREALLOC); in htab_is_prealloc()
95 static struct htab_elem *get_htab_elem(struct bpf_htab *htab, int i) in get_htab_elem() argument
[all …]
/Linux-v5.4/net/core/
Dsock_map.c537 static struct bpf_htab_bucket *sock_hash_select_bucket(struct bpf_htab *htab, in sock_hash_select_bucket() argument
540 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket()
560 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in __sock_hash_lookup_elem() local
568 bucket = sock_hash_select_bucket(htab, hash); in __sock_hash_lookup_elem()
574 static void sock_hash_free_elem(struct bpf_htab *htab, in sock_hash_free_elem() argument
577 atomic_dec(&htab->count); in sock_hash_free_elem()
584 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in sock_hash_delete_from_link() local
589 bucket = sock_hash_select_bucket(htab, elem->hash); in sock_hash_delete_from_link()
601 sock_hash_free_elem(htab, elem); in sock_hash_delete_from_link()
608 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in sock_hash_delete_elem() local
[all …]
/Linux-v5.4/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()
352 sclp_set_htab(struct sclp_buffer *buffer, unsigned short htab) in sclp_set_htab() argument
354 buffer->htab = htab; in sclp_set_htab()
Dsclp_rw.h75 unsigned short htab; member
/Linux-v5.4/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.4/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()
/Linux-v5.4/arch/powerpc/platforms/ps3/
DMakefile2 obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o
/Linux-v5.4/net/xfrm/
Dxfrm_policy.c4030 struct xfrm_policy_hash *htab; in xfrm_policy_init() local
4036 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init()
4037 htab->table = xfrm_hash_alloc(sz); in xfrm_policy_init()
4038 if (!htab->table) in xfrm_policy_init()
4040 htab->hmask = hmask; in xfrm_policy_init()
4041 htab->dbits4 = 32; in xfrm_policy_init()
4042 htab->sbits4 = 32; in xfrm_policy_init()
4043 htab->dbits6 = 128; in xfrm_policy_init()
4044 htab->sbits6 = 128; in xfrm_policy_init()
4061 struct xfrm_policy_hash *htab; in xfrm_policy_init() local
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_offload.py1193 htab = maps[0] if maps[0]["type"] == "hash" else maps[1] variable
1255 bpftool("map delete id %d key %s" % (htab["id"], int2str("I", i)))
1260 (htab["id"], int2str("I", i)), fail=False)