Home
last modified time | relevance | path

Searched refs:physAdr (Results 1 – 8 of 8) sorted by relevance

/haiku/src/system/boot/platform/riscv/
H A Dmmu.cpp29 phys_addr_t physAdr; member
96 FreePhysPages(phys_addr_t physAdr, size_t size) in FreePhysPages() argument
98 if (physAdr + size == (phys_addr_t)gFreeMem) in FreePhysPages()
123 VirtFromPhys(phys_addr_t physAdr) in VirtFromPhys() argument
125 return (void*)physAdr; in VirtFromPhys()
164 Map(addr_t virtAdr, phys_addr_t physAdr, uint64 flags) in Map() argument
176 .ppn = physAdr / B_PAGE_SIZE in Map()
185 MapRange(addr_t virtAdr, phys_addr_t physAdr, size_t size, uint64 flags) in MapRange() argument
188 B_PRIxADDR ", ", virtAdr, physAdr, size); in MapRange()
192 Map(virtAdr + i, physAdr + i, flags); in MapRange()
[all …]
/haiku/src/system/boot/platform/efi/arch/riscv64/
H A Darch_mmu.cpp42 void *VirtFromPhys(uint64_t physAdr) in VirtFromPhys() argument
44 return (void*)physAdr; in VirtFromPhys()
84 DumpPageWrite(uint64_t virtAdr, uint64_t physAdr, size_t size, uint64 flags, uint64& firstVirt, in DumpPageWrite() argument
87 if (virtAdr == firstVirt + len && physAdr == firstPhys + len && flags == firstFlags) { in DumpPageWrite()
98 firstPhys = physAdr; in DumpPageWrite()
178 Map(addr_t virtAdr, phys_addr_t physAdr, uint64 flags) in Map() argument
189 .ppn = physAdr / B_PAGE_SIZE, in Map()
198 MapRange(addr_t virtAdr, phys_addr_t physAdr, size_t size, uint64 flags) in MapRange() argument
201 B_PRIxADDR ")\n", virtAdr, virtAdr + (size - 1), physAdr, physAdr + (size - 1), size); in MapRange()
203 Map(virtAdr + i, physAdr + i, flags); in MapRange()
[all …]
/haiku/headers/private/kernel/arch/riscv64/
H A Darch_vm_translation_map.h16 VirtFromPhys(phys_addr_t physAdr) in VirtFromPhys() argument
18 return (void*)(physAdr + gVirtFromPhysOffset); in VirtFromPhys()
/haiku/src/system/kernel/arch/riscv64/
H A Darch_vm_translation_map.cpp73 Map(addr_t virtAdr, phys_addr_t physAdr, uint64 flags, kernel_args* args, in Map() argument
85 .ppn = physAdr / B_PAGE_SIZE in Map()
165 addr_t virtAdr, phys_addr_t physAdr, uint8 attributes, in arch_vm_translation_map_early_map() argument
174 Map(virtAdr, physAdr, flags.val, args, get_free_page); in arch_vm_translation_map_early_map()
H A Darch_vm.cpp119 void Write(uint64_t virtAdr, uint64_t physAdr, size_t size, uint64 flags) { in Write() argument
120 if (virtAdr == firstVirt + len && physAdr == firstPhys + len && flags == firstFlags) { in Write()
131 firstPhys = physAdr; in Write()
H A Darch_int.cpp104 phys_addr_t physAdr; in SetAccessedFlags() local
106 map->QueryInterrupt(addr, &physAdr, &pageFlags); in SetAccessedFlags()
/haiku/headers/private/system/arch/riscv64/
H A Darch_cpu_defs.h162 static B_ALWAYS_INLINE uint64 VirtAdrPte(uint64 physAdr, uint32 level) in VirtAdrPte() argument
164 return (physAdr >> (pageBits + pteIdxBits*level)) % (1 << pteIdxBits); in VirtAdrPte()
167 static B_ALWAYS_INLINE uint64 VirtAdrOfs(uint64 physAdr) in VirtAdrOfs() argument
169 return physAdr % PAGESIZE; in VirtAdrOfs()
/haiku/src/add-ons/kernel/drivers/input/virtio_input/
H A Dvirtio_input.cpp60 phys_addr_t physAdr; member
183 dev->physAdr = pe.address; in InitPackets()
187 dprintf(" phys: %p\n", (void*)dev->physAdr); in InitPackets()
205 pe.address = dev->physAdr + (uint8*)pkt - (uint8*)dev->packets; in PacketPhysEntry()