/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_bo.c | 50 struct ttm_placement *placement) in ttm_bo_mem_space_debug() argument 57 mem_type = placement->placement[i].mem_type; in ttm_bo_mem_space_debug() 59 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug() 413 hop_placement.placement = hop; in ttm_bo_bounce_temp_buffer() 433 struct ttm_placement placement; in ttm_bo_evict() local 441 placement.num_placement = 0; in ttm_bo_evict() 444 if (!placement.num_placement) { in ttm_bo_evict() 745 struct ttm_placement *placement, in ttm_bo_alloc_resource() argument 760 const struct ttm_place *place = &placement->placement[i]; in ttm_bo_alloc_resource() 847 struct ttm_placement *placement, in ttm_bo_validate() argument [all …]
|
H A D | ttm_resource.c | 190 res->placement = place->flags; in ttm_resource_init() 305 struct ttm_placement *placement, in ttm_resource_compatible() argument 312 if (res->placement & TTM_PL_FLAG_TEMPORARY) in ttm_resource_compatible() 315 for (i = 0; i < placement->num_placement; i++) { in ttm_resource_compatible() 316 const struct ttm_place *place = &placement->placement[i]; in ttm_resource_compatible() 327 !(res->placement & TTM_PL_FLAG_CONTIGUOUS)) in ttm_resource_compatible()
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_bo.c | 70 struct ttm_placement *placement, in vmw_bo_pin_in_placement() argument 83 ret = ttm_bo_validate(bo, placement, &ctx); in vmw_bo_pin_in_placement() 283 struct ttm_placement placement; in vmw_bo_pin_reserved() local 296 pl.flags = bo->resource->placement; in vmw_bo_pin_reserved() 298 memset(&placement, 0, sizeof(placement)); in vmw_bo_pin_reserved() 299 placement.num_placement = 1; in vmw_bo_pin_reserved() 300 placement.placement = &pl; in vmw_bo_pin_reserved() 302 ret = ttm_bo_validate(bo, &placement, &ctx); in vmw_bo_pin_reserved() 399 &vmw_bo->placement, 0, &ctx, in vmw_bo_init() 823 struct ttm_placement *pl = &bo->placement; in vmw_bo_placement_set() [all …]
|
H A D | vmwgfx_gem.c | 205 const char *placement; in vmw_bo_print_info() local 210 placement = " CPU"; in vmw_bo_print_info() 213 placement = " GMR"; in vmw_bo_print_info() 216 placement = " MOB"; in vmw_bo_print_info() 219 placement = "VCPU"; in vmw_bo_print_info() 222 placement = "VRAM"; in vmw_bo_print_info() 225 placement = "None"; in vmw_bo_print_info() 245 id, bo->tbo.base.size, placement, type); in vmw_bo_print_info()
|
H A D | vmwgfx_ttm_buffer.c | 48 .placement = &vram_placement_flags, 53 .placement = &sys_placement_flags, 433 struct ttm_placement *placement) in vmw_evict_flags() argument 435 *placement = vmw_sys_placement; in vmw_evict_flags()
|
/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_ttm.c | 51 struct ttm_placement *placement) in qxl_evict_flags() argument 62 placement->placement = &placements; in qxl_evict_flags() 63 placement->num_placement = 1; in qxl_evict_flags() 68 *placement = qbo->placement; in qxl_evict_flags()
|
H A D | qxl_object.c | 65 qbo->placement.placement = qbo->placements; in qxl_ttm_placement_from_domain() 84 qbo->placement.num_placement = c; in qxl_ttm_placement_from_domain() 140 &bo->placement, 0, &ctx, NULL, NULL, in qxl_bo_create() 298 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in qxl_bo_pin_locked()
|
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_ttm.c | 67 .placement = &sys_placement_flags, 159 struct ttm_placement *placement) in i915_ttm_placement_from_obj() argument 179 placement->placement = places; in i915_ttm_placement_from_obj() 379 struct ttm_placement *placement) in i915_ttm_evict_flags() argument 381 *placement = i915_sys_placement; in i915_ttm_evict_flags() 775 struct ttm_placement *placement) in __i915_ttm_get_pages() argument 787 placement->num_placement = 1; in __i915_ttm_get_pages() 838 struct ttm_placement placement; in i915_ttm_get_pages() local 871 struct ttm_placement placement; in __i915_ttm_migrate() local 876 placement.num_placement = 1; in __i915_ttm_migrate() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_bo.c | 69 .placement = tt_placement_flags, 223 .placement = bo->placements, in __xe_bo_placement_for_flags() 246 *placement = sys_placement; in xe_evict_flags() 258 *placement = tt_placement; in xe_evict_flags() 262 *placement = sys_placement; in xe_evict_flags() 810 .placement = &place, in xe_bo_evict_pinned() 1275 &bo->placement; in ___xe_bo_create_locked() 1277 placement, alignment, in ___xe_bo_create_locked() 1354 .placement = place, in __xe_bo_fixed_placement() 1919 !args->placement)) in xe_gem_create_ioctl() [all …]
|
H A D | xe_drm_client.c | 111 if (bo->placement.placement) in bo_meminfo() 112 mem_type = bo->placement.placement->mem_type; in bo_meminfo()
|
H A D | xe_ttm_vram_mgr.c | 107 (vres->base.placement & TTM_PL_FLAG_CONTIGUOUS)))) { in xe_ttm_vram_mgr_new() 177 if (!(vres->base.placement & TTM_PL_FLAG_CONTIGUOUS) && in xe_ttm_vram_mgr_new() 179 vres->base.placement |= TTM_PL_FLAG_CONTIGUOUS; in xe_ttm_vram_mgr_new() 185 if (vres->base.placement & TTM_PL_FLAG_CONTIGUOUS) { in xe_ttm_vram_mgr_new()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_object.c | 129 struct ttm_placement *placement = &abo->placement; in amdgpu_bo_placement_from_domain() local 230 placement->num_placement = c; in amdgpu_bo_placement_from_domain() 231 placement->placement = places; in amdgpu_bo_placement_from_domain() 622 &bo->placement, page_align, &ctx, NULL, in amdgpu_bo_create() 1600 const char *placement; in amdgpu_bo_print_info() local 1611 placement = "VRAM VISIBLE"; in amdgpu_bo_print_info() 1613 placement = "VRAM"; in amdgpu_bo_print_info() 1616 placement = "GTT"; in amdgpu_bo_print_info() 1620 placement = "CPU"; in amdgpu_bo_print_info() 1625 placement = "UNKNOWN"; in amdgpu_bo_print_info() [all …]
|
H A D | amdgpu_dma_buf.c | 164 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_dma_buf_map() 261 ret = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_dma_buf_begin_cpu_access() 376 struct ttm_placement placement = {}; in amdgpu_dma_buf_move_notify() local 387 r = ttm_bo_validate(&bo->tbo, &placement, &ctx); in amdgpu_dma_buf_move_notify()
|
H A D | amdgpu_ttm.c | 91 struct ttm_placement *placement) in amdgpu_evict_flags() argument 104 placement->num_placement = 0; in amdgpu_evict_flags() 110 placement->placement = &placements; in amdgpu_evict_flags() 111 placement->num_placement = 1; in amdgpu_evict_flags() 117 placement->num_placement = 0; in amdgpu_evict_flags() 126 placement->num_placement = 0; in amdgpu_evict_flags() 161 *placement = abo->placement; in amdgpu_evict_flags() 970 struct ttm_placement placement; in amdgpu_ttm_alloc_gart() local 984 placement.num_placement = 1; in amdgpu_ttm_alloc_gart() 985 placement.placement = &placements; in amdgpu_ttm_alloc_gart() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_object.c | 80 rbo->placement.placement = rbo->placements; in radeon_ttm_placement_from_domain() 115 rbo->placement.num_placement = c; in radeon_ttm_placement_from_domain() 204 &bo->placement, page_align, !kernel, sg, resv, in radeon_bo_create() 307 for (i = 0; i < bo->placement.num_placement; i++) { in radeon_bo_pin_restricted() 318 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_pin_restricted() 514 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_list_validate() 750 for (i = 0; i < rbo->placement.num_placement; i++) { in radeon_bo_fault_reserve_notify() 756 r = ttm_bo_validate(bo, &rbo->placement, &ctx); in radeon_bo_fault_reserve_notify() 759 r = ttm_bo_validate(bo, &rbo->placement, &ctx); in radeon_bo_fault_reserve_notify()
|
H A D | radeon_ttm.c | 83 struct ttm_placement *placement) in radeon_evict_flags() argument 95 placement->placement = &placements; in radeon_evict_flags() 96 placement->num_placement = 1; in radeon_evict_flags() 116 for (i = 0; i < rbo->placement.num_placement; i++) { in radeon_evict_flags() 130 *placement = rbo->placement; in radeon_evict_flags()
|
H A D | radeon_gem.c | 412 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_gem_userptr_ioctl() 872 const char *placement; in radeon_debugfs_gem_info_show() local 877 placement = "VRAM"; in radeon_debugfs_gem_info_show() 880 placement = " GTT"; in radeon_debugfs_gem_info_show() 884 placement = " CPU"; in radeon_debugfs_gem_info_show() 889 placement, (unsigned long)rbo->pid); in radeon_debugfs_gem_info_show()
|
/linux/drivers/mtd/nand/ |
H A D | ecc.c | 369 enum nand_ecc_placement placement; in of_get_nand_ecc_placement() local 375 for (placement = NAND_ECC_PLACEMENT_OOB; in of_get_nand_ecc_placement() 376 placement < ARRAY_SIZE(nand_ecc_placement); placement++) { in of_get_nand_ecc_placement() 377 if (!strcasecmp(pm, nand_ecc_placement[placement])) in of_get_nand_ecc_placement() 378 return placement; in of_get_nand_ecc_placement() 435 nand->ecc.user_conf.placement = of_get_nand_ecc_placement(dn); in of_get_nand_ecc_user_config()
|
/linux/include/drm/ttm/ |
H A D | ttm_bo.h | 358 struct ttm_placement *placement, 366 enum ttm_bo_type type, struct ttm_placement *placement, 371 enum ttm_bo_type type, struct ttm_placement *placement, 403 struct ttm_placement *placement,
|
H A D | ttm_placement.h | 100 const struct ttm_place *placement; member
|
H A D | ttm_resource.h | 213 uint32_t placement; member 372 struct ttm_placement *placement,
|
/linux/drivers/gpu/drm/ |
H A D | drm_gem_vram_helper.c | 149 gbo->placement.placement = gbo->placements; in drm_gem_vram_placement() 161 gbo->placement.num_placement = c; in drm_gem_vram_placement() 229 &gbo->placement, pg_align, false, NULL, NULL, in drm_gem_vram_create() 293 ret = ttm_bo_validate(&gbo->bo, &gbo->placement, &ctx); in drm_gem_vram_pin_locked() 525 *pl = gbo->placement; in drm_gem_vram_bo_driver_evict_flags() 858 struct ttm_placement *placement) in bo_driver_evict_flags() argument 868 drm_gem_vram_bo_driver_evict_flags(gbo, placement); in bo_driver_evict_flags()
|
/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_ttm.c | 56 lbo->placement.placement = lbo->placements; in lsdc_bo_set_placement() 78 lbo->placement.num_placement = c; in lsdc_bo_set_placement() 155 *tplacement = lbo->placement; in lsdc_bo_evict_flags() 302 ret = ttm_bo_validate(tbo, &lbo->placement, &ctx); in lsdc_bo_pin() 479 ret = ttm_bo_init_validate(bdev, tbo, bo_type, &lbo->placement, 0, in lsdc_bo_create()
|
/linux/Documentation/driver-api/ |
H A D | mtdnand.rst | 502 - Automatic placement at the end of the chip 600 Spare area (auto)placement 603 The nand driver implements different possibilities for placement of 608 - Automatic placement 610 The default placement function is automatic placement. The nand driver 613 the board driver can provide a own placement scheme. 615 File system drivers can provide a own placement scheme which is used 616 instead of the default placement scheme. 636 MTD_NANDECC_PLACE selects caller defined placement, 637 MTD_NANDECC_AUTOPLACE selects automatic placement. [all …]
|
/linux/Documentation/admin-guide/cgroup-v1/ |
H A D | cpusets.rst | 47 Cpusets constrain the CPU and Memory placement of tasks to only 51 job placement on large systems. 78 the efficient scheduling and memory placement of processes. 85 memory placement to reduce memory access times and contention, 177 - cpuset.cpu_exclusive flag: is cpu placement exclusive? 178 - cpuset.mem_exclusive flag: is memory placement exclusive? 206 the detailed placement done on individual tasks and memory regions 378 This memory placement policy is also known (in other contexts) as 623 or Memory Node placement, or of changing to which cpuset a task 652 and the processor placement is updated immediately. [all …]
|