| /linux-6.15/drivers/gpu/drm/ttm/tests/ |
| H A D | ttm_bo_validate_test.c | 32 struct ttm_placement *placement; in ttm_placement_kunit_init() local 34 placement = kunit_kzalloc(test, sizeof(*placement), GFP_KERNEL); in ttm_placement_kunit_init() 38 placement->placement = places; in ttm_placement_kunit_init() 40 return placement; in ttm_placement_kunit_init() 111 struct ttm_placement *placement; in ttm_bo_init_reserved_sys_man() local 157 struct ttm_placement *placement; in ttm_bo_init_reserved_mock_man() local 199 struct ttm_placement *placement; in ttm_bo_init_reserved_resv() local 278 struct ttm_placement *placement; in ttm_bo_validate_invalid_placement() local 304 struct ttm_placement *placement; in ttm_bo_validate_failed_alloc() local 549 placement = kunit_kzalloc(test, sizeof(*placement), GFP_KERNEL); in ttm_bo_validate_no_placement_signaled() [all …]
|
| H A D | ttm_kunit_helpers.c | 32 .placement = &sys_place, 37 .placement = &mock1_place, 42 .placement = &mock2_place, 93 struct ttm_placement *placement) in mock_evict_flags() argument 98 *placement = sys_placement; in mock_evict_flags() 101 *placement = mock_placement; in mock_evict_flags() 110 struct ttm_placement *placement) in bad_evict_flags() argument 112 *placement = bad_placement; in bad_evict_flags()
|
| /linux-6.15/drivers/gpu/drm/ttm/ |
| H A D | ttm_bo.c | 51 struct ttm_placement *placement) in ttm_bo_mem_space_debug() argument 58 mem_type = placement->placement[i].mem_type; in ttm_bo_mem_space_debug() 60 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug() 341 hop_placement.placement = hop; in ttm_bo_bounce_temp_buffer() 361 struct ttm_placement placement; in ttm_bo_evict() local 369 placement.num_placement = 0; in ttm_bo_evict() 372 if (!placement.num_placement) { in ttm_bo_evict() 707 struct ttm_placement *placement, in ttm_bo_alloc_resource() argument 722 const struct ttm_place *place = &placement->placement[i]; in ttm_bo_alloc_resource() 815 struct ttm_placement *placement, in ttm_bo_validate() argument [all …]
|
| H A D | ttm_resource.c | 334 res->placement = place->flags; in ttm_resource_init() 467 struct ttm_placement *placement, in ttm_resource_compatible() argument 474 if (res->placement & TTM_PL_FLAG_TEMPORARY) in ttm_resource_compatible() 477 for (i = 0; i < placement->num_placement; i++) { in ttm_resource_compatible() 478 const struct ttm_place *place = &placement->placement[i]; in ttm_resource_compatible() 489 !(res->placement & TTM_PL_FLAG_CONTIGUOUS)) in ttm_resource_compatible()
|
| /linux-6.15/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_bo.c | 94 struct ttm_placement *placement, in vmw_bo_pin_in_placement() argument 107 ret = ttm_bo_validate(bo, placement, &ctx); in vmw_bo_pin_in_placement() 306 struct ttm_placement placement; in vmw_bo_pin_reserved() local 319 pl.flags = bo->resource->placement; in vmw_bo_pin_reserved() 321 memset(&placement, 0, sizeof(placement)); in vmw_bo_pin_reserved() 322 placement.num_placement = 1; in vmw_bo_pin_reserved() 323 placement.placement = &pl; in vmw_bo_pin_reserved() 325 ret = ttm_bo_validate(bo, &placement, &ctx); in vmw_bo_pin_reserved() 438 &vmw_bo->placement, 0, &ctx, in vmw_bo_init() 817 struct ttm_placement *pl = &bo->placement; in vmw_bo_placement_set() [all …]
|
| H A D | vmwgfx_gem.c | 260 const char *placement; in vmw_bo_print_info() local 265 placement = " CPU"; in vmw_bo_print_info() 268 placement = " GMR"; in vmw_bo_print_info() 271 placement = " MOB"; in vmw_bo_print_info() 274 placement = "VCPU"; in vmw_bo_print_info() 277 placement = "VRAM"; in vmw_bo_print_info() 280 placement = "None"; in vmw_bo_print_info() 300 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-6.15/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() 307 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in qxl_bo_pin_locked()
|
| /linux-6.15/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_object.c | 112 struct ttm_placement *placement = &abo->placement; in amdgpu_bo_placement_from_domain() local 215 placement->placement = places; in amdgpu_bo_placement_from_domain() 1580 const char *placement; in amdgpu_bo_print_info() local 1586 placement = "NONE"; in amdgpu_bo_print_info() 1593 placement = "VRAM"; in amdgpu_bo_print_info() 1596 placement = "GTT"; in amdgpu_bo_print_info() 1599 placement = "GDS"; in amdgpu_bo_print_info() 1602 placement = "GWS"; in amdgpu_bo_print_info() 1605 placement = "OA"; in amdgpu_bo_print_info() 1615 placement = "CPU"; in amdgpu_bo_print_info() [all …]
|
| H A D | amdgpu_dma_buf.c | 183 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_dma_buf_map() 281 ret = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_dma_buf_begin_cpu_access() 395 struct ttm_placement placement = {}; in amdgpu_dma_buf_move_notify() local 406 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() 992 struct ttm_placement placement; in amdgpu_ttm_alloc_gart() local 1006 placement.num_placement = 1; in amdgpu_ttm_alloc_gart() 1007 placement.placement = &placements; in amdgpu_ttm_alloc_gart() [all …]
|
| /linux-6.15/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 178 placement->placement = places; in i915_ttm_placement_from_obj() 378 struct ttm_placement *placement) in i915_ttm_evict_flags() argument 380 *placement = i915_sys_placement; in i915_ttm_evict_flags() 774 struct ttm_placement *placement) in __i915_ttm_get_pages() argument 787 memcpy(&initial_place, placement->placement, sizeof(struct ttm_place)); in __i915_ttm_get_pages() 839 struct ttm_placement placement; in i915_ttm_get_pages() local 872 struct ttm_placement placement; in __i915_ttm_migrate() local 877 placement.num_placement = 1; in __i915_ttm_migrate() [all …]
|
| /linux-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_bo.c | 75 .placement = tt_placement_flags, 268 .placement = bo->placements, in __xe_bo_placement_for_flags() 293 *placement = sys_placement; in xe_evict_flags() 299 *placement = sys_placement; in xe_evict_flags() 311 *placement = tt_placement; in xe_evict_flags() 315 *placement = sys_placement; in xe_evict_flags() 1114 .placement = &place, in xe_bo_evict_pinned() 1712 &bo->placement; in ___xe_bo_create_locked() 1791 .placement = place, in __xe_bo_fixed_placement() 2478 !args->placement)) in xe_gem_create_ioctl() [all …]
|
| H A D | xe_bo_types.h | 42 struct ttm_placement placement; member
|
| /linux-6.15/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() 205 &bo->placement, page_align, !kernel, sg, resv, in radeon_bo_create() 305 for (i = 0; i < bo->placement.num_placement; i++) { in radeon_bo_pin_restricted() 316 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_pin_restricted() 515 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_list_validate() 745 for (i = 0; i < rbo->placement.num_placement; i++) { in radeon_bo_fault_reserve_notify() 751 r = ttm_bo_validate(bo, &rbo->placement, &ctx); in radeon_bo_fault_reserve_notify() 754 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 | 409 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_gem_userptr_ioctl() 874 const char *placement; in radeon_debugfs_gem_info_show() local 879 placement = "VRAM"; in radeon_debugfs_gem_info_show() 882 placement = " GTT"; in radeon_debugfs_gem_info_show() 886 placement = " CPU"; in radeon_debugfs_gem_info_show() 891 placement, (unsigned long)rbo->pid); in radeon_debugfs_gem_info_show()
|
| /linux-6.15/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-6.15/drivers/gpu/drm/ |
| H A D | drm_gem_vram_helper.c | 148 gbo->placement.placement = gbo->placements; in drm_gem_vram_placement() 160 gbo->placement.num_placement = c; in drm_gem_vram_placement() 228 &gbo->placement, pg_align, false, NULL, NULL, in drm_gem_vram_create() 292 ret = ttm_bo_validate(&gbo->bo, &gbo->placement, &ctx); in drm_gem_vram_pin_locked() 524 *pl = gbo->placement; in drm_gem_vram_bo_driver_evict_flags() 813 struct ttm_placement *placement) in bo_driver_evict_flags() argument 823 drm_gem_vram_bo_driver_evict_flags(gbo, placement); in bo_driver_evict_flags()
|
| /linux-6.15/include/drm/ttm/ |
| H A D | ttm_bo.h | 414 struct ttm_placement *placement, 422 enum ttm_bo_type type, struct ttm_placement *placement, 427 enum ttm_bo_type type, struct ttm_placement *placement, 460 struct ttm_placement *placement,
|
| H A D | ttm_placement.h | 100 const struct ttm_place *placement; member
|
| /linux-6.15/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() 475 ret = ttm_bo_init_validate(bdev, tbo, bo_type, &lbo->placement, 0, in lsdc_bo_create()
|
| /linux-6.15/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-6.15/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 …]
|