Lines Matching refs:nvbe
21 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nouveau_sgdma_destroy() local
24 ttm_dma_tt_fini(&nvbe->ttm); in nouveau_sgdma_destroy()
25 kfree(nvbe); in nouveau_sgdma_destroy()
32 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nv04_sgdma_bind() local
40 node->pages = nvbe->ttm.dma_address; in nv04_sgdma_bind()
44 nvbe->node = node; in nv04_sgdma_bind()
51 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nv04_sgdma_unbind() local
52 nouveau_vm_unmap(&nvbe->node->vma[0]); in nv04_sgdma_unbind()
65 struct nouveau_sgdma_be *nvbe = (struct nouveau_sgdma_be *)ttm; in nv50_sgdma_bind() local
72 node->pages = nvbe->ttm.dma_address; in nv50_sgdma_bind()
95 struct nouveau_sgdma_be *nvbe; in nouveau_sgdma_create_ttm() local
97 nvbe = kzalloc(sizeof(*nvbe), GFP_KERNEL); in nouveau_sgdma_create_ttm()
98 if (!nvbe) in nouveau_sgdma_create_ttm()
101 nvbe->dev = drm->dev; in nouveau_sgdma_create_ttm()
103 nvbe->ttm.ttm.func = &nv04_sgdma_backend; in nouveau_sgdma_create_ttm()
105 nvbe->ttm.ttm.func = &nv50_sgdma_backend; in nouveau_sgdma_create_ttm()
107 if (ttm_dma_tt_init(&nvbe->ttm, bdev, size, page_flags, dummy_read_page)) { in nouveau_sgdma_create_ttm()
108 kfree(nvbe); in nouveau_sgdma_create_ttm()
111 return &nvbe->ttm.ttm; in nouveau_sgdma_create_ttm()