Lines Matching defs:temp
541 unsigned short temp, i, realcrtno = crtno;
555 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine,
557 if((!temp) || (temp == 0xffff)) {
564 (temp & 0x1a) ? "" : "[none of the supported]",
565 (temp & 0x02) ? "2 " : "",
566 (temp & 0x08) ? "D&P" : "",
567 (temp & 0x10) ? "FPDI-2" : "");
568 if(temp & 0x02) {
571 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine,
573 } while((temp) && i--);
574 if(!temp) {
782 u8 temp;
784 temp = SiS_GetReg(SISCR, 0x17);
785 if(!(temp & 0x80))
788 temp = SiS_GetReg(SISSR, 0x1f);
789 if(temp & 0xc0)
824 unsigned char temp, reg;
832 temp = SiS_GetReg(SISPART1, reg);
833 if(temp & 0x02)
2073 u8 cr32, temp;
2083 temp = SiS_GetReg(SISSR, 0x17);
2084 if((temp & 0x0F) && (ivideo->chip != SIS_300)) {
2087 temp = SiS_GetReg(SISSR, 0x16);
2088 if(temp & 0x20)
2173 temp = SiS_GetReg(SISSR, 0x38);
2174 if(temp & 0x01) ivideo->vbflags |= TV_PAL;
2177 temp = SiS_GetReg(SISSR, 0x38);
2178 if(temp & 0x01) ivideo->vbflags |= TV_PAL;
2181 temp = SiS_GetReg(SISCR, 0x79);
2182 if(temp & 0x20) ivideo->vbflags |= TV_PAL;
2215 u16 temp = 0xffff;
2261 temp = 1;
2268 if (temp == 0xffff) {
2272 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags,
2274 } while (((temp == 0) || (temp == 0xffff)) && i--);
2276 if ((temp == 0) || (temp == 0xffff)) {
2278 temp = 1;
2282 if ((temp) && (temp != 0xffff))
2298 unsigned short temp, realcrtno, i;
2320 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags, ivideo->sisvga_engine,
2323 if ((!temp) || (temp == 0xffff) || (!(temp & 0x02)))
2329 temp = SiS_HandleDDC(&ivideo->SiS_Pr, ivideo->vbflags,
2332 } while ((temp) && i--);
2334 if (temp)
2384 int temp, mytest, result, i, j;
2391 temp = (type >> 8) | (mytest & 0x00ff);
2392 SiS_SetRegANDOR(SISPART4, 0x10, 0xe0, temp);
2396 temp = SiS_GetReg(SISPART4, 0x03);
2397 temp ^= 0x0e;
2398 temp &= mytest;
2399 if (temp == mytest)
2861 u8 temp;
2866 temp = SIS_CMD_QUEUE_SIZE_Z7_64k;
2870 temp = SIS_CMD_QUEUE_SIZE_Z7_128k;
2875 temp = SIS_CMD_QUEUE_SIZE_4M;
2878 temp = SIS_CMD_QUEUE_SIZE_2M;
2881 temp = SIS_CMD_QUEUE_SIZE_1M;
2885 temp = SIS_CMD_QUEUE_SIZE_512k;
2902 SiS_SetReg(SISSR, IND_SIS_CMDQUEUE_SET, (temp | SIS_VRAM_CMDQUEUE_ENABLE));
2927 temp |= (SIS_MMIO_CMD_ENABLE | SIS_CMD_AUTO_CORR);
2928 SiS_SetReg(SISSR, IND_SIS_CMDQUEUE_SET, temp);
3747 unsigned short temp;
3755 temp = p2_1f | ((p2_20 & 0xf0) << 4);
3756 temp += (val * 2);
3757 p2_1f = temp & 0xff;
3758 p2_20 = (temp & 0xf00) >> 4;
3760 temp = p2_43 | ((p2_42 & 0xf0) << 4);
3761 temp += (val * 2);
3762 p2_43 = temp & 0xff;
3763 p2_42 = (temp & 0xf00) >> 4;
4047 unsigned long temp = 2;
4048 temp = simple_strtoul(this_opt + 9, NULL, 0);
4049 if((temp == 0) || (temp == 1)) {
4050 sisfb_scalelcd = temp ^ 1;
4053 int temp = 0;
4054 temp = (int)simple_strtol(this_opt + 13, NULL, 0);
4055 if((temp >= -32) && (temp <= 32)) {
4056 sisfb_tvxposoffset = temp;
4059 int temp = 0;
4060 temp = (int)simple_strtol(this_opt + 13, NULL, 0);
4061 if((temp >= -32) && (temp <= 32)) {
4062 sisfb_tvyposoffset = temp;
4067 int temp = 4;
4068 temp = simple_strtoul(this_opt + 7, NULL, 0);
4069 if((temp >= 0) && (temp <= 3)) {
4070 sisfb_lvdshl = temp;
4150 u32 temp;
4152 for (temp = 0x000c0000; temp < 0x000f0000; temp += 0x00001000) {
4154 rom_base = ioremap(temp, 65536);
4206 unsigned short temp;
4216 temp = 0x1234;
4218 writew(temp, FBAddress);
4219 if(readw(FBAddress) == temp)
4227 temp++;
4600 unsigned short temp;
4604 temp = pdev->vendor;
4605 if(temp == pcivendor) {