Lines Matching defs:src_object
185 vm_object_t src_object,
2061 register vm_object_t src_object,
2073 src_object, src_offset, size, 0, 0);
2076 vm_object_unlock(src_object);
2085 vm_object_reference_locked(src_object);
2086 vm_object_unlock(src_object);
2126 vm_object_deallocate(src_object);
2142 vm_object_lock(src_object);
2143 vm_object_paging_begin(src_object);
2148 result = vm_fault_page(src_object, src_offset,
2225 vm_object_deallocate(src_object);
2245 vm_object_deallocate(src_object);
2256 vm_object_deallocate(src_object);
2345 * Copy the source object (src_object), using the
2361 vm_object_t src_object,
2385 while (vm_object_wanted(src_object, VM_OBJECT_EVENT_COPY_CALL)) {
2386 vm_object_sleep(src_object, VM_OBJECT_EVENT_COPY_CALL,
2393 * that we want a copy for src_object. (Note that we cannot
2398 vm_object_set_wanted(src_object, VM_OBJECT_EVENT_COPY_CALL);
2399 vm_object_unlock(src_object);
2418 vm_object_lock(src_object);
2419 while (vm_object_wanted(src_object, VM_OBJECT_EVENT_COPY_CALL)) {
2420 vm_object_sleep(src_object, VM_OBJECT_EVENT_COPY_CALL,
2425 assert(src_object->copy != VM_OBJECT_NULL);
2426 copy = src_object->copy;
2428 vm_object_unlock(src_object);
2433 vm_object_lock(src_object);
2447 vm_object_unlock(src_object);
2474 * The src_object must be locked on entry. It will be unlocked
2482 vm_object_t src_object,
2538 if (!src_object->true_share && src_object->paging_in_progress) {
2540 vm_object_unlock(src_object);
2542 vm_object_lock(src_object);
2545 vm_object_paging_wait(src_object, THREAD_UNINT);
2552 old_copy = src_object->copy;
2565 vm_object_unlock(src_object);
2578 vm_object_lock_shared(src_object);
2580 vm_object_lock(src_object);
2604 vm_object_unlock(src_object);
2606 vm_object_lock(src_object);
2619 queue_iterate(&src_object->memq, p, vm_page_t, listq) {
2625 vm_object_unlock(src_object);
2646 vm_object_unlock(src_object);
2667 vm_object_unlock(src_object);
2669 vm_object_lock(src_object);
2684 assert((old_copy->shadow == src_object) &&
2688 vm_object_unlock(src_object);
2690 vm_object_lock(src_object);
2710 queue_iterate(&src_object->memq, p, vm_page_t, listq) {
2715 vm_object_unlock(src_object);
2733 vm_object_lock_assert_exclusive(src_object);
2734 src_object->ref_count--;
2735 assert(src_object->ref_count > 0);
2745 VM_OBJ_RES_DECR(src_object);
2756 new_copy->shadow = src_object;
2760 vm_object_lock_assert_exclusive(src_object);
2761 vm_object_reference_locked(src_object);
2762 src_object->copy = new_copy;
2763 vm_object_unlock(src_object);
2768 (integer_t)new_copy, (integer_t)src_object, 0, 0, 0);
2783 register vm_object_t src_object,
2795 assert(src_object != VM_OBJECT_NULL);
2797 copy_strategy = src_object->copy_strategy;
2800 vm_object_lock_shared(src_object);
2803 vm_object_lock(src_object);
2810 while (!src_object->internal && !src_object->pager_ready) {
2814 vm_object_unlock(src_object);
2815 vm_object_lock(src_object);
2819 wait_result = vm_object_sleep( src_object,
2823 vm_object_unlock(src_object);
2837 *dst_object = vm_object_copy_delayed(src_object,
2845 vm_object_lock(src_object);
2849 result = vm_object_copy_slowly(src_object, src_offset, size,
2858 result = vm_object_copy_call(src_object, src_offset, size,
2867 XPR(XPR_VM_OBJECT, "v_o_c_strategically obj 0x%x off 0x%x size 0x%x\n",(natural_t)src_object, src_offset, size, 0, 0);
2868 vm_object_unlock(src_object);