/openbmc/qemu/accel/tcg/ |
H A D | atomic_template.h | 84 DATA_TYPE *haddr = atomic_mmu_lookup(env_cpu(env), addr, oi, in ATOMIC_NAME() local 89 ret = atomic16_cmpxchg(haddr, cmpv, newv); in ATOMIC_NAME() 91 ret = qatomic_cmpxchg__nocheck(haddr, cmpv, newv); in ATOMIC_NAME() 107 DATA_TYPE *haddr = atomic_mmu_lookup(env_cpu(env), addr, oi, in ATOMIC_NAME() local 111 ret = qatomic_xchg__nocheck(haddr, val); in ATOMIC_NAME() 126 DATA_TYPE *haddr, ret; \ 127 haddr = atomic_mmu_lookup(env_cpu(env), addr, oi, DATA_SIZE, retaddr); \ 128 ret = qatomic_##X(haddr, val); \ 162 XDATA_TYPE *haddr, cmp, old, new, val = xval; \ in GEN_ATOMIC_HELPER() 163 haddr = atomic_mmu_lookup(env_cpu(env), addr, oi, DATA_SIZE, retaddr); \ in GEN_ATOMIC_HELPER() [all …]
|
H A D | user-exec.c | 975 void *haddr; in do_ld1_mmu() local 979 haddr = cpu_mmu_lookup(cpu, addr, get_memop(oi), ra, access_type); in do_ld1_mmu() 980 ret = ldub_p(haddr); in do_ld1_mmu() 988 void *haddr; in do_ld2_mmu() local 993 haddr = cpu_mmu_lookup(cpu, addr, mop, ra, access_type); in do_ld2_mmu() 994 ret = load_atom_2(cpu, ra, haddr, mop); in do_ld2_mmu() 1006 void *haddr; in do_ld4_mmu() local 1011 haddr = cpu_mmu_lookup(cpu, addr, mop, ra, access_type); in do_ld4_mmu() 1012 ret = load_atom_4(cpu, ra, haddr, mop); in do_ld4_mmu() 1024 void *haddr; in do_ld8_mmu() local [all …]
|
H A D | cputlb.c | 1607 void *haddr; member 1683 data->haddr = (void *)((uintptr_t)addr + entry->addend); in mmu_lookup1() 2021 uint8_t *haddr = p->haddr; in do_ld_bytes_beN() local 2025 ret_be = (ret_be << 8) | haddr[i]; in do_ld_bytes_beN() 2039 void *haddr = p->haddr; in do_ld_parts_beN() local 2052 switch (((uintptr_t)haddr | size) & 7) { in do_ld_parts_beN() 2054 x = cpu_to_be32(load_atomic4(haddr)); in do_ld_parts_beN() 2060 x = cpu_to_be16(load_atomic2(haddr)); in do_ld_parts_beN() 2065 x = *(uint8_t *)haddr; in do_ld_parts_beN() 2072 haddr += n; in do_ld_parts_beN() [all …]
|
/openbmc/qemu/linux-user/loongarch64/ |
H A D | signal.c | 94 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 D | verify.c | 150 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 D | signal.c | 114 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 D | hugepage-mremap.c | 133 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/qemu/linux-user/ |
H A D | linuxload.c | 228 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/arm64/kvm/hyp/include/nvhe/ |
H A D | mm.h | 28 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 D | cmd_esbc_validate.c | 30 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/linux/arch/parisc/kernel/ |
H A D | signal.c | 218 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 D | mm.c | 78 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 D | hyp-main.c | 269 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 D | excp_helper.c | 59 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/linux/net/bluetooth/ |
H A D | hci_sock.c | 1184 struct sockaddr_hci haddr; in hci_sock_bind() local 1195 memset(&haddr, 0, sizeof(haddr)); in hci_sock_bind() 1196 len = min_t(unsigned int, sizeof(haddr), addr_len); 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() 1238 hci_pi(sk)->channel = haddr.hci_channel; in hci_sock_bind() 1275 if (haddr.hci_dev == HCI_DEV_NONE) { in hci_sock_bind() [all …]
|
/openbmc/linux/mm/ |
H A D | huge_memory.c | 645 unsigned long haddr = vmf->address & HPAGE_PMD_MASK; in __do_huge_pmd_anonymous_page() local 694 folio_add_new_anon_rmap(folio, vma, haddr); in __do_huge_pmd_anonymous_page() 697 set_pmd_at(vma->vm_mm, haddr, vmf->pmd, entry); in __do_huge_pmd_anonymous_page() 754 struct vm_area_struct *vma, unsigned long haddr, pmd_t *pmd, in set_huge_zero_page() argument 763 set_pmd_at(mm, haddr, pmd, entry); in set_huge_zero_page() 772 unsigned long haddr = vmf->address & HPAGE_PMD_MASK; in do_huge_pmd_anonymous_page() local 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() 820 folio = vma_alloc_folio(gfp, HPAGE_PMD_ORDER, vma, haddr, true); in do_huge_pmd_anonymous_page() 1288 unsigned long haddr = vmf->address & HPAGE_PMD_MASK; in do_huge_pmd_wp_page() local [all …]
|
H A D | khugepaged.c | 974 unsigned long haddr, pmd_t *pmd, in __collapse_huge_page_swapin() argument 979 unsigned long address, end = haddr + (HPAGE_PMD_NR * PAGE_SIZE); in __collapse_huge_page_swapin() 984 for (address = haddr; address < end; address += PAGE_SIZE) { in __collapse_huge_page_swapin() 1467 unsigned long haddr = addr & HPAGE_PMD_MASK; in collapse_pte_mapped_thp() local 1468 struct vm_area_struct *vma = vma_lookup(mm, haddr); in collapse_pte_mapped_thp() 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() 1532 start_pte = pte_offset_map_lock(mm, pmd, haddr, &ptl); in collapse_pte_mapped_thp() [all …]
|
/openbmc/qemu/target/hppa/ |
H A D | op_helper.c | 49 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/arch/arm64/include/asm/ |
H A D | kvm_mmu.h | 165 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 D | aspeed_hace.c | 165 void *haddr; in do_hash_operation() local 201 haddr = address_space_map(&s->dram_as, addr, &plen, false, in do_hash_operation() 203 if (haddr == NULL) { in do_hash_operation() 207 iov[i].iov_base = haddr; in do_hash_operation() 226 haddr = address_space_map(&s->dram_as, s->regs[R_HASH_SRC], in do_hash_operation() 228 if (haddr == NULL) { in do_hash_operation() 232 iov[0].iov_base = haddr; in do_hash_operation()
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | mmu.c | 633 int hyp_alloc_private_va_range(size_t size, unsigned long *haddr) in hyp_alloc_private_va_range() argument 656 *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() 687 *haddr = addr + offset_in_page(phys_addr); in __create_hyp_private_mapping() 691 int create_hyp_stack(phys_addr_t phys_addr, unsigned long *haddr) in create_hyp_stack() argument 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() [all …]
|
/openbmc/qemu/plugins/ |
H A D | api.c | 418 bool qemu_plugin_hwaddr_is_io(const struct qemu_plugin_hwaddr *haddr) in qemu_plugin_hwaddr_is_io() argument 421 return haddr->is_io; in qemu_plugin_hwaddr_is_io() 427 uint64_t qemu_plugin_hwaddr_phys_addr(const struct qemu_plugin_hwaddr *haddr) in qemu_plugin_hwaddr_phys_addr() argument 430 if (haddr) { in qemu_plugin_hwaddr_phys_addr() 431 return haddr->phys_addr; in qemu_plugin_hwaddr_phys_addr()
|
/openbmc/linux/include/linux/ |
H A D | huge_mm.h | 103 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 D | eth.c | 203 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 D | mem_helper.c | 277 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()
|