Lines Matching defs:delay
450 SiS_GenericDelay(struct SiS_Private *SiS_Pr, unsigned short delay)
452 SiS_DDC2Delay(SiS_Pr, delay * 36);
458 SiS_LongDelay(struct SiS_Private *SiS_Pr, unsigned short delay)
460 while(delay--) {
468 SiS_ShortDelay(struct SiS_Private *SiS_Pr, unsigned short delay)
470 while(delay--) {
6231 /* 3. Panel delay compensation */
9709 unsigned short delay=0,index,myindex,temp,romptr=0;
9718 /* Find delay (from ROM, internal tables, PCI subsystem) */
9725 if(romptr) delay = ROMAddr[romptr];
9727 delay = 0x04;
9730 delay = 0x0a;
9732 delay = 0x00;
9734 delay = 0x0c;
9736 delay = 0x0c;
9739 delay = 0x00;
9767 delay = 0x00;
9769 delay = 0x20;
9771 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0x0f,delay);
9773 delay = 0x0c;
9775 delay = 0x03;
9777 delay = 0x00;
9780 if(IS_SIS740) delay = 0x01;
9781 else delay = 0x03;
9783 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0xf0,delay);
9789 * delay into the code, at no defined place in the BIOS.
9799 delay = 0x03;
9806 delay = 0x02;
9813 delay = 0x33;
9814 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2D,delay);
9815 delay &= 0x0f;
9838 delay = ROMAddr[(romptr + index)];
9840 delay = SiS310_LCDDelayCompensation_650301LV[myindex];
9845 delay = SiS310_LCDDelayCompensation_651301LV[myindex];
9847 delay = SiS310_LCDDelayCompensation_651302LV[myindex];
9861 delay = ROMAddr[(romptr + index)];
9865 if(IS_SIS740) delay = 0x03;
9866 else delay = 0x00;
9870 delay = SiS310_LCDDelayCompensation_301[myindex];
9872 if(IS_SIS740) delay = 0x01;
9873 else if(SiS_Pr->ChipType <= SIS_315PRO) delay = SiS310_LCDDelayCompensation_3xx301LV[myindex];
9874 else delay = SiS310_LCDDelayCompensation_650301LV[myindex];
9876 if(IS_SIS740) delay = 0x01; /* ? */
9877 else delay = 0x03;
9878 if(SiS_Pr->SiS_LCDResInfo == Panel_1600x1200) delay = 0x00; /* experience */
9880 if(IS_SIS740) delay = 0x01;
9881 else delay = SiS310_LCDDelayCompensation_3xx301B[myindex];
9889 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,0x0F,((delay << 4) & 0xf0));
9908 delay = ROMAddr[romptr + index];
9912 delay = SiS310_TVDelayCompensation_301B[index];
9923 delay = 0x02;
9928 delay = 0x03;
9932 delay = SiS310_TVDelayCompensation_651301LV[index];
9934 delay = SiS310_TVDelayCompensation_651302LV[index];
9943 delay = ROMAddr[romptr + index];
9947 delay = SiS310_TVDelayCompensation_LVDS[index];
9951 delay = SiS310_TVDelayCompensation_301[index];
9954 delay = SiS310_TVDelayCompensation_740301B[index];
9957 delay = SiS310_TVDelayCompensation_301B[index];
9958 if(SiS_Pr->SiS_VBType & VB_SIS301C) delay = 0x02;
9965 delay &= 0x0f;
9971 /* Write delay */
9979 delay &= 0x0f;
9980 delay |= 0xb0;
9982 delay &= 0x0f;
9983 delay |= 0xc0;
9985 delay = 0x35;
9987 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x2D,delay);
9991 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,0xF0,delay);
9998 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,0xF0,delay);
10001 delay <<= 4;
10002 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,0x0F,delay);
10004 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2D,0xF0,delay);
10217 unsigned short delay = 0, romptr = 0, index, lcdpdcindex;
10243 delay = ROMAddr[romptr + index];
10245 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0xf0,((delay >> 1) & 0x0f));
10246 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x35,0x7f,((delay & 0x01) << 7));
10248 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0x0f,((delay << 3) & 0xf0));
10249 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x20,0xbf,((delay & 0x01) << 6));
10257 if(SiS_Pr->UseCustomMode) delay = 0x04;
10258 else if(ModeNo <= 0x13) delay = 0x04;
10259 else delay = (SiS_Pr->SiS_RefIndex[RTI].Ext_PDC >> 4);
10260 delay |= (delay << 8);
10264 delay = 0x0606;
10267 delay = 0x0404;
10271 delay = (ROMAddr[romptr + index] & 0x0f) << 1;
10272 delay |= (delay << 8);
10278 delay -= 0x0404;
10285 delay = 0x0606;
10287 delay = 0x0404;
10299 delay = ROMAddr[romptr + index];
10301 delay = 0x04;
10302 if(index > 3) delay = 0;
10315 delay = ROMAddr[romptr + lcdpdcindex + 1]; /* LCD */
10316 delay |= (ROMAddr[romptr + lcdpdcindex] << 8); /* LCDA */
10324 case Panel_1024x768: delay = 0x0008; break;
10325 case Panel_1280x720: delay = 0x0004; break;
10327 case Panel_1280x768_2:delay = 0x0004; break;
10329 case Panel_1280x800_2:delay = 0x0004; break; /* Verified for 1280x800 */
10330 case Panel_1280x854: delay = 0x0004; break;
10331 case Panel_1280x1024: delay = 0x1e04; break;
10332 case Panel_1400x1050: delay = 0x0004; break;
10333 case Panel_1600x1200: delay = 0x0400; break;
10334 case Panel_1680x1050: delay = 0x0e04; break;
10337 delay = 0x0008;
10339 delay = 0x1e04;
10341 delay = 0x0004;
10343 delay = 0x0400;
10345 delay = 0x0e04;
10353 delay = SiS_Pr->PDC & 0x1f;
10356 delay = (SiS_Pr->PDCA & 0x1f) << 8;
10364 delay >>= 8;
10365 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0x0f,((delay << 3) & 0xf0));
10366 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x20,0xbf,((delay & 0x01) << 6));
10368 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2d,0xf0,((delay >> 1) & 0x0f));
10369 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x35,0x7f,((delay & 0x01) << 7));