/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 186 struct ttm_place *place; ttm_resource_fini_basic() local 231 struct ttm_place *place; ttm_resource_manager_usage_basic() local 269 struct ttm_place *place; ttm_sys_man_alloc_basic() local 294 struct ttm_place *place; ttm_sys_man_free_basic() local [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 in ttm_bo_unreserve_bulk() 388 struct ttm_place *place; ttm_bo_put_basic() local 503 struct ttm_place *place; ttm_bo_pin_unpin_resource() local 554 struct ttm_place *place; ttm_bo_multiple_pin_one_unpin() local [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/arch/arm64/kernel/ |
H A D | module.c | 34 static u64 do_reloc(enum aarch64_reloc_op reloc_op, __le32 *place, u64 val) in do_reloc() argument 40 return val - (u64)place; in do_reloc() 42 return (val & ~0xfff) - ((u64)place & ~0xfff); in do_reloc() 51 static int reloc_data(enum aarch64_reloc_op op, void *place, u64 val, int len) in reloc_data() argument 53 s64 sval = do_reloc(op, place, val); in reloc_data() 69 *(s16 *)place = sval; in reloc_data() 85 *(s32 *)place = sval; in reloc_data() 101 *(s64 *)place = sval; in reloc_data() 115 static int reloc_insn_movw(enum aarch64_reloc_op op, __le32 *place, u64 val, in reloc_insn_movw() argument 120 u32 insn = le32_to_cpu(*place); in reloc_insn_movw() [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/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_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 in ttm_bo_bounce_temp_buffer() 419 const struct ttm_place *place) in ttm_bo_bounce_temp_buffer() 431 return ttm_resource_intersects(bdev, res, place, bo->base.size); in ttm_bo_evict() 494 /** @place: The place passed to the resource allocation. */ in ttm_bo_eviction_valuable() 495 const struct ttm_place *place; in ttm_bo_eviction_valuable() 510 if (bo->pin_count || !bo->bdev->funcs->eviction_valuable(bo, evict_walk->place)) 526 lret = ttm_resource_alloc(evict_walk->evictor, evict_walk->place, in ttm_bo_evict_swapout_allowable() 544 const struct ttm_place *place, in ttm_bo_evict_swapout_allowable() 493 ttm_bo_eviction_valuable(struct ttm_buffer_object * bo,const struct ttm_place * place) ttm_bo_eviction_valuable() argument 521 ttm_bo_evict_swapout_allowable(struct ttm_buffer_object * bo,struct ttm_operation_ctx * ctx,const struct ttm_place * place,bool * locked,bool * busy) ttm_bo_evict_swapout_allowable() argument 596 ttm_mem_evict_first(struct ttm_device * bdev,struct ttm_resource_manager * man,const struct ttm_place * place,struct ttm_operation_ctx * ctx,struct ww_acquire_ctx * ticket) ttm_mem_evict_first() argument 761 const struct ttm_place *place = &placement->placement[i]; ttm_bo_alloc_resource() local 1124 struct ttm_place place; ttm_bo_swapout() local [all...] |
H A D | ttm_resource.c | 281 * @place: placement of the resource in ttm_resource_intersects() 287 const struct ttm_place *place, in ttm_resource_intersects() 294 res->mem_type = place->mem_type; 295 res->placement = place->flags; 302 man = ttm_manager_type(bo->bdev, place->mem_type); 336 const struct ttm_place *place, in ttm_resource_compatible() 340 ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_set_bo() 343 ret = man->func->alloc(man, bo, place, res_ptr); in ttm_resource_set_bo() 375 * @place: The placement to test 378 * Test if @res intersects with @place an 182 ttm_resource_init(struct ttm_buffer_object * bo,const struct ttm_place * place,struct ttm_resource * res) ttm_resource_init() argument 231 ttm_resource_alloc(struct ttm_buffer_object * bo,const struct ttm_place * place,struct ttm_resource ** res_ptr) ttm_resource_alloc() argument 280 ttm_resource_intersects(struct ttm_device * bdev,struct ttm_resource * res,const struct ttm_place * place,size_t size) ttm_resource_intersects() argument 316 const struct ttm_place *place = &placement->placement[i]; ttm_resource_compatible() local [all...] |
H A D | ttm_sys_manager.c | 12 const struct ttm_place *place, in ttm_sys_man_alloc() argument 19 ttm_resource_init(bo, place, *res); in ttm_sys_man_alloc()
|
/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() 868 struct ttm_place place = { in xe_bo_evict_pinned() 872 .placement = &place, in xe_bo_evict_pinned() 1390 struct ttm_place *place = bo->placements; in __xe_bo_fixed_placement() 1395 place in __xe_bo_fixed_placement() 851 struct ttm_place place = { xe_bo_evict_pinned() local 1372 struct ttm_place *place = bo->placements; __xe_bo_fixed_placement() local 1735 struct ttm_place *place = &(bo->placements[0]); xe_bo_pin() local 1802 struct ttm_place *place = &(bo->placements[0]); xe_bo_unpin() local 2145 xe_place_from_ttm_type(u32 mem_type,struct ttm_place * place) xe_place_from_ttm_type() argument [all...] |
H A D | xe_ttm_sys_mgr.c | 31 const struct ttm_place *place, in xe_ttm_sys_mgr_new() argument 42 ttm_resource_init(tbo, place, &node->base.base); in xe_ttm_sys_mgr_new() 44 if (!(place->flags & TTM_PL_FLAG_TEMPORARY) && in xe_ttm_sys_mgr_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/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gtt_mgr.c | 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() 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() 235 const struct ttm_place *place, in amdgpu_gtt_mgr_compatible() argument 238 return !place->lpfn || amdgpu_gtt_mgr_has_gart_addr(res); in amdgpu_gtt_mgr_compatible()
|
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 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() 797 const struct ttm_place *place, in amdgpu_vram_mgr_intersects() argument [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_mem.c | 192 const struct ttm_place *place, 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, 212 if (res->start < place->fpfn || in nouveau_mem_compatible() 213 (place->lpfn && (res->start + num_pages) > place->lpfn)) in nouveau_mem_compatible() 194 nouveau_mem_intersects(struct ttm_resource * res,const struct ttm_place * place,size_t size) nouveau_mem_intersects() argument 209 nouveau_mem_compatible(struct ttm_resource * res,const struct ttm_place * place,size_t size) nouveau_mem_compatible() argument
|
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, *re in nv04_gart_manager_new() [all...] |
/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/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/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/net/wireless/realtek/rtlwifi/rtl8192d/ |
H A D | phy_common.c | 392 u8 place = chnl; in _rtl92c_phy_get_rightchnlplace() local 395 for (place = 14; place < ARRAY_SIZE(channel_all); place++) { in _rtl92c_phy_get_rightchnlplace() 396 if (channel_all[place] == chnl) { in _rtl92c_phy_get_rightchnlplace() 397 place++; in _rtl92c_phy_get_rightchnlplace() 402 return place; in _rtl92c_phy_get_rightchnlplace() 488 u8 place; in rtl92d_get_rightchnlplace_for_iqk() local 491 for (place = 14; place < ARRAY_SIZE(channel_all); place++) { in rtl92d_get_rightchnlplace_for_iqk() 492 if (channel_all[place] == chnl) in rtl92d_get_rightchnlplace_for_iqk() 493 return place - 13; in rtl92d_get_rightchnlplace_for_iqk()
|
/linux/arch/mips/include/asm/mach-ip27/ |
H A D | kernel-entry-init.h | 37 dsll t1, NASID_SHFT # Shift text nasid into place 43 dsll t1, 6 # Get pfn into place 44 dsll t2, 6 # Get pfn into place
|