Home
last modified time | relevance | path

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

/drivers/gpu/drm/ast/
Dast_post.c42 struct ast_private *ast = to_ast_private(dev); in ast_enable_vga() local
44 ast_io_write8(ast, AST_IO_VGA_ENABLE_PORT, 0x01); in ast_enable_vga()
45 ast_io_write8(ast, AST_IO_MISC_PORT_WRITE, 0x01); in ast_enable_vga()
50 struct ast_private *ast = to_ast_private(dev); in ast_enable_mmio() local
52 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa1, 0x06); in ast_enable_mmio()
58 struct ast_private *ast = to_ast_private(dev); in ast_is_vga_enabled() local
61 ch = ast_io_read8(ast, AST_IO_VGA_ENABLE_PORT); in ast_is_vga_enabled()
73 struct ast_private *ast = to_ast_private(dev); 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()
81 if (ast->chip == AST2300 || ast->chip == AST2400 || in ast_set_def_ext_reg()
[all …]
Dast_dp501.c13 struct ast_private *ast = data; in ast_release_firmware() local
15 release_firmware(ast->dp501_fw); in ast_release_firmware()
16 ast->dp501_fw = NULL; in ast_release_firmware()
21 struct ast_private *ast = to_ast_private(dev); in ast_load_dp501_microcode() local
24 ret = request_firmware(&ast->dp501_fw, "ast_dp501_fw.bin", dev->dev); in ast_load_dp501_microcode()
28 return devm_add_action_or_reset(dev->dev, ast_release_firmware, ast); in ast_load_dp501_microcode()
31 static void send_ack(struct ast_private *ast) in send_ack() argument
34 sendack = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0xff); in send_ack()
36 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0x00, sendack); in send_ack()
39 static void send_nack(struct ast_private *ast) in send_nack() argument
[all …]
Dast_main.c40 void ast_set_index_reg_mask(struct ast_private *ast, in ast_set_index_reg_mask() argument
45 ast_io_write8(ast, base, index); in ast_set_index_reg_mask()
46 tmp = (ast_io_read8(ast, base + 1) & mask) | val; in ast_set_index_reg_mask()
47 ast_set_index_reg(ast, base, index, tmp); in ast_set_index_reg_mask()
50 uint8_t ast_get_index_reg(struct ast_private *ast, in ast_get_index_reg() argument
54 ast_io_write8(ast, base, index); in ast_get_index_reg()
55 ret = ast_io_read8(ast, base + 1); in ast_get_index_reg()
59 uint8_t ast_get_index_reg_mask(struct ast_private *ast, in ast_get_index_reg_mask() argument
63 ast_io_write8(ast, base, index); in ast_get_index_reg_mask()
64 ret = ast_io_read8(ast, base + 1) & mask; in ast_get_index_reg_mask()
[all …]
Dast_mode.c52 static inline void ast_load_palette_index(struct ast_private *ast, in ast_load_palette_index() argument
56 ast_io_write8(ast, AST_IO_DAC_INDEX_WRITE, index); in ast_load_palette_index()
57 ast_io_read8(ast, AST_IO_SEQ_PORT); in ast_load_palette_index()
58 ast_io_write8(ast, AST_IO_DAC_DATA, red); in ast_load_palette_index()
59 ast_io_read8(ast, AST_IO_SEQ_PORT); in ast_load_palette_index()
60 ast_io_write8(ast, AST_IO_DAC_DATA, green); in ast_load_palette_index()
61 ast_io_read8(ast, AST_IO_SEQ_PORT); in ast_load_palette_index()
62 ast_io_write8(ast, AST_IO_DAC_DATA, blue); in ast_load_palette_index()
63 ast_io_read8(ast, AST_IO_SEQ_PORT); in ast_load_palette_index()
66 static void ast_crtc_load_lut(struct ast_private *ast, struct drm_crtc *crtc) in ast_crtc_load_lut() argument
[all …]
Dast_cursor.c35 static void ast_cursor_fini(struct ast_private *ast) in ast_cursor_fini() argument
40 for (i = 0; i < ARRAY_SIZE(ast->cursor.gbo); ++i) { in ast_cursor_fini()
41 gbo = ast->cursor.gbo[i]; in ast_cursor_fini()
42 drm_gem_vram_vunmap(gbo, ast->cursor.vaddr[i]); in ast_cursor_fini()
50 struct ast_private *ast = to_ast_private(dev); in ast_cursor_release() local
52 ast_cursor_fini(ast); in ast_cursor_release()
58 int ast_cursor_init(struct ast_private *ast) in ast_cursor_init() argument
60 struct drm_device *dev = &ast->base; in ast_cursor_init()
68 for (i = 0; i < ARRAY_SIZE(ast->cursor.gbo); ++i) { in ast_cursor_init()
88 ast->cursor.gbo[i] = gbo; in ast_cursor_init()
[all …]
Dast_drv.h184 static inline u##x ast_read##x(struct ast_private *ast, u32 reg) { \
186 val = ioread##x(ast->regs + reg); \
195 static inline u##x ast_io_read##x(struct ast_private *ast, u32 reg) { \
197 val = ioread##x(ast->ioregs + reg); \
206 static inline void ast_write##x(struct ast_private *ast, u32 reg, u##x val) {\
207 iowrite##x(val, ast->regs + reg);\
215 static inline void ast_io_write##x(struct ast_private *ast, u32 reg, u##x val) {\
216 iowrite##x(val, ast->ioregs + reg);\
223 static inline void ast_set_index_reg(struct ast_private *ast, in ast_set_index_reg() argument
227 ast_io_write16(ast, base, ((u16)val << 8) | index); in ast_set_index_reg()
[all …]
Dast_mm.c37 static u32 ast_get_vram_size(struct ast_private *ast) in ast_get_vram_size() argument
42 ast_open_key(ast); in ast_get_vram_size()
45 jreg = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xaa, 0xff); in ast_get_vram_size()
61 jreg = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x99, 0xff); in ast_get_vram_size()
79 struct ast_private *ast = to_ast_private(dev); in ast_mm_release() local
81 arch_phys_wc_del(ast->fb_mtrr); in ast_mm_release()
86 int ast_mm_init(struct ast_private *ast) in ast_mm_init() argument
88 struct drm_device *dev = &ast->base; in ast_mm_init()
92 vram_size = ast_get_vram_size(ast); in ast_mm_init()
103 ast->fb_mtrr = arch_phys_wc_add(pci_resource_start(dev->pdev, 0), in ast_mm_init()
Dast_drv.c113 struct ast_private *ast; in ast_pci_probe() local
123 ast = ast_device_create(&ast_driver, pdev, ent->driver_data); in ast_pci_probe()
124 if (IS_ERR(ast)) in ast_pci_probe()
125 return PTR_ERR(ast); in ast_pci_probe()
126 dev = &ast->base; in ast_pci_probe()
DMakefile6 ast-y := ast_cursor.o ast_drv.o ast_main.o ast_mm.o ast_mode.o ast_post.o \
9 obj-$(CONFIG_DRM_AST) := ast.o
/drivers/fsi/
DMakefile7 obj-$(CONFIG_FSI_MASTER_AST_CF) += fsi-master-ast-cf.o
/drivers/gpu/drm/
DMakefile88 obj-$(CONFIG_DRM_AST) += ast/
DKconfig314 source "drivers/gpu/drm/ast/Kconfig"