Lines Matching refs:ast

12 	struct ast_private *ast = to_ast_private(dev);  in ast_astdp_read_edid()  local
21 if (!(ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xD1, ASTDP_MCU_FW_EXECUTING) && in ast_astdp_read_edid()
22 ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDC, ASTDP_LINK_SUCCESS) && in ast_astdp_read_edid()
23 ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDF, ASTDP_HPD) && in ast_astdp_read_edid()
24 ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE5, in ast_astdp_read_edid()
29 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE5, (u8) ~ASTDP_HOST_EDID_READ_DONE_MASK, in ast_astdp_read_edid()
36 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE4, in ast_astdp_read_edid()
44 while ((ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xD7, in ast_astdp_read_edid()
46 (ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xD6, in ast_astdp_read_edid()
56 if (!(ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xD1, in ast_astdp_read_edid()
58 ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDC, in ast_astdp_read_edid()
60 ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDF, ASTDP_HPD))) { in ast_astdp_read_edid()
69 *(ediddata) = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, in ast_astdp_read_edid()
71 *(ediddata + 1) = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xD9, in ast_astdp_read_edid()
73 *(ediddata + 2) = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDA, in ast_astdp_read_edid()
75 *(ediddata + 3) = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDB, in ast_astdp_read_edid()
95 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE5, (u8) ~ASTDP_HOST_EDID_READ_DONE_MASK, in ast_astdp_read_edid()
101 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE5, in ast_astdp_read_edid()
107 if (!(ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xD1, ASTDP_MCU_FW_EXECUTING))) in ast_astdp_read_edid()
109 if (!(ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDC, ASTDP_LINK_SUCCESS))) in ast_astdp_read_edid()
111 if (!(ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDF, ASTDP_HPD))) in ast_astdp_read_edid()
113 if (!(ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE5, ASTDP_HOST_EDID_READ_DONE_MASK))) in ast_astdp_read_edid()
128 struct ast_private *ast = to_ast_private(dev); in ast_dp_launch() local
136 bDPTX = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xD1, TX_TYPE_MASK); in ast_dp_launch()
149 while (ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xD1, COPROCESSOR_LAUNCH) != in ast_dp_launch()
163 ast->tx_chip_types |= BIT(AST_TX_ASTDP); in ast_dp_launch()
165 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE5, in ast_dp_launch()
175 struct ast_private *ast = to_ast_private(dev); in ast_dp_power_on_off() local
177 u8 bE3 = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE3, AST_DP_VIDEO_ENABLE); in ast_dp_power_on_off()
184 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE3, (u8) ~AST_DP_PHY_SLEEP, bE3); in ast_dp_power_on_off()
191 struct ast_private *ast = to_ast_private(dev); in ast_dp_set_on_off() local
195 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE3, (u8) ~AST_DP_VIDEO_ENABLE, on); in ast_dp_set_on_off()
198 if (ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDC, ASTDP_LINK_SUCCESS) && in ast_dp_set_on_off()
199 ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDF, ASTDP_HPD)) { in ast_dp_set_on_off()
201 while (ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xDF, in ast_dp_set_on_off()
211 struct ast_private *ast = to_ast_private(crtc->dev); in ast_dp_set_mode() local
277 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE0, ASTDP_AND_CLEAR_MASK, in ast_dp_set_mode()
279 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE1, ASTDP_AND_CLEAR_MASK, ASTDP_MISC1); in ast_dp_set_mode()
280 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE2, ASTDP_AND_CLEAR_MASK, ModeIdx); in ast_dp_set_mode()