Home
last modified time | relevance | path

Searched refs:physicalAddress (Results 1 – 25 of 114) sorted by relevance

12345

/haiku/src/system/kernel/arch/x86/paging/
H A Dx86_physical_page_mapper_mapped.h47 phys_addr_t physicalAddress) in GetPageTableAt() argument
49 ASSERT(physicalAddress % B_PAGE_SIZE == 0); in GetPageTableAt()
51 return (void*)(physicalAddress + KERNEL_PMAP_BASE); in GetPageTableAt()
73 phys_addr_t physicalAddress) in InterruptGetPageTableAt() argument
75 ASSERT(physicalAddress % B_PAGE_SIZE == 0); in InterruptGetPageTableAt()
77 return (void*)(physicalAddress + KERNEL_PMAP_BASE); in InterruptGetPageTableAt()
82 X86PhysicalPageMapper::GetPage(phys_addr_t physicalAddress, in GetPage() argument
85 if (physicalAddress >= KERNEL_PMAP_BASE) in GetPage()
88 *virtualAddress = physicalAddress + KERNEL_PMAP_BASE; in GetPage()
101 X86PhysicalPageMapper::GetPageCurrentCPU(phys_addr_t physicalAddress, in GetPageCurrentCPU() argument
[all …]
H A Dx86_physical_page_mapper.h24 virtual void* GetPageTableAt(phys_addr_t physicalAddress) = 0;
36 phys_addr_t physicalAddress) = 0;
47 void* GetPageTableAt(phys_addr_t physicalAddress);
57 void* InterruptGetPageTableAt(phys_addr_t physicalAddress);
59 status_t GetPage(phys_addr_t physicalAddress, addr_t* virtualAddress,
63 status_t GetPageCurrentCPU(phys_addr_t physicalAddress,
67 status_t GetPageDebug(phys_addr_t physicalAddress,
H A Dx86_physical_page_mapper_large_memory.cpp103 virtual void* GetPageTableAt(phys_addr_t physicalAddress);
108 phys_addr_t physicalAddress; member
132 phys_addr_t physicalAddress);
134 virtual status_t GetPage(phys_addr_t physicalAddress,
138 virtual status_t GetPageCurrentCPU(phys_addr_t physicalAddress,
143 virtual status_t GetPageDebug(phys_addr_t physicalAddress,
182 PhysicalPageSlot::Map(phys_addr_t physicalAddress) in Map() argument
184 pool->Map(physicalAddress, address); in Map()
366 fSlots[i].physicalAddress = ~(phys_addr_t)0; in Init()
382 phys_addr_t physicalAddress) in GetPageTableAt() argument
[all …]
/haiku/src/system/boot/platform/bios_ia32/
H A Dlong.cpp128 addr_t physicalAddress; in long_mmu_init() local
139 pml4 = (uint64*)mmu_allocate_page(&physicalAddress); in long_mmu_init()
141 pmlTop[511] = physicalAddress | kTableMappingFlags; in long_mmu_init()
142 pmlTop[0] = physicalAddress | kTableMappingFlags; in long_mmu_init()
154 pdpt = (uint64*)mmu_allocate_page(&physicalAddress); in long_mmu_init()
156 pml4[510] = physicalAddress | kTableMappingFlags; in long_mmu_init()
157 pml4[0] = physicalAddress | kTableMappingFlags; in long_mmu_init()
160 pageDir = (uint64*)mmu_allocate_page(&physicalAddress); in long_mmu_init()
162 pdpt[i / 0x40000000] = physicalAddress | kTableMappingFlags; in long_mmu_init()
174 pdpt = (uint64*)mmu_allocate_page(&physicalAddress); in long_mmu_init()
[all …]
/haiku/src/system/kernel/arch/arm/paging/
H A Darm_physical_page_mapper_large_memory.cpp105 virtual void* GetPageTableAt(phys_addr_t physicalAddress);
110 phys_addr_t physicalAddress; member
134 phys_addr_t physicalAddress);
136 virtual status_t GetPage(phys_addr_t physicalAddress,
140 virtual status_t GetPageCurrentCPU(phys_addr_t physicalAddress,
145 virtual status_t GetPageDebug(phys_addr_t physicalAddress,
184 PhysicalPageSlot::Map(phys_addr_t physicalAddress) in Map() argument
186 pool->Map(physicalAddress, address); in Map()
368 fSlots[i].physicalAddress = ~(phys_addr_t)0; in Init()
384 phys_addr_t physicalAddress) in GetPageTableAt() argument
[all …]
H A Darm_physical_page_mapper.h21 virtual void* GetPageTableAt(phys_addr_t physicalAddress) = 0;
33 phys_addr_t physicalAddress) = 0;
/haiku/src/system/kernel/arch/m68k/paging/
H A Dm68k_physical_page_mapper_large_memory.cpp111 virtual void* GetPageTableAt(phys_addr_t physicalAddress);
116 phys_addr_t physicalAddress; member
139 phys_addr_t physicalAddress);
141 virtual status_t GetPage(phys_addr_t physicalAddress,
145 virtual status_t GetPageCurrentCPU(phys_addr_t physicalAddress,
150 virtual status_t GetPageDebug(phys_addr_t physicalAddress,
189 PhysicalPageSlot::Map(phys_addr_t physicalAddress) in Map() argument
191 pool->Map(physicalAddress, address); in Map()
373 fSlots[i].physicalAddress = ~(phys_addr_t)0; in Init()
389 phys_addr_t physicalAddress) in GetPageTableAt() argument
[all …]
H A Dm68k_physical_page_mapper.h22 virtual void* GetPageTableAt(phys_addr_t physicalAddress) = 0;
36 phys_addr_t physicalAddress) = 0;
/haiku/src/system/kernel/arch/arm64/
H A DPMAPPhysicalPageMapper.h14 virtual status_t GetPage(phys_addr_t physicalAddress,
21 phys_addr_t physicalAddress, in GetPageCurrentCPU()
25 return GetPage(physicalAddress, _virtualAddress, _handle); in GetPageCurrentCPU()
30 virtual status_t GetPageDebug(phys_addr_t physicalAddress, in GetPageDebug()
32 void** _handle) { return GetPage(physicalAddress, in GetPageDebug()
H A DPMAPPhysicalPageMapper.cpp10 phys_addr_t physicalAddress, addr_t* _virtualAddress, void** _handle) in GetPage() argument
12 ASSERT(physicalAddress < KERNEL_PMAP_SIZE); in GetPage()
14 *_virtualAddress = KERNEL_PMAP_BASE + physicalAddress; in GetPage()
/haiku/src/system/kernel/arch/generic/
H A DGenericVMPhysicalPageMapper.cpp26 GenericVMPhysicalPageMapper::GetPage(phys_addr_t physicalAddress, in GetPage() argument
29 return generic_get_physical_page(physicalAddress, _virtualAddress, 0); in GetPage()
41 GenericVMPhysicalPageMapper::GetPageCurrentCPU(phys_addr_t physicalAddress, in GetPageCurrentCPU() argument
59 GenericVMPhysicalPageMapper::GetPageDebug(phys_addr_t physicalAddress, in GetPageDebug() argument
H A DGenericVMPhysicalPageMapper.h16 virtual status_t GetPage(phys_addr_t physicalAddress,
23 phys_addr_t physicalAddress,
29 virtual status_t GetPageDebug(phys_addr_t physicalAddress,
/haiku/src/system/kernel/vm/
H A DVMTranslationMap.cpp58 phys_addr_t physicalAddress; in UnmapPages() local
60 if (Query(address, &physicalAddress, &flags) == B_OK in UnmapPages()
62 vm_page* page = vm_lookup_page(physicalAddress / B_PAGE_SIZE); in UnmapPages()
99 phys_addr_t physicalAddress; in UnmapArea() local
101 if (Query(address, &physicalAddress, &flags) == B_OK in UnmapArea()
103 vm_page* page = vm_lookup_page(physicalAddress / B_PAGE_SIZE); in UnmapArea()
148 VMTranslationMap::DebugGetReverseMappingInfo(phys_addr_t physicalAddress, in DebugGetReverseMappingInfo() argument
/haiku/src/system/kernel/arch/ppc/
H A Darch_vm_translation_map.cpp139 phys_addr_t physicalAddress,
191 get_physical_page_tmap(phys_addr_t physicalAddress, addr_t *_virtualAddress,
194 return generic_get_physical_page(physicalAddress, _virtualAddress, 0);
310 ppc_map_address_range(addr_t virtualAddress, phys_addr_t physicalAddress, in ppc_map_address_range() argument
315 physicalAddress = ROUNDDOWN(physicalAddress, B_PAGE_SIZE); in ppc_map_address_range()
327 virtualAddress += B_PAGE_SIZE, physicalAddress += B_PAGE_SIZE) { in ppc_map_address_range()
328 status_t error = map->Map(virtualAddress, physicalAddress, in ppc_map_address_range()
/haiku/src/system/boot/platform/openfirmware/arch/sparc/
H A Dmmu.cpp163 map_range(void *virtualAddress, void *physicalAddress, size_t size, uint16 mode) in map_range() argument
167 virtualAddress, 0, physicalAddress); in map_range()
418 void *physicalAddress = find_free_physical_range(size); in arch_mmu_allocate() local
419 if (physicalAddress == PHYSINVAL) { in arch_mmu_allocate()
429 status = of_call_method(sMemoryInstance, "claim", 3, 1, physicalAddress, in arch_mmu_allocate()
434 "failed to claim physical address\n", physicalAddress, size); in arch_mmu_allocate()
440 insert_physical_allocated_range((addr_t)physicalAddress, size); in arch_mmu_allocate()
442 if (!map_range(virtualAddress, physicalAddress, size, protection)) in arch_mmu_allocate()
464 void *physicalAddress = (void *)args->Argument(0);
472 if (is_physical_memory(physicalAddress)
[all …]
/haiku/src/system/kernel/arch/ppc/paging/classic/
H A DPPCPagingMethodClassic.cpp239 phys_addr_t physicalAddress, uint8 attributes, in MapEarly() argument
253 virtualAddress, physicalAddress, PTE_READ_WRITE, 0, false); in MapEarly()
265 virtualAddress, physicalAddress, PTE_READ_WRITE, 0, true); in MapEarly()
287 phys_addr_t physicalAddress; in IsKernelPageAccessible() local
289 if (map->Query(virtualAddress, &physicalAddress, &flags) != B_OK) in IsKernelPageAccessible()
303 uint32 virtualSegmentID, addr_t virtualAddress, phys_addr_t physicalAddress, in FillPageTableEntry() argument
307 entry->physical_page_number = physicalAddress / B_PAGE_SIZE; in FillPageTableEntry()
352 phys_addr_t physicalAddress, uint32 attributes, uint32 memoryType,
355 page_table_entry page = (physicalAddress & PPC_PTE_ADDRESS_MASK)
/haiku/src/system/kernel/arch/ppc/paging/460/
H A DPPCPagingMethod460.cpp239 phys_addr_t physicalAddress, uint8 attributes, in MapEarly() argument
253 virtualAddress, physicalAddress, PTE_READ_WRITE, 0, false); in MapEarly()
265 virtualAddress, physicalAddress, PTE_READ_WRITE, 0, true); in MapEarly()
287 phys_addr_t physicalAddress; in IsKernelPageAccessible() local
289 if (map->Query(virtualAddress, &physicalAddress, &flags) != B_OK) in IsKernelPageAccessible()
303 uint32 virtualSegmentID, addr_t virtualAddress, phys_addr_t physicalAddress, in FillPageTableEntry() argument
307 entry->physical_page_number = physicalAddress / B_PAGE_SIZE; in FillPageTableEntry()
352 phys_addr_t physicalAddress, uint32 attributes, uint32 memoryType,
355 page_table_entry page = (physicalAddress & PPC_PTE_ADDRESS_MASK)
/haiku/src/system/boot/platform/openfirmware/arch/ppc/
H A Dmmu.cpp207 void *virtualAddress, void *physicalAddress, uint8 mode, bool secondaryHash) in fill_page_table_entry() argument
211 = (((uint32)physicalAddress / B_PAGE_SIZE) << 12) | mode; in fill_page_table_entry()
235 map_page(void *virtualAddress, void *physicalAddress, uint8 mode) in map_page() argument
250 virtualAddress, physicalAddress, mode, false); in map_page()
264 virtualAddress, physicalAddress, mode, true); in map_page()
275 map_range(void *virtualAddress, void *physicalAddress, size_t size, uint8 mode) in map_range() argument
279 (void *)(uint32(physicalAddress) + offset), mode); in map_range()
521 void *physicalAddress = find_free_physical_range(size); in arch_mmu_allocate() local
522 if (physicalAddress == PHYSINVAL) { in arch_mmu_allocate()
531 physicalAddress, size); in arch_mmu_allocate()
[all …]
/haiku/headers/private/kernel/
H A DAreaKeeper.h25 area_id Map(const char *name, phys_addr_t physicalAddress,
61 AreaKeeper::Map(const char *name, phys_addr_t physicalAddress, size_t numBytes, in Map() argument
64 fArea = map_physical_memory(name, physicalAddress, numBytes, spec, in Map()
/haiku/src/system/kernel/arch/x86/paging/pae/
H A DX86PagingMethodPAE.cpp264 phys_addr_t physicalAddress = _Allocate32BitPage(); in _AllocateNeededPages() local
269 physicalAddress, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, 0, in _AllocateNeededPages()
274 *(phys_addr_t*)(virtualBase + i * B_PAGE_SIZE) = physicalAddress; in _AllocateNeededPages()
286 phys_addr_t physicalAddress in _Allocate32BitPage() local
289 if (physicalAddress == 0 || physicalAddress > 0xffffffff) { in _Allocate32BitPage()
294 return physicalAddress; in _Allocate32BitPage()
362 virtual void Map(phys_addr_t physicalAddress,
488 X86PagingMethodPAE::PhysicalPageSlotPool::Map(phys_addr_t physicalAddress, in Map() argument
493 pte = (physicalAddress & X86_PAE_PTE_ADDRESS_MASK) in Map()
677 phys_addr_t physicalAddress, uint8 attributes, in MapEarly() argument
[all …]
/haiku/src/add-ons/kernel/drivers/misc/
H A Dmem.c169 phys_addr_t physicalAddress; in mem_map_target() local
178 physicalAddress = (phys_addr_t)position & ~((off_t)B_PAGE_SIZE - 1); in mem_map_target()
181 offset = position - (off_t)physicalAddress; in mem_map_target()
185 area = map_physical_memory("mem_driver_temp", physicalAddress, size, in mem_map_target()
/haiku/src/system/kernel/arch/sparc/
H A Darch_vm.cpp60 phys_addr_t physicalAddress; in arch_vm_init_end()
63 &physicalAddress) != B_OK) in arch_vm_init_end()
69 physicalAddress, true); in arch_vm_init_end()
/haiku/headers/private/kernel/vm/
H A DVMTranslationMap.h37 phys_addr_t physicalAddress,
81 phys_addr_t physicalAddress,
110 virtual status_t GetPage(phys_addr_t physicalAddress,
119 phys_addr_t physicalAddress,
126 virtual status_t GetPageDebug(phys_addr_t physicalAddress,
/haiku/src/system/kernel/arch/arm/
H A Darch_vm.cpp73 phys_addr_t physicalAddress; in arch_vm_init_end() local
76 &physicalAddress) != B_OK) in arch_vm_init_end()
83 physicalAddress, true); in arch_vm_init_end()
/haiku/src/system/kernel/arch/riscv64/
H A DRISCV64VMTranslationMap.h37 phys_addr_t physicalAddress,
82 phys_addr_t physicalAddress,
155 virtual status_t GetPage(phys_addr_t physicalAddress,
162 phys_addr_t physicalAddress,
168 virtual status_t GetPageDebug(phys_addr_t physicalAddress,

12345