Lines Matching refs:ttm
11 struct ttm_dma_tt ttm; member
16 nouveau_sgdma_destroy(struct ttm_tt *ttm) in nouveau_sgdma_destroy() argument
18 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nouveau_sgdma_destroy()
20 if (ttm) { in nouveau_sgdma_destroy()
21 ttm_dma_tt_fini(&nvbe->ttm); in nouveau_sgdma_destroy()
27 nv04_sgdma_bind(struct ttm_tt *ttm, struct ttm_mem_reg *mem) in nv04_sgdma_bind() argument
29 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nv04_sgdma_bind()
32 if (ttm->sg) { in nv04_sgdma_bind()
33 node->sg = ttm->sg; in nv04_sgdma_bind()
37 node->pages = nvbe->ttm.dma_address; in nv04_sgdma_bind()
47 nv04_sgdma_unbind(struct ttm_tt *ttm) in nv04_sgdma_unbind() argument
49 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nv04_sgdma_unbind()
61 nv50_sgdma_bind(struct ttm_tt *ttm, struct ttm_mem_reg *mem) in nv50_sgdma_bind() argument
63 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nv50_sgdma_bind()
67 if (ttm->sg) { in nv50_sgdma_bind()
68 node->sg = ttm->sg; in nv50_sgdma_bind()
72 node->pages = nvbe->ttm.dma_address; in nv50_sgdma_bind()
79 nv50_sgdma_unbind(struct ttm_tt *ttm) in nv50_sgdma_unbind() argument
104 nvbe->ttm.ttm.func = &nv04_sgdma_backend; in nouveau_sgdma_create_ttm()
106 nvbe->ttm.ttm.func = &nv50_sgdma_backend; in nouveau_sgdma_create_ttm()
108 if (ttm_dma_tt_init(&nvbe->ttm, bdev, size, page_flags, dummy_read_page)) in nouveau_sgdma_create_ttm()
115 return &nvbe->ttm.ttm; in nouveau_sgdma_create_ttm()