Home
last modified time | relevance | path

Searched refs:ast (Results 1 – 11 of 11) sorted by relevance

/drivers/gpu/drm/ast/
Dast_dp501.c9 struct ast_private *ast = dev->dev_private; in ast_load_dp501_microcode() local
12 err = request_firmware(&ast->dp501_fw, fw_name, dev->dev); in ast_load_dp501_microcode()
19 static void send_ack(struct ast_private *ast) in send_ack() argument
22 sendack = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0xff); in send_ack()
24 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0x00, sendack); in send_ack()
27 static void send_nack(struct ast_private *ast) in send_nack() argument
30 sendack = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0xff); in send_nack()
32 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0x00, sendack); in send_nack()
35 static bool wait_ack(struct ast_private *ast) in wait_ack() argument
40 waitack = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xd2, 0xff); in wait_ack()
[all …]
Dast_post.c38 struct ast_private *ast = dev->dev_private; in ast_enable_vga() local
40 ast_io_write8(ast, AST_IO_VGA_ENABLE_PORT, 0x01); in ast_enable_vga()
41 ast_io_write8(ast, AST_IO_MISC_PORT_WRITE, 0x01); in ast_enable_vga()
46 struct ast_private *ast = dev->dev_private; in ast_enable_mmio() local
48 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xa1, 0xff, 0x04); in ast_enable_mmio()
54 struct ast_private *ast = dev->dev_private; in ast_is_vga_enabled() local
57 if (ast->chip == AST1180) { in ast_is_vga_enabled()
60 ch = ast_io_read8(ast, AST_IO_VGA_ENABLE_PORT); in ast_is_vga_enabled()
73 struct ast_private *ast = dev->dev_private; in ast_set_def_ext_reg() local
79 ast_set_index_reg(ast, AST_IO_CRTC_PORT, i, 0x00); in ast_set_def_ext_reg()
[all …]
Dast_main.c37 void ast_set_index_reg_mask(struct ast_private *ast, in ast_set_index_reg_mask() argument
42 ast_io_write8(ast, base, index); in ast_set_index_reg_mask()
43 tmp = (ast_io_read8(ast, base + 1) & mask) | val; in ast_set_index_reg_mask()
44 ast_set_index_reg(ast, base, index, tmp); in ast_set_index_reg_mask()
47 uint8_t ast_get_index_reg(struct ast_private *ast, in ast_get_index_reg() argument
51 ast_io_write8(ast, base, index); in ast_get_index_reg()
52 ret = ast_io_read8(ast, base + 1); in ast_get_index_reg()
56 uint8_t ast_get_index_reg_mask(struct ast_private *ast, in ast_get_index_reg_mask() argument
60 ast_io_write8(ast, base, index); in ast_get_index_reg_mask()
61 ret = ast_io_read8(ast, base + 1) & mask; in ast_get_index_reg_mask()
[all …]
Dast_mode.c49 static inline void ast_load_palette_index(struct ast_private *ast, in ast_load_palette_index() argument
53 ast_io_write8(ast, AST_IO_DAC_INDEX_WRITE, index); in ast_load_palette_index()
54 ast_io_read8(ast, AST_IO_SEQ_PORT); in ast_load_palette_index()
55 ast_io_write8(ast, AST_IO_DAC_DATA, red); in ast_load_palette_index()
56 ast_io_read8(ast, AST_IO_SEQ_PORT); in ast_load_palette_index()
57 ast_io_write8(ast, AST_IO_DAC_DATA, green); in ast_load_palette_index()
58 ast_io_read8(ast, AST_IO_SEQ_PORT); in ast_load_palette_index()
59 ast_io_write8(ast, AST_IO_DAC_DATA, blue); in ast_load_palette_index()
60 ast_io_read8(ast, AST_IO_SEQ_PORT); in ast_load_palette_index()
65 struct ast_private *ast = crtc->dev->dev_private; in ast_crtc_load_lut() local
[all …]
Dast_ttm.c50 static int ast_ttm_global_init(struct ast_private *ast) in ast_ttm_global_init() argument
55 global_ref = &ast->ttm.mem_global_ref; in ast_ttm_global_init()
67 ast->ttm.bo_global_ref.mem_glob = in ast_ttm_global_init()
68 ast->ttm.mem_global_ref.object; in ast_ttm_global_init()
69 global_ref = &ast->ttm.bo_global_ref.ref; in ast_ttm_global_init()
77 drm_global_item_unref(&ast->ttm.mem_global_ref); in ast_ttm_global_init()
84 ast_ttm_global_release(struct ast_private *ast) in ast_ttm_global_release() argument
86 if (ast->ttm.mem_global_ref.release == NULL) in ast_ttm_global_release()
89 drm_global_item_unref(&ast->ttm.bo_global_ref.ref); in ast_ttm_global_release()
90 drm_global_item_unref(&ast->ttm.mem_global_ref); in ast_ttm_global_release()
[all …]
Dast_drv.h148 static inline u##x ast_read##x(struct ast_private *ast, u32 reg) { \
150 val = ioread##x(ast->regs + reg); \
159 static inline u##x ast_io_read##x(struct ast_private *ast, u32 reg) { \
161 val = ioread##x(ast->ioregs + reg); \
170 static inline void ast_write##x(struct ast_private *ast, u32 reg, u##x val) {\
171 iowrite##x(val, ast->regs + reg);\
179 static inline void ast_io_write##x(struct ast_private *ast, u32 reg, u##x val) {\
180 iowrite##x(val, ast->ioregs + reg);\
187 static inline void ast_set_index_reg(struct ast_private *ast, in ast_set_index_reg() argument
191 ast_io_write16(ast, base, ((u16)val << 8) | index); in ast_set_index_reg()
[all …]
Dast_fb.c309 struct ast_private *ast = dev->dev_private; in ast_fbdev_init() local
317 ast->fbdev = afbdev; in ast_fbdev_init()
349 struct ast_private *ast = dev->dev_private; in ast_fbdev_fini() local
351 if (!ast->fbdev) in ast_fbdev_fini()
354 ast_fbdev_destroy(dev, ast->fbdev); in ast_fbdev_fini()
355 kfree(ast->fbdev); in ast_fbdev_fini()
356 ast->fbdev = NULL; in ast_fbdev_fini()
361 struct ast_private *ast = dev->dev_private; in ast_fbdev_set_suspend() local
363 if (!ast->fbdev) in ast_fbdev_set_suspend()
366 drm_fb_helper_set_suspend(&ast->fbdev->helper, state); in ast_fbdev_set_suspend()
[all …]
DMakefile7 ast-y := ast_drv.o ast_main.o ast_mode.o ast_fb.o ast_ttm.o ast_post.o ast_dp501.o
9 obj-$(CONFIG_DRM_AST) := ast.o
/drivers/gpu/drm/mgag200/
Dmgag200_ttm.c50 static int mgag200_ttm_global_init(struct mga_device *ast) in mgag200_ttm_global_init() argument
55 global_ref = &ast->ttm.mem_global_ref; in mgag200_ttm_global_init()
67 ast->ttm.bo_global_ref.mem_glob = in mgag200_ttm_global_init()
68 ast->ttm.mem_global_ref.object; in mgag200_ttm_global_init()
69 global_ref = &ast->ttm.bo_global_ref.ref; in mgag200_ttm_global_init()
77 drm_global_item_unref(&ast->ttm.mem_global_ref); in mgag200_ttm_global_init()
84 mgag200_ttm_global_release(struct mga_device *ast) in mgag200_ttm_global_release() argument
86 if (ast->ttm.mem_global_ref.release == NULL) in mgag200_ttm_global_release()
89 drm_global_item_unref(&ast->ttm.bo_global_ref.ref); in mgag200_ttm_global_release()
90 drm_global_item_unref(&ast->ttm.mem_global_ref); in mgag200_ttm_global_release()
[all …]
/drivers/gpu/drm/
DMakefile60 obj-$(CONFIG_DRM_AST) += ast/
DKconfig228 source "drivers/gpu/drm/ast/Kconfig"