Lines Matching refs:ttm
11 struct ttm_dma_tt ttm; member
17 nouveau_sgdma_destroy(struct ttm_tt *ttm) in nouveau_sgdma_destroy() argument
19 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nouveau_sgdma_destroy()
21 if (ttm) { in nouveau_sgdma_destroy()
22 ttm_dma_tt_fini(&nvbe->ttm); in nouveau_sgdma_destroy()
28 nv04_sgdma_bind(struct ttm_tt *ttm, struct ttm_mem_reg *mem) in nv04_sgdma_bind() argument
30 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nv04_sgdma_bind()
33 if (ttm->sg) { in nv04_sgdma_bind()
34 node->sg = ttm->sg; in nv04_sgdma_bind()
38 node->pages = nvbe->ttm.dma_address; in nv04_sgdma_bind()
48 nv04_sgdma_unbind(struct ttm_tt *ttm) in nv04_sgdma_unbind() argument
50 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nv04_sgdma_unbind()
62 nv50_sgdma_bind(struct ttm_tt *ttm, struct ttm_mem_reg *mem) in nv50_sgdma_bind() argument
64 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nv50_sgdma_bind()
68 if (ttm->sg) { in nv50_sgdma_bind()
69 node->sg = ttm->sg; in nv50_sgdma_bind()
73 node->pages = nvbe->ttm.dma_address; in nv50_sgdma_bind()
80 nv50_sgdma_unbind(struct ttm_tt *ttm) in nv50_sgdma_unbind() argument
106 nvbe->ttm.ttm.func = &nv04_sgdma_backend; in nouveau_sgdma_create_ttm()
108 nvbe->ttm.ttm.func = &nv50_sgdma_backend; in nouveau_sgdma_create_ttm()
110 if (ttm_dma_tt_init(&nvbe->ttm, bdev, size, page_flags, dummy_read_page)) in nouveau_sgdma_create_ttm()
112 return &nvbe->ttm.ttm; in nouveau_sgdma_create_ttm()