Lines Matching full:md
19 static __init pgprot_t efimem_to_pgprot_map(efi_memory_desc_t *md) in efimem_to_pgprot_map() argument
21 u64 attr = md->attribute; in efimem_to_pgprot_map()
22 u32 type = md->type; in efimem_to_pgprot_map()
46 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument
48 pgprot_t prot = __pgprot(pgprot_val(efimem_to_pgprot_map(md)) & in efi_create_mapping()
53 for (i = 0; i < md->num_pages; i++) in efi_create_mapping()
54 create_pgd_mapping(mm->pgd, md->virt_addr + i * PAGE_SIZE, in efi_create_mapping()
55 md->phys_addr + i * PAGE_SIZE, in efi_create_mapping()
62 efi_memory_desc_t *md = data; in set_permissions() local
66 if (md->attribute & EFI_MEMORY_RO) { in set_permissions()
71 if (md->attribute & EFI_MEMORY_XP) { in set_permissions()
81 efi_memory_desc_t *md) in efi_set_mapping_permissions() argument
83 BUG_ON(md->type != EFI_RUNTIME_SERVICES_CODE && in efi_set_mapping_permissions()
84 md->type != EFI_RUNTIME_SERVICES_DATA); in efi_set_mapping_permissions()
93 return apply_to_page_range(mm, md->virt_addr, in efi_set_mapping_permissions()
94 md->num_pages << EFI_PAGE_SHIFT, in efi_set_mapping_permissions()
95 set_permissions, md); in efi_set_mapping_permissions()