Lines Matching defs:map
35 #include <asm/mach/map.h>
558 * r/o, kernel r/w to map the vectors page.
798 * With LPAE, we must loop over to map
939 pr_warn("BUG: map for 0x%08llx at 0x%08lx can not be mapped using pages, ignoring.\n",
1132 struct map_desc map;
1134 debug_ll_addr(&map.pfn, &map.virtual);
1135 if (!map.pfn || !map.virtual)
1137 map.pfn = __phys_to_pfn(map.pfn);
1138 map.virtual &= PAGE_MASK;
1139 map.length = PAGE_SIZE;
1140 map.type = MT_DEVICE;
1141 iotable_init(&map, 1);
1357 struct map_desc map;
1376 map.pfn = __phys_to_pfn(__atags_pointer & SECTION_MASK);
1377 map.virtual = FDT_FIXED_BASE;
1378 map.length = FDT_FIXED_SIZE;
1379 map.type = MT_MEMORY_RO;
1380 create_mapping(&map);
1388 map.pfn = __phys_to_pfn(CONFIG_XIP_PHYS_ADDR & SECTION_MASK);
1389 map.virtual = MODULES_VADDR;
1390 map.length = ((unsigned long)_exiprom - map.virtual + ~SECTION_MASK) & SECTION_MASK;
1391 map.type = MT_ROM;
1392 create_mapping(&map);
1399 map.pfn = __phys_to_pfn(FLUSH_BASE_PHYS);
1400 map.virtual = FLUSH_BASE;
1401 map.length = SZ_1M;
1402 map.type = MT_CACHECLEAN;
1403 create_mapping(&map);
1406 map.pfn = __phys_to_pfn(FLUSH_BASE_PHYS + SZ_1M);
1407 map.virtual = FLUSH_BASE_MINICACHE;
1408 map.length = SZ_1M;
1409 map.type = MT_MINICLEAN;
1410 create_mapping(&map);
1418 map.pfn = __phys_to_pfn(virt_to_phys(vectors));
1419 map.virtual = 0xffff0000;
1420 map.length = PAGE_SIZE;
1422 map.type = MT_HIGH_VECTORS;
1424 map.type = MT_LOW_VECTORS;
1426 create_mapping(&map);
1429 map.virtual = 0;
1430 map.length = PAGE_SIZE * 2;
1431 map.type = MT_LOW_VECTORS;
1432 create_mapping(&map);
1436 map.pfn += 1;
1437 map.virtual = 0xffff0000 + PAGE_SIZE;
1438 map.length = PAGE_SIZE;
1439 map.type = MT_LOW_VECTORS;
1440 create_mapping(&map);
1443 * Ask the machine support to map in the statically mapped devices.
1487 struct map_desc map;
1495 map.pfn = __phys_to_pfn(start);
1496 map.virtual = __phys_to_virt(start);
1497 map.length = end - start;
1498 map.type = MT_MEMORY_RWX;
1500 create_mapping(&map);
1502 map.pfn = __phys_to_pfn(start);
1503 map.virtual = __phys_to_virt(start);
1504 map.length = end - start;
1505 map.type = MT_MEMORY_RW;
1507 create_mapping(&map);
1511 map.pfn = __phys_to_pfn(start);
1512 map.virtual = __phys_to_virt(start);
1513 map.length = kernel_x_start - start;
1514 map.type = MT_MEMORY_RW;
1516 create_mapping(&map);
1519 map.pfn = __phys_to_pfn(kernel_x_start);
1520 map.virtual = __phys_to_virt(kernel_x_start);
1521 map.length = kernel_x_end - kernel_x_start;
1522 map.type = MT_MEMORY_RWX;
1524 create_mapping(&map);
1527 map.pfn = __phys_to_pfn(kernel_x_end);
1528 map.virtual = __phys_to_virt(kernel_x_end);
1529 map.length = end - kernel_x_end;
1530 map.type = MT_MEMORY_RW;
1532 create_mapping(&map);
1642 struct map_desc map;
1644 map.virtual = fix_to_virt(i);
1645 pte = pte_offset_early_fixmap(pmd_off_k(map.virtual), map.virtual);
1652 map.pfn = pte_pfn(*pte);
1653 map.type = MT_DEVICE;
1654 map.length = PAGE_SIZE;
1656 create_mapping(&map);