/linux/drivers/gpu/drm/ttm/tests/ |
H A D | ttm_resource_test.c | 21 struct ttm_place *place; member 58 priv->place = ttm_place_kunit_init(test, mem_type, flags); in ttm_init_test_mocks() 113 struct ttm_place *place; in ttm_resource_init_basic() local 119 place = priv->place; in ttm_resource_init_basic() 127 man = ttm_manager_type(priv->devs->ttm_dev, place->mem_type); in ttm_resource_init_basic() 132 ttm_resource_init(bo, place, res); in ttm_resource_init_basic() 136 KUNIT_ASSERT_EQ(test, res->mem_type, place->mem_type); in ttm_resource_init_basic() 137 KUNIT_ASSERT_EQ(test, res->placement, place->flags); in ttm_resource_init_basic() 156 struct ttm_place *place; in ttm_resource_init_pinned() local 161 place = priv->place; in ttm_resource_init_pinned() [all …]
|
H A D | ttm_bo_validate_test.c | 113 struct ttm_place *place; in ttm_bo_init_reserved_sys_man() local 119 place = ttm_place_kunit_init(test, TTM_PL_SYSTEM, 0); in ttm_bo_init_reserved_sys_man() 120 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_init_reserved_sys_man() 160 struct ttm_place *place; in ttm_bo_init_reserved_mock_man() local 168 place = ttm_place_kunit_init(test, mem_type, 0); in ttm_bo_init_reserved_mock_man() 169 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_init_reserved_mock_man() 201 struct ttm_place *place; in ttm_bo_init_reserved_resv() local 208 place = ttm_place_kunit_init(test, TTM_PL_SYSTEM, 0); in ttm_bo_init_reserved_resv() 209 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_init_reserved_resv() 280 struct ttm_place *place; in ttm_bo_validate_invalid_placement() local [all …]
|
H A D | ttm_bo_test.c | 243 struct ttm_place *place; in ttm_bo_unreserve_basic() local 249 place = ttm_place_kunit_init(test, mem_type, 0); in ttm_bo_unreserve_basic() 261 err = ttm_resource_alloc(bo, place, &res1); in ttm_bo_unreserve_basic() 267 ttm_resource_alloc(bo, place, &res2); in ttm_bo_unreserve_basic() 286 struct ttm_place *place; in ttm_bo_unreserve_pinned() local 298 place = ttm_place_kunit_init(test, mem_type, 0); in ttm_bo_unreserve_pinned() 303 err = ttm_resource_alloc(bo, place, &res1); in ttm_bo_unreserve_pinned() 308 err = ttm_resource_alloc(bo, place, &res2); in ttm_bo_unreserve_pinned() 329 struct ttm_place *place; in ttm_bo_unreserve_bulk() local 337 place = ttm_place_kunit_init(test, mem_type, 0); in ttm_bo_unreserve_bulk() [all …]
|
H A D | ttm_mock_manager.c | 25 const struct ttm_place *place, in ttm_mock_manager_alloc() argument 42 ttm_resource_init(bo, place, &mock_res->base); in ttm_mock_manager_alloc() 45 if (place->flags & TTM_PL_FLAG_TOPDOWN) in ttm_mock_manager_alloc() 48 if (place->flags & TTM_PL_FLAG_CONTIGUOUS) in ttm_mock_manager_alloc() 150 const struct ttm_place *place, in ttm_bad_manager_alloc() argument 158 const struct ttm_place *place, in ttm_busy_manager_alloc() argument 171 const struct ttm_place *place, in ttm_bad_manager_compatible() argument
|
H A D | ttm_kunit_helpers.c | 201 struct ttm_place *place; in ttm_place_kunit_init() local 203 place = kunit_kzalloc(test, sizeof(*place), GFP_KERNEL); in ttm_place_kunit_init() 204 KUNIT_ASSERT_NOT_NULL(test, place); in ttm_place_kunit_init() 206 place->mem_type = mem_type; in ttm_place_kunit_init() 207 place->flags = flags; in ttm_place_kunit_init() 209 return place; in ttm_place_kunit_init()
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_ttm_vram_mgr.c | 49 const struct ttm_place *place, in xe_ttm_vram_mgr_new() argument 59 lpfn = place->lpfn; in xe_ttm_vram_mgr_new() 63 if (tbo->base.size >> PAGE_SHIFT > (lpfn - place->fpfn)) in xe_ttm_vram_mgr_new() 70 ttm_resource_init(tbo, place, &vres->base); in xe_ttm_vram_mgr_new() 80 if (place->flags & TTM_PL_FLAG_TOPDOWN) in xe_ttm_vram_mgr_new() 83 if (place->fpfn || lpfn != man->size >> PAGE_SHIFT) in xe_ttm_vram_mgr_new() 124 if (place->fpfn + (size >> PAGE_SHIFT) != place->lpfn && in xe_ttm_vram_mgr_new() 125 place->flags & TTM_PL_FLAG_CONTIGUOUS) { in xe_ttm_vram_mgr_new() 129 lpfn = max_t(unsigned long, place->fpfn + (size >> PAGE_SHIFT), lpfn); in xe_ttm_vram_mgr_new() 140 err = drm_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT, in xe_ttm_vram_mgr_new() [all …]
|
H A D | xe_bo.c | 168 struct ttm_place place = { .mem_type = mem_type }; in add_vram() local 184 place.flags |= TTM_PL_FLAG_CONTIGUOUS; in add_vram() 188 place.fpfn = 0; in add_vram() 189 place.lpfn = io_size >> PAGE_SHIFT; in add_vram() 191 place.flags |= TTM_PL_FLAG_TOPDOWN; in add_vram() 194 places[*c] = place; in add_vram() 870 struct ttm_place place = { in xe_bo_evict_pinned() local 874 .placement = &place, in xe_bo_evict_pinned() 942 struct ttm_place *place = &bo->placements[0]; in xe_bo_restore_pinned() local 959 if (!mem_type_is_vram(place->mem_type)) in xe_bo_restore_pinned() [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_ttm_buddy_manager.c | 36 const struct ttm_place *place, in i915_ttm_buddy_man_alloc() argument 47 lpfn = place->lpfn; in i915_ttm_buddy_man_alloc() 55 ttm_resource_init(bo, place, &bman_res->base); in i915_ttm_buddy_man_alloc() 59 if (place->flags & TTM_PL_FLAG_TOPDOWN) in i915_ttm_buddy_man_alloc() 62 if (place->flags & TTM_PL_FLAG_CONTIGUOUS) in i915_ttm_buddy_man_alloc() 65 if (place->fpfn || lpfn != man->size) in i915_ttm_buddy_man_alloc() 92 err = drm_buddy_alloc_blocks(mm, (u64)place->fpfn << PAGE_SHIFT, in i915_ttm_buddy_man_alloc() 154 const struct ttm_place *place, in i915_ttm_buddy_man_intersects() argument 162 if (!place->fpfn && !place->lpfn) in i915_ttm_buddy_man_intersects() 165 GEM_BUG_ON(!place->lpfn); in i915_ttm_buddy_man_intersects() [all …]
|
H A D | intel_region_ttm.c | 204 struct ttm_place place = {}; in intel_region_ttm_resource_alloc() local 210 place.flags |= TTM_PL_FLAG_CONTIGUOUS; in intel_region_ttm_resource_alloc() 212 if (WARN_ON(overflows_type(offset >> PAGE_SHIFT, place.fpfn))) { in intel_region_ttm_resource_alloc() 216 place.fpfn = offset >> PAGE_SHIFT; in intel_region_ttm_resource_alloc() 217 if (WARN_ON(overflows_type(place.fpfn + (size >> PAGE_SHIFT), place.lpfn))) { in intel_region_ttm_resource_alloc() 221 place.lpfn = place.fpfn + (size >> PAGE_SHIFT); in intel_region_ttm_resource_alloc() 224 place.flags |= TTM_PL_FLAG_TOPDOWN; in intel_region_ttm_resource_alloc() 226 place.fpfn = 0; in intel_region_ttm_resource_alloc() 227 if (WARN_ON(overflows_type(resource_size(&mem->io) >> PAGE_SHIFT, place.lpfn))) { in intel_region_ttm_resource_alloc() 231 place.lpfn = resource_size(&mem->io) >> PAGE_SHIFT; in intel_region_ttm_resource_alloc() [all …]
|
/linux/tools/testing/selftests/ftrace/test.d/dynevent/ |
H A D | generic_clear_event.tc | 4 # requires: dynamic_events "place: [<module>:]<symbol>":README "place (kretprobe): [<module>:]<symb… 9 PLACE=$FUNCTION_FORK 12 echo "p:myevent1 $PLACE" >> dynamic_events 14 echo "r:myevent2 $PLACE" >> dynamic_events 25 echo "!p:myevent1 $PLACE" >> dynamic_events 36 echo "!r:myevent2 $PLACE" >> dynamic_events
|
H A D | add_remove_kprobe.tc | 4 # requires: dynamic_events "place: [<module>:]<symbol>":README "place (kretprobe): [<module>:]<symb… 9 PLACE=$FUNCTION_FORK 11 echo "p:myevent1 $PLACE" >> dynamic_events 12 echo "r:myevent2 $PLACE" >> dynamic_events 27 echo "p:mygroup/ $PLACE" >> dynamic_events
|
H A D | clear_select_events.tc | 4 …equires: dynamic_events kprobe_events synthetic_events "place: [<module>:]<symbol>":README "place … 9 PLACE=$FUNCTION_FORK 12 echo "p:myevent1 $PLACE" >> dynamic_events 14 echo "r:myevent2 $PLACE" >> dynamic_events
|
H A D | add_remove_fprobe.tc | 9 PLACE=$FUNCTION_FORK 11 echo "f:myevent1 $PLACE" >> dynamic_events 12 echo "f:myevent2 $PLACE%return" >> dynamic_events
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gtt_mgr.c | 108 * @place: placement flags and restrictions 115 const struct ttm_place *place, in amdgpu_gtt_mgr_new() argument 127 ttm_resource_init(tbo, place, &node->base); in amdgpu_gtt_mgr_new() 128 if (!(place->flags & TTM_PL_FLAG_TEMPORARY) && in amdgpu_gtt_mgr_new() 134 if (place->lpfn) { in amdgpu_gtt_mgr_new() 138 0, place->fpfn, place->lpfn, in amdgpu_gtt_mgr_new() 210 * @place: The place for the new allocation 217 const struct ttm_place *place, in amdgpu_gtt_mgr_intersects() argument 220 return !place->lpfn || amdgpu_gtt_mgr_has_gart_addr(res); in amdgpu_gtt_mgr_intersects() 228 * @place: The place for the new allocation [all …]
|
H A D | amdgpu_vram_mgr.c | 407 const struct ttm_place *place, in amdgpu_dummy_vram_mgr_compatible() argument 416 const struct ttm_place *place, in amdgpu_dummy_vram_mgr_intersects() argument 431 const struct ttm_place *place, in amdgpu_dummy_vram_mgr_new() argument 443 * @place: placement flags and restrictions 450 const struct ttm_place *place, in amdgpu_vram_mgr_new() argument 465 lpfn = (u64)place->lpfn << PAGE_SHIFT; in amdgpu_vram_mgr_new() 469 fpfn = (u64)place->fpfn << PAGE_SHIFT; in amdgpu_vram_mgr_new() 492 ttm_resource_init(tbo, place, &vres->base); in amdgpu_vram_mgr_new() 502 if (place->flags & TTM_PL_FLAG_TOPDOWN) in amdgpu_vram_mgr_new() 554 !(place->flags & TTM_PL_FLAG_CONTIGUOUS)) { in amdgpu_vram_mgr_new() [all …]
|
/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_range_manager.c | 60 const struct ttm_place *place, in ttm_range_man_alloc() argument 70 lpfn = place->lpfn; in ttm_range_man_alloc() 79 if (place->flags & TTM_PL_FLAG_TOPDOWN) in ttm_range_man_alloc() 82 ttm_resource_init(bo, place, &node->base); in ttm_range_man_alloc() 88 place->fpfn, lpfn, mode); in ttm_range_man_alloc() 118 const struct ttm_place *place, in ttm_range_man_intersects() argument 125 if (place->fpfn >= (node->start + num_pages) || in ttm_range_man_intersects() 126 (place->lpfn && place->lpfn <= node->start)) in ttm_range_man_intersects() 134 const struct ttm_place *place, in ttm_range_man_compatible() argument 140 if (node->start < place->fpfn || in ttm_range_man_compatible() [all …]
|
H A D | ttm_resource.c | 297 * @place: placement of the resource 303 const struct ttm_place *place, in ttm_resource_init() argument 310 res->mem_type = place->mem_type; in ttm_resource_init() 311 res->placement = place->flags; in ttm_resource_init() 318 man = ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_init() 352 const struct ttm_place *place, in ttm_resource_alloc() argument 356 ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_alloc() 359 ret = man->func->alloc(man, bo, place, res_ptr); in ttm_resource_alloc() 391 * @place: The placement to test 394 * Test if @res intersects with @place and @size. Used for testing if evictions [all …]
|
H A D | ttm_bo.c | 172 * This is the place to put in driver specific hooks to release 414 * @place: the placement we need to make room for 419 const struct ttm_place *place) in ttm_bo_eviction_valuable() argument 431 return ttm_resource_intersects(bdev, res, place, bo->base.size); in ttm_bo_eviction_valuable() 494 /** @place: The place passed to the resource allocation. */ 495 const struct ttm_place *place; member 510 if (bo->pin_count || !bo->bdev->funcs->eviction_valuable(bo, evict_walk->place)) in ttm_bo_evict_cb() 526 lret = ttm_resource_alloc(evict_walk->evictor, evict_walk->place, in ttm_bo_evict_cb() 544 const struct ttm_place *place, in ttm_bo_evict_alloc() argument 556 .place = place, in ttm_bo_evict_alloc() [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_mem.c | 192 const struct ttm_place *place, in nouveau_mem_intersects() argument 198 if (place->fpfn >= (res->start + num_pages) || in nouveau_mem_intersects() 199 (place->lpfn && place->lpfn <= res->start)) in nouveau_mem_intersects() 207 const struct ttm_place *place, in nouveau_mem_compatible() argument 212 if (res->start < place->fpfn || in nouveau_mem_compatible() 213 (place->lpfn && (res->start + num_pages) > place->lpfn)) in nouveau_mem_compatible()
|
H A D | nouveau_ttm.c | 48 const struct ttm_place *place, in nouveau_manager_intersects() argument 51 return nouveau_mem_intersects(res, place, size); in nouveau_manager_intersects() 57 const struct ttm_place *place, in nouveau_manager_compatible() argument 60 return nouveau_mem_compatible(res, place, size); in nouveau_manager_compatible() 66 const struct ttm_place *place, in nouveau_vram_manager_new() argument 80 ttm_resource_init(bo, place, *res); in nouveau_vram_manager_new() 101 const struct ttm_place *place, in nouveau_gart_manager_new() argument 112 ttm_resource_init(bo, place, *res); in nouveau_gart_manager_new() 127 const struct ttm_place *place, in nv04_gart_manager_new() argument 140 ttm_resource_init(bo, place, *res); in nv04_gart_manager_new()
|
/linux/arch/arm64/kernel/pi/ |
H A D | relocate.c | 17 u64 *place = NULL; in relocate_kernel() local 55 place = (u64 *)(*relr + offset); in relocate_kernel() 56 *place++ += offset; in relocate_kernel() 58 for (u64 *p = place, r = *relr >> 1; r; p++, r >>= 1) in relocate_kernel() 61 place += 63; in relocate_kernel()
|
/linux/include/drm/ttm/ |
H A D | ttm_resource.h | 95 * @place: Placement details. 99 * by @man. Placement details if applicable are given by @place. If 113 const struct ttm_place *place, 133 * @place: Placement to check against. 136 * Test if @res intersects with @place + @size. Used to judge if 141 const struct ttm_place *place, 149 * @place: Placement to check against. 152 * Test if @res compatible with @place + @size. Used to check of 157 const struct ttm_place *place, 428 const struct ttm_place *place, [all …]
|
/linux/Documentation/hwmon/ |
H A D | k8temp.rst | 36 temp1_input temperature of Core 0 and "place" 0 37 temp2_input temperature of Core 0 and "place" 1 38 temp3_input temperature of Core 1 and "place" 0 39 temp4_input temperature of Core 1 and "place" 1
|
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_ttm.c | 127 struct ttm_place *place, in i915_ttm_place_from_region() argument 132 memset(place, 0, sizeof(*place)); in i915_ttm_place_from_region() 133 place->mem_type = intel_region_to_ttm_type(mr); in i915_ttm_place_from_region() 139 place->flags |= TTM_PL_FLAG_CONTIGUOUS; in i915_ttm_place_from_region() 141 WARN_ON(overflows_type(offset >> PAGE_SHIFT, place->fpfn)); in i915_ttm_place_from_region() 142 place->fpfn = offset >> PAGE_SHIFT; in i915_ttm_place_from_region() 143 WARN_ON(overflows_type(place->fpfn + (size >> PAGE_SHIFT), place->lpfn)); in i915_ttm_place_from_region() 144 place->lpfn = place->fpfn + (size >> PAGE_SHIFT); in i915_ttm_place_from_region() 147 place->flags |= TTM_PL_FLAG_TOPDOWN; in i915_ttm_place_from_region() 149 place->fpfn = 0; in i915_ttm_place_from_region() [all …]
|
/linux/include/uapi/linux/ |
H A D | coda.h | 374 char *data; /* Place holder for data. */ 380 caddr_t data; /* Place holder for data. */ 427 int name; /* Place holder for data. */ 445 int name; /* Place holder for data. */ 459 int name; /* Place holder for data. */ 470 struct CodaFid destFid; /* Directory in which to place link */ 471 int tname; /* Place holder for data. */ 497 int name; /* Place holder for data. */ 511 int name; /* Place holder for data. */ 540 caddr_t data; /* Place holder for data. */
|