Lines Matching refs:mode
87 SetCrtcTimingValues(const DisplayModeEx& mode)
92 int hTotal = mode.timing.h_total / 8 - 5;
93 int hDisp_e = mode.timing.h_display / 8 - 1;
94 int hSync_s = mode.timing.h_sync_start / 8;
95 int hSync_e = mode.timing.h_sync_end / 8;
99 int vTotal = mode.timing.v_total - 2;
100 int vDisp_e = mode.timing.v_display - 1;
101 int vSync_s = mode.timing.v_sync_start;
102 int vSync_e = mode.timing.v_sync_end;
106 uint16 offset = mode.bytesPerRow / 8;
165 // Enable high resolution mode.
171 I810_SetDisplayMode(const DisplayModeEx& mode)
173 if (mode.bitsPerPixel != 8 && mode.bitsPerPixel != 16) {
175 TRACE("Unsupported color depth: %d bpp\n", mode.bitsPerPixel);
191 CalcVCLK(mode.timing.pixel_clock / 1000.0, m, n, p);
201 if (!(mode.timing.flags & B_POSITIVE_HSYNC))
203 if (!(mode.timing.flags & B_POSITIVE_VSYNC))
208 SetCrtcTimingValues(mode);
225 temp |= (mode.bitsPerPixel == 8 ? COLEXP_8BPP : COLEXP_16BPP);
228 // Turn on 8 bit dac mode so that the indexed colors are displayed properly,
229 // and put display in high resolution mode.
233 (mode.bitsPerPixel == 8 ? DISPLAY_8BPP_MODE : DISPLAY_16BPP_MODE));
241 temp32 |= I810_GetWatermark(mode);
244 // Enable high resolution mode.
247 I810_AdjustFrame(mode);
253 I810_AdjustFrame(const DisplayModeEx& mode)
257 uint32 address = ((mode.v_display_start * mode.virtual_width
258 + mode.h_display_start) * mode.bytesPerPixel) >> 2;
271 // Set the indexed color palette for 8-bit color depth mode.