Lines Matching defs:md
435 static void __init create_36bit_mapping(struct map_desc *md,
441 addr = md->virtual;
442 phys = (unsigned long)__pfn_to_phys(md->pfn);
443 length = PAGE_ALIGN(md->length);
448 __pfn_to_phys((u64)md->pfn), addr);
461 __pfn_to_phys((u64)md->pfn), addr);
465 if ((addr | length | __pfn_to_phys(md->pfn)) & ~SUPERSECTION_MASK) {
468 __pfn_to_phys((u64)md->pfn), addr);
476 phys |= (((md->pfn >> (32 - PAGE_SHIFT)) & 0xF) << 20);
495 * page tables for the mapping specified by `md'. We
500 void __init create_mapping(struct map_desc *md)
506 if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) {
509 __pfn_to_phys((u64)md->pfn), md->virtual);
513 if ((md->type == MT_DEVICE || md->type == MT_ROM) &&
514 md->virtual >= PAGE_OFFSET && md->virtual < VMALLOC_END) {
517 __pfn_to_phys((u64)md->pfn), md->virtual);
520 type = &mem_types[md->type];
525 if (md->pfn >= 0x100000) {
526 create_36bit_mapping(md, type);
530 addr = md->virtual & PAGE_MASK;
531 phys = (unsigned long)__pfn_to_phys(md->pfn);
532 length = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK));
537 __pfn_to_phys(md->pfn), addr);