Lines Matching refs:tmp1
1537 unsigned char tmp1 = 0xff, tmp2 = 0xff; in ad1848_detect() local
1636 if ((tmp1 = ad_read(devc, 0)) != 0xaa || (tmp2 = ad_read(devc, 1)) != 0x45) in ad1848_detect()
1642 DDB(printk("ad1848 detect error - step B (%x/%x)\n", tmp1, tmp2)); in ad1848_detect()
1650 if ((tmp1 = ad_read(devc, 0)) != 0x45 || (tmp2 = ad_read(devc, 1)) != 0xaa) in ad1848_detect()
1656 DDB(printk("ad1848 detect error - step C (%x/%x)\n", tmp1, tmp2)); in ad1848_detect()
1670 if ((tmp & 0x0f) != ((tmp1 = ad_read(devc, 12)) & 0x0f)) in ad1848_detect()
1672 DDB(printk("ad1848 detect error - step D (%x)\n", tmp1)); in ad1848_detect()
1700 if ((tmp1 = ad_read(devc, i)) != (tmp2 = ad_read(devc, i + 16))) in ad1848_detect()
1702 DDB(printk("ad1848 detect step F(%d/%x/%x) - OPTi chip???\n", i, tmp1, tmp2)); in ad1848_detect()
1725 tmp1 = ad_read(devc, 12); in ad1848_detect()
1726 if (tmp1 & 0x80) in ad1848_detect()
1733 if (optiC930 || (tmp1 & 0xc0) == (0x80 | 0x40)) in ad1848_detect()
1745 if ((tmp1 = ad_read(devc, 16)) != 0x45) /* No change -> CS4231? */ in ad1848_detect()
1748 if ((tmp1 = ad_read(devc, 16)) == 0xaa) /* Rotten bits? */ in ad1848_detect()
1750 DDB(printk("ad1848 detect error - step H(%x)\n", tmp1)); in ad1848_detect()
1759 tmp1 = ad_read(devc, 25); /* Original bits */ in ad1848_detect()
1760 ad_write(devc, 25, ~tmp1); /* Invert all bits */ in ad1848_detect()
1761 if ((ad_read(devc, 25) & 0xe7) == (tmp1 & 0xe7)) in ad1848_detect()
1899 ad_write(devc, 25, tmp1); /* Restore bits */ in ad1848_detect()
1903 } else if (tmp1 == 0x0a) { in ad1848_detect()
1915 if ((tmp1 = ad_read(devc, i)) != (tmp2 = ad_read(devc, i + 16))) { in ad1848_detect()
1916 DDB(printk("ad1848 detect step H(%d/%x/%x) - SoundPro chip?\n", i, tmp1, tmp2)); in ad1848_detect()