/openbmc/linux/kernel/bpf/ |
H A D | hashtab.c | 220 return !htab_is_percpu(htab) && !htab_is_lru(htab); in htab_has_extra_elems() 353 htab); in prealloc_init() 361 bpf_lru_populate(&htab->lru, htab->elems, in prealloc_init() 481 htab = bpf_map_area_alloc(sizeof(*htab), NUMA_NO_NODE); in htab_map_alloc() 482 if (!htab) in htab_map_alloc() 515 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc() 526 htab->buckets = bpf_map_area_alloc(htab->n_buckets * in htab_map_alloc() 533 htab->map_locked[i] = bpf_map_alloc_percpu(&htab->map, in htab_map_alloc() 625 return &htab->buckets[hash & (htab->n_buckets - 1)]; in __select_bucket() 913 return atomic_read(&htab->count) >= htab->map.max_entries; in is_map_full() [all …]
|
/openbmc/u-boot/lib/ |
H A D | hashtable.c | 119 htab->size = nel; in hcreate_r() 120 htab->filled = 0; in hcreate_r() 123 htab->table = (_ENTRY *) calloc(htab->size + 1, sizeof(_ENTRY)); in hcreate_r() 236 if (htab->change_ok != NULL && htab->change_ok( in _compare_and_overwrite_entry() 360 if (htab->filled == htab->size) { in hsearch_r() 391 if (htab->change_ok != NULL && htab->change_ok( in hsearch_r() 395 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r() 407 _hdelete(item.key, htab, &htab->table[idx].entry, idx); in hsearch_r() 445 --htab->filled; in _hdelete() 611 htab, htab->size, htab->filled, (ulong)size); in hexport_r() [all …]
|
/openbmc/u-boot/test/env/ |
H A D | hashtable.c | 51 hsearch_r(item, FIND, &ritem, htab, 0); in htab_check_fill() 77 hsearch_r(item, FIND, &ritem, htab, 0); in htab_create_delete() 91 struct hsearch_data htab; in env_test_htab_fill() local 93 memset(&htab, 0, sizeof(htab)); in env_test_htab_fill() 94 ut_asserteq(1, hcreate_r(SIZE, &htab)); in env_test_htab_fill() 98 ut_asserteq(SIZE, htab.filled); in env_test_htab_fill() 100 hdestroy_r(&htab); in env_test_htab_fill() 111 struct hsearch_data htab; in env_test_htab_deletes() local 113 memset(&htab, 0, sizeof(htab)); in env_test_htab_deletes() 119 ut_asserteq(SIZE / 2, htab.filled); in env_test_htab_deletes() [all …]
|
/openbmc/linux/net/core/ |
H A D | sock_map.c | 865 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket() 964 if (atomic_inc_return(&htab->count) > htab->map.max_entries) { in sock_hash_alloc_elem() 971 new = bpf_map_kmalloc_node(&htab->map, htab->elem_size, in sock_hash_alloc_elem() 1103 htab = bpf_map_area_alloc(sizeof(*htab), NUMA_NO_NODE); in sock_hash_alloc() 1104 if (!htab) in sock_hash_alloc() 1109 htab->buckets_num = roundup_pow_of_two(htab->map.max_entries); in sock_hash_alloc() 1118 htab->buckets = bpf_map_area_alloc(htab->buckets_num * in sock_hash_alloc() 1121 if (!htab->buckets) { in sock_hash_alloc() 1131 return &htab->map; in sock_hash_alloc() 1307 const struct bpf_shtab *htab = info->htab; in sock_hash_seq_find_next() local [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | htab_mem_bench.c | 21 } htab SEC(".maps"); 31 bpf_map_update_elem(&htab, &ctx->from, zeroed_value, flags); in write_htab() 49 bpf_map_delete_elem(&htab, &ctx->from); in del_htab()
|
H A D | htab_update.c | 14 } htab SEC(".maps"); 27 update_err = bpf_map_update_elem(&htab, &key, &value, 0); in lookup_elem_raw()
|
H A D | sample_map_ret0.c | 10 } htab SEC(".maps"); 26 value = bpf_map_lookup_elem(&htab, &key); in func()
|
H A D | htab_reuse.c | 19 } htab SEC(".maps");
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_softmmu.c | 414 static uint64_t new_hpte_load0(void *htab, uint64_t pteg, int slot) in new_hpte_load0() argument 416 uint8_t *addr = htab; in new_hpte_load0() 423 static void new_hpte_store(void *htab, uint64_t pteg, int slot, in new_hpte_store() argument 426 uint8_t *addr = htab; in new_hpte_store() 583 rc = rehash_hpt(cpu, spapr->htab, HTAB_SIZE(spapr), in softmmu_resize_hpt_commit() 586 qemu_vfree(spapr->htab); in softmmu_resize_hpt_commit() 587 spapr->htab = pending->hpt; in softmmu_resize_hpt_commit()
|
H A D | spapr.c | 1453 if (!spapr->htab) { in spapr_encode_hpt_for_kvm_pr() 1466 if (!spapr->htab) { in spapr_map_hptes() 1488 if (!spapr->htab) { in spapr_unmap_hptes() 1501 if (!spapr->htab) { in spapr_store_hpte() 1532 if (!spapr->htab) { in spapr_hpte_set_c() 1548 if (!spapr->htab) { in spapr_hpte_set_r() 1574 spapr->htab = NULL; in spapr_free_hpt() 2156 if (spapr->htab) { in htab_save_setup() 2324 if (!spapr->htab) { in htab_save_iterate() 2360 if (!spapr->htab) { in htab_save_complete() [all …]
|
H A D | spapr_hcall.c | 154 if (!kvm_enabled() || !spapr->htab) { in push_sregs_to_kvm_pr()
|
/openbmc/linux/drivers/s390/char/ |
H 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()
|
H A D | sclp_rw.h | 75 unsigned short htab; member
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H 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()
|
H A D | htab_reuse.c | 74 ctx.fd = bpf_map__fd(skel->maps.htab); in test_htab_reuse()
|
/openbmc/openbmc/poky/meta/recipes-support/db/db/ |
H A D | 0001-Fix-libc-compatibility-by-renaming-atomic_init-API.patch | 93 MTX_MPOOL_FILE_BUCKET, 0, &htab[i].mtx_hash)) != 0) 95 SH_TAILQ_INIT(&htab[i].hash_bucket); 96 - atomic_init(&htab[i].hash_page_dirty, 0); 97 + __db_atomic_init(&htab[i].hash_page_dirty, 0);
|
/openbmc/linux/arch/powerpc/kvm/ |
H 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()
|
/openbmc/linux/arch/powerpc/platforms/ps3/ |
H A D | Makefile | 2 obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o
|
/openbmc/openbmc/poky/meta/recipes-devtools/binutils/binutils/ |
H A D | 0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch | 20 @@ -1130,6 +1130,9 @@ ldelf_handle_dt_needed (struct elf_link_hash_table *htab,
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_policy.c | 4131 struct xfrm_policy_hash *htab; in xfrm_policy_init() local 4139 if (!htab->table) in xfrm_policy_init() 4141 htab->hmask = hmask; in xfrm_policy_init() 4142 htab->dbits4 = 32; in xfrm_policy_init() 4143 htab->sbits4 = 32; in xfrm_policy_init() 4144 htab->dbits6 = 128; in xfrm_policy_init() 4145 htab->sbits6 = 128; in xfrm_policy_init() 4162 struct xfrm_policy_hash *htab; in xfrm_policy_init() local 4165 xfrm_hash_free(htab->table, sz); in xfrm_policy_init() 4187 struct xfrm_policy_hash *htab; in xfrm_policy_fini() local [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/benchs/ |
H A D | bench_htab_mem.c | 180 map = ctx.skel->maps.htab; in htab_mem_setup()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H 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)
|
/openbmc/qemu/include/hw/ppc/ |
H A D | spapr.h | 194 void *htab; member
|