Lines Matching refs:object
165 vm_object_t object; in mach_make_memory_entry_mem_only() local
212 object = vm_named_entry_to_vm_object(parent_entry); in mach_make_memory_entry_mem_only()
213 if (parent_is_object && object != VM_OBJECT_NULL) { in mach_make_memory_entry_mem_only()
214 wimg_mode = object->wimg_bits; in mach_make_memory_entry_mem_only()
222 if (parent_is_object && object && in mach_make_memory_entry_mem_only()
224 (!(object->nophyscache))) { in mach_make_memory_entry_mem_only()
225 if (object->wimg_bits != wimg_mode) { in mach_make_memory_entry_mem_only()
226 vm_object_lock(object); in mach_make_memory_entry_mem_only()
227 vm_object_change_wimg_mode(object, wimg_mode); in mach_make_memory_entry_mem_only()
228 vm_object_unlock(object); in mach_make_memory_entry_mem_only()
309 vm_object_t object; in mach_make_memory_entry_named_create() local
373 object = vm_object_allocate(map_size); in mach_make_memory_entry_named_create()
374 assert(object != VM_OBJECT_NULL); in mach_make_memory_entry_named_create()
375 vm_object_lock(object); in mach_make_memory_entry_named_create()
386 object->copy_strategy = MEMORY_OBJECT_COPY_NONE; in mach_make_memory_entry_named_create()
387 VM_OBJECT_SET_TRUE_SHARE(object, TRUE); in mach_make_memory_entry_named_create()
392 assert(object->vo_owner == NULL); in mach_make_memory_entry_named_create()
393 assert(object->resident_page_count == 0); in mach_make_memory_entry_named_create()
394 assert(object->wired_page_count == 0); in mach_make_memory_entry_named_create()
398 object->vo_no_footprint = TRUE; in mach_make_memory_entry_named_create()
403 vm_object_unlock(object); in mach_make_memory_entry_named_create()
404 vm_object_deallocate(object); in mach_make_memory_entry_named_create()
409 VM_OBJECT_SET_PURGABLE(object, VM_PURGABLE_NONVOLATILE); in mach_make_memory_entry_named_create()
411 VM_OBJECT_SET_PURGEABLE_ONLY_BY_KERNEL(object, TRUE); in mach_make_memory_entry_named_create()
424 vm_purgeable_nonvolatile_enqueue(object, owner); in mach_make_memory_entry_named_create()
439 object, in mach_make_memory_entry_named_create()
445 vm_object_unlock(object); in mach_make_memory_entry_named_create()
446 vm_object_deallocate(object); in mach_make_memory_entry_named_create()
457 object->can_grab_secluded = TRUE; in mach_make_memory_entry_named_create()
458 assert(!object->eligible_for_secluded); in mach_make_memory_entry_named_create()
467 wimg_mode = object->wimg_bits; in mach_make_memory_entry_named_create()
470 object->wimg_bits = wimg_mode; in mach_make_memory_entry_named_create()
473 vm_object_unlock(object); in mach_make_memory_entry_named_create()
480 object, in mach_make_memory_entry_named_create()
622 vm_object_t object; in mach_make_memory_entry_share() local
848 object = VME_OBJECT(copy_entry); in mach_make_memory_entry_share()
849 vm_object_lock(object); in mach_make_memory_entry_share()
850 wimg_mode = object->wimg_bits; in mach_make_memory_entry_share()
851 if (!(object->nophyscache)) { in mach_make_memory_entry_share()
854 if (object->wimg_bits != wimg_mode) { in mach_make_memory_entry_share()
855 vm_object_change_wimg_mode(object, wimg_mode); in mach_make_memory_entry_share()
857 vm_object_unlock(object); in mach_make_memory_entry_share()
886 object = VME_OBJECT(copy_entry); in mach_make_memory_entry_share()
887 if (object && !object->internal) { in mach_make_memory_entry_share()
898 user_entry->internal = object->internal; in mach_make_memory_entry_share()
903 object = vm_named_entry_to_vm_object(user_entry); in mach_make_memory_entry_share()
904 if (VM_OBJECT_OWNER(object) != TASK_NULL) { in mach_make_memory_entry_share()
907 } else if (object && !object->internal) { in mach_make_memory_entry_share()
1010 vm_object_t object; in mach_make_memory_entry_from_parent_entry() local
1092 object = vm_named_entry_to_vm_object(parent_entry); in mach_make_memory_entry_from_parent_entry()
1093 assert(object != VM_OBJECT_NULL); in mach_make_memory_entry_from_parent_entry()
1094 assert(object->copy_strategy != MEMORY_OBJECT_COPY_SYMMETRIC); in mach_make_memory_entry_from_parent_entry()
1097 object, in mach_make_memory_entry_from_parent_entry()
1103 vm_object_lock(object); in mach_make_memory_entry_from_parent_entry()
1104 vm_object_reference_locked(object); in mach_make_memory_entry_from_parent_entry()
1106 if (!object->true_share && in mach_make_memory_entry_from_parent_entry()
1108 btlog_record(vm_object_tracking_btlog, object, in mach_make_memory_entry_from_parent_entry()
1114 VM_OBJECT_SET_TRUE_SHARE(object, TRUE); in mach_make_memory_entry_from_parent_entry()
1115 if (object->copy_strategy == MEMORY_OBJECT_COPY_SYMMETRIC) { in mach_make_memory_entry_from_parent_entry()
1116 object->copy_strategy = MEMORY_OBJECT_COPY_DELAY; in mach_make_memory_entry_from_parent_entry()
1118 vm_object_unlock(object); in mach_make_memory_entry_from_parent_entry()
1300 vm_object_t object; in mach_memory_object_memory_entry_64() local
1321 object = vm_object_allocate(size); in mach_memory_object_memory_entry_64()
1322 if (object->copy_strategy == MEMORY_OBJECT_COPY_SYMMETRIC) { in mach_memory_object_memory_entry_64()
1323 object->copy_strategy = MEMORY_OBJECT_COPY_DELAY; in mach_memory_object_memory_entry_64()
1326 object = memory_object_to_vm_object(pager); in mach_memory_object_memory_entry_64()
1327 if (object != VM_OBJECT_NULL) { in mach_memory_object_memory_entry_64()
1328 vm_object_reference(object); in mach_memory_object_memory_entry_64()
1331 if (object == VM_OBJECT_NULL) { in mach_memory_object_memory_entry_64()
1342 vm_named_entry_associate_vm_object(user_entry, object, 0, size, in mach_memory_object_memory_entry_64()
1344 user_entry->internal = object->internal; in mach_memory_object_memory_entry_64()
1345 assert(object->internal == internal); in mach_memory_object_memory_entry_64()
1346 if (VM_OBJECT_OWNER(object) != TASK_NULL) { in mach_memory_object_memory_entry_64()
1349 } else if (object && !object->internal) { in mach_memory_object_memory_entry_64()
1393 vm_object_t object; in memory_entry_purgeable_control_internal() local
1422 object = vm_named_entry_to_vm_object(mem_entry); in memory_entry_purgeable_control_internal()
1423 if (object == VM_OBJECT_NULL) { in memory_entry_purgeable_control_internal()
1428 vm_object_lock(object); in memory_entry_purgeable_control_internal()
1431 if (mem_entry->offset != 0 || object->vo_size != mem_entry->size) { in memory_entry_purgeable_control_internal()
1432 vm_object_unlock(object); in memory_entry_purgeable_control_internal()
1439 kr = vm_object_purgable_control(object, control, state); in memory_entry_purgeable_control_internal()
1441 vm_object_unlock(object); in memory_entry_purgeable_control_internal()
1454 vm_object_t object; in memory_entry_access_tracking_internal() local
1471 object = vm_named_entry_to_vm_object(mem_entry); in memory_entry_access_tracking_internal()
1472 if (object == VM_OBJECT_NULL) { in memory_entry_access_tracking_internal()
1478 vm_object_access_tracking(object, in memory_entry_access_tracking_internal()
1525 vm_object_t object; in mach_memory_entry_ownership() local
1653 object = vm_named_entry_to_vm_object(mem_entry); in mach_memory_entry_ownership()
1654 if (object == VM_OBJECT_NULL) { in mach_memory_entry_ownership()
1658 vm_object_lock(object); in mach_memory_entry_ownership()
1659 if (object->internal) { in mach_memory_entry_ownership()
1662 object->vo_size != mem_entry->size) { in mach_memory_entry_ownership()
1663 vm_object_unlock(object); in mach_memory_entry_ownership()
1669 kr = vm_object_ownership_change(object, in mach_memory_entry_ownership()
1674 vm_object_unlock(object); in mach_memory_entry_ownership()
1684 object = VME_OBJECT(entry); in mach_memory_entry_ownership()
1686 object == VM_OBJECT_NULL) { in mach_memory_entry_ownership()
1690 vm_object_lock(object); in mach_memory_entry_ownership()
1691 if (object->internal) { in mach_memory_entry_ownership()
1693 entry->vme_end - entry->vme_start != object->vo_size) { in mach_memory_entry_ownership()
1694 vm_object_unlock(object); in mach_memory_entry_ownership()
1699 kr = vm_object_ownership_change(object, in mach_memory_entry_ownership()
1704 vm_object_unlock(object); in mach_memory_entry_ownership()
1774 vm_object_t object; in mach_memory_entry_get_page_counts() local
1792 object = vm_named_entry_to_vm_object(mem_entry); in mach_memory_entry_get_page_counts()
1793 if (object == VM_OBJECT_NULL) { in mach_memory_entry_get_page_counts()
1798 vm_object_lock(object); in mach_memory_entry_get_page_counts()
1807 kr = vm_object_get_page_counts(object, offset, size, resident_page_count, dirty_page_count); in mach_memory_entry_get_page_counts()
1809 vm_object_unlock(object); in mach_memory_entry_get_page_counts()
1820 vm_object_t object; in mach_memory_entry_phys_page_offset() local
1838 object = vm_named_entry_to_vm_object(mem_entry); in mach_memory_entry_phys_page_offset()
1839 if (object == VM_OBJECT_NULL) { in mach_memory_entry_phys_page_offset()
1899 vm_object_t object; in mach_memory_entry_map_size() local
1937 object = vm_named_entry_to_vm_object(mem_entry); in mach_memory_entry_map_size()
1938 if (object == VM_OBJECT_NULL) { in mach_memory_entry_map_size()
2059 vm_object_t object; in mach_memory_entry_page_op() local
2081 object = vm_named_entry_to_vm_object(mem_entry); in mach_memory_entry_page_op()
2082 if (object == VM_OBJECT_NULL) { in mach_memory_entry_page_op()
2087 vm_object_reference(object); in mach_memory_entry_page_op()
2090 kr = vm_object_page_op(object, offset, ops, phys_entry, flags); in mach_memory_entry_page_op()
2092 vm_object_deallocate(object); in mach_memory_entry_page_op()
2116 vm_object_t object; in mach_memory_entry_range_op() local
2147 object = vm_named_entry_to_vm_object(mem_entry); in mach_memory_entry_range_op()
2148 if (object == VM_OBJECT_NULL) { in mach_memory_entry_range_op()
2153 vm_object_reference(object); in mach_memory_entry_range_op()
2156 kr = vm_object_range_op(object, in mach_memory_entry_range_op()
2162 vm_object_deallocate(object); in mach_memory_entry_range_op()