Home
last modified time | relevance | path

Searched refs:haddr (Results 1 – 25 of 61) sorted by relevance

123

/openbmc/qemu/accel/tcg/
H A Datomic_template.h76 DATA_TYPE *haddr = atomic_mmu_lookup(env_cpu(env), addr, oi, in ATOMIC_NAME() local
81 ret = atomic16_cmpxchg(haddr, cmpv, newv); in ATOMIC_NAME()
83 ret = qatomic_cmpxchg__nocheck(haddr, cmpv, newv); in ATOMIC_NAME()
94 DATA_TYPE *haddr = atomic_mmu_lookup(env_cpu(env), addr, oi, in ATOMIC_NAME() local
98 ret = qatomic_xchg__nocheck(haddr, val); in ATOMIC_NAME()
108 DATA_TYPE *haddr, ret; \
110 ret = qatomic_##X(haddr, val); \
181 DATA_TYPE *haddr = atomic_mmu_lookup(env_cpu(env), addr, oi, local
186 ret = atomic16_cmpxchg(haddr, BSWAP(cmpv), BSWAP(newv));
199 DATA_TYPE *haddr = atomic_mmu_lookup(env_cpu(env), addr, oi, in ATOMIC_NAME() local
[all …]
H A Duser-exec.c980 void *haddr; in do_ld1_mmu() local
993 void *haddr; in do_ld2_mmu() local
1011 void *haddr; in do_ld4_mmu() local
1029 void *haddr; in do_ld8_mmu() local
1047 void *haddr; in do_ld16_mmu() local
1066 void *haddr; in do_st1_mmu() local
1077 void *haddr; in do_st2_mmu() local
1093 void *haddr; in do_st4_mmu() local
1109 void *haddr; in do_st8_mmu() local
1125 void *haddr; in do_st16_mmu() local
[all …]
H A Dcputlb.c1594 void *haddr; member
2017 uint8_t *haddr = p->haddr; in do_ld_bytes_beN() local
2021 ret_be = (ret_be << 8) | haddr[i]; in do_ld_bytes_beN()
2035 void *haddr = p->haddr; in do_ld_parts_beN() local
2061 x = *(uint8_t *)haddr; in do_ld_parts_beN()
2068 haddr += n; in do_ld_parts_beN()
2085 uint32_t x = load_atomic4(p->haddr - o); in do_ld_whole_be4()
2211 p->haddr += size - 8; in do_ld16_beN()
2230 b = ldq_be_p(p->haddr + size - 8); in do_ld16_beN()
2246 return *(uint8_t *)p->haddr; in do_ld_1()
[all …]
/openbmc/qemu/linux-user/loongarch64/
H A Dsignal.c94 void *haddr; member
171 info = extctx->lasx.haddr; in setup_sigframe()
188 info = extctx->lsx.haddr; in setup_sigframe()
203 info = extctx->fpu.haddr; in setup_sigframe()
220 info = extctx->end.haddr; in setup_sigframe()
290 if (extctx->lasx.haddr) { in restore_sigframe()
292 extctx->lasx.haddr + sizeof(struct target_sctx_info); in restore_sigframe()
304 } else if (extctx->lsx.haddr) { in restore_sigframe()
306 extctx->lsx.haddr + sizeof(struct target_sctx_info); in restore_sigframe()
316 } else if (extctx->fpu.haddr) { in restore_sigframe()
[all …]
/openbmc/linux/fs/verity/
H A Dverify.c150 const void *haddr; in verify_data_block() local
181 haddr = kmap_local_page(hpage) + hblock_offset_in_page; in verify_data_block()
183 memcpy(_want_hash, haddr + hoffset, hsize); in verify_data_block()
185 kunmap_local(haddr); in verify_data_block()
190 hblocks[level].addr = haddr; in verify_data_block()
201 const void *haddr = hblocks[level - 1].addr; in verify_data_block() local
205 if (fsverity_hash_block(params, inode, haddr, real_hash) != 0) in verify_data_block()
218 memcpy(_want_hash, haddr + hoffset, hsize); in verify_data_block()
220 kunmap_local(haddr); in verify_data_block()
/openbmc/qemu/linux-user/hppa/
H A Dsignal.c114 abi_ulong frame_addr, sp, haddr; in setup_rt_frame() local
152 haddr = ka->_sa_handler; in setup_rt_frame()
153 if (haddr & 2) { in setup_rt_frame()
157 haddr &= -4; in setup_rt_frame()
158 fdesc = lock_user(VERIFY_READ, haddr, 2 * sizeof(abi_ptr), 1); in setup_rt_frame()
164 unlock_user(fdesc, haddr, 0); in setup_rt_frame()
165 haddr = dest; in setup_rt_frame()
167 env->iaoq_f = haddr | PRIV_USER; in setup_rt_frame()
/openbmc/linux/tools/testing/selftests/mm/
H A Dhugepage-mremap.c133 void *haddr = mmap((void *)suggested_addr, length, PROTECTION, in main() local
135 printf("Map haddr: Returned address is %p\n", haddr); in main()
136 if (haddr == MAP_FAILED) { in main()
160 register_region_with_uffd(haddr, length); in main()
162 void *addr = mremap(haddr, length, length, in main()
/openbmc/linux/arch/arm64/kvm/hyp/include/nvhe/
H A Dmm.h28 unsigned long *haddr);
29 int pkvm_create_stack(phys_addr_t phys, unsigned long *haddr);
30 int pkvm_alloc_private_va_range(size_t size, unsigned long *haddr);
/openbmc/u-boot/board/freescale/common/
H A Dcmd_esbc_validate.c30 uintptr_t haddr; in do_esbc_validate() local
42 haddr = (uintptr_t)simple_strtoul(argv[1], NULL, 16); in do_esbc_validate()
48 ret = fsl_secboot_validate(haddr, hash_str, &img_addr); in do_esbc_validate()
/openbmc/qemu/linux-user/
H A Dlinuxload.c228 void *haddr; in imgsrc_mmap() local
248 haddr = lock_user(VERIFY_WRITE, start, len, 0); in imgsrc_mmap()
249 assert(haddr != NULL); in imgsrc_mmap()
251 memcpy(haddr, src->cache + offset, len); in imgsrc_mmap()
254 memcpy(haddr, src->cache + offset, rest); in imgsrc_mmap()
255 memset(haddr + rest, 0, len - rest); in imgsrc_mmap()
257 unlock_user(haddr, start, len); in imgsrc_mmap()
/openbmc/linux/arch/parisc/kernel/
H A Dsignal.c218 unsigned long haddr, sigframe_size; in setup_rt_frame() local
284 haddr = A(ksig->ka.sa.sa_handler); in setup_rt_frame()
289 if (haddr & PA_PLABEL_FDESC) { in setup_rt_frame()
291 Elf32_Fdesc __user *ufdesc = (Elf32_Fdesc __user *)A(haddr & ~3); in setup_rt_frame()
298 haddr = fdesc.addr; in setup_rt_frame()
304 Elf64_Fdesc __user *ufdesc = (Elf64_Fdesc __user *)A(haddr & ~3); in setup_rt_frame()
311 haddr = fdesc.addr; in setup_rt_frame()
314 __func__, haddr, regs->gr[19], in_syscall); in setup_rt_frame()
321 regs->gr[31] = haddr; in setup_rt_frame()
346 regs->iaoq[0] = haddr | PRIV_USER; in setup_rt_frame()
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dmm.c78 int pkvm_alloc_private_va_range(size_t size, unsigned long *haddr) in pkvm_alloc_private_va_range() argument
88 *haddr = addr; in pkvm_alloc_private_va_range()
95 unsigned long *haddr) in __pkvm_create_private_mapping() argument
109 *haddr = addr + offset_in_page(phys); in __pkvm_create_private_mapping()
353 int pkvm_create_stack(phys_addr_t phys, unsigned long *haddr) in pkvm_create_stack() argument
387 *haddr = addr + size; in pkvm_create_stack()
H A Dhyp-main.c269 unsigned long haddr; in handle___pkvm_create_private_mapping() local
270 int err = __pkvm_create_private_mapping(phys, size, prot, &haddr); in handle___pkvm_create_private_mapping()
273 haddr = (unsigned long)ERR_PTR(err); in handle___pkvm_create_private_mapping()
275 cpu_reg(host_ctxt, 1) = haddr; in handle___pkvm_create_private_mapping()
/openbmc/qemu/target/i386/tcg/sysemu/
H A Dexcp_helper.c59 void *haddr; member
69 inout->ptw_idx, &inout->haddr, NULL); in ptw_translate()
87 if (likely(in->haddr)) { in ptw_ldl()
88 return ldl_p(in->haddr); in ptw_ldl()
95 if (likely(in->haddr)) { in ptw_ldq()
96 return ldq_p(in->haddr); in ptw_ldq()
129 if (likely(in->haddr)) { in ptw_setl()
132 return qatomic_cmpxchg((uint32_t *)in->haddr, old, new) == old; in ptw_setl()
448 MMU_NESTED_IDX, &pte_trans.haddr, &full); in mmu_translate()
/openbmc/qemu/target/hppa/
H A Dop_helper.c49 uint32_t old, new, cmp, *haddr; in atomic_store_mask32() local
56 haddr = (uint32_t *)((uintptr_t)vaddr & -4); in atomic_store_mask32()
59 old = *haddr; in atomic_store_mask32()
62 cmp = qatomic_cmpxchg(haddr, old, new); in atomic_store_mask32()
76 uint64_t old, new, cmp, *haddr; in atomic_store_mask64() local
83 haddr = (uint64_t *)((uintptr_t)vaddr & -8); in atomic_store_mask64()
85 old = *haddr; in atomic_store_mask64()
88 cmp = qatomic_cmpxchg__nocheck(haddr, old, new); in atomic_store_mask64()
/openbmc/linux/net/bluetooth/
H A Dhci_sock.c1184 struct sockaddr_hci haddr; in hci_sock_bind() local
1195 memset(&haddr, 0, sizeof(haddr)); in hci_sock_bind()
1197 memcpy(&haddr, addr, len); in hci_sock_bind()
1199 if (haddr.hci_family != AF_BLUETOOTH) in hci_sock_bind()
1221 switch (haddr.hci_channel) { in hci_sock_bind()
1228 if (haddr.hci_dev != HCI_DEV_NONE) { in hci_sock_bind()
1229 hdev = hci_dev_get(haddr.hci_dev); in hci_sock_bind()
1285 hdev = hci_dev_get(haddr.hci_dev); in hci_sock_bind()
1502 haddr->hci_family = AF_BLUETOOTH; in hci_sock_getname()
1503 haddr->hci_dev = hdev->id; in hci_sock_getname()
[all …]
/openbmc/linux/mm/
H A Dhuge_memory.c763 set_pmd_at(mm, haddr, pmd, entry); in set_huge_zero_page()
774 if (!transhuge_vma_suitable(vma, haddr)) in do_huge_pmd_anonymous_page()
809 haddr, vmf->pmd, zero_page); in do_huge_pmd_anonymous_page()
1981 unsigned long haddr) in __split_huge_pud_locked() argument
1983 VM_BUG_ON(haddr & ~HPAGE_PUD_MASK); in __split_huge_pud_locked()
1990 pudp_huge_clear_flush(vma, haddr, pud); in __split_huge_pud_locked()
2015 unsigned long haddr, pmd_t *pmd) in __split_huge_zero_page_pmd() argument
2037 pte = pte_offset_map(&_pmd, haddr); in __split_huge_zero_page_pmd()
2056 unsigned long haddr, bool freeze) in __split_huge_pmd_locked() argument
2068 VM_BUG_ON(haddr & ~HPAGE_PMD_MASK); in __split_huge_pmd_locked()
[all …]
H A Dkhugepaged.c974 unsigned long haddr, pmd_t *pmd, in __collapse_huge_page_swapin() argument
1467 unsigned long haddr = addr & HPAGE_PMD_MASK; in collapse_pte_mapped_thp() local
1480 !range_in_vma(vma, haddr, haddr + HPAGE_PMD_SIZE)) in collapse_pte_mapped_thp()
1484 result = find_pmd_or_thp_or_none(mm, haddr, &pmd); in collapse_pte_mapped_thp()
1503 linear_page_index(vma, haddr)); in collapse_pte_mapped_thp()
1517 result = find_pmd_or_thp_or_none(mm, haddr, &pmd); in collapse_pte_mapped_thp()
1537 for (i = 0, addr = haddr, pte = start_pte; in collapse_pte_mapped_thp()
1565 haddr, haddr + HPAGE_PMD_SIZE); in collapse_pte_mapped_thp()
1589 for (i = 0, addr = haddr, pte = start_pte; in collapse_pte_mapped_thp()
1636 pgt_pmd = pmdp_collapse_flush(vma, haddr, pmd); in collapse_pte_mapped_thp()
[all …]
/openbmc/linux/arch/arm64/include/asm/
H A Dkvm_mmu.h165 int hyp_alloc_private_va_range(size_t size, unsigned long *haddr);
168 void __iomem **haddr);
170 void **haddr);
171 int create_hyp_stack(phys_addr_t phys_addr, unsigned long *haddr);
/openbmc/qemu/hw/misc/
H A Daspeed_hace.c196 void *haddr; in do_hash_operation() local
221 haddr = address_space_map(&s->dram_as, addr, &plen, false, in do_hash_operation()
223 if (haddr == NULL) { in do_hash_operation()
227 iov[i].iov_base = haddr; in do_hash_operation()
238 haddr = address_space_map(&s->dram_as, s->regs[R_HASH_SRC], in do_hash_operation()
240 if (haddr == NULL) { in do_hash_operation()
244 iov[0].iov_base = haddr; in do_hash_operation()
/openbmc/qemu/plugins/
H A Dapi.c385 bool qemu_plugin_hwaddr_is_io(const struct qemu_plugin_hwaddr *haddr) in qemu_plugin_hwaddr_is_io() argument
388 return haddr->is_io; in qemu_plugin_hwaddr_is_io()
394 uint64_t qemu_plugin_hwaddr_phys_addr(const struct qemu_plugin_hwaddr *haddr) in qemu_plugin_hwaddr_phys_addr() argument
397 if (haddr) { in qemu_plugin_hwaddr_phys_addr()
398 return haddr->phys_addr; in qemu_plugin_hwaddr_phys_addr()
/openbmc/linux/arch/arm64/kvm/
H A Dmmu.c656 *haddr = base; in hyp_alloc_private_va_range()
662 unsigned long *haddr, in __create_hyp_private_mapping() argument
673 *haddr = addr; in __create_hyp_private_mapping()
728 *haddr = base + size; in create_hyp_stack()
742 void __iomem **haddr) in create_hyp_io_mappings() argument
755 *haddr = *kaddr; in create_hyp_io_mappings()
764 *haddr = NULL; in create_hyp_io_mappings()
768 *haddr = (void __iomem *)addr; in create_hyp_io_mappings()
779 void **haddr) in create_hyp_exec_mappings() argument
789 *haddr = NULL; in create_hyp_exec_mappings()
[all …]
/openbmc/linux/include/linux/
H A Dhuge_mm.h103 unsigned long haddr; in transhuge_vma_suitable() local
112 haddr = addr & HPAGE_PMD_MASK; in transhuge_vma_suitable()
114 if (haddr < vma->vm_start || haddr + HPAGE_PMD_SIZE > vma->vm_end) in transhuge_vma_suitable()
/openbmc/linux/net/ethernet/
H A Deth.c203 int eth_header_parse(const struct sk_buff *skb, unsigned char *haddr) in eth_header_parse() argument
206 memcpy(haddr, eth->h_source, ETH_ALEN); in eth_header_parse()
253 const unsigned char *haddr) in eth_header_cache_update() argument
256 haddr, ETH_ALEN); in eth_header_cache_update()
/openbmc/qemu/target/ppc/
H A Dmem_helper.c277 void *haddr; in dcbz_common() local
289 haddr = tlb_vaddr_to_host(env, addr, MMU_DATA_STORE, mmu_idx); in dcbz_common()
291 haddr = probe_write(env, addr, dcbz_size, mmu_idx, retaddr); in dcbz_common()
292 if (unlikely(!haddr)) { in dcbz_common()
302 memset(haddr, 0, dcbz_size); in dcbz_common()

123