Home
last modified time | relevance | path

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

/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.c126 efi_memory_desc_t *md = p; in efi_find_mirror() local
127 unsigned long long start = md->phys_addr; in efi_find_mirror()
128 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_find_mirror()
131 if (md->attribute & EFI_MEMORY_MORE_RELIABLE) { in efi_find_mirror()
152 efi_memory_desc_t *md = p; in do_add_efi_memmap() local
153 unsigned long long start = md->phys_addr; in do_add_efi_memmap()
154 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in do_add_efi_memmap()
157 switch (md->type) { in do_add_efi_memmap()
163 if (md->attribute & EFI_MEMORY_WB) in do_add_efi_memmap()
228 efi_memory_desc_t *md; in efi_print_memmap() local
[all …]
Dquirks.c146 efi_memory_desc_t *md = p; in efi_reserve_boot_services() local
147 u64 start = md->phys_addr; in efi_reserve_boot_services()
148 u64 size = md->num_pages << EFI_PAGE_SHIFT; in efi_reserve_boot_services()
150 if (md->type != EFI_BOOT_SERVICES_CODE && in efi_reserve_boot_services()
151 md->type != EFI_BOOT_SERVICES_DATA) in efi_reserve_boot_services()
164 md->num_pages = 0; in efi_reserve_boot_services()
177 efi_memory_desc_t *md = p; in efi_free_boot_services() local
178 unsigned long long start = md->phys_addr; in efi_free_boot_services()
179 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_free_boot_services()
181 if (md->type != EFI_BOOT_SERVICES_CODE && in efi_free_boot_services()
[all …]
Defi_64.c64 efi_memory_desc_t *md; in early_code_mapping_set_exec() local
72 md = p; in early_code_mapping_set_exec()
73 if (md->type == EFI_RUNTIME_SERVICES_CODE || in early_code_mapping_set_exec()
74 md->type == EFI_BOOT_SERVICES_CODE) in early_code_mapping_set_exec()
75 efi_set_executable(md, executable); in early_code_mapping_set_exec()
205 static void __init __map_region(efi_memory_desc_t *md, u64 va) in __map_region() argument
210 if (!(md->attribute & EFI_MEMORY_WB)) in __map_region()
213 if (kernel_map_pages_in_pgd(pgd, md->phys_addr, va, md->num_pages, pf)) in __map_region()
215 md->phys_addr, va); in __map_region()
218 void __init efi_map_region(efi_memory_desc_t *md) in efi_map_region() argument
[all …]
Defi_32.c51 void __init efi_map_region(efi_memory_desc_t *md) in efi_map_region() argument
53 old_map_region(md); in efi_map_region()
56 void __init efi_map_region_fixed(efi_memory_desc_t *md) {} in efi_map_region_fixed() argument
/arch/arm64/kernel/
Defi.c20 int __init efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md) in efi_create_mapping() argument
29 if ((md->attribute & EFI_MEMORY_WB) == 0) in efi_create_mapping()
31 else if (md->type == EFI_RUNTIME_SERVICES_CODE || in efi_create_mapping()
32 !PAGE_ALIGNED(md->phys_addr)) in efi_create_mapping()
37 create_pgd_mapping(mm, md->phys_addr, md->virt_addr, in efi_create_mapping()
38 md->num_pages << EFI_PAGE_SHIFT, in efi_create_mapping()
/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.c821 static void __init create_36bit_mapping(struct map_desc *md, in create_36bit_mapping() argument
828 addr = md->virtual; in create_36bit_mapping()
829 phys = __pfn_to_phys(md->pfn); in create_36bit_mapping()
830 length = PAGE_ALIGN(md->length); in create_36bit_mapping()
834 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping()
846 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping()
850 if ((addr | length | __pfn_to_phys(md->pfn)) & ~SUPERSECTION_MASK) { in create_36bit_mapping()
852 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping()
860 phys |= (((md->pfn >> (32 - PAGE_SHIFT)) & 0xF) << 20); in create_36bit_mapping()
886 static void __init create_mapping(struct map_desc *md) in create_mapping() argument
[all …]
/arch/sparc/mm/
Dinit_64.c972 static int scan_pio_for_cfg_handle(struct mdesc_handle *md, u64 pio, in scan_pio_for_cfg_handle() argument
977 mdesc_for_each_arc(arc, md, pio, MDESC_ARC_TYPE_FWD) { in scan_pio_for_cfg_handle()
978 u64 target = mdesc_arc_target(md, arc); in scan_pio_for_cfg_handle()
981 val = mdesc_get_property(md, target, in scan_pio_for_cfg_handle()
989 static int scan_arcs_for_cfg_handle(struct mdesc_handle *md, u64 grp, in scan_arcs_for_cfg_handle() argument
995 mdesc_for_each_arc(arc, md, grp, MDESC_ARC_TYPE_FWD) { in scan_arcs_for_cfg_handle()
996 u64 target = mdesc_arc_target(md, arc); in scan_arcs_for_cfg_handle()
997 const char *name = mdesc_node_name(md, target); in scan_arcs_for_cfg_handle()
1003 val = mdesc_get_property(md, target, "latency", NULL); in scan_arcs_for_cfg_handle()
1016 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.h113 extern void __init efi_set_executable(efi_memory_desc_t *md, bool executable);
120 extern void __init efi_map_region(efi_memory_desc_t *md);
121 extern void __init efi_map_region_fixed(efi_memory_desc_t *md);
125 extern void __init old_map_region(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/arm64/include/asm/
Defi.h16 int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *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/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()
3191 td->md, in print_dma_descriptors()
[all …]