Lines Matching refs:md
821 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
893 if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) { in create_mapping()
895 (long long)__pfn_to_phys((u64)md->pfn), md->virtual); in create_mapping()
899 if ((md->type == MT_DEVICE || md->type == MT_ROM) && in create_mapping()
900 md->virtual >= PAGE_OFFSET && md->virtual < FIXADDR_START && in create_mapping()
901 (md->virtual < VMALLOC_START || md->virtual >= VMALLOC_END)) { in create_mapping()
903 (long long)__pfn_to_phys((u64)md->pfn), md->virtual); in create_mapping()
906 type = &mem_types[md->type]; in create_mapping()
912 if (md->pfn >= 0x100000) { in create_mapping()
913 create_36bit_mapping(md, type); in create_mapping()
918 addr = md->virtual & PAGE_MASK; in create_mapping()
919 phys = __pfn_to_phys(md->pfn); in create_mapping()
920 length = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK)); in create_mapping()
924 (long long)__pfn_to_phys(md->pfn), addr); in create_mapping()
945 struct map_desc *md; in iotable_init() local
954 for (md = io_desc; nr; md++, nr--) { in iotable_init()
955 create_mapping(md); in iotable_init()
958 vm->addr = (void *)(md->virtual & PAGE_MASK); in iotable_init()
959 vm->size = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK)); in iotable_init()
960 vm->phys_addr = __pfn_to_phys(md->pfn); in iotable_init()
962 vm->flags |= VM_ARM_MTYPE(md->type); in iotable_init()