/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_drm_client.c | 109 u32 mem_type; local 112 mem_type = bo->placement.placement->mem_type; 114 mem_type = XE_PL_TT; 117 stats[mem_type].shared += sz; 119 stats[mem_type].private += sz; 122 stats[mem_type].resident += sz; 126 stats[mem_type].active += sz; 127 else if (mem_type == XE_PL_SYSTEM) 128 stats[mem_type] 142 u32 mem_type; local [all...] |
H A D | xe_ttm_vram_mgr_types.h | 34 /** @mem_type: The TTM memory type */ 35 u32 mem_type; member in struct:xe_ttm_vram_mgr
|
H A D | xe_debugfs.c | 114 u32 mem_type; local 124 for (mem_type = XE_PL_VRAM0; mem_type <= XE_PL_VRAM1; ++mem_type) { 125 man = ttm_manager_type(bdev, mem_type); 130 sprintf(name, "vram%d_mm", mem_type - XE_PL_VRAM0);
|
H A D | xe_res_cursor.h | 46 u32 mem_type; member in struct:xe_res_cursor 55 mgr = ttm_manager_type(res->bo->bdev, res->mem_type); 79 cur->mem_type = res->mem_type; 81 switch (cur->mem_type) { 125 cur->mem_type = XE_PL_TT; 167 cur->mem_type = XE_PL_TT; 203 switch (cur->mem_type) {
|
H A D | xe_bo.c | 42 .mem_type = XE_PL_SYSTEM, 55 .mem_type = XE_PL_TT, 61 .mem_type = XE_PL_SYSTEM, 71 bool mem_type_is_vram(u32 mem_type) argument 73 return mem_type >= XE_PL_VRAM0 && mem_type != XE_PL_STOLEN; 78 return res->mem_type == XE_PL_STOLEN && IS_DGFX(xe); 83 return mem_type_is_vram(res->mem_type); 94 return bo->ttm.resource->mem_type == XE_PL_STOLEN; 118 mem_type_to_migrate(struct xe_device *xe, u32 mem_type) argument 150 add_vram(struct xe_device *xe, struct xe_bo *bo, struct ttm_place *places, u32 bo_flags, u32 mem_type, u32 *c) argument 2087 xe_bo_can_migrate(struct xe_bo *bo, u32 mem_type) argument 2106 xe_place_from_ttm_type(u32 mem_type, struct ttm_place *place) argument 2127 xe_bo_migrate(struct xe_bo *bo, u32 mem_type) argument [all...] |
/linux-master/tools/testing/selftests/arm64/mte/ |
H A D | check_buffer_fill.c | 28 static int check_buffer_by_byte(int mem_type, int mode) argument 38 ptr = (char *)mte_allocate_memory(sizes[i], mem_type, 0, true); 39 if (check_allocated_memory(ptr, sizes[i], mem_type, true) != KSFT_PASS) 52 mte_free_memory((void *)ptr, sizes[i], mem_type, true); 63 static int check_buffer_underflow_by_byte(int mem_type, int mode, argument 74 ptr = (char *)mte_allocate_memory_tag_range(sizes[i], mem_type, 0, 76 if (check_allocated_memory_range(ptr, sizes[i], mem_type, 151 mte_free_memory_tag_range((void *)ptr, sizes[i], mem_type, underflow_range, 0); 158 static int check_buffer_overflow_by_byte(int mem_type, int mode, argument 170 ptr = (char *)mte_allocate_memory_tag_range(sizes[i], mem_type, 261 check_buffer_by_block_iterate(int mem_type, int mode, size_t size) argument 336 check_buffer_by_block(int mem_type, int mode) argument 365 check_memory_initial_tags(int mem_type, int mode, int mapping) argument [all...] |
H A D | mte_common_util.h | 45 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, 96 int mem_type, bool tags) 105 mte_free_memory((void *)ptr, size, mem_type, false); 112 static inline int check_allocated_memory_range(void *ptr, size_t size, int mem_type, argument 122 mte_free_memory_tag_range((void *)ptr, size, mem_type, range_befor 95 check_allocated_memory(void *ptr, size_t size, int mem_type, bool tags) argument [all...] |
H A D | check_tags_inclusion.c | 49 static int check_single_included_tags(int mem_type, int mode) argument 54 ptr = mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); 56 mem_type, false) != KSFT_PASS) 77 mte_free_memory_tag_range(ptr, BUFFER_SIZE, mem_type, 0, MT_GRANULE_SIZE); 81 static int check_multiple_included_tags(int mem_type, int mode) argument 87 ptr = mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); 89 mem_type, false) != KSFT_PASS) 109 mte_free_memory_tag_range(ptr, BUFFER_SIZE, mem_type, 0, MT_GRANULE_SIZE); 113 static int check_all_included_tags(int mem_type, int mode) argument 118 ptr = mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 139 check_none_included_tags(int mem_type, int mode) argument [all...] |
H A D | mte_common_util.c | 123 static void *__mte_allocate_memory_range(size_t size, int mem_type, int mapping, argument 131 switch (mem_type) { 143 if (mem_type == USE_MMAP) 156 if (mem_type == USE_MPROTECT) { 168 void *mte_allocate_memory_tag_range(size_t size, int mem_type, int mapping, argument 171 return __mte_allocate_memory_range(size, mem_type, mapping, range_before, 175 void *mte_allocate_memory(size_t size, int mem_type, int mapping, bool tags) argument 177 return __mte_allocate_memory_range(size, mem_type, mapping, 0, 0, tags, -1); 180 void *mte_allocate_file_memory(size_t size, int mem_type, int mapping, bool tags, int fd) argument 185 if (mem_type ! 205 mte_allocate_file_memory_tag_range(size_t size, int mem_type, int mapping, size_t range_before, size_t range_after, int fd) argument 232 __mte_free_memory_range(void *ptr, size_t size, int mem_type, size_t range_before, size_t range_after, bool tags) argument 251 mte_free_memory_tag_range(void *ptr, size_t size, int mem_type, size_t range_before, size_t range_after) argument 257 mte_free_memory(void *ptr, size_t size, int mem_type, bool tags) argument [all...] |
H A D | check_mmap_options.c | 60 static int check_anonymous_memory_mapping(int mem_type, int mode, int mapping, int tag_check) argument 69 map_ptr = (char *)mte_allocate_memory(map_size, mem_type, mapping, false); 70 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) 84 mte_free_memory((void *)map_ptr, map_size, mem_type, false); 91 static int check_file_memory_mapping(int mem_type, int mode, int mapping, int tag_check) argument 105 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); 106 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { 130 static int check_clear_prot_mte_flag(int mem_type, int mode, int mapping) argument 140 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, 142 if (check_allocated_memory_range(ptr, sizes[run], mem_type, [all...] |
/linux-master/arch/arm/include/asm/mach/ |
H A D | map.h | 53 struct mem_type; 54 extern const struct mem_type *get_mem_type(unsigned int type); 59 const struct mem_type *mtype);
|
/linux-master/include/linux/ |
H A D | pstore_ram.h | 32 unsigned int mem_type; member in struct:ramoops_platform_data
|
H A D | wkup_m3_ipc.h | 26 int mem_type; member in struct:wkup_m3_ipc 57 void (*set_mem_type)(struct wkup_m3_ipc *m3_ipc, int mem_type);
|
/linux-master/include/drm/ttm/ |
H A D | ttm_placement.h | 78 * @mem_type: One of TTM_PL_* where the resource should be allocated from. 86 uint32_t mem_type; member in struct:ttm_place
|
H A D | ttm_device.h | 276 ttm_manager_type(struct ttm_device *bdev, int mem_type) argument 278 BUILD_BUG_ON(__builtin_constant_p(mem_type) 279 && mem_type >= TTM_NUM_MEM_TYPES); 280 return bdev->man_drv[mem_type];
|
/linux-master/drivers/gpu/drm/ttm/tests/ |
H A D | ttm_resource_test.c | 14 uint32_t mem_type; member in struct:ttm_resource_test_case 50 uint32_t mem_type, uint32_t flags) 58 priv->place = ttm_place_kunit_init(test, mem_type, flags); 63 uint32_t mem_type) 76 ttm_set_driver_manager(ttm_dev, mem_type, man); 83 .mem_type = TTM_PL_SYSTEM, 87 .mem_type = TTM_PL_VRAM, 91 .mem_type = TTM_PRIV_DUMMY_REG, 95 .mem_type = TTM_PL_SYSTEM, 117 ttm_init_test_mocks(test, priv, params->mem_type, param 48 ttm_init_test_mocks(struct kunit *test, struct ttm_resource_test_priv *priv, uint32_t mem_type, uint32_t flags) argument 61 ttm_init_test_manager(struct kunit *test, struct ttm_resource_test_priv *priv, uint32_t mem_type) argument 271 uint32_t mem_type = TTM_PL_SYSTEM; local 296 uint32_t mem_type = TTM_PL_SYSTEM; local [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/falcon/ |
H A D | base.c | 45 nvkm_falcon_dma(struct nvkm_falcon *falcon, enum nvkm_falcon_mem *mem_type, u32 *mem_base) argument 47 switch (*mem_type) { 57 enum nvkm_falcon_mem mem_type, u32 mem_base, int len, bool sec) 59 const struct nvkm_falcon_func_dma *dma = nvkm_falcon_dma(falcon, &mem_type, &mem_base); 60 const char *type = nvkm_falcon_mem(mem_type); 69 if (mem_type == DMEM) { 79 ret = dma->init(falcon, dma_addr, dmalen, mem_type, sec, &cmd); 121 nvkm_falcon_pio(struct nvkm_falcon *falcon, enum nvkm_falcon_mem *mem_type, u32 *mem_base) argument 123 switch (*mem_type) { 140 nvkm_falcon_pio_rd(struct nvkm_falcon *falcon, u8 port, enum nvkm_falcon_mem mem_type, u3 argument 56 nvkm_falcon_dma_wr(struct nvkm_falcon *falcon, const u8 *img, u64 dma_addr, u32 dma_base, enum nvkm_falcon_mem mem_type, u32 mem_base, int len, bool sec) argument 175 nvkm_falcon_pio_wr(struct nvkm_falcon *falcon, const u8 *img, u32 img_base, u8 port, enum nvkm_falcon_mem mem_type, u32 mem_base, int len, u16 tag, bool sec) argument [all...] |
/linux-master/arch/arm/mach-omap2/ |
H A D | sram.h | 11 u32 mem_type); 29 u32 mem_type); 42 u32 mem_type);
|
/linux-master/arch/loongarch/kernel/ |
H A D | mem.c | 15 u32 mem_type; local 21 mem_type = md->type; 26 switch (mem_type) {
|
/linux-master/drivers/i2c/busses/ |
H A D | i2c-amd-mp2.h | 64 enum mem_type { enum 76 * @mem_type: bit 31 0-DRAM; 1-C2P msg o/p 86 enum mem_type mem_type : 1; member in struct:i2c_cmd_base::__anon231 119 * @mem_type: bit 7 0-DRAM; 1-C2P msg o/p 129 enum mem_type mem_type : 1; member in struct:i2c_event::__anon232
|
/linux-master/arch/mips/loongson64/ |
H A D | init.c | 51 u32 i, mem_type; local 64 mem_type = loongson_memmap->map[i].mem_type; 75 switch (mem_type) { 79 pr_info("Node %d, mem_type:%d\t[%pa], %pa bytes usable\n", 80 (u32)node_id, mem_type, &mem_start, &mem_size); 89 pr_info("Node %d, mem_type:%d\t[%pa], %pa bytes reserved\n", 90 (u32)node_id, mem_type, &mem_start, &mem_size); 96 pr_info("Node %d, mem_type:%d\t[%pa], %pa bytes unhandled\n", 97 (u32)node_id, mem_type, [all...] |
/linux-master/include/xen/interface/hvm/ |
H A D | hvm_op.h | 42 uint16_t mem_type; member in struct:xen_hvm_get_mem_type
|
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ttm_buffer.c | 35 .mem_type = TTM_PL_VRAM, 42 .mem_type = TTM_PL_SYSTEM, 291 vmw_be->mem_type = bo_mem->mem_type; 293 switch (bo_mem->mem_type) { 329 switch (vmw_be->mem_type) { 442 switch (mem->mem_type) { 491 static bool vmw_memtype_is_system(uint32_t mem_type) argument 493 return mem_type == TTM_PL_SYSTEM || mem_type [all...] |
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_ttm.h | 90 return mem->mem_type != I915_PL_SYSTEM; 102 return mem && mem->mem_type != I915_PL_SYSTEM;
|
/linux-master/arch/arm/mm/ |
H A D | mm.h | 38 struct mem_type { struct 46 const struct mem_type *get_mem_type(unsigned int type);
|