Home
last modified time | relevance | path

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

/linux-6.3-rc2/kernel/bpf/
A Dhashtab.c217 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 Dsock_map.c853 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 Dhtab_update.c14 } htab SEC(".maps");
27 update_err = bpf_map_update_elem(&htab, &key, &value, 0); in lookup_elem_raw()
A Dsample_map_ret0.c10 } htab SEC(".maps");
26 value = bpf_map_lookup_elem(&htab, &key); in func()
A Dhtab_reuse.c19 } htab SEC(".maps");
/linux-6.3-rc2/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-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dhtab_update.c39 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 Dhtab_reuse.c74 ctx.fd = bpf_map__fd(skel->maps.htab); in test_htab_reuse()
/linux-6.3-rc2/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-6.3-rc2/arch/powerpc/platforms/ps3/
A DMakefile2 obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o
/linux-6.3-rc2/net/xfrm/
A Dxfrm_policy.c4123 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 Dtest_offload.py1211 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 37 milliseconds