Home
last modified time | relevance | path

Searched refs:place (Results 1 – 25 of 493) sorted by relevance

12345678910>>...20

/linux-6.12.1/drivers/gpu/drm/ttm/tests/
Dttm_resource_test.c21 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 …]
Dttm_bo_validate_test.c113 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 …]
Dttm_bo_test.c243 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 …]
Dttm_mock_manager.c25 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
Dttm_kunit_helpers.c201 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-6.12.1/arch/arm64/kernel/
Dmodule.c34 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-6.12.1/drivers/gpu/drm/i915/
Di915_ttm_buddy_manager.c36 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 …]
Dintel_region_ttm.c204 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-6.12.1/drivers/gpu/drm/ttm/
Dttm_range_manager.c60 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 …]
Dttm_bo.c419 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()
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()
689 const struct ttm_place *place = &placement->placement[i]; in ttm_bo_alloc_resource() local
693 man = ttm_manager_type(bdev, place->mem_type); in ttm_bo_alloc_resource()
697 if (place->flags & (force_space ? TTM_PL_FLAG_DESIRED : in ttm_bo_alloc_resource()
[all …]
Dttm_resource.c287 const struct ttm_place *place, in ttm_resource_init() argument
294 res->mem_type = place->mem_type; in ttm_resource_init()
295 res->placement = place->flags; in ttm_resource_init()
302 man = ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_init()
336 const struct ttm_place *place, in ttm_resource_alloc() argument
340 ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_alloc()
343 ret = man->func->alloc(man, bo, place, res_ptr); in ttm_resource_alloc()
385 const struct ttm_place *place, in ttm_resource_intersects() argument
394 if (!place || !man->func->intersects) in ttm_resource_intersects()
397 return man->func->intersects(man, res, place, size); in ttm_resource_intersects()
[all …]
Dttm_sys_manager.c12 const struct ttm_place *place, in ttm_sys_man_alloc() argument
19 ttm_resource_init(bo, place, *res); in ttm_sys_man_alloc()
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_ttm_vram_mgr.c49 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 …]
Dxe_bo.c168 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() local
872 .placement = &place, in xe_bo_evict_pinned()
940 struct ttm_place *place = &bo->placements[0]; in xe_bo_restore_pinned() local
957 if (!mem_type_is_vram(place->mem_type)) in xe_bo_restore_pinned()
[all …]
Dxe_ttm_sys_mgr.c31 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-6.12.1/arch/arm64/kernel/pi/
Drelocate.c17 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-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gtt_mgr.c115 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()
Damdgpu_vram_mgr.c407 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-6.12.1/drivers/gpu/drm/nouveau/
Dnouveau_mem.c192 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()
Dnouveau_ttm.c48 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-6.12.1/include/drm/ttm/
Dttm_resource.h113 const struct ttm_place *place,
141 const struct ttm_place *place,
157 const struct ttm_place *place,
428 const struct ttm_place *place,
434 const struct ttm_place *place,
439 const struct ttm_place *place,
/linux-6.12.1/drivers/gpu/drm/i915/gem/
Di915_gem_ttm.c127 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-6.12.1/Documentation/hwmon/
Dk8temp.rst36 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-6.12.1/arch/mips/include/asm/mach-ip27/
Dkernel-entry-init.h37 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
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192d/
Dphy_common.c392 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()

12345678910>>...20