Lines Matching refs:vbios_mode

84 				    struct ast_vbios_mode_info *vbios_mode)  in ast_get_vbios_mode_info()  argument
93 vbios_mode->std_table = &vbios_stdtable[VGAModeIndex]; in ast_get_vbios_mode_info()
96 vbios_mode->std_table = &vbios_stdtable[HiCModeIndex]; in ast_get_vbios_mode_info()
100 vbios_mode->std_table = &vbios_stdtable[TrueCModeIndex]; in ast_get_vbios_mode_info()
108 vbios_mode->enh_table = &res_640x480[refresh_rate_index]; in ast_get_vbios_mode_info()
111 vbios_mode->enh_table = &res_800x600[refresh_rate_index]; in ast_get_vbios_mode_info()
114 vbios_mode->enh_table = &res_1024x768[refresh_rate_index]; in ast_get_vbios_mode_info()
117 vbios_mode->enh_table = &res_1152x864[refresh_rate_index]; in ast_get_vbios_mode_info()
121 vbios_mode->enh_table = &res_1280x800[refresh_rate_index]; in ast_get_vbios_mode_info()
123 vbios_mode->enh_table = &res_1280x1024[refresh_rate_index]; in ast_get_vbios_mode_info()
126 vbios_mode->enh_table = &res_1360x768[refresh_rate_index]; in ast_get_vbios_mode_info()
129 vbios_mode->enh_table = &res_1440x900[refresh_rate_index]; in ast_get_vbios_mode_info()
133 vbios_mode->enh_table = &res_1600x900[refresh_rate_index]; in ast_get_vbios_mode_info()
135 vbios_mode->enh_table = &res_1600x1200[refresh_rate_index]; in ast_get_vbios_mode_info()
138 vbios_mode->enh_table = &res_1680x1050[refresh_rate_index]; in ast_get_vbios_mode_info()
142 vbios_mode->enh_table = &res_1920x1080[refresh_rate_index]; in ast_get_vbios_mode_info()
144 vbios_mode->enh_table = &res_1920x1200[refresh_rate_index]; in ast_get_vbios_mode_info()
151 check_sync = vbios_mode->enh_table->flags & WideScreenMode; in ast_get_vbios_mode_info()
154 const struct ast_vbios_enhtable *loop = vbios_mode->enh_table; in ast_get_vbios_mode_info()
180 vbios_mode->enh_table = best; in ast_get_vbios_mode_info()
182 hborder = (vbios_mode->enh_table->flags & HBorder) ? 8 : 0; in ast_get_vbios_mode_info()
183 vborder = (vbios_mode->enh_table->flags & VBorder) ? 8 : 0; in ast_get_vbios_mode_info()
185 adjusted_mode->crtc_htotal = vbios_mode->enh_table->ht; in ast_get_vbios_mode_info()
186 adjusted_mode->crtc_hblank_start = vbios_mode->enh_table->hde + hborder; in ast_get_vbios_mode_info()
187 adjusted_mode->crtc_hblank_end = vbios_mode->enh_table->ht - hborder; in ast_get_vbios_mode_info()
188 adjusted_mode->crtc_hsync_start = vbios_mode->enh_table->hde + hborder + in ast_get_vbios_mode_info()
189 vbios_mode->enh_table->hfp; in ast_get_vbios_mode_info()
190 adjusted_mode->crtc_hsync_end = (vbios_mode->enh_table->hde + hborder + in ast_get_vbios_mode_info()
191 vbios_mode->enh_table->hfp + in ast_get_vbios_mode_info()
192 vbios_mode->enh_table->hsync); in ast_get_vbios_mode_info()
194 adjusted_mode->crtc_vtotal = vbios_mode->enh_table->vt; in ast_get_vbios_mode_info()
195 adjusted_mode->crtc_vblank_start = vbios_mode->enh_table->vde + vborder; in ast_get_vbios_mode_info()
196 adjusted_mode->crtc_vblank_end = vbios_mode->enh_table->vt - vborder; in ast_get_vbios_mode_info()
197 adjusted_mode->crtc_vsync_start = vbios_mode->enh_table->vde + vborder + in ast_get_vbios_mode_info()
198 vbios_mode->enh_table->vfp; in ast_get_vbios_mode_info()
199 adjusted_mode->crtc_vsync_end = (vbios_mode->enh_table->vde + vborder + in ast_get_vbios_mode_info()
200 vbios_mode->enh_table->vfp + in ast_get_vbios_mode_info()
201 vbios_mode->enh_table->vsync); in ast_get_vbios_mode_info()
208 const struct ast_vbios_mode_info *vbios_mode) in ast_set_vbios_color_reg() argument
231 if (vbios_mode->enh_table->flags & NewModeInfo) { in ast_set_vbios_color_reg()
239 const struct ast_vbios_mode_info *vbios_mode) in ast_set_vbios_mode_reg() argument
243 refresh_rate_index = vbios_mode->enh_table->refresh_rate_index; in ast_set_vbios_mode_reg()
244 mode_id = vbios_mode->enh_table->mode_id; in ast_set_vbios_mode_reg()
251 if (vbios_mode->enh_table->flags & NewModeInfo) { in ast_set_vbios_mode_reg()
263 struct ast_vbios_mode_info *vbios_mode) in ast_set_std_reg() argument
269 stdtable = vbios_mode->std_table; in ast_set_std_reg()
311 struct ast_vbios_mode_info *vbios_mode) in ast_set_crtc_reg() argument
317 (vbios_mode->enh_table->flags & AST2500PreCatchCRT)) in ast_set_crtc_reg()
436 struct ast_vbios_mode_info *vbios_mode) in ast_set_dclk_reg() argument
441 clk_info = &dclk_table_ast2500[vbios_mode->enh_table->dclk_index]; in ast_set_dclk_reg()
443 clk_info = &dclk_table[vbios_mode->enh_table->dclk_index]; in ast_set_dclk_reg()
505 struct ast_vbios_mode_info *vbios_mode) in ast_set_sync_reg() argument
511 if (vbios_mode->enh_table->flags & NVSync) in ast_set_sync_reg()
513 if (vbios_mode->enh_table->flags & NHSync) in ast_set_sync_reg()