Lines Matching defs:ttm
35 #include <drm/ttm/ttm_device.h>
36 #include <drm/ttm/ttm_tt.h>
37 #include <drm/ttm/ttm_resource.h>
45 struct ttm_tt ttm;
50 int ttm_agp_bind(struct ttm_tt *ttm, struct ttm_resource *bo_mem)
52 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
55 int ret, cached = ttm->caching == ttm_cached;
61 mem = agp_allocate_memory(agp_be->bridge, ttm->num_pages, AGP_USER_MEMORY);
66 for (i = 0; i < ttm->num_pages; i++) {
67 struct page *page = ttm->pages[i];
87 void ttm_agp_unbind(struct ttm_tt *ttm)
89 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
102 bool ttm_agp_is_bound(struct ttm_tt *ttm)
104 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
106 if (!ttm)
113 void ttm_agp_destroy(struct ttm_tt *ttm)
115 struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
118 ttm_agp_unbind(ttm);
119 ttm_tt_fini(ttm);
137 if (ttm_tt_init(&agp_be->ttm, bo, page_flags, ttm_write_combined, 0)) {
142 return &agp_be->ttm;