Lines Matching defs:tmp1
1371 u_char tmp = 0, tmp1, tmp2;
1424 tmp1 = ad_read(mss, 0);
1426 if (tmp1 != 0xaa || tmp2 != 0x45) {
1427 BVDDB(printf("mss_detect error - IREG (%x/%x)\n", tmp1, tmp2));
1433 tmp1 = ad_read(mss, 0);
1435 if (tmp1 != 0x45 || tmp2 != 0xaa) {
1436 BVDDB(printf("mss_detect error - IREG2 (%x/%x)\n", tmp1, tmp2));
1447 tmp1 = ad_read(mss, 12);
1449 if ((tmp & 0x0f) != (tmp1 & 0x0f)) {
1450 BVDDB(printf("mss_detect - I12 (0x%02x was 0x%02x)\n", tmp1, tmp));
1472 if ((tmp1 = ad_read(mss, i)) != (tmp2 = ad_read(mss, i + 16))) {
1474 i, tmp1, tmp2));
1493 tmp1 = ad_read(mss, 12);
1494 if (tmp1 & 0x80) name = "CS4248"; /* Our best knowledge just now */
1495 if ((tmp1 & 0xf0) == 0x00) {
1497 } else if ((tmp1 & 0xc0) != 0xC0) goto gotit;
1505 if ((tmp1 = ad_read(mss, 16)) == 0x45) goto gotit;
1508 if ((tmp1 = ad_read(mss, 16)) == 0xaa) { /* Rotten bits? */
1509 BVDDB(printf("mss_detect error - step H(%x)\n", tmp1));
1513 tmp1 = ad_read(mss, 25); /* Original bits */
1514 ad_write(mss, 25, ~tmp1); /* Invert all bits */
1515 if ((ad_read(mss, 25) & 0xe7) == (tmp1 & 0xe7)) {
1591 ad_write(mss, 25, tmp1); /* Restore bits */