Lines Matching refs:object1
5677 vm_object_t object1,
5692 if (object1 == object2 ||
5693 object1 == VM_OBJECT_NULL ||
5703 vm_object_lock(object1);
5705 if (!object1->alive || object1->terminating ||
5706 object1->copy || object1->shadow || object1->shadowed ||
5707 object1->purgable != VM_PURGABLE_DENY) {
5722 vm_object_paging_begin(object1);
5724 vm_object_unlock(object1);
5744 * Allocate a temporary VM object to hold object1's contents
5745 * while we copy object2 to object1.
5757 if (object1 < object2) {
5758 vm_object_lock(object1);
5762 vm_object_lock(object1);
5767 if (object1->size != object2->size ||
5768 object1->size != transpose_size) {
5786 if (object1->phys_contiguous || queue_empty(&object1->memq)) {
5788 * No pages in object1, just transfer pages
5789 * from object2 to object1. No need to go through
5794 vm_page_rename(page, object1, page->offset, FALSE);
5800 * from object1 to object2. No need to go through
5803 while (!queue_empty(&object1->memq)) {
5804 page = (vm_page_t) queue_first(&object1->memq);
5807 assert(queue_empty(&object1->memq));
5809 /* transfer object1's pages to tmp_object */
5811 while (!queue_empty(&object1->memq)) {
5812 page = (vm_page_t) queue_first(&object1->memq);
5819 assert(queue_empty(&object1->memq));
5820 /* transfer object2's pages to object1 */
5823 vm_page_rename(page, object1, page->offset, FALSE);
5826 /* transfer tmp_object's pages to object1 */
5838 tmp_object->field = object1->field; \
5839 object1->field = object2->field; \
5844 assert(object1->size == object2->size);
5852 assert(!object1->copy);
5855 assert(!object1->shadow);
5862 if (object1->pager_control != MEMORY_OBJECT_CONTROL_NULL) {
5863 memory_object_control_collapse(object1->pager_control,
5864 object1);
5872 assert(object1->paging_in_progress);
5885 assert(object1->alive);
5888 assert(object1->purgable == VM_PURGABLE_DENY);
5895 assert(!object1->terminating);
5902 assert(object1->cached_list.prev == NULL);
5903 assert(object1->cached_list.next == NULL);
5907 assert(queue_empty(&object1->msr_q));
5948 vm_object_unlock(object1);
5956 vm_object_lock(object1);
5957 vm_object_paging_end(object1);
5958 vm_object_unlock(object1);