Searched refs:ttm_dma (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.4/drivers/gpu/drm/ttm/ |
D | ttm_tt.c | 259 int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_buffer_object *bo, in ttm_dma_tt_init() argument 262 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_tt_init() 266 INIT_LIST_HEAD(&ttm_dma->pages_list); in ttm_dma_tt_init() 267 if (ttm_dma_tt_alloc_page_directory(ttm_dma)) { in ttm_dma_tt_init() 276 int ttm_sg_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_buffer_object *bo, in ttm_sg_tt_init() argument 279 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_sg_tt_init() 284 INIT_LIST_HEAD(&ttm_dma->pages_list); in ttm_sg_tt_init() 286 ret = ttm_sg_tt_alloc_page_directory(ttm_dma); in ttm_sg_tt_init() 288 ret = ttm_dma_tt_alloc_page_directory(ttm_dma); in ttm_sg_tt_init() 298 void ttm_dma_tt_fini(struct ttm_dma_tt *ttm_dma) in ttm_dma_tt_fini() argument [all …]
|
D | ttm_page_alloc_dma.c | 835 struct ttm_dma_tt *ttm_dma, in ttm_dma_pool_get_pages() argument 839 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_pool_get_pages() 848 ttm_dma->dma_address[index] = d_page->dma; in ttm_dma_pool_get_pages() 849 list_move_tail(&d_page->page_list, &ttm_dma->pages_list); in ttm_dma_pool_get_pages() 857 static gfp_t ttm_dma_pool_gfp_flags(struct ttm_dma_tt *ttm_dma, bool huge) in ttm_dma_pool_gfp_flags() argument 859 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_pool_gfp_flags() 886 int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, struct device *dev, in ttm_dma_populate() argument 889 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_populate() 904 INIT_LIST_HEAD(&ttm_dma->pages_list); in ttm_dma_populate() 915 gfp_t gfp_flags = ttm_dma_pool_gfp_flags(ttm_dma, true); in ttm_dma_populate() [all …]
|
/Linux-v5.4/include/drm/ttm/ |
D | ttm_page_alloc.h | 93 int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, struct device *dev, 95 void ttm_dma_unpopulate(struct ttm_dma_tt *ttm_dma, struct device *dev); 110 static inline int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, in ttm_dma_populate() argument 116 static inline void ttm_dma_unpopulate(struct ttm_dma_tt *ttm_dma, in ttm_dma_unpopulate() argument
|
D | ttm_tt.h | 163 int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_buffer_object *bo, 165 int ttm_sg_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_buffer_object *bo, 176 void ttm_dma_tt_fini(struct ttm_dma_tt *ttm_dma);
|
/Linux-v5.4/drivers/gpu/drm/nouveau/ |
D | nouveau_bo.c | 542 struct ttm_dma_tt *ttm_dma = (struct ttm_dma_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_device() local 545 if (!ttm_dma) in nouveau_bo_sync_for_device() 552 for (i = 0; i < ttm_dma->ttm.num_pages; i++) in nouveau_bo_sync_for_device() 554 ttm_dma->dma_address[i], in nouveau_bo_sync_for_device() 562 struct ttm_dma_tt *ttm_dma = (struct ttm_dma_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_cpu() local 565 if (!ttm_dma) in nouveau_bo_sync_for_cpu() 572 for (i = 0; i < ttm_dma->ttm.num_pages; i++) in nouveau_bo_sync_for_cpu() 573 dma_sync_single_for_cpu(drm->dev->dev, ttm_dma->dma_address[i], in nouveau_bo_sync_for_cpu() 1586 struct ttm_dma_tt *ttm_dma = (void *)ttm; in nouveau_ttm_tt_populate() local 1599 ttm_dma->dma_address, ttm->num_pages); in nouveau_ttm_tt_populate() [all …]
|