Home
last modified time | relevance | path

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

/arch/arm64/kernel/
Defi.c25 static __init pteval_t create_mapping_protection(efi_memory_desc_t *md) in create_mapping_protection() argument
27 u64 attr = md->attribute; in create_mapping_protection()
28 u32 type = md->type; in create_mapping_protection()
33 if (WARN_ONCE(!PAGE_ALIGNED(md->phys_addr), in create_mapping_protection()
62 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument
64 pteval_t prot_val = create_mapping_protection(md); in efi_create_mapping()
65 bool allow_block_mappings = (md->type != EFI_RUNTIME_SERVICES_CODE && in efi_create_mapping()
66 md->type != EFI_RUNTIME_SERVICES_DATA); in efi_create_mapping()
68 if (!PAGE_ALIGNED(md->phys_addr) || in efi_create_mapping()
69 !PAGE_ALIGNED(md->num_pages << EFI_PAGE_SHIFT)) { in efi_create_mapping()
[all …]
/arch/arm/kernel/
Defi.c17 efi_memory_desc_t *md = data; in set_permissions() local
20 if (md->attribute & EFI_MEMORY_RO) in set_permissions()
22 if (md->attribute & EFI_MEMORY_XP) in set_permissions()
29 efi_memory_desc_t *md) in efi_set_mapping_permissions() argument
33 base = md->virt_addr; in efi_set_mapping_permissions()
34 size = md->num_pages << EFI_PAGE_SHIFT; in efi_set_mapping_permissions()
44 return apply_to_page_range(mm, base, size, set_permissions, md); in efi_set_mapping_permissions()
49 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument
52 .virtual = md->virt_addr, in efi_create_mapping()
53 .pfn = __phys_to_pfn(md->phys_addr), in efi_create_mapping()
[all …]
/arch/ia64/kernel/
Defi.c254 is_memory_available (efi_memory_desc_t *md) in is_memory_available() argument
256 if (!(md->attribute & EFI_MEMORY_WB)) in is_memory_available()
259 switch (md->type) { in is_memory_available()
278 #define efi_md_size(md) (md->num_pages << EFI_PAGE_SHIFT) argument
287 efi_md_end(efi_memory_desc_t *md) in efi_md_end() argument
289 return (md->phys_addr + efi_md_size(md)); in efi_md_end()
293 efi_wb(efi_memory_desc_t *md) in efi_wb() argument
295 return (md->attribute & EFI_MEMORY_WB); in efi_wb()
299 efi_uc(efi_memory_desc_t *md) in efi_uc() argument
301 return (md->attribute & EFI_MEMORY_UC); in efi_uc()
[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.c102 efi_memory_desc_t *md; in efi_find_mirror() local
105 for_each_efi_memory_desc(md) { in efi_find_mirror()
106 unsigned long long start = md->phys_addr; in efi_find_mirror()
107 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_find_mirror()
110 if (md->attribute & EFI_MEMORY_MORE_RELIABLE) { in efi_find_mirror()
128 efi_memory_desc_t *md; in do_add_efi_memmap() local
130 for_each_efi_memory_desc(md) { in do_add_efi_memmap()
131 unsigned long long start = md->phys_addr; in do_add_efi_memmap()
132 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in do_add_efi_memmap()
135 switch (md->type) { in do_add_efi_memmap()
[all …]
Dquirks.c190 efi_memory_desc_t md; in efi_arch_mem_reserve() local
194 if (efi_mem_desc_lookup(addr, &md)) { in efi_arch_mem_reserve()
199 if (addr + size > md.phys_addr + (md.num_pages << EFI_PAGE_SHIFT)) { in efi_arch_mem_reserve()
205 if (md.attribute & EFI_MEMORY_RUNTIME) in efi_arch_mem_reserve()
214 mr.attribute = md.attribute | EFI_MEMORY_RUNTIME; in efi_arch_mem_reserve()
216 num_entries = efi_memmap_split_count(&md, &mr.range); in efi_arch_mem_reserve()
262 efi_memory_desc_t *md; in efi_reserve_boot_services() local
264 for_each_efi_memory_desc(md) { in efi_reserve_boot_services()
265 u64 start = md->phys_addr; in efi_reserve_boot_services()
266 u64 size = md->num_pages << EFI_PAGE_SHIFT; in efi_reserve_boot_services()
[all …]
Defi_64.c59 efi_memory_desc_t *md; in early_code_mapping_set_exec() local
65 for_each_efi_memory_desc(md) { in early_code_mapping_set_exec()
66 if (md->type == EFI_RUNTIME_SERVICES_CODE || in early_code_mapping_set_exec()
67 md->type == EFI_BOOT_SERVICES_CODE) in early_code_mapping_set_exec()
68 efi_set_executable(md, executable); in early_code_mapping_set_exec()
315 static void __init __map_region(efi_memory_desc_t *md, u64 va) in __map_region() argument
321 if (!(md->attribute & EFI_MEMORY_WB)) in __map_region()
324 pfn = md->phys_addr >> PAGE_SHIFT; in __map_region()
325 if (kernel_map_pages_in_pgd(pgd, pfn, va, md->num_pages, flags)) in __map_region()
327 md->phys_addr, va); in __map_region()
[all …]
Defi_32.c53 void __init efi_map_region(efi_memory_desc_t *md) in efi_map_region() argument
55 old_map_region(md); in efi_map_region()
58 void __init efi_map_region_fixed(efi_memory_desc_t *md) {} in efi_map_region_fixed() argument
/arch/unicore32/mm/
Dmmu.c208 static void __init create_mapping(struct map_desc *md) in create_mapping() argument
214 if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) { in create_mapping()
217 __pfn_to_phys((u64)md->pfn), md->virtual); in create_mapping()
221 if ((md->type == MT_DEVICE || md->type == MT_ROM) && in create_mapping()
222 md->virtual >= PAGE_OFFSET && md->virtual < VMALLOC_END) { in create_mapping()
225 __pfn_to_phys((u64)md->pfn), md->virtual); in create_mapping()
228 type = &mem_types[md->type]; in create_mapping()
230 addr = md->virtual & PAGE_MASK; in create_mapping()
231 phys = (unsigned long)__pfn_to_phys(md->pfn); in create_mapping()
232 length = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK)); in create_mapping()
[all …]
/arch/arm/mm/
Dmmu.c844 struct map_desc *md, in create_36bit_mapping() argument
852 addr = md->virtual; in create_36bit_mapping()
853 phys = __pfn_to_phys(md->pfn); in create_36bit_mapping()
854 length = PAGE_ALIGN(md->length); in create_36bit_mapping()
858 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping()
870 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping()
874 if ((addr | length | __pfn_to_phys(md->pfn)) & ~SUPERSECTION_MASK) { in create_36bit_mapping()
876 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping()
884 phys |= (((md->pfn >> (32 - PAGE_SHIFT)) & 0xF) << 20); in create_36bit_mapping()
904 static void __init __create_mapping(struct mm_struct *mm, struct map_desc *md, in __create_mapping() argument
[all …]
/arch/sparc/mm/
Dinit_64.c974 static int scan_pio_for_cfg_handle(struct mdesc_handle *md, u64 pio, in scan_pio_for_cfg_handle() argument
979 mdesc_for_each_arc(arc, md, pio, MDESC_ARC_TYPE_FWD) { in scan_pio_for_cfg_handle()
980 u64 target = mdesc_arc_target(md, arc); in scan_pio_for_cfg_handle()
983 val = mdesc_get_property(md, target, in scan_pio_for_cfg_handle()
991 static int scan_arcs_for_cfg_handle(struct mdesc_handle *md, u64 grp, in scan_arcs_for_cfg_handle() argument
997 mdesc_for_each_arc(arc, md, grp, MDESC_ARC_TYPE_FWD) { in scan_arcs_for_cfg_handle()
998 u64 target = mdesc_arc_target(md, arc); in scan_arcs_for_cfg_handle()
999 const char *name = mdesc_node_name(md, target); in scan_arcs_for_cfg_handle()
1005 val = mdesc_get_property(md, target, "latency", NULL); in scan_arcs_for_cfg_handle()
1018 return scan_pio_for_cfg_handle(md, candidate, cfg_handle); in scan_arcs_for_cfg_handle()
[all …]
/arch/ia64/hp/sim/boot/
Dfw-emu.c238 efi_memory_desc_t *efi_memmap, *md; in sys_fw_init() local
247 md = efi_memmap + i++; \ in sys_fw_init()
248 md->type = typ; \ in sys_fw_init()
249 md->pad = 0; \ in sys_fw_init()
250 md->phys_addr = start; \ in sys_fw_init()
251 md->virt_addr = 0; \ in sys_fw_init()
252 md->num_pages = (end - start) >> 12; \ in sys_fw_init()
253 md->attribute = attr; \ in sys_fw_init()
/arch/x86/include/asm/
Defi.h128 extern void __init efi_set_executable(efi_memory_desc_t *md, bool executable);
134 extern void __init efi_map_region(efi_memory_desc_t *md);
135 extern void __init efi_map_region_fixed(efi_memory_desc_t *md);
139 extern void __init old_map_region(efi_memory_desc_t *md);
/arch/arm/include/asm/
Defi.h25 int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md);
26 int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md);
/arch/arm64/include/asm/
Defi.h17 int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md);
18 int efi_set_mapping_permissions(struct mm_struct *mm, efi_memory_desc_t *md);
/arch/cris/include/arch-v32/arch/hwregs/iop/
Diop_dmc_in_defs.h163 unsigned int md : 16; member
187 unsigned int md : 16; member
194 unsigned int md : 16; member
220 unsigned int md : 16; member
Diop_dmc_out_defs.h153 unsigned int md : 16; member
177 unsigned int md : 16; member
184 unsigned int md : 16; member
210 unsigned int md : 16; member
/arch/cris/include/arch-v32/arch/hwregs/
Ddma.h27 unsigned md : 16; member
68 unsigned md : 16; member
Dsser_defs.h182 unsigned int md : 1; member
191 unsigned int md : 1; member
Ddma_defs.h125 unsigned int md : 16; member
277 unsigned int md : 16; member
/arch/arm/include/asm/mach/
Dmap.h45 extern void create_mapping_late(struct mm_struct *mm, struct map_desc *md,
/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/arm/boot/dts/
Dsun5i-a13-q8-tablet.dts52 compatible = "urt,umsh-8596md-t", "simple-panel";
Dimx6qdl-udoo.dtsi42 compatible = "urt,umsh-8596md-19t";
/arch/cris/arch-v32/drivers/
Dcryptocop.c428 cdesc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, mo); in create_pad_descriptor()
487 key_desc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, mo); in setup_key_dl_desc()
518 iv_desc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, mo); in setup_cipher_iv_desc()
580 outdesc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_in, mi); in create_input_descriptors()
596 outdesc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_in, mi); in create_input_descriptors()
642 cdesc->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, (*meta_out)); in create_output_descriptors()
683 … (*current_in_cdesc)->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_in, mi); in append_input_descriptors()
687 … (*current_in_cdesc)->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_in, mi); in append_input_descriptors()
1242 ed->dma_descr->md = REG_TYPE_CONV(unsigned short int, struct strcop_meta_out, ed_mo); in cryptocop_setup_dma_list()
3187 td->md, in print_dma_descriptors()
[all …]