Home
last modified time | relevance | path

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

/arch/arm64/kernel/
Defi.c15 static bool region_is_misaligned(const efi_memory_desc_t *md) in region_is_misaligned() argument
19 return !PAGE_ALIGNED(md->phys_addr) || in region_is_misaligned()
20 !PAGE_ALIGNED(md->num_pages << EFI_PAGE_SHIFT); in region_is_misaligned()
28 static __init pteval_t create_mapping_protection(efi_memory_desc_t *md) in create_mapping_protection() argument
30 u64 attr = md->attribute; in create_mapping_protection()
31 u32 type = md->type; in create_mapping_protection()
36 if (region_is_misaligned(md)) { in create_mapping_protection()
76 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument
78 pteval_t prot_val = create_mapping_protection(md); in efi_create_mapping()
79 bool page_mappings_only = (md->type == EFI_RUNTIME_SERVICES_CODE || in efi_create_mapping()
[all …]
Dacpi.c278 efi_memory_desc_t *md, *region = NULL; in acpi_os_ioremap() local
284 for_each_efi_memory_desc(md) { in acpi_os_ioremap()
285 u64 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); in acpi_os_ioremap()
287 if (phys < md->phys_addr || phys >= end) in acpi_os_ioremap()
294 region = md; in acpi_os_ioremap()
/arch/ia64/kernel/
Defi.c269 is_memory_available (efi_memory_desc_t *md) in is_memory_available() argument
271 if (!(md->attribute & EFI_MEMORY_WB)) in is_memory_available()
274 switch (md->type) { in is_memory_available()
293 #define efi_md_size(md) (md->num_pages << EFI_PAGE_SHIFT) argument
302 efi_md_end(efi_memory_desc_t *md) in efi_md_end() argument
304 return (md->phys_addr + efi_md_size(md)); in efi_md_end()
308 efi_wb(efi_memory_desc_t *md) in efi_wb() argument
310 return (md->attribute & EFI_MEMORY_WB); in efi_wb()
314 efi_uc(efi_memory_desc_t *md) in efi_uc() argument
316 return (md->attribute & EFI_MEMORY_UC); in efi_uc()
[all …]
/arch/arm/kernel/
Defi.c13 efi_memory_desc_t *md = data; in set_permissions() local
16 if (md->attribute & EFI_MEMORY_RO) in set_permissions()
18 if (md->attribute & EFI_MEMORY_XP) in set_permissions()
25 efi_memory_desc_t *md) in efi_set_mapping_permissions() argument
29 base = md->virt_addr; in efi_set_mapping_permissions()
30 size = md->num_pages << EFI_PAGE_SHIFT; in efi_set_mapping_permissions()
40 return apply_to_page_range(mm, base, size, set_permissions, md); in efi_set_mapping_permissions()
45 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument
48 .virtual = md->virt_addr, in efi_create_mapping()
49 .pfn = __phys_to_pfn(md->phys_addr), in efi_create_mapping()
[all …]
/arch/riscv/kernel/
Defi.c19 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()
[all …]
/arch/mips/pci/
Dmsi-xlp.c134 struct xlp_msi_data *md = irq_data_get_irq_chip_data(d); in xlp_msi_enable() local
139 spin_lock_irqsave(&md->msi_lock, flags); in xlp_msi_enable()
140 md->msi_enabled_mask |= 1u << vec; in xlp_msi_enable()
142 nlm_write_reg(md->lnkbase, PCIE_9XX_MSI_EN, in xlp_msi_enable()
143 md->msi_enabled_mask); in xlp_msi_enable()
145 nlm_write_reg(md->lnkbase, PCIE_MSI_EN, md->msi_enabled_mask); in xlp_msi_enable()
146 spin_unlock_irqrestore(&md->msi_lock, flags); in xlp_msi_enable()
151 struct xlp_msi_data *md = irq_data_get_irq_chip_data(d); in xlp_msi_disable() local
156 spin_lock_irqsave(&md->msi_lock, flags); in xlp_msi_disable()
157 md->msi_enabled_mask &= ~(1u << vec); in xlp_msi_disable()
[all …]
/arch/x86/platform/efi/
Defi_32.c36 void __init efi_map_region(efi_memory_desc_t *md) in efi_map_region() argument
42 start_pfn = PFN_DOWN(md->phys_addr); in efi_map_region()
43 size = md->num_pages << PAGE_SHIFT; in efi_map_region()
44 end = md->phys_addr + size; in efi_map_region()
48 va = __va(md->phys_addr); in efi_map_region()
50 if (!(md->attribute & EFI_MEMORY_WB)) in efi_map_region()
51 set_memory_uc((unsigned long)va, md->num_pages); in efi_map_region()
53 va = ioremap_cache(md->phys_addr, size); in efi_map_region()
56 md->virt_addr = (unsigned long)va; in efi_map_region()
58 pr_err("ioremap of 0x%llX failed!\n", md->phys_addr); in efi_map_region()
[all …]
Defi.c110 efi_memory_desc_t *md; in efi_find_mirror() local
116 for_each_efi_memory_desc(md) { in efi_find_mirror()
117 unsigned long long start = md->phys_addr; in efi_find_mirror()
118 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_find_mirror()
121 if (md->attribute & EFI_MEMORY_MORE_RELIABLE) { in efi_find_mirror()
140 efi_memory_desc_t *md; in do_add_efi_memmap() local
145 for_each_efi_memory_desc(md) { in do_add_efi_memmap()
146 unsigned long long start = md->phys_addr; in do_add_efi_memmap()
147 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in do_add_efi_memmap()
150 switch (md->type) { in do_add_efi_memmap()
[all …]
Dquirks.c249 efi_memory_desc_t md; in efi_arch_mem_reserve() local
253 if (efi_mem_desc_lookup(addr, &md) || in efi_arch_mem_reserve()
254 md.type != EFI_BOOT_SERVICES_DATA) { in efi_arch_mem_reserve()
259 if (addr + size > md.phys_addr + (md.num_pages << EFI_PAGE_SHIFT)) { in efi_arch_mem_reserve()
270 mr.attribute = md.attribute | EFI_MEMORY_RUNTIME; in efi_arch_mem_reserve()
272 num_entries = efi_memmap_split_count(&md, &mr.range); in efi_arch_mem_reserve()
318 efi_memory_desc_t *md; in efi_reserve_boot_services() local
323 for_each_efi_memory_desc(md) { in efi_reserve_boot_services()
324 u64 start = md->phys_addr; in efi_reserve_boot_services()
325 u64 size = md->num_pages << EFI_PAGE_SHIFT; in efi_reserve_boot_services()
[all …]
Defi_64.c262 static void __init __map_region(efi_memory_desc_t *md, u64 va) in __map_region() argument
280 if (md->type != EFI_BOOT_SERVICES_CODE && in __map_region()
281 md->type != EFI_RUNTIME_SERVICES_CODE) in __map_region()
284 if (!(md->attribute & EFI_MEMORY_WB)) in __map_region()
287 if (sev_active() && md->type != EFI_MEMORY_MAPPED_IO) in __map_region()
290 pfn = md->phys_addr >> PAGE_SHIFT; in __map_region()
291 if (kernel_map_pages_in_pgd(pgd, pfn, va, md->num_pages, flags)) in __map_region()
293 md->phys_addr, va); in __map_region()
296 void __init efi_map_region(efi_memory_desc_t *md) in efi_map_region() argument
298 unsigned long size = md->num_pages << PAGE_SHIFT; in efi_map_region()
[all …]
/arch/x86/kernel/
Dtsc_msr.c171 const struct muldiv *md; in cpu_khz_from_msr() local
191 md = &freq_desc->muldiv[index]; in cpu_khz_from_msr()
197 if (md->divider) { in cpu_khz_from_msr()
198 tscref = TSC_REFERENCE_KHZ * md->multiplier; in cpu_khz_from_msr()
199 freq = DIV_ROUND_CLOSEST(tscref, md->divider); in cpu_khz_from_msr()
204 res = DIV_ROUND_CLOSEST(tscref * ratio, md->divider); in cpu_khz_from_msr()
Dsmpboot.c1699 struct mwait_cpu_dead *md = this_cpu_ptr(&mwait_cpu_dead); in mwait_play_dead() local
1748 clflush(md); in mwait_play_dead()
1750 __monitor(md, 0, 0); in mwait_play_dead()
/arch/arm/mm/
Dmmu.c850 struct map_desc *md, in create_36bit_mapping() argument
858 addr = md->virtual; in create_36bit_mapping()
859 phys = __pfn_to_phys(md->pfn); in create_36bit_mapping()
860 length = PAGE_ALIGN(md->length); in create_36bit_mapping()
864 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping()
876 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping()
880 if ((addr | length | __pfn_to_phys(md->pfn)) & ~SUPERSECTION_MASK) { in create_36bit_mapping()
882 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping()
890 phys |= (((md->pfn >> (32 - PAGE_SHIFT)) & 0xF) << 20); in create_36bit_mapping()
911 static void __init __create_mapping(struct mm_struct *mm, struct map_desc *md, in __create_mapping() argument
[all …]
/arch/sparc/mm/
Dinit_64.c1109 static int scan_pio_for_cfg_handle(struct mdesc_handle *md, u64 pio, in scan_pio_for_cfg_handle() argument
1114 mdesc_for_each_arc(arc, md, pio, MDESC_ARC_TYPE_FWD) { in scan_pio_for_cfg_handle()
1115 u64 target = mdesc_arc_target(md, arc); in scan_pio_for_cfg_handle()
1118 val = mdesc_get_property(md, target, in scan_pio_for_cfg_handle()
1126 static int scan_arcs_for_cfg_handle(struct mdesc_handle *md, u64 grp, in scan_arcs_for_cfg_handle() argument
1132 mdesc_for_each_arc(arc, md, grp, MDESC_ARC_TYPE_FWD) { in scan_arcs_for_cfg_handle()
1133 u64 target = mdesc_arc_target(md, arc); in scan_arcs_for_cfg_handle()
1134 const char *name = mdesc_node_name(md, target); in scan_arcs_for_cfg_handle()
1140 val = mdesc_get_property(md, target, "latency", NULL); in scan_arcs_for_cfg_handle()
1153 return scan_pio_for_cfg_handle(md, candidate, cfg_handle); in scan_arcs_for_cfg_handle()
[all …]
/arch/riscv/include/asm/
Defi.h21 int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md);
22 int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md);
/arch/arm/include/asm/
Defi.h21 int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md);
22 int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md);
/arch/arm64/include/asm/
Defi.h21 int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md);
22 int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md);
/arch/x86/boot/compressed/
Dkaslr.c689 efi_memory_desc_t *md; in process_efi_entries() local
713 md = efi_early_memdesc_ptr(pmap, e->efi_memdesc_size, i); in process_efi_entries()
714 if (md->attribute & EFI_MEMORY_MORE_RELIABLE) { in process_efi_entries()
721 md = efi_early_memdesc_ptr(pmap, e->efi_memdesc_size, i); in process_efi_entries()
734 if (md->type != EFI_CONVENTIONAL_MEMORY) in process_efi_entries()
738 (md->attribute & EFI_MEMORY_SP)) in process_efi_entries()
742 !(md->attribute & EFI_MEMORY_MORE_RELIABLE)) in process_efi_entries()
745 region.start = md->phys_addr; in process_efi_entries()
746 region.size = md->num_pages << EFI_PAGE_SHIFT; in process_efi_entries()
/arch/arm/include/asm/mach/
Dmap.h43 extern void create_mapping_late(struct mm_struct *mm, struct map_desc *md,
/arch/x86/kernel/cpu/resctrl/
Dctrlmondata.c522 union mon_data_bits md; in rdtgroup_mondata_show() local
533 md.priv = of->kn->priv; in rdtgroup_mondata_show()
534 resid = md.u.rid; in rdtgroup_mondata_show()
535 domid = md.u.domid; in rdtgroup_mondata_show()
536 evtid = md.u.evtid; in rdtgroup_mondata_show()
/arch/m68k/ifpsp060/src/
Dilsp.S548 mov.l %d1,%d4 # md in d4
550 swap %d4 # hi(md) in lo d4
553 mulu.w %d1,%d0 # [1] lo(mr) * lo(md)
554 mulu.w %d3,%d1 # [2] hi(mr) * lo(md)
555 mulu.w %d4,%d2 # [3] lo(mr) * hi(md)
556 mulu.w %d4,%d3 # [4] hi(mr) * hi(md)
674 mov.l %d1,%d4 # md in d4
676 swap %d4 # hi(md) in lo d4
679 mulu.w %d1,%d0 # [1] lo(mr) * lo(md)
680 mulu.w %d3,%d1 # [2] hi(mr) * lo(md)
[all …]
/arch/sparc/kernel/
Dmdesc.c93 static int get_vdev_port_node_info(struct mdesc_handle *md, u64 node,
99 static int get_ds_port_node_info(struct mdesc_handle *md, u64 node,
338 static int get_vdev_port_node_info(struct mdesc_handle *md, u64 node, in get_vdev_port_node_info() argument
351 idp = mdesc_get_property(md, node, "id", NULL); in get_vdev_port_node_info()
352 name = mdesc_get_property(md, node, "name", NULL); in get_vdev_port_node_info()
353 parent_cfg_hdlp = parent_cfg_handle(md, node); in get_vdev_port_node_info()
392 static int get_ds_port_node_info(struct mdesc_handle *md, u64 node, in get_ds_port_node_info() argument
398 idp = mdesc_get_property(md, node, "id", NULL); in get_ds_port_node_info()
/arch/x86/include/asm/
Defi.h148 extern void __init efi_map_region(efi_memory_desc_t *md);
149 extern void __init efi_map_region_fixed(efi_memory_desc_t *md);
/arch/arm/boot/dts/
Dimx6qdl-udoo.dtsi48 compatible = "urt,umsh-8596md-19t";
/arch/s390/tools/
Dopcodes.txt107 6c md RX_FRRD