/openbmc/linux/kernel/bpf/ |
H A D | hashtab.c | 131 static inline bool htab_is_prealloc(const struct bpf_htab *htab) in htab_is_prealloc() argument 133 return !(htab->map.map_flags & BPF_F_NO_PREALLOC); in htab_is_prealloc() 136 static void htab_init_buckets(struct bpf_htab *htab) in htab_init_buckets() argument 140 for (i = 0; i < htab->n_buckets; i++) { in htab_init_buckets() 141 INIT_HLIST_NULLS_HEAD(&htab->buckets[i].head, i); in htab_init_buckets() 142 raw_spin_lock_init(&htab->buckets[i].raw_lock); in htab_init_buckets() 143 lockdep_set_class(&htab->buckets[i].raw_lock, in htab_init_buckets() 144 &htab->lockdep_key); in htab_init_buckets() 149 static inline int htab_lock_bucket(const struct bpf_htab *htab, in htab_lock_bucket() argument 155 hash = hash & min_t(u32, HASHTAB_MAP_LOCK_MASK, htab->n_buckets - 1); in htab_lock_bucket() [all …]
|
/openbmc/u-boot/lib/ |
H A D | hashtable.c | 68 static void _hdelete(const char *key, struct hsearch_data *htab, ENTRY *ep, 102 int hcreate_r(size_t nel, struct hsearch_data *htab) in hcreate_r() argument 105 if (htab == NULL) { in hcreate_r() 111 if (htab->table != NULL) in hcreate_r() 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() 124 if (htab->table == NULL) in hcreate_r() 141 void hdestroy_r(struct hsearch_data *htab) in hdestroy_r() argument 146 if (htab == NULL) { in hdestroy_r() [all …]
|
/openbmc/u-boot/test/env/ |
H A D | hashtable.c | 18 struct hsearch_data *htab, size_t size) in htab_fill() argument 31 ut_asserteq(1, hsearch_r(item, ENTER, &ritem, htab, 0)); in htab_fill() 38 struct hsearch_data *htab, size_t size) in htab_check_fill() argument 51 hsearch_r(item, FIND, &ritem, htab, 0); in htab_check_fill() 61 struct hsearch_data *htab, size_t iterations) in htab_create_delete() argument 74 hsearch_r(item, ENTER, &ritem, htab, 0); in htab_create_delete() 77 hsearch_r(item, FIND, &ritem, htab, 0); in htab_create_delete() 82 ut_asserteq(1, hdelete_r(key, 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() [all …]
|
/openbmc/linux/net/core/ |
H A D | sock_map.c | 863 static struct bpf_shtab_bucket *sock_hash_select_bucket(struct bpf_shtab *htab, in sock_hash_select_bucket() argument 866 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket() 886 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in __sock_hash_lookup_elem() local 894 bucket = sock_hash_select_bucket(htab, hash); in __sock_hash_lookup_elem() 900 static void sock_hash_free_elem(struct bpf_shtab *htab, in sock_hash_free_elem() argument 903 atomic_dec(&htab->count); in sock_hash_free_elem() 910 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in sock_hash_delete_from_link() local 915 bucket = sock_hash_select_bucket(htab, elem->hash); in sock_hash_delete_from_link() 927 sock_hash_free_elem(htab, elem); in sock_hash_delete_from_link() 934 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in sock_hash_delete_elem() 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_vhyp_mmu.c | 410 static uint64_t new_hpte_load0(void *htab, uint64_t pteg, int slot) in new_hpte_load0() argument 412 uint8_t *addr = htab; in new_hpte_load0() 419 static void new_hpte_store(void *htab, uint64_t pteg, int slot, in new_hpte_store() argument 422 uint8_t *addr = htab; in new_hpte_store() 579 rc = rehash_hpt(cpu, spapr->htab, HTAB_SIZE(spapr), in vhyp_mmu_resize_hpt_commit() 582 qemu_vfree(spapr->htab); in vhyp_mmu_resize_hpt_commit() 583 spapr->htab = pending->hpt; in vhyp_mmu_resize_hpt_commit()
|
H A D | spapr.c | 1448 if (!spapr->htab) { in spapr_encode_hpt_for_kvm_pr() 1452 return (target_ulong)(uintptr_t)spapr->htab | (spapr->htab_shift - 18); in spapr_encode_hpt_for_kvm_pr() 1461 if (!spapr->htab) { in spapr_map_hptes() 1474 return (const ppc_hash_pte64_t *)(spapr->htab + pte_offset); in spapr_map_hptes() 1483 if (!spapr->htab) { in spapr_unmap_hptes() 1496 if (!spapr->htab) { in spapr_store_hpte() 1500 stq_p(spapr->htab + offset + HPTE64_DW1, pte1); in spapr_store_hpte() 1507 stq_p(spapr->htab + offset, pte0); in spapr_store_hpte() 1509 stq_p(spapr->htab + offset, pte0); in spapr_store_hpte() 1516 stq_p(spapr->htab + offset + HPTE64_DW1, pte1); in spapr_store_hpte() [all …]
|
H A D | spapr_hcall.c | 155 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/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/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/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 | 4155 struct xfrm_policy_hash *htab; in xfrm_policy_init() local 4161 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init() 4162 htab->table = xfrm_hash_alloc(sz); in xfrm_policy_init() 4163 if (!htab->table) in xfrm_policy_init() 4165 htab->hmask = hmask; in xfrm_policy_init() 4166 htab->dbits4 = 32; in xfrm_policy_init() 4167 htab->sbits4 = 32; in xfrm_policy_init() 4168 htab->dbits6 = 128; in xfrm_policy_init() 4169 htab->sbits6 = 128; in xfrm_policy_init() 4186 struct xfrm_policy_hash *htab; in xfrm_policy_init() 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
|
/openbmc/linux/ |
H A D | opengrok1.0.log | [all...] |
H A D | opengrok2.0.log | [all...] |