Searched refs:ttm_dma (Results 1 – 3 of 3) sorted by relevance
/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc_dma.c | 845 struct ttm_dma_tt *ttm_dma, in ttm_dma_pool_get_pages() argument 849 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_pool_get_pages() 858 ttm_dma->cpu_address[index] = d_page->vaddr; in ttm_dma_pool_get_pages() 859 ttm_dma->dma_address[index] = d_page->dma; in ttm_dma_pool_get_pages() 860 list_move_tail(&d_page->page_list, &ttm_dma->pages_list); in ttm_dma_pool_get_pages() 873 int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, struct device *dev) in ttm_dma_populate() argument 875 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_populate() 902 INIT_LIST_HEAD(&ttm_dma->pages_list); in ttm_dma_populate() 904 ret = ttm_dma_pool_get_pages(pool, ttm_dma, i); in ttm_dma_populate() 906 ttm_dma_unpopulate(ttm_dma, dev); in ttm_dma_populate() [all …]
|
D | ttm_tt.c | 217 int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev, in ttm_dma_tt_init() argument 221 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_tt_init() 232 INIT_LIST_HEAD(&ttm_dma->pages_list); in ttm_dma_tt_init() 233 ttm_dma_tt_alloc_page_directory(ttm_dma); in ttm_dma_tt_init() 243 void ttm_dma_tt_fini(struct ttm_dma_tt *ttm_dma) in ttm_dma_tt_fini() argument 245 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_tt_fini() 249 ttm_dma->cpu_address = NULL; in ttm_dma_tt_fini() 250 ttm_dma->dma_address = NULL; in ttm_dma_tt_fini()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_bo.c | 1354 struct ttm_dma_tt *ttm_dma = (void *)ttm; in nouveau_ttm_tt_populate() local 1369 ttm_dma->dma_address, ttm->num_pages); in nouveau_ttm_tt_populate() 1404 dma_unmap_page(pdev, ttm_dma->dma_address[i], in nouveau_ttm_tt_populate() 1406 ttm_dma->dma_address[i] = 0; in nouveau_ttm_tt_populate() 1412 ttm_dma->dma_address[i] = addr; in nouveau_ttm_tt_populate() 1420 struct ttm_dma_tt *ttm_dma = (void *)ttm; in nouveau_ttm_tt_unpopulate() local 1451 if (ttm_dma->dma_address[i]) { in nouveau_ttm_tt_unpopulate() 1452 dma_unmap_page(pdev, ttm_dma->dma_address[i], PAGE_SIZE, in nouveau_ttm_tt_unpopulate()
|