Searched refs:htab (Results 1 – 13 of 13) sorted by relevance
/linux-6.3-rc2/kernel/bpf/ |
A D | hashtab.c | 217 return !htab_is_percpu(htab) && !htab_is_lru(htab); in htab_has_extra_elems() 338 htab); in prealloc_init() 346 bpf_lru_populate(&htab->lru, htab->elems, in prealloc_init() 472 htab = bpf_map_area_alloc(sizeof(*htab), NUMA_NO_NODE); in htab_map_alloc() 473 if (!htab) in htab_map_alloc() 500 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc() 509 htab->buckets = bpf_map_area_alloc(htab->n_buckets * in htab_map_alloc() 516 htab->map_locked[i] = bpf_map_alloc_percpu(&htab->map, in htab_map_alloc() 604 return &htab->buckets[hash & (htab->n_buckets - 1)]; in __select_bucket() 883 return atomic_read(&htab->count) >= htab->map.max_entries; in is_map_full() [all …]
|
/linux-6.3-rc2/net/core/ |
A D | sock_map.c | 853 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket() 949 if (atomic_inc_return(&htab->count) > htab->map.max_entries) { in sock_hash_alloc_elem() 956 new = bpf_map_kmalloc_node(&htab->map, htab->elem_size, in sock_hash_alloc_elem() 1076 struct bpf_shtab *htab; in sock_hash_alloc() local 1090 htab = bpf_map_area_alloc(sizeof(*htab), NUMA_NO_NODE); in sock_hash_alloc() 1091 if (!htab) in sock_hash_alloc() 1096 htab->buckets_num = roundup_pow_of_two(htab->map.max_entries); in sock_hash_alloc() 1105 htab->buckets = bpf_map_area_alloc(htab->buckets_num * in sock_hash_alloc() 1108 if (!htab->buckets) { in sock_hash_alloc() 1118 return &htab->map; in sock_hash_alloc() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | htab_update.c | 14 } htab SEC(".maps"); 27 update_err = bpf_map_update_elem(&htab, &key, &value, 0); in lookup_elem_raw()
|
A D | sample_map_ret0.c | 10 } htab SEC(".maps"); 26 value = bpf_map_lookup_elem(&htab, &key); in func()
|
A D | htab_reuse.c | 19 } htab SEC(".maps");
|
/linux-6.3-rc2/drivers/s390/char/ |
A 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()
|
A D | sclp_rw.h | 75 unsigned short htab; member
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A 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()
|
A D | htab_reuse.c | 74 ctx.fd = bpf_map__fd(skel->maps.htab); in test_htab_reuse()
|
/linux-6.3-rc2/arch/powerpc/kvm/ |
A 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-6.3-rc2/arch/powerpc/platforms/ps3/ |
A D | Makefile | 2 obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o
|
/linux-6.3-rc2/net/xfrm/ |
A D | xfrm_policy.c | 4123 struct xfrm_policy_hash *htab; in xfrm_policy_init() local 4131 if (!htab->table) in xfrm_policy_init() 4133 htab->hmask = hmask; in xfrm_policy_init() 4134 htab->dbits4 = 32; in xfrm_policy_init() 4135 htab->sbits4 = 32; in xfrm_policy_init() 4136 htab->dbits6 = 128; in xfrm_policy_init() 4137 htab->sbits6 = 128; in xfrm_policy_init() 4154 struct xfrm_policy_hash *htab; in xfrm_policy_init() local 4157 xfrm_hash_free(htab->table, sz); in xfrm_policy_init() 4179 struct xfrm_policy_hash *htab; in xfrm_policy_fini() local [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | test_offload.py | 1211 htab = maps[0] if maps[0]["type"] == "hash" else maps[1] variable 1273 bpftool("map delete id %d key %s" % (htab["id"], int2str("I", i))) 1278 (htab["id"], int2str("I", i)), fail=False)
|
Completed in 30 milliseconds