Home
last modified time | relevance | path

Searched refs:placement (Results 1 – 25 of 89) sorted by relevance

1234

/Linux-v4.19/drivers/gpu/drm/ttm/
Dttm_bo.c89 struct ttm_placement *placement) in ttm_bo_mem_space_debug() argument
96 for (i = 0; i < placement->num_placement; i++) { in ttm_bo_mem_space_debug()
97 ret = ttm_mem_type_from_place(&placement->placement[i], in ttm_bo_mem_space_debug()
102 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug()
168 if (!(bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) { in ttm_bo_add_to_lru()
238 ((mem->placement & bo->mem.placement & TTM_PL_MASK_CACHING) == 0)) { in ttm_bo_handle_move_mem()
258 ret = ttm_tt_set_placement_caching(bo->ttm, mem->placement); in ttm_bo_handle_move_mem()
301 ret = bdev->driver->invalidate_caches(bdev, bo->mem.placement); in ttm_bo_handle_move_mem()
419 if (bo->mem.placement & TTM_PL_FLAG_NO_EVICT) { in ttm_bo_cleanup_refs_or_queue()
420 bo->mem.placement &= ~TTM_PL_FLAG_NO_EVICT; in ttm_bo_cleanup_refs_or_queue()
[all …]
Dttm_bo_util.c72 ttm_flag_masked(&old_mem->placement, TTM_PL_FLAG_SYSTEM, in ttm_bo_move_ttm()
77 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm()
222 if (mem->placement & TTM_PL_FLAG_WC) in ttm_mem_reg_ioremap()
421 pgprot_t prot = ttm_io_prot(old_mem->placement, in ttm_bo_move_memcpy()
426 pgprot_t prot = ttm_io_prot(new_mem->placement, in ttm_bo_move_memcpy()
565 if (mem->placement & TTM_PL_FLAG_WC) in ttm_bo_ioremap()
595 if (num_pages == 1 && (mem->placement & TTM_PL_FLAG_CACHED)) { in ttm_bo_kmap_ttm()
609 prot = ttm_io_prot(mem->placement, PAGE_KERNEL); in ttm_bo_kmap_ttm()
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_bo.c92 struct ttm_placement *placement, in vmw_bo_pin_in_placement() argument
111 ret = ttm_bo_mem_compat(placement, &bo->mem, in vmw_bo_pin_in_placement()
114 ret = ttm_bo_validate(bo, placement, &ctx); in vmw_bo_pin_in_placement()
221 struct ttm_placement placement; in vmw_bo_pin_in_start_of_vram() local
226 place = vmw_vram_placement.placement[0]; in vmw_bo_pin_in_start_of_vram()
228 placement.num_placement = 1; in vmw_bo_pin_in_start_of_vram()
229 placement.placement = &place; in vmw_bo_pin_in_start_of_vram()
230 placement.num_busy_placement = 1; in vmw_bo_pin_in_start_of_vram()
231 placement.busy_placement = &place; in vmw_bo_pin_in_start_of_vram()
256 ret = ttm_bo_mem_compat(&placement, &bo->mem, in vmw_bo_pin_in_start_of_vram()
[all …]
Dvmwgfx_ttm_buffer.c83 .placement = &vram_placement_flags,
114 .placement = vram_gmr_placement_flags,
135 .placement = vram_gmr_ne_placement_flags,
142 .placement = &vram_placement_flags,
149 .placement = &vram_ne_placement_flags,
156 .placement = &sys_placement_flags,
163 .placement = &sys_ne_placement_flags,
206 .placement = evictable_placement_flags,
214 .placement = &gmr_placement_flags,
221 .placement = &mob_placement_flags,
[all …]
Dvmwgfx_blit.c461 if (!(dst->mem.placement & TTM_PL_FLAG_NO_EVICT)) in vmw_bo_cpu_blit()
463 if (!(src->mem.placement & TTM_PL_FLAG_NO_EVICT)) in vmw_bo_cpu_blit()
486 d.dst_prot = ttm_io_prot(dst->mem.placement, PAGE_KERNEL); in vmw_bo_cpu_blit()
487 d.src_prot = ttm_io_prot(src->mem.placement, PAGE_KERNEL); in vmw_bo_cpu_blit()
/Linux-v4.19/drivers/staging/vboxvideo/
Dvbox_ttm.c144 *pl = vboxbo->placement; in vbox_bo_evict_flags()
286 bo->placement.placement = bo->placements; in vbox_ttm_placement()
287 bo->placement.busy_placement = bo->placements; in vbox_ttm_placement()
299 bo->placement.num_placement = c; in vbox_ttm_placement()
300 bo->placement.num_busy_placement = c; in vbox_ttm_placement()
332 ttm_bo_type_device, &vboxbo->placement, in vbox_bo_create()
367 for (i = 0; i < bo->placement.num_placement; i++) in vbox_bo_pin()
370 ret = ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in vbox_bo_pin()
395 for (i = 0; i < bo->placement.num_placement; i++) in vbox_bo_unpin()
398 ret = ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in vbox_bo_unpin()
[all …]
/Linux-v4.19/drivers/gpu/drm/mgag200/
Dmgag200_ttm.c147 *pl = mgabo->placement; in mgag200_bo_evict_flags()
284 bo->placement.placement = bo->placements; in mgag200_ttm_placement()
285 bo->placement.busy_placement = bo->placements; in mgag200_ttm_placement()
292 bo->placement.num_placement = c; in mgag200_ttm_placement()
293 bo->placement.num_busy_placement = c; in mgag200_ttm_placement()
326 ttm_bo_type_device, &mgabo->placement, in mgag200_bo_create()
354 for (i = 0; i < bo->placement.num_placement; i++) in mgag200_bo_pin()
356 ret = ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in mgag200_bo_pin()
378 for (i = 0; i < bo->placement.num_placement ; i++) in mgag200_bo_unpin()
380 return ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in mgag200_bo_unpin()
[all …]
/Linux-v4.19/drivers/gpu/drm/ast/
Dast_ttm.c147 *pl = astbo->placement; in ast_bo_evict_flags()
283 bo->placement.placement = bo->placements; in ast_ttm_placement()
284 bo->placement.busy_placement = bo->placements; in ast_ttm_placement()
291 bo->placement.num_placement = c; in ast_ttm_placement()
292 bo->placement.num_busy_placement = c; in ast_ttm_placement()
323 ttm_bo_type_device, &astbo->placement, in ast_bo_create()
353 for (i = 0; i < bo->placement.num_placement; i++) in ast_bo_pin()
355 ret = ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in ast_bo_pin()
377 for (i = 0; i < bo->placement.num_placement ; i++) in ast_bo_unpin()
379 return ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in ast_bo_unpin()
[all …]
/Linux-v4.19/drivers/gpu/drm/cirrus/
Dcirrus_ttm.c147 *pl = cirrusbo->placement; in cirrus_bo_evict_flags()
288 bo->placement.placement = bo->placements; in cirrus_ttm_placement()
289 bo->placement.busy_placement = bo->placements; in cirrus_ttm_placement()
296 bo->placement.num_placement = c; in cirrus_ttm_placement()
297 bo->placement.num_busy_placement = c; in cirrus_ttm_placement()
330 ttm_bo_type_device, &cirrusbo->placement, in cirrus_bo_create()
357 for (i = 0; i < bo->placement.num_placement; i++) in cirrus_bo_pin()
359 ret = ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in cirrus_bo_pin()
385 for (i = 0; i < bo->placement.num_placement ; i++) in cirrus_bo_push_sysram()
388 ret = ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in cirrus_bo_push_sysram()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dradeon_ttm.c179 struct ttm_placement *placement) in radeon_evict_flags() argument
190 placement->placement = &placements; in radeon_evict_flags()
191 placement->busy_placement = &placements; in radeon_evict_flags()
192 placement->num_placement = 1; in radeon_evict_flags()
193 placement->num_busy_placement = 1; in radeon_evict_flags()
213 rbo->placement.num_busy_placement = 0; in radeon_evict_flags()
214 for (i = 0; i < rbo->placement.num_placement; i++) { in radeon_evict_flags()
219 rbo->placement.busy_placement = in radeon_evict_flags()
221 rbo->placement.num_busy_placement = 1; in radeon_evict_flags()
231 *placement = rbo->placement; in radeon_evict_flags()
[all …]
Dradeon_object.c102 rbo->placement.placement = rbo->placements; in radeon_ttm_placement_from_domain()
103 rbo->placement.busy_placement = rbo->placements; in radeon_ttm_placement_from_domain()
166 rbo->placement.num_placement = c; in radeon_ttm_placement_from_domain()
167 rbo->placement.num_busy_placement = c; in radeon_ttm_placement_from_domain()
260 &bo->placement, page_align, !kernel, acc_size, in radeon_bo_create()
360 for (i = 0; i < bo->placement.num_placement; i++) { in radeon_bo_pin_restricted()
373 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_pin_restricted()
405 for (i = 0; i < bo->placement.num_placement; i++) { in radeon_bo_unpin()
409 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_unpin()
576 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_list_validate()
[all …]
Dradeon_gem.c345 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_gem_userptr_ioctl()
784 const char *placement; in radeon_debugfs_gem_info() local
789 placement = "VRAM"; in radeon_debugfs_gem_info()
792 placement = " GTT"; in radeon_debugfs_gem_info()
796 placement = " CPU"; in radeon_debugfs_gem_info()
801 placement, (unsigned long)rbo->pid); in radeon_debugfs_gem_info()
/Linux-v4.19/drivers/gpu/drm/virtio/
Dvirtgpu_object.c50 vgbo->placement.placement = &vgbo->placement_code; in virtio_gpu_init_ttm_placement()
51 vgbo->placement.busy_placement = &vgbo->placement_code; in virtio_gpu_init_ttm_placement()
56 vgbo->placement.num_placement = c; in virtio_gpu_init_ttm_placement()
57 vgbo->placement.num_busy_placement = c; in virtio_gpu_init_ttm_placement()
92 &bo->placement, 0, !kernel, acc_size, in virtio_gpu_object_create()
Dvirtgpu_ttm.c234 struct ttm_placement *placement) in virtio_gpu_evict_flags() argument
242 placement->placement = &placements; in virtio_gpu_evict_flags()
243 placement->busy_placement = &placements; in virtio_gpu_evict_flags()
244 placement->num_placement = 1; in virtio_gpu_evict_flags()
245 placement->num_busy_placement = 1; in virtio_gpu_evict_flags()
378 if (!new_mem || (new_mem->placement & TTM_PL_FLAG_SYSTEM)) { in virtio_gpu_bo_move_notify()
383 } else if (new_mem->placement & TTM_PL_FLAG_TT) { in virtio_gpu_bo_move_notify()
/Linux-v4.19/include/drm/ttm/
Dttm_bo_api.h99 uint32_t placement; member
338 bool ttm_bo_mem_compat(struct ttm_placement *placement, struct ttm_mem_reg *mem,
357 struct ttm_placement *placement,
522 struct ttm_placement *placement,
569 struct ttm_placement *placement,
594 enum ttm_bo_type type, struct ttm_placement *placement,
Dttm_bo_driver.h298 struct ttm_placement *placement);
545 struct ttm_placement *placement,
747 if (!(bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) { in ttm_bo_unreserve()
Dttm_placement.h103 const struct ttm_place *placement; member
/Linux-v4.19/drivers/gpu/drm/qxl/
Dqxl_object.c59 qbo->placement.placement = qbo->placements; in qxl_ttm_placement_from_domain()
60 qbo->placement.busy_placement = qbo->placements; in qxl_ttm_placement_from_domain()
69 qbo->placement.num_placement = c; in qxl_ttm_placement_from_domain()
70 qbo->placement.num_busy_placement = c; in qxl_ttm_placement_from_domain()
112 &bo->placement, 0, !kernel, size, in qxl_bo_create()
237 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in __qxl_bo_pin()
261 for (i = 0; i < bo->placement.num_placement; i++) in __qxl_bo_unpin()
263 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in __qxl_bo_unpin()
Dqxl_ttm.c184 struct ttm_placement *placement) in qxl_evict_flags() argument
194 placement->placement = &placements; in qxl_evict_flags()
195 placement->busy_placement = &placements; in qxl_evict_flags()
196 placement->num_placement = 1; in qxl_evict_flags()
197 placement->num_busy_placement = 1; in qxl_evict_flags()
202 *placement = qbo->placement; in qxl_evict_flags()
/Linux-v4.19/drivers/gpu/drm/hisilicon/hibmc/
Dhibmc_ttm.c124 bo->placement.placement = bo->placements; in hibmc_ttm_placement()
125 bo->placement.busy_placement = bo->placements; in hibmc_ttm_placement()
136 bo->placement.num_placement = count; in hibmc_ttm_placement()
137 bo->placement.num_busy_placement = count; in hibmc_ttm_placement()
153 *pl = hibmcbo->placement; in hibmc_bo_evict_flags()
318 ttm_bo_type_device, &hibmcbo->placement, in hibmc_bo_create()
344 for (i = 0; i < bo->placement.num_placement; i++) in hibmc_bo_pin()
346 ret = ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in hibmc_bo_pin()
369 for (i = 0; i < bo->placement.num_placement ; i++) in hibmc_bo_unpin()
371 ret = ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in hibmc_bo_unpin()
/Linux-v4.19/drivers/gpu/drm/bochs/
Dbochs_mm.c123 *pl = bochsbo->placement; in bochs_bo_evict_flags()
251 bo->placement.placement = bo->placements; in bochs_ttm_placement()
252 bo->placement.busy_placement = bo->placements; in bochs_ttm_placement()
270 bo->placement.num_placement = c; in bochs_ttm_placement()
271 bo->placement.num_busy_placement = c; in bochs_ttm_placement()
292 for (i = 0; i < bo->placement.num_placement; i++) in bochs_bo_pin()
294 ret = ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in bochs_bo_pin()
318 for (i = 0; i < bo->placement.num_placement; i++) in bochs_bo_unpin()
320 ret = ttm_bo_validate(&bo->bo, &bo->placement, &ctx); in bochs_bo_unpin()
369 ttm_bo_type_device, &bochsbo->placement, in bochs_bo_create()
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c230 struct ttm_placement *placement) in amdgpu_evict_flags() argument
242 placement->num_placement = 0; in amdgpu_evict_flags()
243 placement->num_busy_placement = 0; in amdgpu_evict_flags()
249 placement->placement = &placements; in amdgpu_evict_flags()
250 placement->busy_placement = &placements; in amdgpu_evict_flags()
251 placement->num_placement = 1; in amdgpu_evict_flags()
252 placement->num_busy_placement = 1; in amdgpu_evict_flags()
275 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_evict_flags()
276 abo->placement.num_busy_placement = 1; in amdgpu_evict_flags()
286 *placement = abo->placement; in amdgpu_evict_flags()
[all …]
Damdgpu_object.c141 struct ttm_placement *placement = &abo->placement; in amdgpu_bo_placement_from_domain() local
221 placement->num_placement = c; in amdgpu_bo_placement_from_domain()
222 placement->placement = places; in amdgpu_bo_placement_from_domain()
224 placement->num_busy_placement = c; in amdgpu_bo_placement_from_domain()
225 placement->busy_placement = places; in amdgpu_bo_placement_from_domain()
498 &bo->placement, page_align, &ctx, acc_size, in amdgpu_bo_do_create()
512 bo->tbo.mem.placement & TTM_PL_FLAG_VRAM) { in amdgpu_bo_do_create()
688 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_bo_validate()
920 for (i = 0; i < bo->placement.num_placement; i++) { in amdgpu_bo_pin_restricted()
934 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_bo_pin_restricted()
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/
Dnouveau_bo.c299 type, &nvbo->placement, in nouveau_bo_new()
347 for (i = 0; i < nvbo->placement.num_placement; ++i) { in set_placement_range()
351 for (i = 0; i < nvbo->placement.num_busy_placement; ++i) { in set_placement_range()
361 struct ttm_placement *pl = &nvbo->placement; in nouveau_bo_placement_set()
366 pl->placement = nvbo->placements; in nouveau_bo_placement_set()
463 nouveau_bo_placement_set(nvbo, bo->mem.placement, 0); in nouveau_bo_unpin()
554 ret = ttm_bo_validate(&nvbo->bo, &nvbo->placement, &ctx); in nouveau_bo_validate()
704 *pl = nvbo->placement; in nouveau_bo_evict_flags()
1208 struct ttm_placement placement; in nouveau_bo_move_flipd() local
1212 placement.num_placement = placement.num_busy_placement = 1; in nouveau_bo_move_flipd()
[all …]
/Linux-v4.19/Documentation/driver-api/
Dmtdnand.rst500 - Automatic placement at the end of the chip
591 For automatic placement some blocks must be reserved for bad block
598 Spare area (auto)placement
601 The nand driver implements different possibilities for placement of
606 - Automatic placement
608 The default placement function is automatic placement. The nand driver
609 has built in default placement schemes for the various chiptypes. If due
610 to hardware ECC functionality the default placement does not fit then
611 the board driver can provide a own placement scheme.
613 File system drivers can provide a own placement scheme which is used
[all …]

1234