Lines Matching refs:ttm
13 struct ttm_dma_tt ttm; member
18 nouveau_sgdma_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_destroy() argument
20 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nouveau_sgdma_destroy()
22 if (ttm) { in nouveau_sgdma_destroy()
23 nouveau_sgdma_unbind(bdev, ttm); in nouveau_sgdma_destroy()
24 ttm_tt_destroy_common(bdev, ttm); in nouveau_sgdma_destroy()
25 ttm_dma_tt_fini(&nvbe->ttm); in nouveau_sgdma_destroy()
31 nouveau_sgdma_bind(struct ttm_bo_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg) in nouveau_sgdma_bind() argument
33 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nouveau_sgdma_bind()
41 ret = nouveau_mem_host(reg, &nvbe->ttm); in nouveau_sgdma_bind()
58 nouveau_sgdma_unbind(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_unbind() argument
60 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nouveau_sgdma_unbind()
76 if (ttm_dma_tt_init(&nvbe->ttm, bo, page_flags)) { in nouveau_sgdma_create_ttm()
80 return &nvbe->ttm.ttm; in nouveau_sgdma_create_ttm()