/openbsd/sys/arch/loongson/include/ |
H A D | autoconf.h | 116 #define REGVAL8(x) *((volatile uint8_t *)PHYS_TO_XKPHYS((x), CCA_NC)) 117 #define REGVAL32(x) *((volatile uint32_t *)PHYS_TO_XKPHYS((x), CCA_NC)) 118 #define REGVAL64(x) *((volatile uint64_t *)PHYS_TO_XKPHYS((x), CCA_NC))
|
/openbsd/sys/arch/mips64/mips64/ |
H A D | cache_loongson2.c | 120 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in Loongson2_SyncCache() 127 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in Loongson2_SyncCache() 137 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in Loongson2_SyncCache() 161 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in Loongson2_InvalidateICache() 195 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in Loongson2_SyncICache() 220 sva = PHYS_TO_XKPHYS(pa, CCA_CACHED); in Loongson2_SyncDCachePage()
|
H A D | cache_mips64r2.c | 217 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in mips64r2_SyncCache() 224 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in mips64r2_SyncCache() 232 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in mips64r2_SyncCache() 241 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in mips64r2_SyncCache() 264 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in mips64r2_InvalidateICache() 307 sva = PHYS_TO_XKPHYS(0, CCA_CACHED); in mips64r2_SyncDCachePage()
|
H A D | cache_octeon.c | 233 va = PHYS_TO_XKPHYS(pa, 0ul); in Octeon_lock_secondary_cache() 255 va = PHYS_TO_XKPHYS(pa, 0ul); in Octeon_unlock_secondary_cache()
|
H A D | mem.c | 126 v = (vaddr_t)PHYS_TO_XKPHYS(v, CCA_NONCOHERENT); in mmrw()
|
H A D | pmap.c | 478 va = PHYS_TO_XKPHYS(pa, CCA_CACHED); in pmap_steal_memory() 1423 va = (vaddr_t)PHYS_TO_XKPHYS(phys, CCA_CACHED); in pmap_zero_page() 1458 s = (vaddr_t)PHYS_TO_XKPHYS(src, CCA_CACHED); in pmap_copy_page() 1459 d = (vaddr_t)PHYS_TO_XKPHYS(dst, CCA_CACHED); in pmap_copy_page() 1996 return (void *)PHYS_TO_XKPHYS(VM_PAGE_TO_PHYS(pg), CCA_CACHED); in pmap_pg_alloc() 2039 va = PHYS_TO_XKPHYS(pa, CCA_CACHED); in pmap_map_direct() 2092 *insn = *(uint32_t *)PHYS_TO_XKPHYS(pa, CCA_CACHED); in pmap_copyinsn()
|
H A D | vm_machdep.c | 75 p2->p_addr = (void *)PHYS_TO_XKPHYS(pa, CCA_CACHED); in cpu_fork()
|
H A D | cpu.c | 425 return PHYS_TO_XKPHYS(pa, CCA_CACHED); in alloc_contiguous_pages()
|
/openbsd/sys/arch/octeon/dev/ |
H A D | octeon_pcibus.c | 147 .bus_base = PHYS_TO_XKPHYS(_OCTEON_PCIBUS_PCIIO_BASE, CCA_NC), 170 .bus_base = PHYS_TO_XKPHYS(_OCTEON_PCIBUS_PCIMEM_BASE, CCA_NC), 265 return PHYS_TO_XKPHYS(addr, CCA_NC); in octeon_pcibus_device_to_pa() 439 PHYS_TO_XKPHYS(0, CCA_CACHED) - PHYS_TO_XKPHYS(0, CCA_NC); in octeon_pcibus_io_map() 451 PHYS_TO_XKPHYS(0, CCA_CACHED) - PHYS_TO_XKPHYS(0, CCA_NC); in octeon_pcibus_mem_map()
|
H A D | octeon_iobus.c | 74 .bus_base = PHYS_TO_XKPHYS(0, CCA_NC), 262 PHYS_TO_XKPHYS(0, CCA_CACHED) - PHYS_TO_XKPHYS(0, CCA_NC); in iobus_space_map()
|
H A D | cn30xxpow.c | 78 (uint64_t *)PHYS_TO_XKPHYS( in cn30xxpow_work_response_async()
|
H A D | if_cnmac.c | 625 memcpy(&word3, (void *)PHYS_TO_XKPHYS(addr - in cnmac_buf_free_work() 812 cmdptr = (uint64_t *)PHYS_TO_XKPHYS(sc->sc_cmdptr.cmdptr, CCA_CACHED); in cnmac_send_cmd() 885 gbuf = (uint64_t *)(uintptr_t)PHYS_TO_XKPHYS(gaddr, CCA_CACHED); in cnmac_send() 1143 pm = (struct mbuf **)PHYS_TO_XKPHYS(pktbuf, CCA_CACHED) - 1; in cnmac_recv_mbuf() 1177 memcpy(&word3, (void *)PHYS_TO_XKPHYS(addr - in cnmac_recv_mbuf()
|
H A D | cn30xxuart.c | 77 .bus_base = PHYS_TO_XKPHYS(0, CCA_NC),
|
H A D | octuctl.c | 58 .bus_base = PHYS_TO_XKPHYS(0, CCA_NC),
|
H A D | octdwctwo.c | 113 .bus_base = PHYS_TO_XKPHYS(0, CCA_NC),
|
H A D | octxctl.c | 75 .bus_base = PHYS_TO_XKPHYS(0, CCA_NC),
|
/openbsd/sys/arch/loongson/loongson/ |
H A D | loongson2_machdep.c | 230 awrreg = (volatile uint64_t *)PHYS_TO_XKPHYS( in loongson2f_setup_window() 235 awrreg = (volatile uint64_t *)PHYS_TO_XKPHYS( in loongson2f_setup_window() 240 awrreg = (volatile uint64_t *)PHYS_TO_XKPHYS( in loongson2f_setup_window()
|
H A D | bus_dma.c | 452 *kvap = (caddr_t)PHYS_TO_XKPHYS(pa, CCA_NC); in _dmamem_map() 454 *kvap = (caddr_t)PHYS_TO_XKPHYS(pa, CCA_CACHED); in _dmamem_map()
|
/openbsd/sys/arch/octeon/octeon/ |
H A D | machdep.c | 189 return (struct octeon_bootmem_block *)PHYS_TO_XKPHYS(addr, CCA_CACHED); in pa_to_block() 205 memdesc = (struct octeon_bootmem_desc *)PHYS_TO_XKPHYS( in octeon_memory_init() 293 PHYS_TO_XKPHYS(boot_desc->boot_info_addr, CCA_CACHED); in mips_init() 458 fdt = (void *)PHYS_TO_XKPHYS(octeon_boot_info->fdt_addr, in mips_init() 775 octeon_sync_tc(PHYS_TO_XKPHYS(clk_reg, CCA_NC), cmul, frac); in octeon_tlb_init() 872 PHYS_TO_XKPHYS(octeon_boot_desc->argv[i], CCA_CACHED); in process_bootargs() 1080 PHYS_TO_XKPHYS(octeon_boot_info->phys_mem_desc_addr, CCA_CACHED); in bootmem_dump() 1099 PHYS_TO_XKPHYS(octeon_boot_info->phys_mem_desc_addr, CCA_CACHED); in bootmem_alloc_region() 1184 PHYS_TO_XKPHYS(octeon_boot_info->phys_mem_desc_addr, CCA_CACHED); in bootmem_free()
|
H A D | bus_dma.c | 489 *kvap = (caddr_t)PHYS_TO_XKPHYS(pa, CCA_NC); in _dmamem_map() 491 *kvap = (caddr_t)PHYS_TO_XKPHYS(pa, CCA_CACHED); in _dmamem_map()
|
/openbsd/sys/arch/octeon/include/ |
H A D | octeonvar.h | 368 (volatile uint64_t *)(PHYS_TO_XKPHYS(address, CCA_NC)); in octeon_xkphys_read_8() 376 *(volatile uint64_t *)(PHYS_TO_XKPHYS(address, CCA_NC)) = value; in octeon_xkphys_write_8() 396 (PHYS_TO_XKPHYS(MIO_BOOT_BIST_STAT, CCA_NC)); in octeon_xkphys_write_8()
|
/openbsd/sys/arch/loongson/dev/ |
H A D | leioc.c | 48 .bus_base = PHYS_TO_XKPHYS(0, CCA_NC),
|
H A D | htb.c | 108 .bus_base = PHYS_TO_XKPHYS(HTB_IO_BASE, CCA_NC), 131 .bus_base = PHYS_TO_XKPHYS(0, CCA_NC),
|
H A D | bonito.c | 158 .bus_base = PHYS_TO_XKPHYS(BONITO_PCIIO_BASE, CCA_NC), 181 .bus_base = PHYS_TO_XKPHYS(0, CCA_NC),
|
/openbsd/sys/arch/mips64/include/ |
H A D | cpu.h | 97 #define PHYS_TO_XKPHYS(x,c) ((paddr_t)(x) | XKPHYS_BASE | ((c) << 59)) macro
|