Lines Matching refs:desc

1412         EFI_MEMORY_DESCRIPTOR *desc = efi_memmap + i;  in efi_init_memory()  local
1413 u64 len = desc->NumberOfPages << EFI_PAGE_SHIFT; in efi_init_memory()
1419 desc->PhysicalStart, desc->PhysicalStart + len - 1, in efi_init_memory()
1420 desc->Type, desc->Attribute); in efi_init_memory()
1423 (!(desc->Attribute & EFI_MEMORY_RUNTIME) && in efi_init_memory()
1425 (desc->Type != EfiBootServicesCode && in efi_init_memory()
1426 desc->Type != EfiBootServicesData))) ) in efi_init_memory()
1429 desc->VirtualStart = INVALID_VIRTUAL_ADDRESS; in efi_init_memory()
1431 smfn = PFN_DOWN(desc->PhysicalStart); in efi_init_memory()
1432 emfn = PFN_UP(desc->PhysicalStart + len); in efi_init_memory()
1434 if ( desc->Attribute & EFI_MEMORY_WB ) in efi_init_memory()
1436 else if ( desc->Attribute & EFI_MEMORY_WT ) in efi_init_memory()
1438 else if ( desc->Attribute & EFI_MEMORY_WC ) in efi_init_memory()
1440 else if ( desc->Attribute & (EFI_MEMORY_UC | EFI_MEMORY_UCE) ) in efi_init_memory()
1443 (desc->Attribute & EFI_MEMORY_WP) ) in efi_init_memory()
1454 if ( desc->Attribute & (efi_bs_revision < EFI_REVISION(2, 5) in efi_init_memory()
1457 if ( desc->Attribute & EFI_MEMORY_XP ) in efi_init_memory()
1468 desc->VirtualStart = in efi_init_memory()
1469 (unsigned long)maddr_to_virt(desc->PhysicalStart); in efi_init_memory()
1475 else if ( !((desc->PhysicalStart + len - 1) >> (VADDR_BITS - 1)) && in efi_init_memory()
1483 desc->VirtualStart = desc->PhysicalStart; in efi_init_memory()
1516 const EFI_MEMORY_DESCRIPTOR *desc = efi_memmap + i; in efi_init_memory() local
1518 if ( ((desc->Attribute & EFI_MEMORY_RUNTIME) || in efi_init_memory()
1520 (desc->Type == EfiBootServicesCode || in efi_init_memory()
1521 desc->Type == EfiBootServicesData))) && in efi_init_memory()
1522 desc->VirtualStart != INVALID_VIRTUAL_ADDRESS && in efi_init_memory()
1523 desc->VirtualStart != desc->PhysicalStart ) in efi_init_memory()
1524 copy_mapping(PFN_DOWN(desc->PhysicalStart), in efi_init_memory()
1525 PFN_UP(desc->PhysicalStart + in efi_init_memory()
1526 (desc->NumberOfPages << EFI_PAGE_SHIFT)), in efi_init_memory()