/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 57 static inline int ttm_mem_type_from_flags(uint32_t flags, uint32_t *mem_type) in ttm_mem_type_from_flags() argument 63 *mem_type = i; in ttm_mem_type_from_flags() 69 static void ttm_mem_type_debug(struct ttm_bo_device *bdev, int mem_type) in ttm_mem_type_debug() argument 71 struct ttm_mem_type_manager *man = &bdev->man[mem_type]; in ttm_mem_type_debug() 80 if (mem_type != TTM_PL_SYSTEM) in ttm_mem_type_debug() 87 int i, ret, mem_type; in ttm_bo_mem_space_debug() local 94 &mem_type); in ttm_bo_mem_space_debug() 98 i, placement->placement[i], mem_type); in ttm_bo_mem_space_debug() 99 ttm_mem_type_debug(bo->bdev, mem_type); in ttm_bo_mem_space_debug() 184 man = &bdev->man[bo->mem.mem_type]; in ttm_bo_add_to_lru() [all …]
|
D | ttm_bo_util.c | 53 if (old_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm() 58 old_mem->mem_type = TTM_PL_SYSTEM; in ttm_bo_move_ttm() 65 if (new_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm() 120 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_reserve() 145 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_free() 165 &bo->bdev->man[mem->mem_type]; in ttm_mem_io_reserve_vm() 192 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_reg_ioremap() 226 man = &bdev->man[mem->mem_type]; in ttm_mem_reg_iounmap() 326 struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type]; in ttm_bo_move_memcpy() 363 if ((old_mem->mem_type == new_mem->mem_type) && in ttm_bo_move_memcpy() [all …]
|
/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 190 switch (bo->mem.mem_type) { in radeon_evict_flags() 234 switch (old_mem->mem_type) { in radeon_move_blit() 242 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit() 245 switch (new_mem->mem_type) { in radeon_move_blit() 253 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit() 372 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in radeon_bo_move() 376 if ((old_mem->mem_type == TTM_PL_TT && in radeon_bo_move() 377 new_mem->mem_type == TTM_PL_SYSTEM) || in radeon_bo_move() 378 (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move() 379 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() 110 extern int radeon_bo_wait(struct radeon_bo *bo, u32 *mem_type,
|
D | radeon_object.c | 547 if (bo->tbo.mem.mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling() 585 if (bo->mem.mem_type == TTM_PL_VRAM) { in radeon_bo_fault_reserve_notify() 604 int radeon_bo_wait(struct radeon_bo *bo, u32 *mem_type, bool no_wait) in radeon_bo_wait() argument 612 if (mem_type) in radeon_bo_wait() 613 *mem_type = bo->tbo.mem.mem_type; in radeon_bo_wait()
|
/drivers/gpu/drm/qxl/ |
D | qxl_object.h | 70 static inline int qxl_bo_wait(struct qxl_bo *bo, u32 *mem_type, in qxl_bo_wait() argument 85 if (mem_type) in qxl_bo_wait() 86 *mem_type = bo->tbo.mem.mem_type; in qxl_bo_wait()
|
D | qxl_object.c | 148 struct ttm_mem_type_manager *man = &bo->tbo.bdev->man[bo->tbo.mem.mem_type]; in qxl_bo_kmap_atomic_page() 153 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page() 155 else if (bo->tbo.mem.mem_type == TTM_PL_PRIV0) in qxl_bo_kmap_atomic_page() 190 struct ttm_mem_type_manager *man = &bo->tbo.bdev->man[bo->tbo.mem.mem_type]; in qxl_bo_kunmap_atomic_page() 193 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in qxl_bo_kunmap_atomic_page() 195 else if (bo->tbo.mem.mem_type == TTM_PL_PRIV0) in qxl_bo_kunmap_atomic_page()
|
D | qxl_ttm.c | 221 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in qxl_ttm_io_mem_reserve() 231 switch (mem->mem_type) { in qxl_ttm_io_mem_reserve() 355 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in qxl_bo_move() 458 if (bo->mem.mem_type == TTM_PL_PRIV0 && qbo->surface_id) in qxl_bo_move_notify()
|
/drivers/staging/tidspbridge/core/ |
D | tiomap_io.h | 52 u32 ul_num_bytes, u32 mem_type); 59 u32 ul_num_bytes, u32 mem_type); 69 u32 ul_num_bytes, u32 mem_type,
|
D | tiomap3430.c | 82 u32 mem_type); 91 u32 mem_type); 96 u32 ul_num_bytes, u32 mem_type); 99 u32 ul_num_bytes, u32 mem_type); 307 u32 ul_num_bytes, u32 mem_type) in bridge_brd_read() argument 324 ul_num_bytes, mem_type); in bridge_brd_read() 712 u32 ul_num_bytes, u32 mem_type) in bridge_brd_write() argument 724 ul_num_bytes, mem_type); in bridge_brd_write() 727 ul_num_bytes, mem_type, false); in bridge_brd_write() 1048 u32 ul_num_bytes, u32 mem_type) in bridge_brd_mem_copy() argument [all …]
|
D | tiomap_io.c | 53 u32 ul_num_bytes, u32 mem_type) in read_ext_dsp_data() argument 172 u32 mem_type) in write_dsp_data() argument 218 u32 ul_num_bytes, u32 mem_type, in write_ext_dsp_data() argument
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_dmabuf.c | 223 if (bo->mem.mem_type == TTM_PL_VRAM && in vmw_dmabuf_to_start_of_vram() 280 if (bo->mem.mem_type == TTM_PL_VRAM) { in vmw_bo_get_guest_ptr() 302 uint32_t old_mem_type = bo->mem.mem_type; in vmw_bo_pin() 319 BUG_ON(ret != 0 || bo->mem.mem_type != old_mem_type); in vmw_bo_pin()
|
D | vmwgfx_buffer.c | 261 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in vmw_ttm_io_mem_reserve() 271 switch (mem->mem_type) { in vmw_ttm_io_mem_reserve()
|
/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() 738 if(mem_type && mem_type != 1 && mem_type != 2) { in init_pcmciamtd() 739 info("bad mem_type (%d), using default", mem_type); in init_pcmciamtd() 740 mem_type = 0; in init_pcmciamtd()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_bo.c | 308 if (nvbo->pin_refcnt && !(memtype & (1 << bo->mem.mem_type))) { in nouveau_bo_pin() 310 1 << bo->mem.mem_type, memtype); in nouveau_bo_pin() 322 switch (bo->mem.mem_type) { in nouveau_bo_pin() 356 switch (bo->mem.mem_type) { in nouveau_bo_unpin() 539 switch (bo->mem.mem_type) { in nouveau_bo_evict_flags() 804 if (old_mem->mem_type == TTM_PL_VRAM && in nv50_bo_move_m2mf() 826 if (new_mem->mem_type == TTM_PL_VRAM && in nv50_bo_move_m2mf() 894 if (mem->mem_type == TTM_PL_TT) in nouveau_bo_mem_ctxdma() 958 if (mem->mem_type == TTM_PL_VRAM) in nouveau_vma_getmap() 1139 if (new_mem && new_mem->mem_type == TTM_PL_VRAM) { in nouveau_bo_move_ntfy() [all …]
|
D | nouveau_gem.c | 180 if (nvbo->bo.mem.mem_type == TTM_PL_TT) in nouveau_gem_info() 257 bo->mem.mem_type == TTM_PL_VRAM) in nouveau_gem_set_domain() 261 bo->mem.mem_type == TTM_PL_TT) in nouveau_gem_set_domain() 464 ((nvbo->bo.mem.mem_type == TTM_PL_VRAM && in validate_list() 466 (nvbo->bo.mem.mem_type == TTM_PL_TT && in validate_list() 470 if (nvbo->bo.mem.mem_type == TTM_PL_TT) in validate_list()
|
/drivers/staging/tidspbridge/include/dspbridge/ |
D | dspdefs.h | 131 u32 ul_num_bytes, u32 mem_type); 156 u32 mem_type); 262 u32 ul_num_bytes, u32 mem_type); 287 u32 ul_num_bytes, u32 mem_type);
|
/drivers/cpufreq/ |
D | s5pv210-cpufreq.c | 511 unsigned long mem_type; in s5pv210_cpu_init() local 539 mem_type = check_mem_type(S5P_VA_DMC0); in s5pv210_cpu_init() 541 if ((mem_type != LPDDR) && (mem_type != LPDDR2)) { in s5pv210_cpu_init()
|
/drivers/net/ethernet/brocade/bna/ |
D | bna_enet.c | 1894 res_info[BNA_RES_MEM_T_COM].res_u.mem_info.mem_type = BNA_MEM_T_DMA; in bna_res_req() 1903 res_info[BNA_RES_MEM_T_ATTR].res_u.mem_info.mem_type = BNA_MEM_T_DMA; in bna_res_req() 1910 res_info[BNA_RES_MEM_T_FWTRC].res_u.mem_info.mem_type = BNA_MEM_T_KVA; in bna_res_req() 1916 res_info[BNA_RES_MEM_T_STATS].res_u.mem_info.mem_type = BNA_MEM_T_DMA; in bna_res_req() 1930 res_info[BNA_MOD_RES_MEM_T_TX_ARRAY].res_u.mem_info.mem_type = in bna_mod_res_req() 1938 res_info[BNA_MOD_RES_MEM_T_TXQ_ARRAY].res_u.mem_info.mem_type = in bna_mod_res_req() 1946 res_info[BNA_MOD_RES_MEM_T_RX_ARRAY].res_u.mem_info.mem_type = in bna_mod_res_req() 1954 res_info[BNA_MOD_RES_MEM_T_RXP_ARRAY].res_u.mem_info.mem_type = in bna_mod_res_req() 1962 res_info[BNA_MOD_RES_MEM_T_RXQ_ARRAY].res_u.mem_info.mem_type = in bna_mod_res_req() 1970 res_info[BNA_MOD_RES_MEM_T_UCMAC_ARRAY].res_u.mem_info.mem_type = in bna_mod_res_req() [all …]
|
D | bna_tx_rx.c | 2274 mem_info->mem_type = BNA_MEM_T_KVA; in bna_rx_res_req() 2280 mem_info->mem_type = BNA_MEM_T_KVA; in bna_rx_res_req() 2286 mem_info->mem_type = BNA_MEM_T_DMA; in bna_rx_res_req() 2292 mem_info->mem_type = BNA_MEM_T_KVA; in bna_rx_res_req() 2298 mem_info->mem_type = BNA_MEM_T_DMA; in bna_rx_res_req() 2304 mem_info->mem_type = BNA_MEM_T_DMA; in bna_rx_res_req() 2310 mem_info->mem_type = BNA_MEM_T_KVA; in bna_rx_res_req() 2316 mem_info->mem_type = BNA_MEM_T_DMA; in bna_rx_res_req() 2322 mem_info->mem_type = BNA_MEM_T_DMA; in bna_rx_res_req() 2328 mem_info->mem_type = BNA_MEM_T_KVA; in bna_rx_res_req() [all …]
|
/drivers/edac/ |
D | i82443bxgx_edac.c | 189 enum mem_type mtype) in i82443bxgx_init_csrows() 240 enum mem_type mtype; in i82443bxgx_edacmc_probe1()
|
/drivers/gpu/drm/ast/ |
D | ast_ttm.c | 157 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ast_ttm_io_mem_reserve() 167 switch (mem->mem_type) { in ast_ttm_io_mem_reserve()
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_ttm.c | 157 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in mgag200_ttm_io_mem_reserve() 167 switch (mem->mem_type) { in mgag200_ttm_io_mem_reserve()
|
/drivers/usb/serial/ |
D | whiteheat.h | 149 __u8 mem_type; /* see WHITEHEAT_DUMP_* above */ member
|
/drivers/gpu/drm/cirrus/ |
D | cirrus_ttm.c | 157 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in cirrus_ttm_io_mem_reserve() 167 switch (mem->mem_type) { in cirrus_ttm_io_mem_reserve()
|