Home
last modified time | relevance | path

Searched refs:mem_type (Results 1 – 25 of 142) sorted by relevance

123456

/linux/tools/testing/selftests/arm64/mte/
A Dcheck_buffer_fill.c28 static int check_buffer_by_byte(int mem_type, int mode) in check_buffer_by_byte() argument
38 ptr = (char *)mte_allocate_memory(sizes[i], mem_type, 0, true); in check_buffer_by_byte()
52 mte_free_memory((void *)ptr, sizes[i], mem_type, true); in check_buffer_by_byte()
76 if (check_allocated_memory_range(ptr, sizes[i], mem_type, in check_buffer_underflow_by_byte()
172 if (check_allocated_memory_range(ptr, sizes[i], mem_type, in check_buffer_overflow_by_byte()
276 mte_free_memory((void *)src, size, mem_type, false); in check_buffer_by_block_iterate()
288 mte_free_memory((void *)dst, size, mem_type, false); in check_buffer_by_block_iterate()
299 mte_free_memory((void *)src, size, mem_type, true); in check_buffer_by_block_iterate()
326 mte_free_memory((void *)src, size, mem_type, in check_buffer_by_block_iterate()
328 mte_free_memory((void *)dst, size, mem_type, in check_buffer_by_block_iterate()
[all …]
A Dmte_common_util.c127 if (mem_type != USE_MALLOC && mem_type != USE_MMAP && in __mte_allocate_memory_range()
128 mem_type != USE_MPROTECT) { in __mte_allocate_memory_range()
132 if (mem_type == USE_MALLOC) in __mte_allocate_memory_range()
136 if (mem_type == USE_MMAP) in __mte_allocate_memory_range()
149 if (mem_type == USE_MPROTECT) { in __mte_allocate_memory_range()
178 if (mem_type != USE_MPROTECT && mem_type != USE_MMAP) { in mte_allocate_file_memory()
205 if (mem_type != USE_MPROTECT && mem_type != USE_MMAP) { in mte_allocate_file_memory_tag_range()
228 switch (mem_type) { in __mte_free_memory_range()
244 void mte_free_memory_tag_range(void *ptr, size_t size, int mem_type, in mte_free_memory_tag_range() argument
250 void mte_free_memory(void *ptr, size_t size, int mem_type, bool tags) in mte_free_memory() argument
[all …]
A Dcheck_tags_inclusion.c43 static int check_single_included_tags(int mem_type, int mode) in check_single_included_tags() argument
50 mem_type, false) != KSFT_PASS) in check_single_included_tags()
73 static int check_multiple_included_tags(int mem_type, int mode) in check_multiple_included_tags() argument
81 mem_type, false) != KSFT_PASS) in check_multiple_included_tags()
105 static int check_all_included_tags(int mem_type, int mode) in check_all_included_tags() argument
112 mem_type, false) != KSFT_PASS) in check_all_included_tags()
129 static int check_none_included_tags(int mem_type, int mode) in check_none_included_tags() argument
134 ptr = (char *)mte_allocate_memory(BUFFER_SIZE, mem_type, 0, false); in check_none_included_tags()
135 if (check_allocated_memory(ptr, BUFFER_SIZE, mem_type, false) != KSFT_PASS) in check_none_included_tags()
145 mte_free_memory((void *)ptr, BUFFER_SIZE, mem_type, true); in check_none_included_tags()
[all …]
A Dmte_common_util.h45 void *mte_allocate_memory(size_t size, int mem_type, int mapping, bool tags);
46 void *mte_allocate_memory_tag_range(size_t size, int mem_type, int mapping,
48 void *mte_allocate_file_memory(size_t size, int mem_type, int mapping,
50 void *mte_allocate_file_memory_tag_range(size_t size, int mem_type, int mapping,
52 void mte_free_memory(void *ptr, size_t size, int mem_type, bool tags);
53 void mte_free_memory_tag_range(void *ptr, size_t size, int mem_type,
85 int mem_type, bool tags) in check_allocated_memory() argument
94 mte_free_memory((void *)ptr, size, mem_type, false); in check_allocated_memory()
101 static inline int check_allocated_memory_range(void *ptr, size_t size, int mem_type, in check_allocated_memory_range() argument
111 mte_free_memory_tag_range((void *)ptr, size, mem_type, range_before, in check_allocated_memory_range()
A Dcheck_mmap_options.c70 map_ptr = (char *)mte_allocate_memory(map_size, mem_type, mapping, false); in check_anonymous_memory_mapping()
71 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) in check_anonymous_memory_mapping()
85 mte_free_memory((void *)map_ptr, map_size, mem_type, false); in check_anonymous_memory_mapping()
107 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_file_memory_mapping()
131 static int check_clear_prot_mte_flag(int mem_type, int mode, int mapping) in check_clear_prot_mte_flag() argument
141 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, in check_clear_prot_mte_flag()
143 if (check_allocated_memory_range(ptr, sizes[run], mem_type, in check_clear_prot_mte_flag()
149 mte_free_memory_tag_range((void *)ptr, sizes[run], mem_type, in check_clear_prot_mte_flag()
162 ptr = (char *)mte_allocate_file_memory_tag_range(sizes[run], mem_type, mapping, in check_clear_prot_mte_flag()
164 if (check_allocated_memory_range(ptr, sizes[run], mem_type, in check_clear_prot_mte_flag()
[all …]
A Dcheck_child_memory.c84 static int check_child_memory_mapping(int mem_type, int mode, int mapping) in check_child_memory_mapping() argument
93 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, in check_child_memory_mapping()
95 if (check_allocated_memory_range(ptr, sizes[run], mem_type, in check_child_memory_mapping()
99 mte_free_memory_tag_range((void *)ptr, sizes[run], mem_type, UNDERFLOW, OVERFLOW); in check_child_memory_mapping()
106 static int check_child_file_mapping(int mem_type, int mode, int mapping) in check_child_file_mapping() argument
119 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_child_file_mapping()
120 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_child_file_mapping()
A Dcheck_user_mem.c22 static int check_usermem_access_fault(int mem_type, int mode, int mapping) in check_usermem_access_fault() argument
39 ptr = mte_allocate_memory(len, mem_type, mapping, true); in check_usermem_access_fault()
40 if (check_allocated_memory(ptr, len, mem_type, true) != KSFT_PASS) { in check_usermem_access_fault()
79 mte_free_memory((void *)ptr, len, mem_type, true); in check_usermem_access_fault()
A Dcheck_ksm_options.c98 static int check_madvise_options(int mem_type, int mode, int mapping) in check_madvise_options() argument
110 ptr = mte_allocate_memory(TEST_UNIT * page_sz, mem_type, mapping, true); in check_madvise_options()
111 if (check_allocated_memory(ptr, TEST_UNIT * page_sz, mem_type, false) != KSFT_PASS) in check_madvise_options()
127 mte_free_memory(ptr, TEST_UNIT * page_sz, mem_type, true); in check_madvise_options()
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_ttm_buffer.c35 .mem_type = TTM_PL_VRAM,
49 .mem_type = VMW_PL_GMR,
56 .mem_type = VMW_PL_MOB,
71 .mem_type = TTM_PL_VRAM,
76 .mem_type = VMW_PL_GMR,
85 .mem_type = VMW_PL_GMR,
130 .mem_type = VMW_PL_GMR,
135 .mem_type = VMW_PL_MOB,
149 .mem_type = VMW_PL_GMR,
192 int mem_type; member
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ttm.c97 .mem_type = TTM_PL_SYSTEM, in amdgpu_evict_flags()
133 switch (bo->resource->mem_type) { in amdgpu_evict_flags()
248 if (mem->mem_type == TTM_PL_TT) { in amdgpu_ttm_map_buffer()
443 if (mem->mem_type == TTM_PL_SYSTEM || in amdgpu_mem_visible()
444 mem->mem_type == TTM_PL_TT) in amdgpu_mem_visible()
446 if (mem->mem_type != TTM_PL_VRAM) in amdgpu_mem_visible()
537 hop->mem_type = TTM_PL_TT; in amdgpu_bo_move()
578 switch (mem->mem_type) { in amdgpu_ttm_io_mem_reserve()
986 placements.mem_type = TTM_PL_TT; in amdgpu_ttm_alloc_gart()
1383 switch (bo->resource->mem_type) { in amdgpu_ttm_bo_eviction_valuable()
[all …]
A Damdgpu_object.c136 places[c].mem_type = TTM_PL_VRAM; in amdgpu_bo_placement_from_domain()
152 places[c].mem_type = in amdgpu_bo_placement_from_domain()
162 places[c].mem_type = TTM_PL_SYSTEM; in amdgpu_bo_placement_from_domain()
170 places[c].mem_type = AMDGPU_PL_GDS; in amdgpu_bo_placement_from_domain()
178 places[c].mem_type = AMDGPU_PL_GWS; in amdgpu_bo_placement_from_domain()
186 places[c].mem_type = AMDGPU_PL_OA; in amdgpu_bo_placement_from_domain()
194 places[c].mem_type = TTM_PL_SYSTEM; in amdgpu_bo_placement_from_domain()
890 uint32_t mem_type = bo->tbo.resource->mem_type; in amdgpu_bo_pin_restricted() local
896 if ((mem_type == TTM_PL_VRAM) && in amdgpu_bo_pin_restricted()
905 mem_type); in amdgpu_bo_pin_restricted()
[all …]
A Damdgpu_atomfirmware.c234 u8 mem_type; in amdgpu_atomfirmware_get_vram_info() local
264 mem_type = igp_info->v11.memorytype; in amdgpu_atomfirmware_get_vram_info()
282 mem_type = igp_info->v21.memorytype; in amdgpu_atomfirmware_get_vram_info()
307 mem_type = vram_module->v9.memory_type; in amdgpu_atomfirmware_get_vram_info()
309 *vram_type = convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_info()
327 mem_type = vram_module->v10.memory_type; in amdgpu_atomfirmware_get_vram_info()
329 *vram_type = convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_info()
347 mem_type = vram_module->v11.memory_type; in amdgpu_atomfirmware_get_vram_info()
349 *vram_type = convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_info()
367 mem_type = vram_module->v9.memory_type; in amdgpu_atomfirmware_get_vram_info()
[all …]
/linux/drivers/gpu/drm/ttm/
A Dttm_bo.c58 int i, mem_type; in ttm_bo_mem_space_debug() local
64 mem_type = placement->placement[i].mem_type; in ttm_bo_mem_space_debug()
66 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug()
67 man = ttm_manager_type(bo->bdev, mem_type); in ttm_bo_mem_space_debug()
118 man = ttm_manager_type(bdev, mem->mem_type); in ttm_bo_move_to_lru_tail()
125 switch (bo->resource->mem_type) { in ttm_bo_move_to_lru_tail()
200 if (mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_handle_move_mem()
577 if (bo->resource->mem_type == TTM_PL_SYSTEM) in ttm_bo_eviction_valuable()
622 if (ret && place && (bo->resource->mem_type != place->mem_type || in ttm_bo_evict_swapout_allowable()
1106 place.mem_type = bo->resource->mem_type; in ttm_bo_swapout()
[all …]
A Dttm_resource.c38 res->mem_type = place->mem_type; in ttm_resource_init()
52 ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_alloc()
64 man = ttm_manager_type(bo->bdev, (*res)->mem_type); in ttm_resource_free()
86 if ((res->mem_type == heap->mem_type) && in ttm_resource_places_compat()
/linux/drivers/gpu/drm/radeon/
A Dradeon_ttm.c88 .mem_type = TTM_PL_SYSTEM, in radeon_evict_flags()
102 switch (bo->resource->mem_type) { in radeon_evict_flags()
155 switch (old_mem->mem_type) { in radeon_move_blit()
166 switch (new_mem->mem_type) { in radeon_move_blit()
204 if (new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move()
220 old_type = old_mem->mem_type; in radeon_bo_move()
228 new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move()
233 if (old_mem->mem_type == TTM_PL_TT && in radeon_bo_move()
248 hop->mem_type = TTM_PL_TT; in radeon_bo_move()
276 switch (mem->mem_type) { in radeon_ttm_io_mem_reserve()
[all …]
A Dradeon_object.c53 unsigned int mem_type, int sign) in radeon_update_memory_usage() argument
57 switch (mem_type) { in radeon_update_memory_usage()
111 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
116 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
122 rbo->placements[c].mem_type = TTM_PL_TT; in radeon_ttm_placement_from_domain()
128 rbo->placements[c].mem_type = TTM_PL_SYSTEM; in radeon_ttm_placement_from_domain()
133 rbo->placements[c].mem_type = TTM_PL_SYSTEM; in radeon_ttm_placement_from_domain()
142 (rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_ttm_placement_from_domain()
360 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in radeon_bo_unpin()
712 if (bo->tbo.resource->mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling()
[all …]
/linux/drivers/i2c/busses/
A Di2c-amd-mp2.h64 enum mem_type { enum
86 enum mem_type mem_type : 1;
129 enum mem_type mem_type : 1;
/linux/arch/mips/loongson64/
A Dinit.c51 u32 i, mem_type; in szmem() local
65 mem_type = loongson_memmap->map[i].mem_type; in szmem()
69 switch (mem_type) { in szmem()
77 (u32)node_id, mem_type, mem_start, mem_size); in szmem()
86 (u32)node_id, mem_type, mem_start, mem_size); in szmem()
/linux/drivers/gpu/drm/nouveau/
A Dnouveau_bo.c353 pl[*n].mem_type = TTM_PL_VRAM; in set_placement_list()
358 pl[*n].mem_type = TTM_PL_TT; in set_placement_list()
363 pl[*n].mem_type = TTM_PL_SYSTEM; in set_placement_list()
442 switch (bo->resource->mem_type) { in nouveau_bo_pin()
456 bo->resource->mem_type, domain); in nouveau_bo_pin()
477 switch (bo->resource->mem_type) { in nouveau_bo_pin()
508 switch (bo->resource->mem_type) { in nouveau_bo_unpin()
747 switch (bo->resource->mem_type) { in nouveau_bo_evict_flags()
1029 hop->mem_type = TTM_PL_TT; in nouveau_bo_move()
1064 switch (reg->mem_type) { in nouveau_ttm_io_mem_free_locked()
[all …]
/linux/drivers/gpu/drm/qxl/
A Dqxl_object.c71 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
75 qbo->placements[c].mem_type = TTM_PL_PRIV; in qxl_ttm_placement_from_domain()
77 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
81 qbo->placements[c].mem_type = TTM_PL_SYSTEM; in qxl_ttm_placement_from_domain()
85 qbo->placements[c].mem_type = TTM_PL_SYSTEM; in qxl_ttm_placement_from_domain()
215 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page()
217 else if (bo->tbo.resource->mem_type == TTM_PL_PRIV) in qxl_bo_kmap_atomic_page()
269 if ((bo->tbo.resource->mem_type != TTM_PL_VRAM) && in qxl_bo_kunmap_atomic_page()
270 (bo->tbo.resource->mem_type != TTM_PL_PRIV)) in qxl_bo_kunmap_atomic_page()
/linux/include/trace/events/
A Dxdp.h329 __field(u32, mem_type)
336 __entry->mem_type = xa->mem.type;
342 __print_symbolic(__entry->mem_type, __MEM_TYPE_SYM_TAB),
357 __field(u32, mem_type)
366 __entry->mem_type = xa->mem.type;
375 __print_symbolic(__entry->mem_type, __MEM_TYPE_SYM_TAB),
391 __field(u32, mem_type)
397 __entry->mem_type = mem->type;
402 __print_symbolic(__entry->mem_type, __MEM_TYPE_SYM_TAB),
/linux/include/drm/ttm/
A Dttm_device.h292 ttm_manager_type(struct ttm_device *bdev, int mem_type) in ttm_manager_type() argument
294 BUILD_BUG_ON(__builtin_constant_p(mem_type) in ttm_manager_type()
295 && mem_type >= TTM_NUM_MEM_TYPES); in ttm_manager_type()
296 return bdev->man_drv[mem_type]; in ttm_manager_type()
/linux/arch/arm/include/asm/mach/
A Dmap.h52 struct mem_type;
53 extern const struct mem_type *get_mem_type(unsigned int type);
58 const struct mem_type *mtype);
/linux/arch/arm/mach-omap2/
A Dsram.h12 u32 mem_type);
30 u32 mem_type);
43 u32 mem_type);
/linux/drivers/i2c/
A Di2c-smbus.c320 u8 common_mem_type = 0x0, mem_type; in i2c_register_spd() local
333 mem_type = dmi_memdev_type(handle); in i2c_register_spd()
334 if (mem_type <= 0x02) /* Invalid, Other, Unknown */ in i2c_register_spd()
339 common_mem_type = mem_type; in i2c_register_spd()
342 if (mem_type != common_mem_type) { in i2c_register_spd()

Completed in 40 milliseconds

123456