Lines Matching refs:restore
2234 void R128RestoreCommonRegisters(ScrnInfoPtr pScrn, R128SavePtr restore)
2239 OUTREG(R128_FP_GEN_CNTL, restore->fp_gen_cntl | R128_FP_BLANK_DIS);
2241 OUTREG(R128_OVR_CLR, restore->ovr_clr);
2242 OUTREG(R128_OVR_WID_LEFT_RIGHT, restore->ovr_wid_left_right);
2243 OUTREG(R128_OVR_WID_TOP_BOTTOM, restore->ovr_wid_top_bottom);
2244 OUTREG(R128_OV0_SCALE_CNTL, restore->ov0_scale_cntl);
2245 OUTREG(R128_MPP_TB_CONFIG, restore->mpp_tb_config );
2246 OUTREG(R128_MPP_GP_CONFIG, restore->mpp_gp_config );
2247 OUTREG(R128_SUBPIC_CNTL, restore->subpic_cntl);
2248 OUTREG(R128_VIPH_CONTROL, restore->viph_control);
2249 OUTREG(R128_I2C_CNTL_1, restore->i2c_cntl_1);
2250 OUTREG(R128_GEN_INT_CNTL, restore->gen_int_cntl);
2251 OUTREG(R128_CAP0_TRIG_CNTL, restore->cap0_trig_cntl);
2252 OUTREG(R128_CAP1_TRIG_CNTL, restore->cap1_trig_cntl);
2253 OUTREG(R128_BUS_CNTL, restore->bus_cntl);
2254 OUTREG(R128_CONFIG_CNTL, restore->config_cntl);
2258 void R128RestoreRMXRegisters(ScrnInfoPtr pScrn, R128SavePtr restore)
2263 OUTREG(R128_FP_HORZ_STRETCH, restore->fp_horz_stretch);
2264 OUTREG(R128_FP_VERT_STRETCH, restore->fp_vert_stretch);
2265 OUTREG(R128_FP_CRTC_H_TOTAL_DISP, restore->fp_crtc_h_total_disp);
2266 OUTREG(R128_FP_CRTC_V_TOTAL_DISP, restore->fp_crtc_v_total_disp);
2267 OUTREG(R128_FP_H_SYNC_STRT_WID, restore->fp_h_sync_strt_wid);
2268 OUTREG(R128_FP_V_SYNC_STRT_WID, restore->fp_v_sync_strt_wid);
2272 void R128RestoreFPRegisters(ScrnInfoPtr pScrn, R128SavePtr restore)
2277 OUTREG(R128_TMDS_CRC, restore->tmds_crc);
2278 OUTREG(R128_TMDS_TRANSMITTER_CNTL, restore->tmds_transmitter_cntl);
2279 OUTREG(R128_FP_PANEL_CNTL, restore->fp_panel_cntl);
2280 OUTREG(R128_FP_GEN_CNTL, restore->fp_gen_cntl & ~(uint32_t)R128_FP_BLANK_DIS);
2284 void R128RestoreLVDSRegisters(ScrnInfoPtr pScrn, R128SavePtr restore)
2296 (restore->lvds_gen_cntl & (R128_LVDS_ON | R128_LVDS_BLON))) {
2297 OUTREG(R128_LVDS_GEN_CNTL, restore->lvds_gen_cntl);
2299 if (restore->lvds_gen_cntl & (R128_LVDS_ON | R128_LVDS_BLON)) {
2301 restore->lvds_gen_cntl & (uint32_t)~R128_LVDS_BLON);
2303 OUTREG(R128_LVDS_GEN_CNTL, restore->lvds_gen_cntl);
2305 OUTREG(R128_LVDS_GEN_CNTL, restore->lvds_gen_cntl | R128_LVDS_BLON);
2307 OUTREG(R128_LVDS_GEN_CNTL, restore->lvds_gen_cntl);
2313 void R128RestoreDDARegisters(ScrnInfoPtr pScrn, R128SavePtr restore)
2318 OUTREG(R128_DDA_CONFIG, restore->dda_config);
2319 OUTREG(R128_DDA_ON_OFF, restore->dda_on_off);
2323 void R128RestoreDDA2Registers(ScrnInfoPtr pScrn, R128SavePtr restore)
2328 OUTREG(R128_DDA2_CONFIG, restore->dda2_config);
2329 OUTREG(R128_DDA2_ON_OFF, restore->dda2_on_off);
2511 /* Save everything needed to restore the original VC state. */
2562 R128SavePtr restore = &info->SavedReg;
2574 OUTREG(R128_AMCGPIO_MASK, restore->amcgpio_mask);
2575 OUTREG(R128_AMCGPIO_EN_REG, restore->amcgpio_en_reg);
2576 OUTREG(R128_CLOCK_CNTL_INDEX, restore->clock_cntl_index);
2577 OUTREG(R128_GEN_RESET_CNTL, restore->gen_reset_cntl);
2578 OUTREG(R128_DP_DATATYPE, restore->dp_datatype);
2580 R128RestoreCommonRegisters(pScrn, restore);
2582 R128RestoreDDA2Registers(pScrn, restore);
2583 R128RestoreCrtc2Registers(pScrn, restore);
2584 R128RestorePLL2Registers(pScrn, restore);
2586 R128RestoreDDARegisters(pScrn, restore);
2587 R128RestoreCrtcRegisters(pScrn, restore);
2588 R128RestorePLLRegisters(pScrn, restore);
2589 R128RestoreDACRegisters(pScrn, restore);
2590 R128RestoreRMXRegisters(pScrn, restore);
2591 R128RestoreFPRegisters(pScrn, restore);
2592 R128RestoreLVDSRegisters(pScrn, restore);
2594 OUTREG(R128_AMCGPIO_MASK, restore->amcgpio_mask);
2595 OUTREG(R128_AMCGPIO_EN_REG, restore->amcgpio_en_reg);
2596 OUTREG(R128_CLOCK_CNTL_INDEX, restore->clock_cntl_index);
2597 OUTREG(R128_GEN_RESET_CNTL, restore->gen_reset_cntl);
2598 OUTREG(R128_DP_DATATYPE, restore->dp_datatype);