Lines Matching refs:cpm_obj
2527 vm_object_t cpm_obj;
2562 cpm_obj = vm_object_allocate((vm_object_size_t)size);
2563 assert(cpm_obj != VM_OBJECT_NULL);
2564 assert(cpm_obj->internal);
2565 assert(cpm_obj->size == (vm_object_size_t)size);
2566 assert(cpm_obj->can_persist == FALSE);
2567 assert(cpm_obj->pager_created == FALSE);
2568 assert(cpm_obj->pageout == FALSE);
2569 assert(cpm_obj->shadow == VM_OBJECT_NULL);
2575 vm_object_lock(cpm_obj);
2597 vm_page_insert(m, cpm_obj, offset);
2599 assert(cpm_obj->resident_page_count == size / PAGE_SIZE);
2600 vm_object_unlock(cpm_obj);
2613 vm_object_reference(cpm_obj);
2625 cpm_obj,
2638 assert(cpm_obj->pager_created == FALSE);
2639 assert(cpm_obj->can_persist == FALSE);
2640 assert(cpm_obj->pageout == FALSE);
2641 assert(cpm_obj->shadow == VM_OBJECT_NULL);
2642 vm_object_deallocate(cpm_obj); /* kill acquired ref */
2643 vm_object_deallocate(cpm_obj); /* kill creation ref */
2666 vm_object_lock(cpm_obj);
2667 m = vm_page_lookup(cpm_obj, (vm_object_offset_t)offset);
2678 vm_object_unlock(cpm_obj);
2686 vm_object_lock(cpm_obj);
2687 m = vm_page_lookup(cpm_obj, (vm_object_offset_t)offset);
2688 vm_object_unlock(cpm_obj);
2691 cpm_obj, offset);
2706 printf("obj 0x%x off 0x%x\n", cpm_obj, offset);
2716 vm_object_deallocate(cpm_obj); /* kill extra ref */