Lines Matching refs:ast
36 static u32 ast_get_vram_size(struct ast_device *ast) in ast_get_vram_size() argument
42 jreg = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xaa, 0xff); in ast_get_vram_size()
58 jreg = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x99, 0xff); in ast_get_vram_size()
74 int ast_mm_init(struct ast_device *ast) in ast_mm_init() argument
76 struct drm_device *dev = &ast->base; in ast_mm_init()
88 vram_size = ast_get_vram_size(ast); in ast_mm_init()
90 ast->vram = devm_ioremap_wc(dev->dev, base, vram_size); in ast_mm_init()
91 if (!ast->vram) in ast_mm_init()
94 ast->vram_base = base; in ast_mm_init()
95 ast->vram_size = vram_size; in ast_mm_init()
96 ast->vram_fb_available = vram_size; in ast_mm_init()