Home | History | Annotate | Download | only in ttm

Lines Matching refs:ttm

44 #include <ttm/ttm_bo_driver.h>
45 #include <ttm/ttm_page_alloc.h>
46 #include <ttm/ttm_tt.h>
65 ttm_agp->ttm_dma.ttm.func = &ttm_agp_backend_func;
71 return &ttm_agp->ttm_dma.ttm;
78 ttm_agp_tt_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx)
81 KASSERTMSG((ttm->state == tt_unpopulated),
82 "ttm_agp_tt_populate: ttm %p state is not tt_unpopulated: %d",
83 ttm, (int)ttm->state);
84 return ttm_bus_dma_populate(container_of(ttm, struct ttm_dma_tt, ttm));
88 ttm_agp_tt_unpopulate(struct ttm_tt *ttm)
91 KASSERTMSG((ttm->state == tt_unbound),
92 "ttm_agp_tt_unpopulate: ttm %p state is not tt_unbound: %d",
93 ttm, (int)ttm->state);
94 ttm_bus_dma_unpopulate(container_of(ttm, struct ttm_dma_tt, ttm));
98 ttm_agp_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem)
100 struct ttm_agp *const ttm_agp = container_of(ttm, struct ttm_agp,
101 ttm_dma.ttm);
109 KASSERT(ttm_agp->ttm_dma.dma_address->dm_nsegs == ttm->num_pages);
110 for (i = 0; i < ttm->num_pages; i++) {
134 ttm_agp_unbind(struct ttm_tt *ttm)
136 struct ttm_agp *const ttm_agp = container_of(ttm, struct ttm_agp,
137 ttm_dma.ttm);
146 for (i = 0; i < ttm->num_pages; i++)
155 ttm_agp_destroy(struct ttm_tt *ttm)
157 struct ttm_agp *const ttm_agp = container_of(ttm, struct ttm_agp,
158 ttm_dma.ttm);
162 ttm_agp_unbind(ttm);
163 ttm_tt_fini(ttm);