Home | History | Annotate | Download | only in ttm

Lines Matching defs:ttm_agp

48 struct ttm_agp {
61 struct ttm_agp *ttm_agp;
63 ttm_agp = kmem_zalloc(sizeof(*ttm_agp), KM_SLEEP);
64 ttm_agp->agp = &bridge->abd_sc;
65 ttm_agp->ttm_dma.ttm.func = &ttm_agp_backend_func;
67 if (ttm_dma_tt_init(&ttm_agp->ttm_dma, bo, page_flags) != 0)
71 return &ttm_agp->ttm_dma.ttm;
73 fail: kmem_free(ttm_agp, sizeof(*ttm_agp));
100 struct ttm_agp *const ttm_agp = container_of(ttm, struct ttm_agp,
102 struct agp_softc *const sc = ttm_agp->agp;
108 KASSERT(!ttm_agp->bound);
109 KASSERT(ttm_agp->ttm_dma.dma_address->dm_nsegs == ttm->num_pages);
111 KASSERT(ttm_agp->ttm_dma.dma_address->dm_segs[i].ds_len ==
115 ttm_agp->ttm_dma.dma_address->dm_segs[i].ds_len);
123 ttm_agp->agp_pgno = agp_pgno;
124 ttm_agp->bound = true;
136 struct ttm_agp *const ttm_agp = container_of(ttm, struct ttm_agp,
138 struct agp_softc *const sc = ttm_agp->agp;
139 const unsigned long agp_pgno = ttm_agp->agp_pgno;
143 if (!ttm_agp->bound)
149 ttm_agp->agp_pgno = 0;
150 ttm_agp->bound = false;
157 struct ttm_agp *const ttm_agp = container_of(ttm, struct ttm_agp,
161 if (ttm_agp->bound)
164 kmem_free(ttm_agp, sizeof(*ttm_agp));