Lines Matching refs:am_obj
495 mem->am_obj = vm_object_allocate(OBJT_DEFAULT, atop(round_page(size))); in agp_generic_alloc_memory()
515 vm_object_deallocate(mem->am_obj); in agp_generic_free_memory()
542 VM_OBJECT_WLOCK(mem->am_obj); in agp_generic_bind_memory()
551 m = vm_page_grab(mem->am_obj, OFF_TO_IDX(i), in agp_generic_bind_memory()
555 VM_OBJECT_WUNLOCK(mem->am_obj); in agp_generic_bind_memory()
562 VM_OBJECT_WLOCK(mem->am_obj); in agp_generic_bind_memory()
571 VM_OBJECT_WLOCK(mem->am_obj); in agp_generic_bind_memory()
573 m = vm_page_lookup(mem->am_obj, OFF_TO_IDX(i)); in agp_generic_bind_memory()
599 VM_OBJECT_WUNLOCK(mem->am_obj); in agp_generic_bind_memory()
614 VM_OBJECT_ASSERT_WLOCKED(mem->am_obj); in agp_generic_bind_memory()
616 m = vm_page_lookup(mem->am_obj, OFF_TO_IDX(k)); in agp_generic_bind_memory()
623 VM_OBJECT_WUNLOCK(mem->am_obj); in agp_generic_bind_memory()
653 VM_OBJECT_WLOCK(mem->am_obj); in agp_generic_unbind_memory()
655 m = vm_page_lookup(mem->am_obj, atop(i)); in agp_generic_unbind_memory()
660 VM_OBJECT_WUNLOCK(mem->am_obj); in agp_generic_unbind_memory()