| /Linux-v4.19/drivers/gpu/drm/ttm/ |
| D | ttm_bo.c | 60 uint32_t *mem_type) in ttm_mem_type_from_place() argument 68 *mem_type = pos - 1; in ttm_mem_type_from_place() 72 static void ttm_mem_type_debug(struct ttm_bo_device *bdev, int mem_type) in ttm_mem_type_debug() argument 74 struct ttm_mem_type_manager *man = &bdev->man[mem_type]; in ttm_mem_type_debug() 84 if (mem_type != TTM_PL_SYSTEM) in ttm_mem_type_debug() 91 int i, ret, mem_type; in ttm_bo_mem_space_debug() local 98 &mem_type); in ttm_bo_mem_space_debug() 102 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug() 103 ttm_mem_type_debug(bo->bdev, mem_type); in ttm_bo_mem_space_debug() 171 man = &bdev->man[bo->mem.mem_type]; in ttm_bo_add_to_lru() [all …]
|
| D | ttm_bo_util.c | 61 if (old_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm() 74 old_mem->mem_type = TTM_PL_SYSTEM; in ttm_bo_move_ttm() 81 if (new_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm() 136 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_reserve() 161 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_free() 181 &bo->bdev->man[mem->mem_type]; in ttm_mem_io_reserve_vm() 208 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_reg_ioremap() 242 man = &bdev->man[mem->mem_type]; in ttm_mem_reg_iounmap() 361 struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type]; in ttm_bo_move_memcpy() 412 if ((old_mem->mem_type == new_mem->mem_type) && in ttm_bo_move_memcpy() [all …]
|
| /Linux-v4.19/arch/arm/include/asm/mach/ |
| D | map.h | 55 struct mem_type; 56 extern const struct mem_type *get_mem_type(unsigned int type); 61 const struct mem_type *mtype);
|
| /Linux-v4.19/arch/mips/loongson64/loongson-3/ |
| D | numa.c | 126 u32 i, mem_type; in szmem() local 136 mem_type = loongson_memmap->map[i].mem_type; in szmem() 140 switch (mem_type) { in szmem() 147 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 161 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 171 (u32)node_id, mem_type, mem_start, mem_size); in szmem()
|
| /Linux-v4.19/drivers/gpu/drm/qxl/ |
| D | qxl_object.h | 65 static inline int qxl_bo_wait(struct qxl_bo *bo, u32 *mem_type, in qxl_bo_wait() argument 79 if (mem_type) in qxl_bo_wait() 80 *mem_type = bo->tbo.mem.mem_type; in qxl_bo_wait()
|
| D | qxl_object.c | 147 struct ttm_mem_type_manager *man = &bo->tbo.bdev->man[bo->tbo.mem.mem_type]; in qxl_bo_kmap_atomic_page() 152 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page() 154 else if (bo->tbo.mem.mem_type == TTM_PL_PRIV) in qxl_bo_kmap_atomic_page() 189 struct ttm_mem_type_manager *man = &bo->tbo.bdev->man[bo->tbo.mem.mem_type]; in qxl_bo_kunmap_atomic_page() 192 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in qxl_bo_kunmap_atomic_page() 194 else if (bo->tbo.mem.mem_type == TTM_PL_PRIV) in qxl_bo_kunmap_atomic_page()
|
| /Linux-v4.19/arch/mips/loongson64/common/ |
| D | mem.c | 63 u32 mem_type; in prom_init_memory() local 68 mem_type = loongson_memmap->map[i].mem_type; in prom_init_memory() 71 switch (mem_type) { in prom_init_memory()
|
| /Linux-v4.19/arch/arm/mach-omap2/ |
| D | sram.h | 15 u32 mem_type); 33 u32 mem_type); 46 u32 mem_type);
|
| D | sram.c | 154 u32 mem_type); 156 void omap2_sram_reprogram_sdrc(u32 perf_level, u32 dll_val, u32 mem_type) in omap2_sram_reprogram_sdrc() argument 159 _omap2_sram_reprogram_sdrc(perf_level, dll_val, mem_type); in omap2_sram_reprogram_sdrc()
|
| /Linux-v4.19/drivers/gpu/drm/radeon/ |
| D | radeon_object.c | 51 unsigned mem_type, int sign) in radeon_update_memory_usage() argument 56 switch (mem_type) { in radeon_update_memory_usage() 78 radeon_update_memory_usage(bo, bo->tbo.mem.mem_type, -1); in radeon_ttm_bo_destroy() 411 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in radeon_bo_unpin() 553 radeon_mem_type_to_domain(bo->tbo.mem.mem_type); in radeon_bo_list_validate() 758 if (bo->tbo.mem.mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling() 790 radeon_update_memory_usage(rbo, bo->mem.mem_type, -1); in radeon_bo_move_notify() 791 radeon_update_memory_usage(rbo, new_mem->mem_type, 1); in radeon_bo_move_notify() 807 if (bo->mem.mem_type != TTM_PL_VRAM) in radeon_bo_fault_reserve_notify() 844 int radeon_bo_wait(struct radeon_bo *bo, u32 *mem_type, bool no_wait) in radeon_bo_wait() argument [all …]
|
| D | radeon_ttm.c | 197 switch (bo->mem.mem_type) { in radeon_evict_flags() 270 switch (old_mem->mem_type) { in radeon_move_blit() 278 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit() 281 switch (new_mem->mem_type) { in radeon_move_blit() 289 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit() 415 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in radeon_bo_move() 419 if ((old_mem->mem_type == TTM_PL_TT && in radeon_bo_move() 420 new_mem->mem_type == TTM_PL_SYSTEM) || in radeon_bo_move() 421 (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move() 422 new_mem->mem_type == TTM_PL_TT)) { in radeon_bo_move() [all …]
|
| D | radeon_object.h | 40 static inline unsigned radeon_mem_type_to_domain(u32 mem_type) in radeon_mem_type_to_domain() argument 42 switch (mem_type) { in radeon_mem_type_to_domain() 122 extern int radeon_bo_wait(struct radeon_bo *bo, u32 *mem_type,
|
| /Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_object.c | 78 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) { in amdgpu_bo_subtract_pin_size() 82 } else if (bo->tbo.mem.mem_type == TTM_PL_TT) { in amdgpu_bo_subtract_pin_size() 504 bo->tbo.mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_do_create() 899 uint32_t mem_type = bo->tbo.mem.mem_type; in amdgpu_bo_pin_restricted() local 901 if (!(domain & amdgpu_mem_type_to_domain(mem_type))) in amdgpu_bo_pin_restricted() 907 u64 domain_start = bo->tbo.bdev->man[mem_type].gpu_offset; in amdgpu_bo_pin_restricted() 942 domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type); in amdgpu_bo_pin_restricted() 1267 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify() 1297 if (bo->mem.mem_type != TTM_PL_VRAM) in amdgpu_bo_fault_reserve_notify() 1324 if (bo->mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_fault_reserve_notify() [all …]
|
| D | amdgpu_ttm.c | 257 switch (bo->mem.mem_type) { in amdgpu_evict_flags() 347 if (mem->mem_type != TTM_PL_TT || amdgpu_gtt_mgr_has_gart_addr(mem)) { in amdgpu_mm_node_addr() 349 addr += bo->bdev->man[mem->mem_type].gpu_offset; in amdgpu_mm_node_addr() 435 if (src->mem->mem_type == TTM_PL_TT && in amdgpu_ttm_copy_mem_to_mem() 449 if (dst->mem->mem_type == TTM_PL_TT && in amdgpu_ttm_copy_mem_to_mem() 667 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in amdgpu_bo_move() 671 if ((old_mem->mem_type == TTM_PL_TT && in amdgpu_bo_move() 672 new_mem->mem_type == TTM_PL_SYSTEM) || in amdgpu_bo_move() 673 (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move() 674 new_mem->mem_type == TTM_PL_TT)) { in amdgpu_bo_move() [all …]
|
| D | amdgpu_atomfirmware.c | 200 u8 mem_type; in amdgpu_atomfirmware_get_vram_type() local 216 mem_type = igp_info->v11.memorytype; in amdgpu_atomfirmware_get_vram_type() 217 return convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_type() 226 mem_type = umc_info->v31.vram_type; in amdgpu_atomfirmware_get_vram_type() 227 return convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_type()
|
| D | amdgpu_object.h | 121 static inline unsigned amdgpu_mem_type_to_domain(u32 mem_type) in amdgpu_mem_type_to_domain() argument 123 switch (mem_type) { in amdgpu_mem_type_to_domain() 202 switch (bo->tbo.mem.mem_type) { in amdgpu_bo_gpu_accessible() 219 if (bo->tbo.mem.mem_type != TTM_PL_VRAM) in amdgpu_bo_in_cpu_visible_vram()
|
| /Linux-v4.19/arch/unicore32/mm/ |
| D | mm.h | 30 struct mem_type { struct 36 const struct mem_type *get_mem_type(unsigned int type); argument
|
| D | ioremap.c | 49 const struct mem_type *mtype) in ioremap_page() 103 size_t size, const struct mem_type *type) in remap_area_sections() 132 const struct mem_type *type; in __uc32_ioremap_pfn_caller()
|
| D | mmu.c | 91 static struct mem_type mem_types[] = { 126 const struct mem_type *get_mem_type(unsigned int type) in get_mem_type() 165 const struct mem_type *type) in alloc_init_pte() 176 const struct mem_type *type) in alloc_init_section() 211 const struct mem_type *type; in create_mapping()
|
| /Linux-v4.19/include/linux/ |
| D | wkup_m3_ipc.h | 34 int mem_type; member 52 void (*set_mem_type)(struct wkup_m3_ipc *m3_ipc, int mem_type);
|
| /Linux-v4.19/drivers/mtd/maps/ |
| D | pcmciamtd.c | 61 static int mem_type; variable 76 module_param(mem_type, int, 0); 77 MODULE_PARM_DESC(mem_type, "Set Memory type (0=Flash, 1=RAM, 2=ROM, default=0)"); 567 if(mem_type == 1) { in pcmciamtd_config() 569 } else if(mem_type == 2) { in pcmciamtd_config() 739 if(mem_type && mem_type != 1 && mem_type != 2) { in init_pcmciamtd() 740 info("bad mem_type (%d), using default", mem_type); in init_pcmciamtd() 741 mem_type = 0; in init_pcmciamtd()
|
| /Linux-v4.19/arch/arm/mm/ |
| D | ioremap.c | 108 const struct mem_type *mtype) in ioremap_page() 188 size_t size, const struct mem_type *type) in remap_area_sections() 220 size_t size, const struct mem_type *type) in remap_area_supersections() 262 const struct mem_type *type; in __arm_ioremap_pfn_caller() 469 void pci_ioremap_set_mem_type(int mem_type) in pci_ioremap_set_mem_type() argument 471 pci_ioremap_mem_type = mem_type; in pci_ioremap_set_mem_type()
|
| D | mm.h | 42 struct mem_type { struct 50 const struct mem_type *get_mem_type(unsigned int type); argument
|
| /Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
| D | i40e_hmc.c | 25 enum i40e_memory_type mem_type __attribute__((unused)); in i40e_add_sd_table_entry() local 47 mem_type = i40e_mem_pd; in i40e_add_sd_table_entry() 50 mem_type = i40e_mem_bp_jumbo; in i40e_add_sd_table_entry() 55 ret_code = i40e_allocate_dma_mem(hw, &mem, mem_type, alloc_len, in i40e_add_sd_table_entry()
|
| /Linux-v4.19/tools/perf/scripts/python/ |
| D | mem-phys-addr.py | 46 for mem_type, count in sorted(load_mem_type_cnt.most_common(), \ 48 print "%-40s %10d %10.1f%%\n" % (mem_type, count, 100 * count / total),
|