Lines Matching defs:mapping

279 	int protection, int protectionMax, int mapping, uint32 flags,
564 vm_page_mapping* mapping = (vm_page_mapping*)object_cache_alloc(
568 if (mapping == NULL)
571 mapping->page = page;
572 mapping->area = area;
579 // insert mapping into lists
583 page->mappings.Add(mapping);
584 area->mappings.Add(mapping);
1053 int protectionMax, int mapping,
1088 if (mapping != REGION_PRIVATE_MAP)
1098 if (mapping == REGION_PRIVATE_MAP) {
1163 if (mapping == REGION_PRIVATE_MAP)
1179 if (mapping == REGION_PRIVATE_MAP) {
1363 // Invalidate the mapping entries so any access to them will fault or
1364 // restore the mapping entries unchanged so that lookup will success again.
1575 // thus need to reserve pages for the mapping backend upfront.
1744 panic("looking up mapping failed for va 0x%lx\n",
1916 // reserve pages needed for the mapping
2144 uint32 addressSpec, size_t size, uint32 protection, uint32 mapping,
2151 TRACE(("_vm_map_file(fd = %d, offset = %" B_PRIdOFF ", size = %lu, mapping "
2152 "%" B_PRIu32 ")\n", fd, offset, size, mapping));
2157 if (mapping == REGION_NO_PRIVATE_MAP)
2183 // The FD must open for reading at any rate. For shared mapping with write
2186 || (mapping == REGION_NO_PRIVATE_MAP
2193 if (mapping == REGION_NO_PRIVATE_MAP) {
2198 } else if (mapping == REGION_PRIVATE_MAP) {
2213 // the mapping backend upfront.
2271 0, protection, protectionMax, mapping, mappingFlags,
2274 if (status != B_OK || mapping == REGION_PRIVATE_MAP) {
2301 addr_t size, uint32 protection, uint32 mapping, bool unmapAddressRange,
2308 mapping, unmapAddressRange, fd, offset, true);
2349 uint32 addressSpec, uint32 protection, uint32 mapping, area_id sourceID,
2413 mapping, 0, &addressRestrictions,
2416 if (status == B_OK && mapping != REGION_PRIVATE_MAP) {
2417 // If the mapping is REGION_PRIVATE_MAP, map_backing_store() needed
3076 vm_page_mapping* mapping;
3077 while ((mapping = iterator.Next()) != NULL) {
3078 VMArea* area = mapping->area;
3106 vm_page_mapping* mapping;
3107 while ((mapping = iterator.Next()) != NULL) {
3108 VMArea* area = mapping->area;
3127 while (vm_page_mapping* mapping = page->mappings.Head()) {
3128 VMArea* area = mapping->area;
3142 vm_page_mapping* mapping;
3143 while ((mapping = iterator.Next()) != NULL) {
3144 VMArea* area = mapping->area;
3170 iterate, but only clear the accessed flag of the mapping. The page's
3173 \return The number of mapping accessed bits encountered, including the
3185 while (vm_page_mapping* mapping = page->mappings.Head()) {
3186 VMArea* area = mapping->area;
3653 vm_page_mapping* mapping = iterator.Next();
3654 kprintf(" %p", mapping->page);
4464 add_debugger_command_etc("mapping", &dump_mapping_info,
4465 "Print address mapping information",
4467 "Prints low-level page mapping information for a given address. If\n"
4876 // We may need up to 2 pages plus pages needed for mapping them -- reserving
5050 // Mapping can only fail, when the page mapping object couldn't
5051 // be allocated. Save for the missing mapping everything is
5068 // to allocate a mapping structure. Restart.
5517 For \a unsafeMemory the current mapping (if any is ignored). The function
5833 areas don't allow mapping with the requested permissions, or when mapping
6715 size_t size, uint32 protection, uint32 mapping, bool unmapAddressRange,
6744 addressSpec, size, protection, mapping, unmapAddressRange, fd, offset,