/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_dmabuf.c | 52 struct ttm_placement *placement, in vmw_dmabuf_to_placement() argument 69 ret = ttm_bo_validate(bo, placement, interruptible, false, false); in vmw_dmabuf_to_placement() 100 struct ttm_placement *placement; in vmw_dmabuf_to_vram_or_gmr() local 122 placement = &vmw_vram_gmr_ne_placement; in vmw_dmabuf_to_vram_or_gmr() 124 placement = &vmw_vram_gmr_placement; in vmw_dmabuf_to_vram_or_gmr() 126 ret = ttm_bo_validate(bo, placement, interruptible, false, false); in vmw_dmabuf_to_vram_or_gmr() 137 placement = &vmw_vram_ne_placement; in vmw_dmabuf_to_vram_or_gmr() 139 placement = &vmw_vram_placement; in vmw_dmabuf_to_vram_or_gmr() 141 ret = ttm_bo_validate(bo, placement, interruptible, false, false); in vmw_dmabuf_to_vram_or_gmr() 169 struct ttm_placement *placement; in vmw_dmabuf_to_vram() local [all …]
|
D | vmwgfx_buffer.c | 54 .placement = &vram_placement_flags, 73 .placement = vram_gmr_placement_flags, 87 .placement = vram_gmr_ne_placement_flags, 96 .placement = &vram_placement_flags, 105 .placement = &vram_ne_placement_flags, 114 .placement = &sys_placement_flags, 129 .placement = evictable_placement_flags, 139 .placement = &gmr_placement_flags, 246 struct ttm_placement *placement) in vmw_evict_flags() argument 248 *placement = vmw_sys_placement; in vmw_evict_flags()
|
D | vmwgfx_gmrid_manager.c | 49 struct ttm_placement *placement, in vmw_gmrid_man_get_node() argument
|
D | vmwgfx_drv.h | 423 size_t size, struct ttm_placement *placement, 450 struct ttm_placement *placement,
|
D | vmwgfx_resource.c | 1552 size_t size, struct ttm_placement *placement, in vmw_dmabuf_init() argument 1568 ttm_bo_type_device, placement, in vmw_dmabuf_init()
|
/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 85 struct ttm_placement *placement) in ttm_bo_mem_space_debug() argument 92 for (i = 0; i < placement->num_placement; i++) { in ttm_bo_mem_space_debug() 93 ret = ttm_mem_type_from_flags(placement->placement[i], in ttm_bo_mem_space_debug() 98 i, placement->placement[i], mem_type); in ttm_bo_mem_space_debug() 180 if (!(bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) { in ttm_bo_add_to_lru() 368 ((mem->placement & bo->mem.placement & TTM_PL_MASK_CACHING) == 0)) { in ttm_bo_handle_move_mem() 388 ret = ttm_tt_set_placement_caching(bo->ttm, mem->placement); in ttm_bo_handle_move_mem() 433 ret = bdev->driver->invalidate_caches(bdev, bo->mem.placement); in ttm_bo_handle_move_mem() 442 bo->cur_placement = bo->mem.placement; in ttm_bo_handle_move_mem() 728 struct ttm_placement placement; in ttm_bo_evict() local [all …]
|
D | ttm_bo_manager.c | 52 struct ttm_placement *placement, in ttm_bo_man_get_node() argument 61 lpfn = placement->lpfn; in ttm_bo_man_get_node() 72 placement->fpfn, lpfn, 1); in ttm_bo_man_get_node() 79 placement->fpfn, in ttm_bo_man_get_node()
|
D | ttm_bo_util.c | 56 ttm_flag_masked(&old_mem->placement, TTM_PL_FLAG_SYSTEM, in ttm_bo_move_ttm() 61 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm() 201 if (mem->placement & TTM_PL_FLAG_WC) in ttm_mem_reg_ioremap() 363 pgprot_t prot = ttm_io_prot(old_mem->placement, in ttm_bo_move_memcpy() 368 pgprot_t prot = ttm_io_prot(new_mem->placement, in ttm_bo_move_memcpy() 495 if (mem->placement & TTM_PL_FLAG_WC) in ttm_bo_ioremap() 522 if (num_pages == 1 && (mem->placement & TTM_PL_FLAG_CACHED)) { in ttm_bo_kmap_ttm() 536 prot = (mem->placement & TTM_PL_FLAG_CACHED) ? in ttm_bo_kmap_ttm() 538 ttm_io_prot(mem->placement, PAGE_KERNEL); in ttm_bo_kmap_ttm()
|
D | ttm_tt.c | 149 int ttm_tt_set_placement_caching(struct ttm_tt *ttm, uint32_t placement) in ttm_tt_set_placement_caching() argument 153 if (placement & TTM_PL_FLAG_WC) in ttm_tt_set_placement_caching() 155 else if (placement & TTM_PL_FLAG_UNCACHED) in ttm_tt_set_placement_caching()
|
D | ttm_bo_vm.c | 172 vma->vm_page_prot = ttm_io_prot(bo->mem.placement, in ttm_bo_vm_fault() 176 vma->vm_page_prot = (bo->mem.placement & TTM_PL_FLAG_CACHED) ? in ttm_bo_vm_fault() 178 ttm_io_prot(bo->mem.placement, vma->vm_page_prot); in ttm_bo_vm_fault()
|
D | ttm_agp_backend.c | 56 int ret, cached = (bo_mem->placement & TTM_PL_FLAG_CACHED); in ttm_agp_bind()
|
/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 174 struct ttm_placement *placement) in radeon_evict_flags() argument 180 placement->fpfn = 0; in radeon_evict_flags() 181 placement->lpfn = 0; in radeon_evict_flags() 182 placement->placement = &placements; in radeon_evict_flags() 183 placement->busy_placement = &placements; in radeon_evict_flags() 184 placement->num_placement = 1; in radeon_evict_flags() 185 placement->num_busy_placement = 1; in radeon_evict_flags() 200 *placement = rbo->placement; in radeon_evict_flags() 314 struct ttm_placement placement; in radeon_move_vram_ram() local 320 placement.fpfn = 0; in radeon_move_vram_ram() [all …]
|
D | radeon_object.c | 88 rbo->placement.fpfn = 0; in radeon_ttm_placement_from_domain() 89 rbo->placement.lpfn = 0; in radeon_ttm_placement_from_domain() 90 rbo->placement.placement = rbo->placements; in radeon_ttm_placement_from_domain() 91 rbo->placement.busy_placement = rbo->placements; in radeon_ttm_placement_from_domain() 101 rbo->placement.num_placement = c; in radeon_ttm_placement_from_domain() 102 rbo->placement.num_busy_placement = c; in radeon_ttm_placement_from_domain() 157 &bo->placement, page_align, 0, !kernel, NULL, in radeon_bo_create() 253 bo->placement.lpfn = bo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_bo_pin_restricted() 258 if (!bo->placement.lpfn) in radeon_bo_pin_restricted() 259 bo->placement.lpfn = bo->rdev->mc.gtt_size >> PAGE_SHIFT; in radeon_bo_pin_restricted() [all …]
|
D | radeon.h | 319 struct ttm_placement placement; member
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_bo.c | 123 ttm_bo_type_device, &nvbo->placement, in nouveau_bo_new() 164 nvbo->placement.fpfn = vram_pages / 2; in set_placement_range() 165 nvbo->placement.lpfn = ~0; in set_placement_range() 167 nvbo->placement.fpfn = 0; in set_placement_range() 168 nvbo->placement.lpfn = vram_pages / 2; in set_placement_range() 176 struct ttm_placement *pl = &nvbo->placement; in nouveau_bo_placement_set() 180 pl->placement = nvbo->placements; in nouveau_bo_placement_set() 248 nouveau_bo_placement_set(nvbo, bo->mem.placement, 0); in nouveau_bo_unpin() 295 ret = ttm_bo_validate(&nvbo->bo, &nvbo->placement, interruptible, in nouveau_bo_validate() 459 *pl = nvbo->placement; in nouveau_bo_evict_flags() [all …]
|
D | nouveau_mem.c | 1131 struct ttm_placement *placement, in nouveau_vram_manager_new() argument 1217 struct ttm_placement *placement, in nouveau_gart_manager_new() argument
|
D | nouveau_drv.h | 103 struct ttm_placement placement; member
|