Home
last modified time | relevance | path

Searched full:place (Results 1 – 25 of 2540) sorted by relevance

12345678910>>...102

/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
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 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
307 struct ttm_place *place; ttm_bo_validate_failed_alloc() local
336 struct ttm_place *place; ttm_bo_validate_pinned() local
381 struct ttm_place *place; ttm_bo_validate_same_placement() local
528 struct ttm_place *place; ttm_bo_validate_no_placement_signaled() local
599 struct ttm_place *place; ttm_bo_validate_no_placement_not_signaled() local
651 struct ttm_place *place; ttm_bo_validate_move_fence_signaled() local
773 struct ttm_place *place; ttm_bo_validate_happy_evict() local
825 struct ttm_place *place; ttm_bo_validate_all_pinned_evict() local
875 struct ttm_place *place; ttm_bo_validate_allowed_only_evict() local
941 struct ttm_place *place; ttm_bo_validate_deleted_evict() local
989 struct ttm_place *place; ttm_bo_validate_busy_domain_evict() local
1043 struct ttm_place *place; ttm_bo_validate_evict_gutting() local
[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 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 Dttm_mock_manager.c28 const struct ttm_place *place, in ttm_mock_manager_alloc() argument
45 ttm_resource_init(bo, place, &mock_res->base); in ttm_mock_manager_alloc()
48 if (place->flags & TTM_PL_FLAG_TOPDOWN) in ttm_mock_manager_alloc()
51 if (place->flags & TTM_PL_FLAG_CONTIGUOUS) in ttm_mock_manager_alloc()
153 const struct ttm_place *place, in ttm_bad_manager_alloc() argument
161 const struct ttm_place *place, in ttm_busy_manager_alloc() argument
174 const struct ttm_place *place, in ttm_bad_manager_compatible() argument
H A Dttm_kunit_helpers.c204 struct ttm_place *place; in ttm_place_kunit_init() local
206 place = kunit_kzalloc(test, sizeof(*place), GFP_KERNEL); in ttm_place_kunit_init()
207 KUNIT_ASSERT_NOT_NULL(test, place); in ttm_place_kunit_init()
209 place->mem_type = mem_type; in ttm_place_kunit_init()
210 place->flags = flags; in ttm_place_kunit_init()
212 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()
67 * The ELF psABI for AArch64 documents the 16-bit and 32-bit place in reloc_data()
126 reloc_insn_movw(enum aarch64_reloc_op op,__le32 * place,u64 val,int lsb,enum aarch64_insn_movw_imm_type imm_type,struct module * me) reloc_insn_movw() argument
168 reloc_insn_imm(enum aarch64_reloc_op op,__le32 * place,u64 val,int lsb,int len,enum aarch64_insn_imm_type imm_type,struct module * me) reloc_insn_imm() argument
205 reloc_insn_adrp(struct module * mod,Elf64_Shdr * sechdrs,__le32 * place,u64 val,struct module * me) reloc_insn_adrp() argument
[all...]
/linux/drivers/gpu/drm/xe/
H A Dxe_ttm_vram_mgr.c50 const struct ttm_place *place, in xe_ttm_vram_mgr_new() argument
60 lpfn = place->lpfn; in xe_ttm_vram_mgr_new()
64 if (tbo->base.size >> PAGE_SHIFT > (lpfn - place->fpfn)) in xe_ttm_vram_mgr_new()
71 ttm_resource_init(tbo, place, &vres->base); in xe_ttm_vram_mgr_new()
81 if (place->flags & TTM_PL_FLAG_TOPDOWN) in xe_ttm_vram_mgr_new()
84 if (place->fpfn || lpfn != man->size >> PAGE_SHIFT) in xe_ttm_vram_mgr_new()
113 if (place->fpfn + (size >> PAGE_SHIFT) != lpfn && in xe_ttm_vram_mgr_new()
114 place->flags & TTM_PL_FLAG_CONTIGUOUS) { in xe_ttm_vram_mgr_new()
118 lpfn = max_t(unsigned long, place->fpfn + (size >> PAGE_SHIFT), lpfn); in xe_ttm_vram_mgr_new()
121 err = drm_buddy_alloc_blocks(mm, (u64)place in xe_ttm_vram_mgr_new()
220 xe_ttm_vram_mgr_intersects(struct ttm_resource_manager * man,struct ttm_resource * res,const struct ttm_place * place,size_t size) xe_ttm_vram_mgr_intersects() argument
250 xe_ttm_vram_mgr_compatible(struct ttm_resource_manager * man,struct ttm_resource * res,const struct ttm_place * place,size_t size) xe_ttm_vram_mgr_compatible() argument
[all...]
/linux/drivers/gpu/drm/i915/
H A 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 in i915_ttm_buddy_man_intersects()
192 i915_ttm_buddy_man_compatible(struct ttm_resource_manager * man,struct ttm_resource * res,const struct ttm_place * place,size_t size) i915_ttm_buddy_man_compatible() argument
[all...]
H A 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 in intel_region_ttm_resource_alloc()
[all...]
/linux/tools/testing/selftests/ftrace/test.d/dynevent/
H A Dgeneric_clear_event.tc4 # requires: dynamic_events "place: [<module>:]<symbol>":README "place (kretprobe): [<module>:]<symbol>":README "s:[synthetic/]":README
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 Dadd_remove_kprobe.tc4 # requires: dynamic_events "place: [<module>:]<symbol>":README "place (kretprobe): [<module>:]<symbol>":README
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 Dclear_select_events.tc4 # requires: dynamic_events kprobe_events synthetic_events "place: [<module>:]<symbol>":README "place (kretprobe): [<module>:]<symbol>":README "s:[synthetic/]":README
9 PLACE=$FUNCTION_FORK
12 echo "p:myevent1 $PLACE" >> dynamic_events
14 echo "r:myevent2 $PLACE" >> dynamic_events
H A Dadd_remove_fprobe.tc9 PLACE=$FUNCTION_FORK
17 echo "f:myevent1 $PLACE" >> dynamic_events
19 echo "f:myevent2 $PLACE%return" >> dynamic_events
32 grep -q $PLACE enabled_functions
74 echo "f:myevent4 $PLACE" >> dynamic_events
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gtt_mgr.c108 * @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
235 amdgpu_gtt_mgr_compatible(struct ttm_resource_manager * man,struct ttm_resource * res,const struct ttm_place * place,size_t size) amdgpu_gtt_mgr_compatible() argument
[all...]
H A 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
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 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
[all...]
H A Dttm_bo.c175 * This is the place to put in driver specific hooks to release
417 * @place: the placement we need to make room for
422 const struct ttm_place *place) in ttm_bo_eviction_valuable() argument
434 return ttm_resource_intersects(bdev, res, place, bo->base.size); in ttm_bo_eviction_valuable()
498 /** @place: The place passed to the resource allocation. */
499 const struct ttm_place *place; member
525 if (bo->pin_count || !bo->bdev->funcs->eviction_valuable(bo, evict_walk->place)) in ttm_bo_evict_cb()
541 lret = ttm_resource_alloc(evict_walk->evictor, evict_walk->place, in ttm_bo_evict_cb()
559 const struct ttm_place *place, in ttm_bo_evict_alloc() argument
726 const struct ttm_place *place = &placement->placement[i]; ttm_bo_alloc_resource() local
1108 struct ttm_place place = {.mem_type = bo->resource->mem_type}; ttm_bo_swapout_cb() local
[all...]
/linux/rust/pin-init/
H A DREADME.md11 Library to safely and fallibly initialize pinned `struct`s using in-place constructors.
15 It also allows in-place initialization of big `struct`s that would otherwise produce a stack
21 There are cases when you want to in-place initialize a struct. For example when it is very big
28 This library allows you to do in-place initialization safely.
51 To initialize a `struct` with an in-place constructor you will need two things:
52 - an in-place constructor,
56 To get an in-place constructor there are generally three options:
57 - directly creating an in-place constructor using the [`pin_init!`] macro,
58 - a custom function/macro returning an in-place constructor provided by someone else,
61 Aside from pinned initialization, this library also supports in-place constructio
[all...]
/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, *re in nv04_gart_manager_new()
[all...]
/linux/include/drm/ttm/
H A Dttm_resource.h96 * @place: Placement details.
100 * by @man. Placement details if applicable are given by @place. If
114 const struct ttm_place *place,
134 * @place: Placement to check against.
137 * Test if @res intersects with @place + @size. Used to judge if
142 const struct ttm_place *place,
150 * @place: Placement to check against.
153 * Test if @res compatible with @place + @size. Used to check of
158 const struct ttm_place *place,
440 const struct ttm_place *place,
[all...]
/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/drivers/gpu/drm/i915/gem/
H A 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 in i915_ttm_place_from_region()
355 i915_ttm_eviction_valuable(struct ttm_buffer_object * bo,const struct ttm_place * place) i915_ttm_eviction_valuable() argument
425 struct ttm_placement place = {}; i915_ttm_purge() local
465 struct ttm_placement place = {}; i915_ttm_shrink() local
[all...]
/linux/arch/sparc/kernel/
H A Divec.S5 * [high 32-bits] MMU Context Argument 0, place in %g5
6 * DATA 1: Address Argument 1, place in %g1
7 * DATA 2: Address Argument 2, place in %g7

12345678910>>...102