Home
last modified time | relevance | path

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

123

/drivers/gpu/drm/ttm/
Dttm_bo.c57 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 …]
Dttm_bo_util.c53 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/
Dradeon_ttm.c190 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 …]
Dradeon_object.h40 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,
Dradeon_object.c547 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/
Dqxl_object.h70 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()
Dqxl_object.c148 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()
Dqxl_ttm.c221 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/
Dtiomap_io.h52 u32 ul_num_bytes, u32 mem_type);
59 u32 ul_num_bytes, u32 mem_type);
69 u32 ul_num_bytes, u32 mem_type,
Dtiomap3430.c82 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 …]
Dtiomap_io.c53 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/
Dvmwgfx_dmabuf.c223 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()
Dvmwgfx_buffer.c261 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/
Dpcmciamtd.c61 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/
Dnouveau_bo.c308 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 …]
Dnouveau_gem.c180 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/
Ddspdefs.h131 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/
Ds5pv210-cpufreq.c511 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/
Dbna_enet.c1894 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 …]
Dbna_tx_rx.c2274 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/
Di82443bxgx_edac.c189 enum mem_type mtype) in i82443bxgx_init_csrows()
240 enum mem_type mtype; in i82443bxgx_edacmc_probe1()
/drivers/gpu/drm/ast/
Dast_ttm.c157 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/
Dmgag200_ttm.c157 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/
Dwhiteheat.h149 __u8 mem_type; /* see WHITEHEAT_DUMP_* above */ member
/drivers/gpu/drm/cirrus/
Dcirrus_ttm.c157 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()

123