| /Linux-v5.4/drivers/gpu/drm/ttm/ |
| D | ttm_bo.c | 67 uint32_t *mem_type) in ttm_mem_type_from_place() argument 75 *mem_type = pos - 1; in ttm_mem_type_from_place() 80 int mem_type) in ttm_mem_type_debug() argument 82 struct ttm_mem_type_manager *man = &bdev->man[mem_type]; in ttm_mem_type_debug() 91 if (mem_type != TTM_PL_SYSTEM) in ttm_mem_type_debug() 99 int i, ret, mem_type; in ttm_bo_mem_space_debug() local 106 &mem_type); in ttm_bo_mem_space_debug() 110 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug() 111 ttm_mem_type_debug(bo->bdev, &p, mem_type); in ttm_bo_mem_space_debug() 184 man = &bdev->man[mem->mem_type]; in ttm_bo_add_mem_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-v5.4/drivers/i2c/busses/ |
| D | i2c-amd-mp2.h | 64 enum mem_type { enum 86 enum mem_type mem_type : 1; 129 enum mem_type mem_type : 1;
|
| /Linux-v5.4/arch/mips/loongson64/loongson-3/ |
| D | numa.c | 121 u32 i, mem_type; in szmem() local 131 mem_type = loongson_memmap->map[i].mem_type; in szmem() 135 switch (mem_type) { in szmem() 142 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 154 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 162 (u32)node_id, mem_type, mem_start, mem_size); in szmem()
|
| /Linux-v5.4/arch/arm/include/asm/mach/ |
| D | map.h | 52 struct mem_type; 53 extern const struct mem_type *get_mem_type(unsigned int type); 58 const struct mem_type *mtype);
|
| /Linux-v5.4/drivers/gpu/drm/qxl/ |
| D | qxl_object.h | 66 static inline int qxl_bo_wait(struct qxl_bo *bo, u32 *mem_type, in qxl_bo_wait() argument 81 if (mem_type) in qxl_bo_wait() 82 *mem_type = bo->tbo.mem.mem_type; in qxl_bo_wait()
|
| D | qxl_object.c | 151 struct ttm_mem_type_manager *man = &bo->tbo.bdev->man[bo->tbo.mem.mem_type]; in qxl_bo_kmap_atomic_page() 156 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page() 158 else if (bo->tbo.mem.mem_type == TTM_PL_PRIV) in qxl_bo_kmap_atomic_page() 196 struct ttm_mem_type_manager *man = &bo->tbo.bdev->man[bo->tbo.mem.mem_type]; in qxl_bo_kunmap_atomic_page() 198 if ((bo->tbo.mem.mem_type != TTM_PL_VRAM) && in qxl_bo_kunmap_atomic_page() 199 (bo->tbo.mem.mem_type != TTM_PL_PRIV)) in qxl_bo_kunmap_atomic_page()
|
| /Linux-v5.4/arch/mips/loongson64/common/ |
| D | mem.c | 61 u32 mem_type; in prom_init_memory() local 66 mem_type = loongson_memmap->map[i].mem_type; in prom_init_memory() 71 switch (mem_type) { in prom_init_memory()
|
| /Linux-v5.4/arch/arm/mach-omap2/ |
| D | sram.h | 12 u32 mem_type); 30 u32 mem_type); 43 u32 mem_type);
|
| D | sram.c | 151 u32 mem_type); 153 void omap2_sram_reprogram_sdrc(u32 perf_level, u32 dll_val, u32 mem_type) in omap2_sram_reprogram_sdrc() argument 156 _omap2_sram_reprogram_sdrc(perf_level, dll_val, mem_type); in omap2_sram_reprogram_sdrc()
|
| /Linux-v5.4/include/trace/events/ |
| D | xdp.h | 328 __field(u32, mem_type) 338 __entry->mem_type = xa->mem.type; 348 __print_symbolic(__entry->mem_type, __MEM_TYPE_SYM_TAB), 366 __field(u32, mem_type) 375 __entry->mem_type = xa->mem.type; 384 __print_symbolic(__entry->mem_type, __MEM_TYPE_SYM_TAB), 400 __field(u32, mem_type) 406 __entry->mem_type = mem->type; 411 __print_symbolic(__entry->mem_type, __MEM_TYPE_SYM_TAB),
|
| /Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_ttm.c | 168 switch (bo->mem.mem_type) { in amdgpu_evict_flags() 268 addr += bo->bdev->man[mem->mem_type].gpu_offset; in amdgpu_mm_node_addr() 448 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit() 597 if (mem->mem_type == TTM_PL_SYSTEM || in amdgpu_mem_visible() 598 mem->mem_type == TTM_PL_TT) in amdgpu_mem_visible() 600 if (mem->mem_type != TTM_PL_VRAM) in amdgpu_mem_visible() 632 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in amdgpu_bo_move() 636 if ((old_mem->mem_type == TTM_PL_TT && in amdgpu_bo_move() 637 new_mem->mem_type == TTM_PL_SYSTEM) || in amdgpu_bo_move() 638 (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move() [all …]
|
| D | amdgpu_object.c | 66 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) { in amdgpu_bo_subtract_pin_size() 70 } else if (bo->tbo.mem.mem_type == TTM_PL_TT) { in amdgpu_bo_subtract_pin_size() 521 bo->tbo.mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_do_create() 848 uint32_t mem_type = bo->tbo.mem.mem_type; in amdgpu_bo_pin_restricted() local 850 if (!(domain & amdgpu_mem_type_to_domain(mem_type))) in amdgpu_bo_pin_restricted() 856 u64 domain_start = bo->tbo.bdev->man[mem_type].gpu_offset; in amdgpu_bo_pin_restricted() 891 domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type); in amdgpu_bo_pin_restricted() 1219 trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type); in amdgpu_bo_move_notify() 1243 if (bo->mem.mem_type != TTM_PL_VRAM || !bo->mem.mm_node || in amdgpu_bo_release_notify() 1285 if (bo->mem.mem_type != TTM_PL_VRAM) in amdgpu_bo_fault_reserve_notify() [all …]
|
| D | amdgpu_atomfirmware.c | 234 u8 mem_type; in amdgpu_atomfirmware_get_vram_type() local 250 mem_type = igp_info->v11.memorytype; in amdgpu_atomfirmware_get_vram_type() 251 return convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_type() 260 mem_type = vram_info->v23.vram_module[0].memory_type; in amdgpu_atomfirmware_get_vram_type() 261 return convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_type() 263 mem_type = vram_info->v24.vram_module[0].memory_type; in amdgpu_atomfirmware_get_vram_type() 264 return convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_type()
|
| /Linux-v5.4/drivers/gpu/drm/radeon/ |
| D | radeon_object.c | 54 unsigned mem_type, int sign) in radeon_update_memory_usage() argument 59 switch (mem_type) { in radeon_update_memory_usage() 81 radeon_update_memory_usage(bo, bo->tbo.mem.mem_type, -1); in radeon_ttm_bo_destroy() 412 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in radeon_bo_unpin() 556 radeon_mem_type_to_domain(bo->tbo.mem.mem_type); in radeon_bo_list_validate() 761 if (bo->tbo.mem.mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling() 793 radeon_update_memory_usage(rbo, bo->mem.mem_type, -1); in radeon_bo_move_notify() 794 radeon_update_memory_usage(rbo, new_mem->mem_type, 1); in radeon_bo_move_notify() 810 if (bo->mem.mem_type != TTM_PL_VRAM) in radeon_bo_fault_reserve_notify() 847 int radeon_bo_wait(struct radeon_bo *bo, u32 *mem_type, bool no_wait) in radeon_bo_wait() argument [all …]
|
| D | radeon_ttm.c | 144 switch (bo->mem.mem_type) { in radeon_evict_flags() 217 switch (old_mem->mem_type) { in radeon_move_blit() 225 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit() 228 switch (new_mem->mem_type) { in radeon_move_blit() 236 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit() 358 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in radeon_bo_move() 362 if ((old_mem->mem_type == TTM_PL_TT && in radeon_bo_move() 363 new_mem->mem_type == TTM_PL_SYSTEM) || in radeon_bo_move() 364 (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move() 365 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-v5.4/arch/unicore32/mm/ |
| D | mm.h | 27 struct mem_type { struct 33 const struct mem_type *get_mem_type(unsigned int type); argument
|
| D | ioremap.c | 45 const struct mem_type *mtype) in ioremap_page() 99 size_t size, const struct mem_type *type) in remap_area_sections() 128 const struct mem_type *type; in __uc32_ioremap_pfn_caller()
|
| /Linux-v5.4/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-v5.4/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-v5.4/arch/arm/mm/ |
| D | ioremap.c | 109 const struct mem_type *mtype) in ioremap_page() 189 size_t size, const struct mem_type *type) in remap_area_sections() 221 size_t size, const struct mem_type *type) in remap_area_supersections() 263 const struct mem_type *type; in __arm_ioremap_pfn_caller() 470 void pci_ioremap_set_mem_type(int mem_type) in pci_ioremap_set_mem_type() argument 472 pci_ioremap_mem_type = mem_type; in pci_ioremap_set_mem_type()
|
| D | mm.h | 44 struct mem_type { struct 52 const struct mem_type *get_mem_type(unsigned int type); argument
|
| /Linux-v5.4/drivers/net/ethernet/intel/i40e/ |
| D | i40e_hmc.c | 26 enum i40e_memory_type mem_type __attribute__((unused)); in i40e_add_sd_table_entry() local 48 mem_type = i40e_mem_pd; in i40e_add_sd_table_entry() 51 mem_type = i40e_mem_bp_jumbo; in i40e_add_sd_table_entry() 56 ret_code = i40e_allocate_dma_mem(hw, &mem, mem_type, alloc_len, in i40e_add_sd_table_entry()
|
| /Linux-v5.4/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_bo.c | 246 if (bo->mem.mem_type == TTM_PL_VRAM && in vmw_bo_pin_in_start_of_vram() 318 if (bo->mem.mem_type == TTM_PL_VRAM) { in vmw_bo_get_guest_ptr() 341 uint32_t old_mem_type = bo->mem.mem_type; in vmw_bo_pin_reserved() 368 BUG_ON(ret != 0 || bo->mem.mem_type != old_mem_type); in vmw_bo_pin_reserved() 1153 if (mem->mem_type == TTM_PL_VRAM || bo->mem.mem_type == TTM_PL_VRAM) in vmw_bo_move_notify() 1161 if (mem->mem_type != VMW_PL_MOB && bo->mem.mem_type == VMW_PL_MOB) in vmw_bo_move_notify()
|