Home
last modified time | relevance | path

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

12345678910>>...14

/linux/drivers/gpu/drm/ttm/tests/
H A 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 …]
H A 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, NULL); in ttm_bo_unreserve_basic()
267 ttm_resource_alloc(bo, place, &res2, NULL); 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, NULL); in ttm_bo_unreserve_pinned()
308 err = ttm_resource_alloc(bo, place, &res2, NULL); 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 Dttm_kunit_helpers.c200 struct ttm_place *place; in ttm_place_kunit_init() local
202 place = kunit_kzalloc(test, sizeof(*place), GFP_KERNEL); in ttm_place_kunit_init()
203 KUNIT_ASSERT_NOT_NULL(test, place); in ttm_place_kunit_init()
205 place->mem_type = mem_type; in ttm_place_kunit_init()
206 place->flags = flags; in ttm_place_kunit_init()
208 return place; in ttm_place_kunit_init()
/linux/arch/arm64/kernel/
H A Dmodule.c35 static u64 do_reloc(enum aarch64_reloc_op reloc_op, __le32 *place, u64 val) in do_reloc() argument
41 return val - (u64)place; in do_reloc()
43 return (val & ~0xfff) - ((u64)place & ~0xfff); in do_reloc()
52 #define WRITE_PLACE(place, val, mod) do { \ argument
56 *(place) = __val; \
58 aarch64_insn_copy(place, &(__val), sizeof(*place)); \
61 static int reloc_data(enum aarch64_reloc_op op, void *place, u64 val, int len, in reloc_data() argument
64 s64 sval = do_reloc(op, place, val); in reloc_data()
80 WRITE_PLACE((s16 *)place, sval, me); in reloc_data()
96 WRITE_PLACE((s32 *)place, sval, me); in reloc_data()
[all …]
/linux/drivers/gpu/drm/ttm/
H A Dttm_range_manager.c62 const struct ttm_place *place, in ttm_range_man_alloc() argument
72 lpfn = place->lpfn; in ttm_range_man_alloc()
81 if (place->flags & TTM_PL_FLAG_TOPDOWN) in ttm_range_man_alloc()
84 ttm_resource_init(bo, place, &node->base); in ttm_range_man_alloc()
90 place->fpfn, lpfn, mode); in ttm_range_man_alloc()
120 const struct ttm_place *place, in ttm_range_man_intersects() argument
127 if (place->fpfn >= (node->start + num_pages) || in ttm_range_man_intersects()
128 (place->lpfn && place->lpfn <= node->start)) in ttm_range_man_intersects()
136 const struct ttm_place *place, in ttm_range_man_compatible() argument
142 if (node->start < place->fpfn || in ttm_range_man_compatible()
[all …]
H A Dttm_bo.c421 const struct ttm_place *place) in ttm_bo_eviction_valuable() argument
433 return ttm_resource_intersects(bo->bdev, res, place, bo->base.size); in ttm_bo_eviction_valuable()
498 const struct ttm_place *place; member
524 if (bo->pin_count || !bo->bdev->funcs->eviction_valuable(bo, evict_walk->place)) in ttm_bo_evict_cb()
540 lret = ttm_resource_alloc(evict_walk->evictor, evict_walk->place, in ttm_bo_evict_cb()
558 const struct ttm_place *place, in ttm_bo_evict_alloc() argument
573 .place = place, in ttm_bo_evict_alloc()
726 const struct ttm_place *place = &placement->placement[i]; in ttm_bo_alloc_resource() local
731 man = ttm_manager_type(bdev, place->mem_type); in ttm_bo_alloc_resource()
735 if (place->flags & (force_space ? TTM_PL_FLAG_DESIRED : in ttm_bo_alloc_resource()
[all …]
H A Dttm_resource.c341 const struct ttm_place *place, in ttm_resource_init() argument
348 res->mem_type = place->mem_type; in ttm_resource_init()
349 res->placement = place->flags; in ttm_resource_init()
356 man = ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_init()
390 const struct ttm_place *place, in ttm_resource_alloc() argument
395 ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_alloc()
408 ret = man->func->alloc(man, bo, place, res_ptr); in ttm_resource_alloc()
460 const struct ttm_place *place, in ttm_resource_intersects() argument
466 if (!place || !man->func->intersects) in ttm_resource_intersects()
469 return man->func->intersects(man, res, place, size); in ttm_resource_intersects()
[all …]
H A 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/arch/arm64/kernel/pi/
H A 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/drivers/gpu/drm/nouveau/
H A 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()
H A 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()
H A Dnouveau_mem.h29 const struct ttm_place *place,
32 const struct ttm_place *place,
/linux/include/drm/ttm/
H A Dttm_resource.h124 const struct ttm_place *place,
152 const struct ttm_place *place,
168 const struct ttm_place *place,
456 const struct ttm_place *place,
462 const struct ttm_place *place,
468 const struct ttm_place *place,
/linux/Documentation/hwmon/
H A 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/rust/pin-init/
H A DREADME.md23 Library to safely and fallibly initialize pinned `struct`s using in-place constructors.
27 It also allows in-place initialization of big `struct`s that would otherwise produce a stack
33 There are cases when you want to in-place initialize a struct. For example when it is very big
40 This library allows you to do in-place initialization safely.
63 To initialize a `struct` with an in-place constructor you will need two things:
64 - an in-place constructor,
68 To get an in-place constructor there are generally three options:
69 - directly creating an in-place constructor using the [`pin_init!`] macro,
70 - a custom function/macro returning an in-place constructor provided by someone else,
73 Aside from pinned initialization, this library also supports in-place constructio
[all...]
/linux/drivers/gpu/drm/xe/
H A Dxe_ttm_sys_mgr.c30 const struct ttm_place *place, in xe_ttm_sys_mgr_new() argument
41 ttm_resource_init(tbo, place, &node->base.base); in xe_ttm_sys_mgr_new()
43 if (!(place->flags & TTM_PL_FLAG_TEMPORARY) && in xe_ttm_sys_mgr_new()
H A Dxe_bo.c246 struct ttm_place place = { .mem_type = mem_type }; in add_vram() local
260 place.flags |= TTM_PL_FLAG_CONTIGUOUS; in add_vram()
264 place.fpfn = 0; in add_vram()
265 place.lpfn = io_size >> PAGE_SHIFT; in add_vram()
267 place.flags |= TTM_PL_FLAG_TOPDOWN; in add_vram()
270 places[*c] = place; in add_vram()
922 struct ttm_placement place = {}; in xe_ttm_bo_purge() local
947 ret = ttm_bo_validate(ttm_bo, &place, ctx); in xe_ttm_bo_purge()
1224 xe_bo_eviction_valuable(struct ttm_buffer_object *bo, const struct ttm_place *place) in xe_bo_eviction_valuable() argument
1228 if (!ttm_bo_eviction_valuable(bo, place)) in xe_bo_eviction_valuable()
[all …]
/linux/arch/mips/include/asm/mach-ip27/
H A 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/drivers/net/wireless/realtek/rtlwifi/rtl8192d/
H A 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()
/linux/arch/arm64/include/asm/
H A Dmodule.h46 static inline bool is_forbidden_offset_for_adrp(void *place) in is_forbidden_offset_for_adrp() argument
49 ((u64)place & 0xfff) >= 0xff8; in is_forbidden_offset_for_adrp()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_system_manager.c37 const struct ttm_place *place, in vmw_sys_man_alloc() argument
44 ttm_resource_init(bo, place, *res); in vmw_sys_man_alloc()
/linux/drivers/hwmon/
H A Dk8temp.c91 int core, place; in k8temp_read() local
96 place = channel & 1; in k8temp_read()
105 if (place) in k8temp_read()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_preempt_mgr.c61 const struct ttm_place *place, in amdgpu_preempt_mgr_new() argument
68 ttm_resource_init(tbo, place, *res); in amdgpu_preempt_mgr_new()
/linux/Documentation/trace/rv/
H A Dmonitor_wip.rst12 that verifies if the wakeup events always take place with
30 The wakeup event always takes place with preemption disabled because
/linux/Documentation/usb/
H A Dmisc_usbsevseg.rst47 to set the nth decimal place calculate 10 ** n
50 For example, to set the 0th and 3rd decimal place

12345678910>>...14