/arch/ia64/kernel/ |
D | efi.c | 254 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/ |
D | msi-xlp.c | 134 struct xlp_msi_data *md = irq_data_get_irq_handler_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_handler_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/ |
D | efi.c | 123 efi_memory_desc_t *md = p; in do_add_efi_memmap() local 124 unsigned long long start = md->phys_addr; in do_add_efi_memmap() 125 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in do_add_efi_memmap() 128 switch (md->type) { in do_add_efi_memmap() 134 if (md->attribute & EFI_MEMORY_WB) in do_add_efi_memmap() 196 efi_memory_desc_t *md; in print_efi_memmap() local 205 md = p; in print_efi_memmap() 207 i, efi_md_typeattr_format(buf, sizeof(buf), md), in print_efi_memmap() 208 md->phys_addr, in print_efi_memmap() 209 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT), in print_efi_memmap() [all …]
|
D | quirks.c | 146 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 …]
|
D | efi_64.c | 67 efi_memory_desc_t *md; in early_code_mapping_set_exec() local 75 md = p; in early_code_mapping_set_exec() 76 if (md->type == EFI_RUNTIME_SERVICES_CODE || in early_code_mapping_set_exec() 77 md->type == EFI_BOOT_SERVICES_CODE) in early_code_mapping_set_exec() 78 efi_set_executable(md, executable); in early_code_mapping_set_exec() 202 static void __init __map_region(efi_memory_desc_t *md, u64 va) in __map_region() argument 207 if (!(md->attribute & EFI_MEMORY_WB)) in __map_region() 210 if (kernel_map_pages_in_pgd(pgd, md->phys_addr, va, md->num_pages, pf)) in __map_region() 212 md->phys_addr, va); in __map_region() 215 void __init efi_map_region(efi_memory_desc_t *md) in efi_map_region() argument [all …]
|
D | efi_32.c | 52 void __init efi_map_region(efi_memory_desc_t *md) in efi_map_region() argument 54 old_map_region(md); in efi_map_region() 57 void __init efi_map_region_fixed(efi_memory_desc_t *md) {} in efi_map_region_fixed() argument
|
/arch/arm64/kernel/ |
D | efi.c | 62 static int __init is_normal_ram(efi_memory_desc_t *md) in is_normal_ram() argument 64 if (md->attribute & EFI_MEMORY_WB) in is_normal_ram() 76 efi_memory_desc_t *md; in efi_to_phys() local 78 for_each_efi_memory_desc(&memmap, md) { in efi_to_phys() 79 if (!(md->attribute & EFI_MEMORY_RUNTIME)) in efi_to_phys() 81 if (md->virt_addr == 0) in efi_to_phys() 84 if (md->virt_addr <= addr && in efi_to_phys() 85 (addr - md->virt_addr) < (md->num_pages << EFI_PAGE_SHIFT)) in efi_to_phys() 86 return md->phys_addr + addr - md->virt_addr; in efi_to_phys() 152 static __init int is_reserve_region(efi_memory_desc_t *md) in is_reserve_region() argument [all …]
|
/arch/unicore32/mm/ |
D | mmu.c | 208 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/ |
D | mmu.c | 827 static void __init create_36bit_mapping(struct map_desc *md, in create_36bit_mapping() argument 834 addr = md->virtual; in create_36bit_mapping() 835 phys = __pfn_to_phys(md->pfn); in create_36bit_mapping() 836 length = PAGE_ALIGN(md->length); in create_36bit_mapping() 841 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping() 854 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping() 858 if ((addr | length | __pfn_to_phys(md->pfn)) & ~SUPERSECTION_MASK) { in create_36bit_mapping() 861 (long long)__pfn_to_phys((u64)md->pfn), addr); in create_36bit_mapping() 869 phys |= (((md->pfn >> (32 - PAGE_SHIFT)) & 0xF) << 20); in create_36bit_mapping() 895 static void __init create_mapping(struct map_desc *md) in create_mapping() argument [all …]
|
/arch/x86/include/asm/ |
D | efi.h | 90 extern void __init efi_set_executable(efi_memory_desc_t *md, bool executable); 96 extern void __init efi_map_region(efi_memory_desc_t *md); 97 extern void __init efi_map_region_fixed(efi_memory_desc_t *md); 101 extern void __init old_map_region(efi_memory_desc_t *md);
|
/arch/ia64/hp/sim/boot/ |
D | fw-emu.c | 238 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/sparc/mm/ |
D | init_64.c | 928 static int scan_pio_for_cfg_handle(struct mdesc_handle *md, u64 pio, in scan_pio_for_cfg_handle() argument 933 mdesc_for_each_arc(arc, md, pio, MDESC_ARC_TYPE_FWD) { in scan_pio_for_cfg_handle() 934 u64 target = mdesc_arc_target(md, arc); in scan_pio_for_cfg_handle() 937 val = mdesc_get_property(md, target, in scan_pio_for_cfg_handle() 945 static int scan_arcs_for_cfg_handle(struct mdesc_handle *md, u64 grp, in scan_arcs_for_cfg_handle() argument 951 mdesc_for_each_arc(arc, md, grp, MDESC_ARC_TYPE_FWD) { in scan_arcs_for_cfg_handle() 952 u64 target = mdesc_arc_target(md, arc); in scan_arcs_for_cfg_handle() 953 const char *name = mdesc_node_name(md, target); in scan_arcs_for_cfg_handle() 959 val = mdesc_get_property(md, target, "latency", NULL); in scan_arcs_for_cfg_handle() 972 return scan_pio_for_cfg_handle(md, candidate, cfg_handle); in scan_arcs_for_cfg_handle() [all …]
|
/arch/cris/include/arch-v32/arch/hwregs/iop/ |
D | iop_dmc_out_defs.h | 153 unsigned int md : 16; member 177 unsigned int md : 16; member 184 unsigned int md : 16; member 210 unsigned int md : 16; member
|
D | iop_dmc_in_defs.h | 163 unsigned int md : 16; member 187 unsigned int md : 16; member 194 unsigned int md : 16; member 220 unsigned int md : 16; member
|
/arch/cris/include/arch-v32/arch/hwregs/ |
D | dma.h | 27 unsigned md : 16; member 68 unsigned md : 16; member
|
D | sser_defs.h | 182 unsigned int md : 1; member 191 unsigned int md : 1; member
|
D | dma_defs.h | 125 unsigned int md : 16; member 277 unsigned int md : 16; member
|
/arch/m68k/ifpsp060/src/ |
D | ilsp.S | 548 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/ |
D | cryptocop.c | 428 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() 3193 td->md, in print_dma_descriptors() [all …]
|