Lines Matching refs:ttm
45 struct ttm_tt ttm; member
50 int ttm_agp_bind(struct ttm_tt *ttm, struct ttm_resource *bo_mem) in ttm_agp_bind() argument
55 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); in ttm_agp_bind()
58 int ret, cached = ttm->caching == ttm_cached; in ttm_agp_bind()
64 mem = agp_allocate_memory(agp_be->bridge, ttm->num_pages, AGP_USER_MEMORY); in ttm_agp_bind()
69 for (i = 0; i < ttm->num_pages; i++) { in ttm_agp_bind()
70 struct vm_page *page = ttm->pages[i]; in ttm_agp_bind()
91 void ttm_agp_unbind(struct ttm_tt *ttm) in ttm_agp_unbind() argument
95 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); in ttm_agp_unbind()
109 bool ttm_agp_is_bound(struct ttm_tt *ttm) in ttm_agp_is_bound() argument
114 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); in ttm_agp_is_bound()
116 if (!ttm) in ttm_agp_is_bound()
124 void ttm_agp_destroy(struct ttm_tt *ttm) in ttm_agp_destroy() argument
128 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm); in ttm_agp_destroy()
131 ttm_agp_unbind(ttm); in ttm_agp_destroy()
132 ttm_tt_fini(ttm); in ttm_agp_destroy()
151 if (ttm_tt_init(&agp_be->ttm, bo, page_flags, ttm_write_combined, 0)) { in ttm_agp_tt_create()
156 return &agp_be->ttm; in ttm_agp_tt_create()