Home
last modified time | relevance | path

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

/linux/kernel/bpf/
A Dhashtab.c233 return !htab_is_percpu(htab) && !htab_is_lru(htab); in htab_has_extra_elems()
342 htab); in prealloc_init()
350 bpf_lru_populate(&htab->lru, htab->elems, in prealloc_init()
479 if (!htab) in htab_map_alloc()
506 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc()
515 htab->buckets = bpf_map_area_alloc(htab->n_buckets * in htab_map_alloc()
522 htab->map_locked[i] = bpf_map_alloc_percpu(&htab->map, in htab_map_alloc()
573 return &htab->buckets[hash & (htab->n_buckets - 1)]; in __select_bucket()
839 struct bpf_htab *htab = l->htab; in htab_elem_free_rcu() local
864 l->htab = htab; in free_htab_elem()
[all …]
/linux/net/core/
A Dsock_map.c838 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket()
934 if (atomic_inc_return(&htab->count) > htab->map.max_entries) { in sock_hash_alloc_elem()
941 new = bpf_map_kmalloc_node(&htab->map, htab->elem_size, in sock_hash_alloc_elem()
1075 htab = kzalloc(sizeof(*htab), GFP_USER | __GFP_ACCOUNT); in sock_hash_alloc()
1076 if (!htab) in sock_hash_alloc()
1081 htab->buckets_num = roundup_pow_of_two(htab->map.max_entries); in sock_hash_alloc()
1090 htab->buckets = bpf_map_area_alloc(htab->buckets_num * in sock_hash_alloc()
1103 return &htab->map; in sock_hash_alloc()
1105 kfree(htab); in sock_hash_alloc()
1158 kfree(htab); in sock_hash_free()
[all …]
/linux/tools/testing/selftests/bpf/progs/
A Dsample_map_ret0.c5 struct bpf_map_def SEC("maps") htab = {
26 value = bpf_map_lookup_elem(&htab, &key); in func()
/linux/drivers/s390/char/
A Dsclp_rw.c41 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()
A Dsclp_rw.h75 unsigned short htab; member
/linux/arch/powerpc/kvm/
A 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()
380 htab = (ulong)__va(sdr1 & 0xffff0000); in kvmppc_mmu_init_pr()
/linux/arch/powerpc/platforms/ps3/
A DMakefile2 obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o
/linux/net/xfrm/
A Dxfrm_policy.c4015 struct xfrm_policy_hash *htab; in xfrm_policy_init() local
4023 if (!htab->table) in xfrm_policy_init()
4025 htab->hmask = hmask; in xfrm_policy_init()
4026 htab->dbits4 = 32; in xfrm_policy_init()
4027 htab->sbits4 = 32; in xfrm_policy_init()
4028 htab->dbits6 = 128; in xfrm_policy_init()
4029 htab->sbits6 = 128; in xfrm_policy_init()
4046 struct xfrm_policy_hash *htab; in xfrm_policy_init() local
4049 xfrm_hash_free(htab->table, sz); in xfrm_policy_init()
4071 struct xfrm_policy_hash *htab; in xfrm_policy_fini() local
[all …]
/linux/tools/testing/selftests/bpf/
A 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)

Completed in 36 milliseconds