Lines Matching refs:ast

51 static inline void ast_load_palette_index(struct ast_private *ast,  in ast_load_palette_index()  argument
55 ast_io_write8(ast, AST_IO_DAC_INDEX_WRITE, index); 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, red); 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, green); in ast_load_palette_index()
60 ast_io_read8(ast, AST_IO_SEQ_PORT); in ast_load_palette_index()
61 ast_io_write8(ast, AST_IO_DAC_DATA, blue); in ast_load_palette_index()
62 ast_io_read8(ast, AST_IO_SEQ_PORT); in ast_load_palette_index()
65 static void ast_crtc_load_lut(struct ast_private *ast, struct drm_crtc *crtc) in ast_crtc_load_lut() argument
78 ast_load_palette_index(ast, i, *r++ >> 8, *g++ >> 8, *b++ >> 8); in ast_crtc_load_lut()
206 static void ast_set_vbios_color_reg(struct ast_private *ast, in ast_set_vbios_color_reg() argument
227 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x8c, (u8)((color_index & 0x0f) << 4)); in ast_set_vbios_color_reg()
229 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x91, 0x00); in ast_set_vbios_color_reg()
232 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x91, 0xa8); in ast_set_vbios_color_reg()
233 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x92, format->cpp[0] * 8); in ast_set_vbios_color_reg()
237 static void ast_set_vbios_mode_reg(struct ast_private *ast, in ast_set_vbios_mode_reg() argument
246 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x8d, refresh_rate_index & 0xff); in ast_set_vbios_mode_reg()
247 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x8e, mode_id & 0xff); in ast_set_vbios_mode_reg()
249 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x91, 0x00); in ast_set_vbios_mode_reg()
252 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x91, 0xa8); in ast_set_vbios_mode_reg()
253 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x93, adjusted_mode->clock / 1000); in ast_set_vbios_mode_reg()
254 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x94, adjusted_mode->crtc_hdisplay); in ast_set_vbios_mode_reg()
255 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x95, adjusted_mode->crtc_hdisplay >> 8); in ast_set_vbios_mode_reg()
256 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x96, adjusted_mode->crtc_vdisplay); in ast_set_vbios_mode_reg()
257 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x97, adjusted_mode->crtc_vdisplay >> 8); in ast_set_vbios_mode_reg()
261 static void ast_set_std_reg(struct ast_private *ast, in ast_set_std_reg() argument
272 ast_io_write8(ast, AST_IO_MISC_PORT_WRITE, jreg); in ast_set_std_reg()
275 ast_set_index_reg(ast, AST_IO_SEQ_PORT, 0x00, 0x03); in ast_set_std_reg()
276 ast_set_index_reg_mask(ast, AST_IO_SEQ_PORT, 0x01, 0xdf, stdtable->seq[0]); in ast_set_std_reg()
279 ast_set_index_reg(ast, AST_IO_SEQ_PORT, (i + 1), jreg); in ast_set_std_reg()
283 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x11, 0x7f, 0x00); in ast_set_std_reg()
285 ast_set_index_reg(ast, AST_IO_CRTC_PORT, i, stdtable->crtc[i]); in ast_set_std_reg()
287 ast_set_index_reg(ast, AST_IO_CRTC_PORT, i, stdtable->crtc[i]); in ast_set_std_reg()
289 ast_set_index_reg(ast, AST_IO_CRTC_PORT, i, stdtable->crtc[i]); in ast_set_std_reg()
292 jreg = ast_io_read8(ast, AST_IO_INPUT_STATUS1_READ); in ast_set_std_reg()
295 ast_io_write8(ast, AST_IO_AR_PORT_WRITE, (u8)i); in ast_set_std_reg()
296 ast_io_write8(ast, AST_IO_AR_PORT_WRITE, jreg); in ast_set_std_reg()
298 ast_io_write8(ast, AST_IO_AR_PORT_WRITE, 0x14); in ast_set_std_reg()
299 ast_io_write8(ast, AST_IO_AR_PORT_WRITE, 0x00); in ast_set_std_reg()
301 jreg = ast_io_read8(ast, AST_IO_INPUT_STATUS1_READ); in ast_set_std_reg()
302 ast_io_write8(ast, AST_IO_AR_PORT_WRITE, 0x20); in ast_set_std_reg()
306 ast_set_index_reg(ast, AST_IO_GR_PORT, i, stdtable->gr[i]); in ast_set_std_reg()
309 static void ast_set_crtc_reg(struct ast_private *ast, in ast_set_crtc_reg() argument
316 if ((ast->chip == AST2500 || ast->chip == AST2600) && in ast_set_crtc_reg()
320 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x11, 0x7f, 0x00); in ast_set_crtc_reg()
325 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x00, 0x00, temp); in ast_set_crtc_reg()
330 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x01, 0x00, temp); in ast_set_crtc_reg()
335 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x02, 0x00, temp); in ast_set_crtc_reg()
342 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x03, 0xE0, (temp & 0x1f)); in ast_set_crtc_reg()
347 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x04, 0x00, temp); in ast_set_crtc_reg()
352 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x05, 0x60, (u8)((temp & 0x1f) | jreg05)); in ast_set_crtc_reg()
354 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xAC, 0x00, jregAC); in ast_set_crtc_reg()
355 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xAD, 0x00, jregAD); in ast_set_crtc_reg()
358 if ((ast->chip == AST2600) && (mode->crtc_vdisplay == 1080)) in ast_set_crtc_reg()
359 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xFC, 0xFD, 0x02); in ast_set_crtc_reg()
361 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xFC, 0xFD, 0x00); in ast_set_crtc_reg()
371 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x06, 0x00, temp); in ast_set_crtc_reg()
380 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x10, 0x00, temp); in ast_set_crtc_reg()
387 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x11, 0x70, temp & 0xf); in ast_set_crtc_reg()
396 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x12, 0x00, temp); in ast_set_crtc_reg()
405 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x15, 0x00, temp); in ast_set_crtc_reg()
410 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x16, 0x00, temp); in ast_set_crtc_reg()
412 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x07, 0x00, jreg07); in ast_set_crtc_reg()
413 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x09, 0xdf, jreg09); in ast_set_crtc_reg()
414 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xAE, 0x00, (jregAE | 0x80)); in ast_set_crtc_reg()
417 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xb6, 0x3f, 0x80); in ast_set_crtc_reg()
419 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xb6, 0x3f, 0x00); in ast_set_crtc_reg()
421 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x11, 0x7f, 0x80); in ast_set_crtc_reg()
424 static void ast_set_offset_reg(struct ast_private *ast, in ast_set_offset_reg() argument
430 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x13, (offset & 0xff)); in ast_set_offset_reg()
431 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xb0, (offset >> 8) & 0x3f); in ast_set_offset_reg()
434 static void ast_set_dclk_reg(struct ast_private *ast, in ast_set_dclk_reg() argument
440 if ((ast->chip == AST2500) || (ast->chip == AST2600)) in ast_set_dclk_reg()
445 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xc0, 0x00, clk_info->param1); in ast_set_dclk_reg()
446 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xc1, 0x00, clk_info->param2); in ast_set_dclk_reg()
447 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xbb, 0x0f, in ast_set_dclk_reg()
452 static void ast_set_color_reg(struct ast_private *ast, in ast_set_color_reg() argument
476 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xa0, 0x8f, jregA0); in ast_set_color_reg()
477 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xa3, 0xf0, jregA3); in ast_set_color_reg()
478 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xa8, 0xfd, jregA8); in ast_set_color_reg()
481 static void ast_set_crtthd_reg(struct ast_private *ast) in ast_set_crtthd_reg() argument
484 if (ast->chip == AST2600) { in ast_set_crtthd_reg()
485 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0xe0); in ast_set_crtthd_reg()
486 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0xa0); in ast_set_crtthd_reg()
487 } else if (ast->chip == AST2300 || ast->chip == AST2400 || in ast_set_crtthd_reg()
488 ast->chip == AST2500) { in ast_set_crtthd_reg()
489 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0x78); in ast_set_crtthd_reg()
490 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0x60); in ast_set_crtthd_reg()
491 } else if (ast->chip == AST2100 || in ast_set_crtthd_reg()
492 ast->chip == AST1100 || in ast_set_crtthd_reg()
493 ast->chip == AST2200 || in ast_set_crtthd_reg()
494 ast->chip == AST2150) { in ast_set_crtthd_reg()
495 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0x3f); in ast_set_crtthd_reg()
496 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0x2f); in ast_set_crtthd_reg()
498 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0x2f); in ast_set_crtthd_reg()
499 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0x1f); in ast_set_crtthd_reg()
503 static void ast_set_sync_reg(struct ast_private *ast, in ast_set_sync_reg() argument
509 jreg = ast_io_read8(ast, AST_IO_MISC_PORT_READ); in ast_set_sync_reg()
515 ast_io_write8(ast, AST_IO_MISC_PORT_WRITE, jreg); in ast_set_sync_reg()
518 static void ast_set_start_address_crt1(struct ast_private *ast, in ast_set_start_address_crt1() argument
524 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x0d, (u8)(addr & 0xff)); in ast_set_start_address_crt1()
525 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x0c, (u8)((addr >> 8) & 0xff)); in ast_set_start_address_crt1()
526 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xaf, (u8)((addr >> 16) & 0xff)); in ast_set_start_address_crt1()
530 static void ast_wait_for_vretrace(struct ast_private *ast) in ast_wait_for_vretrace() argument
536 vgair1 = ast_io_read8(ast, AST_IO_INPUT_STATUS1_READ); in ast_wait_for_vretrace()
589 struct ast_private *ast = to_ast_private(dev); in ast_primary_plane_helper_atomic_update() local
602 ast_set_color_reg(ast, fb->format); in ast_primary_plane_helper_atomic_update()
603 ast_set_vbios_color_reg(ast, fb->format, vbios_mode_info); in ast_primary_plane_helper_atomic_update()
611 ast_set_offset_reg(ast, fb); in ast_primary_plane_helper_atomic_update()
612 ast_set_start_address_crt1(ast, (u32)gpu_addr); in ast_primary_plane_helper_atomic_update()
614 ast_set_index_reg_mask(ast, AST_IO_SEQ_PORT, 0x1, 0xdf, 0x00); in ast_primary_plane_helper_atomic_update()
621 struct ast_private *ast = to_ast_private(plane->dev); in ast_primary_plane_helper_atomic_disable() local
623 ast_set_index_reg_mask(ast, AST_IO_SEQ_PORT, 0x1, 0xdf, 0x20); in ast_primary_plane_helper_atomic_disable()
642 static int ast_primary_plane_init(struct ast_private *ast) in ast_primary_plane_init() argument
644 struct drm_device *dev = &ast->base; in ast_primary_plane_init()
645 struct drm_plane *primary_plane = &ast->primary_plane; in ast_primary_plane_init()
730 static void ast_set_cursor_base(struct ast_private *ast, u64 address) in ast_set_cursor_base() argument
736 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xc8, addr0); in ast_set_cursor_base()
737 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xc9, addr1); in ast_set_cursor_base()
738 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xca, addr2); in ast_set_cursor_base()
741 static void ast_set_cursor_location(struct ast_private *ast, u16 x, u16 y, in ast_set_cursor_location() argument
749 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xc2, x_offset); in ast_set_cursor_location()
750 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xc3, y_offset); in ast_set_cursor_location()
751 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xc4, x0); in ast_set_cursor_location()
752 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xc5, x1); in ast_set_cursor_location()
753 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xc6, y0); in ast_set_cursor_location()
754 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xc7, y1); in ast_set_cursor_location()
757 static void ast_set_cursor_enabled(struct ast_private *ast, bool enabled) in ast_set_cursor_enabled() argument
767 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xcb, mask, vgacrcb); in ast_set_cursor_enabled()
816 struct ast_private *ast = to_ast_private(plane->dev); in ast_cursor_plane_helper_atomic_update() local
841 ast_set_cursor_base(ast, dst_off); in ast_cursor_plane_helper_atomic_update()
872 ast_set_cursor_location(ast, x, y, x_offset, y_offset); in ast_cursor_plane_helper_atomic_update()
875 ast_set_cursor_enabled(ast, true); in ast_cursor_plane_helper_atomic_update()
882 struct ast_private *ast = to_ast_private(plane->dev); in ast_cursor_plane_helper_atomic_disable() local
884 ast_set_cursor_enabled(ast, false); in ast_cursor_plane_helper_atomic_disable()
919 static int ast_cursor_plane_init(struct ast_private *ast) in ast_cursor_plane_init() argument
921 struct drm_device *dev = &ast->base; in ast_cursor_plane_init()
922 struct ast_cursor_plane *ast_cursor_plane = &ast->cursor_plane; in ast_cursor_plane_init()
999 struct ast_private *ast = to_ast_private(crtc->dev); in ast_crtc_dpms() local
1010 ast_set_index_reg_mask(ast, AST_IO_SEQ_PORT, 0x01, 0xdf, 0); in ast_crtc_dpms()
1011 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xb6, 0xfc, 0); in ast_crtc_dpms()
1012 if (ast->tx_chip_types & AST_TX_DP501_BIT) in ast_crtc_dpms()
1015 if (ast->tx_chip_types & AST_TX_ASTDP_BIT) { in ast_crtc_dpms()
1017 ast_wait_for_vretrace(ast); in ast_crtc_dpms()
1027 ast_set_color_reg(ast, format); in ast_crtc_dpms()
1028 ast_set_vbios_color_reg(ast, format, vbios_mode_info); in ast_crtc_dpms()
1031 ast_crtc_load_lut(ast, crtc); in ast_crtc_dpms()
1037 if (ast->tx_chip_types & AST_TX_DP501_BIT) in ast_crtc_dpms()
1040 if (ast->tx_chip_types & AST_TX_ASTDP_BIT) { in ast_crtc_dpms()
1045 ast_set_index_reg_mask(ast, AST_IO_SEQ_PORT, 0x01, 0xdf, 0x20); in ast_crtc_dpms()
1046 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xb6, 0xfc, ch); in ast_crtc_dpms()
1054 struct ast_private *ast = to_ast_private(crtc->dev); in ast_crtc_helper_mode_valid() local
1058 if (ast->support_wide_screen) { in ast_crtc_helper_mode_valid()
1072 if ((ast->chip == AST2100) || (ast->chip == AST2200) || in ast_crtc_helper_mode_valid()
1073 (ast->chip == AST2300) || (ast->chip == AST2400) || in ast_crtc_helper_mode_valid()
1074 (ast->chip == AST2500) || (ast->chip == AST2600)) { in ast_crtc_helper_mode_valid()
1079 jtemp = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xd1, 0xff); in ast_crtc_helper_mode_valid()
1158 struct ast_private *ast = to_ast_private(dev); in ast_crtc_helper_atomic_begin() local
1166 mutex_lock(&ast->ioregs_lock); in ast_crtc_helper_atomic_begin()
1178 struct ast_private *ast = to_ast_private(dev); in ast_crtc_helper_atomic_flush() local
1188 ast_crtc_load_lut(ast, crtc); in ast_crtc_helper_atomic_flush()
1191 if (ast->tx_chip_types & AST_TX_ASTDP_BIT) in ast_crtc_helper_atomic_flush()
1194 mutex_unlock(&ast->ioregs_lock); in ast_crtc_helper_atomic_flush()
1202 struct ast_private *ast = to_ast_private(dev); in ast_crtc_helper_atomic_enable() local
1209 ast_set_vbios_mode_reg(ast, adjusted_mode, vbios_mode_info); in ast_crtc_helper_atomic_enable()
1210 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa1, 0x06); in ast_crtc_helper_atomic_enable()
1211 ast_set_std_reg(ast, adjusted_mode, vbios_mode_info); in ast_crtc_helper_atomic_enable()
1212 ast_set_crtc_reg(ast, adjusted_mode, vbios_mode_info); in ast_crtc_helper_atomic_enable()
1213 ast_set_dclk_reg(ast, adjusted_mode, vbios_mode_info); in ast_crtc_helper_atomic_enable()
1214 ast_set_crtthd_reg(ast); in ast_crtc_helper_atomic_enable()
1215 ast_set_sync_reg(ast, adjusted_mode, vbios_mode_info); in ast_crtc_helper_atomic_enable()
1227 struct ast_private *ast = to_ast_private(dev); in ast_crtc_helper_atomic_disable() local
1247 ast_wait_for_vretrace(ast); in ast_crtc_helper_atomic_disable()
1316 struct ast_private *ast = to_ast_private(dev); in ast_crtc_init() local
1317 struct drm_crtc *crtc = &ast->crtc; in ast_crtc_init()
1320 ret = drm_crtc_init_with_planes(dev, crtc, &ast->primary_plane, in ast_crtc_init()
1321 &ast->cursor_plane.base, &ast_crtc_funcs, in ast_crtc_init()
1340 struct ast_private *ast = to_ast_private(dev); in ast_vga_connector_helper_get_modes() local
1351 mutex_lock(&ast->ioregs_lock); in ast_vga_connector_helper_get_modes()
1357 mutex_unlock(&ast->ioregs_lock); in ast_vga_connector_helper_get_modes()
1365 mutex_unlock(&ast->ioregs_lock); in ast_vga_connector_helper_get_modes()
1413 static int ast_vga_output_init(struct ast_private *ast) in ast_vga_output_init() argument
1415 struct drm_device *dev = &ast->base; in ast_vga_output_init()
1416 struct drm_crtc *crtc = &ast->crtc; in ast_vga_output_init()
1417 struct drm_encoder *encoder = &ast->output.vga.encoder; in ast_vga_output_init()
1418 struct ast_vga_connector *ast_vga_connector = &ast->output.vga.vga_connector; in ast_vga_output_init()
1446 struct ast_private *ast = to_ast_private(dev); in ast_sil164_connector_helper_get_modes() local
1457 mutex_lock(&ast->ioregs_lock); in ast_sil164_connector_helper_get_modes()
1463 mutex_unlock(&ast->ioregs_lock); in ast_sil164_connector_helper_get_modes()
1471 mutex_unlock(&ast->ioregs_lock); in ast_sil164_connector_helper_get_modes()
1519 static int ast_sil164_output_init(struct ast_private *ast) in ast_sil164_output_init() argument
1521 struct drm_device *dev = &ast->base; in ast_sil164_output_init()
1522 struct drm_crtc *crtc = &ast->crtc; in ast_sil164_output_init()
1523 struct drm_encoder *encoder = &ast->output.sil164.encoder; in ast_sil164_output_init()
1524 struct ast_sil164_connector *ast_sil164_connector = &ast->output.sil164.sil164_connector; in ast_sil164_output_init()
1606 static int ast_dp501_output_init(struct ast_private *ast) in ast_dp501_output_init() argument
1608 struct drm_device *dev = &ast->base; in ast_dp501_output_init()
1609 struct drm_crtc *crtc = &ast->crtc; in ast_dp501_output_init()
1610 struct drm_encoder *encoder = &ast->output.dp501.encoder; in ast_dp501_output_init()
1611 struct drm_connector *connector = &ast->output.dp501.connector; in ast_dp501_output_init()
1693 static int ast_astdp_output_init(struct ast_private *ast) in ast_astdp_output_init() argument
1695 struct drm_device *dev = &ast->base; in ast_astdp_output_init()
1696 struct drm_crtc *crtc = &ast->crtc; in ast_astdp_output_init()
1697 struct drm_encoder *encoder = &ast->output.astdp.encoder; in ast_astdp_output_init()
1698 struct drm_connector *connector = &ast->output.astdp.connector; in ast_astdp_output_init()
1732 int ast_mode_config_init(struct ast_private *ast) in ast_mode_config_init() argument
1734 struct drm_device *dev = &ast->base; in ast_mode_config_init()
1749 if (ast->chip == AST2100 || in ast_mode_config_init()
1750 ast->chip == AST2200 || in ast_mode_config_init()
1751 ast->chip == AST2300 || in ast_mode_config_init()
1752 ast->chip == AST2400 || in ast_mode_config_init()
1753 ast->chip == AST2500 || in ast_mode_config_init()
1754 ast->chip == AST2600) { in ast_mode_config_init()
1765 ret = ast_primary_plane_init(ast); in ast_mode_config_init()
1769 ret = ast_cursor_plane_init(ast); in ast_mode_config_init()
1775 if (ast->tx_chip_types & AST_TX_NONE_BIT) { in ast_mode_config_init()
1776 ret = ast_vga_output_init(ast); in ast_mode_config_init()
1780 if (ast->tx_chip_types & AST_TX_SIL164_BIT) { in ast_mode_config_init()
1781 ret = ast_sil164_output_init(ast); in ast_mode_config_init()
1785 if (ast->tx_chip_types & AST_TX_DP501_BIT) { in ast_mode_config_init()
1786 ret = ast_dp501_output_init(ast); in ast_mode_config_init()
1790 if (ast->tx_chip_types & AST_TX_ASTDP_BIT) { in ast_mode_config_init()
1791 ret = ast_astdp_output_init(ast); in ast_mode_config_init()