Lines Matching refs:ttm
32 #include <drm/ttm/ttm_caching.h>
33 #include <drm/ttm/ttm_kmap_iter.h>
139 * @ttm: The struct ttm_tt.
140 * @bo: The buffer object we create the ttm for.
150 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo,
159 * @ttm: the ttm_tt structure.
163 void ttm_tt_fini(struct ttm_tt *ttm);
169 * @ttm: The struct ttm_tt.
173 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm);
178 * @ttm: The struct ttm_tt.
182 int ttm_tt_swapin(struct ttm_tt *ttm);
183 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm,
187 * ttm_tt_populate - allocate pages for a ttm
190 * @ttm: Pointer to the ttm_tt structure
193 * Calls the driver method to allocate pages for a ttm
195 int ttm_tt_populate(struct ttm_device *bdev, struct ttm_tt *ttm,
199 * ttm_tt_unpopulate - free pages from a ttm
202 * @ttm: Pointer to the ttm_tt structure
204 * Calls the driver method to free all pages from a ttm
206 void ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm);
211 * @ttm: Pointer to the ttm_tt structure
216 static inline void ttm_tt_mark_for_clear(struct ttm_tt *ttm)
218 ttm->page_flags |= TTM_TT_FLAG_ZERO_ALLOC;
232 * @bo: Buffer object we allocate the ttm for.
244 int ttm_agp_bind(struct ttm_tt *ttm, struct ttm_resource *bo_mem);
245 void ttm_agp_unbind(struct ttm_tt *ttm);
246 void ttm_agp_destroy(struct ttm_tt *ttm);
247 bool ttm_agp_is_bound(struct ttm_tt *ttm);