• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /xnu-2782.1.97/osfmk/i386/AT386/

Lines Matching defs:mptr

492 	EfiMemoryRange *mptr;
510 mptr = (EfiMemoryRange *)ml_static_ptovirt(args->MemoryMap);
511 for (i=0; i < mcount; i++, mptr = (EfiMemoryRange *)(((vm_offset_t)mptr) + msize)) {
512 if (((mptr->Attribute & EFI_MEMORY_RUNTIME) == EFI_MEMORY_RUNTIME) ) {
513 vm_size = (vm_offset_t)i386_ptob((uint32_t)mptr->NumberOfPages);
514 vm_addr = (vm_offset_t) mptr->VirtualStart;
518 phys_addr = (vm_map_offset_t) mptr->PhysicalStart;
520 mptr->Type,
522 (void *) (uintptr_t) mptr->VirtualStart,
526 (mptr->Type == kEfiRuntimeServicesCode) ? VM_PROT_READ | VM_PROT_EXECUTE : VM_PROT_READ|VM_PROT_WRITE,
527 (mptr->Type == EfiMemoryMappedIO) ? VM_WIMG_IO : VM_WIMG_USE_DEFAULT);
558 EfiMemoryRange *mptr;
575 mptr = (EfiMemoryRange *)ml_static_ptovirt(args->MemoryMap);
576 for (i=0; i < mcount; i++, mptr = (EfiMemoryRange *)(((vm_offset_t)mptr) + msize)) {
577 if ((mptr->Attribute & EFI_MEMORY_RUNTIME) == EFI_MEMORY_RUNTIME) {
579 vm_size = (vm_offset_t)i386_ptob((uint32_t)mptr->NumberOfPages);
580 vm_addr = (vm_offset_t) mptr->VirtualStart;
584 phys_addr = (vm_map_offset_t) mptr->PhysicalStart;
586 kprintf("mapping[%u] %qx @ %lx, %llu\n", mptr->Type, phys_addr, (unsigned long)vm_addr, mptr->NumberOfPages);
596 mptr = map;
597 for (i=0; i < mcount; i++, mptr = (EfiMemoryRange *)(((vm_offset_t)mptr) + msize)) {
598 if ((mptr->Attribute & EFI_MEMORY_RUNTIME) == EFI_MEMORY_RUNTIME) {
600 vm_size = (vm_offset_t)i386_ptob((uint32_t)mptr->NumberOfPages);
601 vm_addr = (vm_offset_t) mptr->VirtualStart;
604 phys_addr = (vm_map_offset_t) mptr->PhysicalStart;
606 kprintf("mapping[%u] %qx @ %lx, %llu\n", mptr->Type, phys_addr, (unsigned long)vm_addr, mptr->NumberOfPages);
609 (mptr->Type == kEfiRuntimeServicesCode) ? VM_PROT_READ | VM_PROT_EXECUTE : VM_PROT_READ|VM_PROT_WRITE,
610 (mptr->Type == EfiMemoryMappedIO) ? VM_WIMG_IO : VM_WIMG_USE_DEFAULT);