Lines Matching defs:map

548 /*!	The caller must have reserved enough pages the translation map
549 implementation might need to map this page.
556 VMTranslationMap* map = area->address_space->TranslationMap();
574 map->Lock();
576 map->Map(address, page->physical_page_number * B_PAGE_SIZE, protection,
586 map->Unlock();
590 map->Lock();
591 map->Map(address, page->physical_page_number * B_PAGE_SIZE, protection,
593 map->Unlock();
933 VMTranslationMap* map = addressSpace->TranslationMap();
934 map->Lock();
942 map->ProtectPage(secondArea, address, pageProtection);
945 map->Unlock();
1095 // if this is a private map, we need to create a new cache
1166 // insert the area in the global areas map
1319 in the translation map to cause a fault on access. The pages aren't
1349 VMTranslationMap* map = addressSpace->TranslationMap();
1365 map->Lock();
1366 map->DebugMarkRangePresent(address, address + size, protection != 0);
1367 map->Unlock();
1370 // fail and not simply try to map a new page.
1574 // For full lock or contiguous areas we're also going to map the pages and
1583 VMTranslationMap* map = locker.AddressSpace()->TranslationMap();
1584 reservedMapPages = map->MaxPagesNeededToMap(0, size - 1);
1697 // Allocate and map all pages for this area
1729 VMTranslationMap* map = addressSpace->TranslationMap();
1735 map->Lock();
1742 status = map->Query(virtualAddress, &physicalAddress, &flags);
1763 map->Unlock();
1770 // just map them in the address space
1771 VMTranslationMap* map = addressSpace->TranslationMap();
1777 map->Lock();
1786 status = map->Map(virtualAddress, physicalAddress, protection,
1789 panic("couldn't map physical page in page run\n");
1797 map->Unlock();
1905 VMTranslationMap* map = locker.AddressSpace()->TranslationMap();
1910 map->Lock();
1911 map->ProtectArea(area, area->protection);
1912 map->Unlock();
1917 size_t reservePages = map->MaxPagesNeededToMap(area->Base(),
1924 map->Lock();
1927 map->Map(area->Base() + offset, physicalAddress + offset,
1931 map->Unlock();
1946 TODO: This function was introduced to map physical page vecs to
2008 VMTranslationMap* map = locker.AddressSpace()->TranslationMap();
2009 size_t reservePages = map->MaxPagesNeededToMap(area->Base(),
2016 map->Lock();
2029 map->Map(area->Base() + offset, vecs[vecIndex].base + vecOffset,
2035 map->Unlock();
2138 /*! Will map the file specified by \a fd to an area in memory.
2212 // If we're going to pre-map pages, we need to reserve the pages needed by
2222 VMTranslationMap* map = locker.AddressSpace()->TranslationMap();
2223 reservedPreMapPages = map->MaxPagesNeededToMap(0, size - 1);
2424 // we need to map in everything at this point
2426 // we don't have actual pages to map but a physical area
2427 VMTranslationMap* map
2429 map->Lock();
2433 map->Query(sourceArea->Base(), &physicalAddress, &oldProtection);
2435 map->Unlock();
2437 map = targetAddressSpace->TranslationMap();
2438 size_t reservePages = map->MaxPagesNeededToMap(newArea->Base(),
2445 map->Lock();
2449 map->Map(newArea->Base() + offset, physicalAddress + offset,
2453 map->Unlock();
2456 VMTranslationMap* map = targetAddressSpace->TranslationMap();
2457 size_t reservePages = map->MaxPagesNeededToMap(
2464 // map in all pages from source
2667 VMTranslationMap* map
2669 map->Lock();
2670 map->ProtectPage(tempArea, address, protection);
2671 map->Unlock();
2683 VMTranslationMap* map = tempArea->address_space->TranslationMap();
2684 map->Lock();
2700 map->ProtectPage(tempArea, address, protection);
2702 map->Unlock();
2713 VMTranslationMap* map = tempArea->address_space->TranslationMap();
2714 map->Lock();
2715 map->ProtectArea(tempArea, protection);
2716 map->Unlock();
3020 VMTranslationMap* map = area->address_space->TranslationMap();
3021 map->Lock();
3032 map->ProtectPage(area, address, newProtection);
3036 map->ProtectArea(area, newProtection);
3038 map->Unlock();
3055 VMTranslationMap* map = addressSpace->TranslationMap();
3057 map->Lock();
3059 status_t status = map->Query(vaddr, paddr, &dummyFlags);
3060 map->Unlock();
3079 VMTranslationMap* map = area->address_space->TranslationMap();
3083 map->Lock();
3084 map->Query(virtual_page_address(area, page), &physicalAddress, &flags);
3085 map->Unlock();
3109 VMTranslationMap* map = area->address_space->TranslationMap();
3111 map->Lock();
3112 map->ClearFlags(virtual_page_address(area, page), flags);
3113 map->Unlock();
3129 VMTranslationMap* map = area->address_space->TranslationMap();
3131 map->UnmapPage(area, address, false);
3145 VMTranslationMap* map = area->address_space->TranslationMap();
3148 if (map->ClearAccessedAndModified(area,
3187 VMTranslationMap* map = area->address_space->TranslationMap();
3190 if (map->ClearAccessedAndModified(area, address, true, modified)) {
3905 // let the translation map implementation do the job
3975 unmap_and_free_physical_pages(VMTranslationMap* map, addr_t start, addr_t end)
3983 if (map->Query(current, &physicalAddress, &flags) == B_OK
3996 map->Unmap(start, end);
4003 VMTranslationMap* map = VMAddressSpace::Kernel()->TranslationMap();
4014 map->Lock();
4034 unmap_and_free_physical_pages(map, lastEnd, areaStart - 1);
4050 unmap_and_free_physical_pages(map, lastEnd, end);
4053 map->Unlock();
4306 // map the pages
4353 // map in the new heap and initialize it
4369 panic("vm_init: error initializing areas map\n");
4477 "address that is looked up in the translation map of the current\n"
4480 "searched in the translation map of all teams, respectively the team\n"
4671 VMTranslationMap* map;
4686 map(addressSpace->TranslationMap()),
4887 size_t reservePages = 2 + context.map->MaxPagesNeededToMap(originalAddress,
4975 // All went fine, all there is left to do is to map the page into the
4991 context.map->Lock();
4996 if (context.map->Query(address, &physicalAddress, &flags) == B_OK
5003 context.map->ProtectPage(area, address, newProtection);
5012 context.map->Unlock();
5266 VMTranslationMap* map = area->address_space->TranslationMap();
5267 map->Lock();
5269 map->ProtectArea(area, area->protection);
5270 map->Unlock();
5276 map->Lock();
5278 map->ProtectArea(area, area->protection);
5279 map->Unlock();
5733 VMTranslationMap* map = addressSpace->TranslationMap();
5749 // Lock the area's cache chain and the translation map. Needed to look
5752 map->Lock();
5757 if (map->Query(pageAddress, &physicalAddress, &flags) == B_OK
5765 map->Unlock();
5769 // Let vm_soft_fault() map the page for us, if possible. We need
5773 map->Unlock();
5889 VMTranslationMap* map = addressSpace->TranslationMap();
5930 // Lock the area's cache chain and the translation map. Needed to look
5933 map->Lock();
5941 if (map->Query(nextAddress, &physicalAddress, &flags) == B_OK
5949 // Let vm_soft_fault() map the page for us, if possible. We need
5953 map->Unlock();
5963 map->Lock();
5970 map->Unlock();
6048 VMTranslationMap* map = addressSpace->TranslationMap();
6087 // Lock the area's cache chain and the translation map. Needed to look
6090 map->Lock();
6098 if (map->Query(nextAddress, &physicalAddress, &flags) == B_OK
6114 map->Unlock();
6188 VMTranslationMap* map = addressSpace->TranslationMap();
6191 map->Lock();
6198 status = map->Query((addr_t)address + offset, &physicalAddress,
6201 status = map->QueryInterrupt((addr_t)address + offset,
6235 map->Unlock();
6862 // page protection array and re-map mapped pages.
6863 VMTranslationMap* map = locker.AddressSpace()->TranslationMap();
6931 map->Lock();
6938 status_t error = map->Query(pageAddress, &physicalAddress, &flags);
6940 map->Unlock();
6948 map->Unlock();
6953 // requested, we have to unmap it. Otherwise we can re-map it with
6959 map->ProtectPage(area, pageAddress, protection);
6961 map->Unlock();