Lines Matching refs:am_obj
513 mem->am_obj = vm_object_allocate(OBJT_SWAP, atop(round_page(size))); in agp_generic_alloc_memory()
533 vm_object_deallocate(mem->am_obj); in agp_generic_free_memory()
560 VM_OBJECT_WLOCK(mem->am_obj); in agp_generic_bind_memory()
569 m = vm_page_grab(mem->am_obj, OFF_TO_IDX(i), in agp_generic_bind_memory()
573 VM_OBJECT_WUNLOCK(mem->am_obj); in agp_generic_bind_memory()
580 VM_OBJECT_WLOCK(mem->am_obj); in agp_generic_bind_memory()
589 VM_OBJECT_WLOCK(mem->am_obj); in agp_generic_bind_memory()
591 m = vm_page_lookup(mem->am_obj, OFF_TO_IDX(i)); in agp_generic_bind_memory()
617 VM_OBJECT_WUNLOCK(mem->am_obj); in agp_generic_bind_memory()
632 VM_OBJECT_ASSERT_WLOCKED(mem->am_obj); in agp_generic_bind_memory()
634 m = vm_page_lookup(mem->am_obj, OFF_TO_IDX(k)); in agp_generic_bind_memory()
639 VM_OBJECT_WUNLOCK(mem->am_obj); in agp_generic_bind_memory()
668 VM_OBJECT_WLOCK(mem->am_obj); in agp_generic_unbind_memory()
670 m = vm_page_lookup(mem->am_obj, atop(i)); in agp_generic_unbind_memory()
673 VM_OBJECT_WUNLOCK(mem->am_obj); in agp_generic_unbind_memory()