Lines Matching refs:tmp
1126 unsigned char fs, old_fs, tmp = 0; in ad1848_prepare_for_output() local
1152 tmp = ad_read(devc, 16); in ad1848_prepare_for_output()
1153 ad_write(devc, 16, tmp | 0x30); in ad1848_prepare_for_output()
1172 ad_write(devc, 16, tmp & ~0x30); in ad1848_prepare_for_output()
1194 unsigned char fs, old_fs, tmp = 0; in ad1848_prepare_for_input() local
1219 tmp = ad_read(devc, 16); in ad1848_prepare_for_input()
1220 ad_write(devc, 16, tmp | 0x30); in ad1848_prepare_for_input()
1253 unsigned char tmp = portc->speed_bits | (ad_read(devc, 8) & 0xf0); in ad1848_prepare_for_input() local
1255 ad_write(devc, 8, tmp); in ad1848_prepare_for_input()
1285 ad_write(devc, 16, tmp & ~0x30); in ad1848_prepare_for_input()
1398 unsigned char tmp, old; in ad1848_trigger() local
1403 tmp = old = ad_read(devc, 9); in ad1848_trigger()
1408 tmp |= 0x02; in ad1848_trigger()
1410 tmp &= ~0x02; in ad1848_trigger()
1415 tmp |= 0x01; in ad1848_trigger()
1417 tmp &= ~0x01; in ad1848_trigger()
1420 if (tmp != old) in ad1848_trigger()
1422 ad_write(devc, 9, tmp); in ad1848_trigger()
1535 unsigned char tmp; in ad1848_detect() local
1667 tmp = ad_read(devc, 12); in ad1848_detect()
1668 ad_write(devc, 12, (~tmp) & 0x0f); in ad1848_detect()
1670 if ((tmp & 0x0f) != ((tmp1 = ad_read(devc, 12)) & 0x0f)) in ad1848_detect()
1793 unsigned char tmp = ad_read(devc, 23); in ad1848_detect() local
1794 ad_write(devc, 23, ~tmp); in ad1848_detect()
1801 else if (ad_read(devc, 23) != tmp) /* AD1845 ? */ in ad1848_detect()
1814 ad_write(devc, 23, tmp); /* Restore */ in ad1848_detect()
2037 unsigned char tmp = ad_read(devc, 16); in ad1848_init() local
2045 ad_write(devc, 16, tmp | 0x40); /* Enable timer */ in ad1848_init()
2047 ad_write(devc, 16, tmp & ~0x40); /* Disable timer */ in ad1848_init()
2281 unsigned char tmp; in init_deskpro_m() local
2283 if ((tmp = inb(0xc44)) == 0xff) in init_deskpro_m()
2309 unsigned char tmp; in init_deskpro() local
2311 if ((tmp = inb(0xc44)) == 0xff) in init_deskpro()
2316 outb((tmp | 0x04), 0xc44); /* Select bank 1 */ in init_deskpro()
2356 outb((tmp & ~0x04), 0xc44); in init_deskpro()
2358 outb((tmp | 0x04), 0xc44); in init_deskpro()
2363 tmp = 0x58; /* MSS Mode, MSS&FM decode enabled */ in init_deskpro()
2368 tmp |= 0x00; in init_deskpro()
2371 tmp |= 0x01; in init_deskpro()
2374 tmp |= 0x02; in init_deskpro()
2377 tmp |= 0x03; in init_deskpro()
2383 outb((tmp & ~0x04), 0xc44); /* Write to bank=0 */ in init_deskpro()
2388 outb((tmp & ~0x04), 0xc44); /* Select bank=0 */ in init_deskpro()
2390 outb((tmp | 0x04), 0xc44); /* Select bank=1 */ in init_deskpro()
2407 outb((tmp & ~0x04), 0xc44); /* Select bank=0 */ in init_deskpro()
2409 outb((tmp | 0x04), 0xc44); /* Select bank=1 */ in init_deskpro()
2413 outb((tmp & ~0x04), 0xc44); /* Select bank=0 */ in init_deskpro()
2415 outb((tmp | 0x04), 0xc44); /* Select bank=1 */ in init_deskpro()
2421 outb((tmp & ~0x04), 0xc44); /* Select bank=0 */ in init_deskpro()
2423 outb((tmp | 0x04), 0xc44); /* Select bank=1 */ in init_deskpro()
2438 outb((tmp & ~0x04), 0xc44); /* Select bank=0 */ in init_deskpro()
2440 outb((tmp | 0x04), 0xc44); /* Select bank=1 */ in init_deskpro()
2444 outb((tmp & ~0x04), 0xc44); /* Select bank=0 */ in init_deskpro()
2446 outb((tmp | 0x04), 0xc44); /* Select bank=1 */ in init_deskpro()
2452 outb((tmp & ~0x04), 0xc44); /* Select bank=0 */ in init_deskpro()
2454 outb((tmp | 0x04), 0xc44); /* Select bank=1 */ in init_deskpro()
2468 outb((tmp & ~0x04), 0xc44); /* Select bank=0 */ in init_deskpro()
2470 outb((tmp | 0x04), 0xc44); /* Select bank=1 */ in init_deskpro()
2474 outb((tmp & ~0x04), 0xc44); /* Select bank=0 */ in init_deskpro()
2476 outb((tmp | 0x04), 0xc44); /* Select bank=1 */ in init_deskpro()
2482 outb((tmp & ~0x04), 0xc44); /* Select bank=0 */ in init_deskpro()
2484 outb((tmp | 0x04), 0xc44); /* Select bank=1 */ in init_deskpro()
2507 unsigned char tmp; in probe_ms_sound() local
2535 if ((tmp = inb(hw_config->io_base + 3)) == 0xff) /* Bus float */ in probe_ms_sound()
2539 DDB(printk("I/O address is inactive (%x)\n", tmp)); in probe_ms_sound()
2544 DDB(printk("MSS signature = %x\n", tmp & 0x3f)); in probe_ms_sound()
2545 if ((tmp & 0x3f) != 0x04 && in probe_ms_sound()
2546 (tmp & 0x3f) != 0x0f && in probe_ms_sound()
2547 (tmp & 0x3f) != 0x00) in probe_ms_sound()
2646 int tmp = dma; in attach_ms_sound() local
2649 dma2 = tmp; in attach_ms_sound()