Lines Matching refs:tmpbyte

2532 	unsigned char tmpbyte;  in preconfigure_smsc_chip()  local
2536 tmpbyte = inb(iobase +1); // Read device ID in preconfigure_smsc_chip()
2538 tmpbyte); in preconfigure_smsc_chip()
2545 tmpbyte = inb(iobase + 1); in preconfigure_smsc_chip()
2546 if (tmpbyte != (conf->sir_io >> 2) ) { in preconfigure_smsc_chip()
2554 tmpbyte = inb(iobase + 1); in preconfigure_smsc_chip()
2555 tmpbyte &= SMSCSIOFLAT_UART1IRQSELECT_MASK; // Do not touch the UART1 portion in preconfigure_smsc_chip()
2556 tmpbyte |= (conf->fir_irq & SMSCSIOFLAT_UART2IRQSELECT_MASK); in preconfigure_smsc_chip()
2557 outb(tmpbyte, iobase + 1); in preconfigure_smsc_chip()
2558 tmpbyte = inb(iobase + 1) & SMSCSIOFLAT_UART2IRQSELECT_MASK; in preconfigure_smsc_chip()
2559 if (tmpbyte != conf->fir_irq) { in preconfigure_smsc_chip()
2567 tmpbyte = inb(iobase + 1); in preconfigure_smsc_chip()
2568 if (tmpbyte != (conf->fir_io >> 3) ) { in preconfigure_smsc_chip()
2576 tmpbyte = inb(iobase + 1) & LPC47N227_FIRDMASELECT_MASK; in preconfigure_smsc_chip()
2577 if (tmpbyte != (conf->fir_dma & LPC47N227_FIRDMASELECT_MASK)) { in preconfigure_smsc_chip()
2583 tmpbyte = inb(iobase + 1); in preconfigure_smsc_chip()
2584 tmpbyte &= ~SMSCSIOFLAT_UART2MODE_MASK | in preconfigure_smsc_chip()
2586 outb(tmpbyte, iobase + 1); // enable IrDA (HPSIR) mode, high speed in preconfigure_smsc_chip()
2589 tmpbyte = inb(iobase + 1); in preconfigure_smsc_chip()
2590 outb(tmpbyte | LPC47N227_UART2AUTOPWRDOWN_MASK, iobase + 1); // enable UART2 autopower down in preconfigure_smsc_chip()
2594 tmpbyte = inb(iobase + 1); in preconfigure_smsc_chip()
2595 outb(tmpbyte | 0x40, iobase + 1); // send active device to ir port in preconfigure_smsc_chip()
2598 tmpbyte = inb(iobase + 1); in preconfigure_smsc_chip()
2599 outb(tmpbyte | LPC47N227_UART2POWERDOWN_MASK, iobase + 1); // UART2 power up mode, UART1 power down in preconfigure_smsc_chip()
2602 tmpbyte = inb(iobase + 1); in preconfigure_smsc_chip()
2603 outb(tmpbyte | LPC47N227_VALID_MASK, iobase + 1); // valid config cycle done in preconfigure_smsc_chip()
2633 unsigned char tmpbyte; in preconfigure_through_82801() local
2654 pci_read_config_byte(dev, COM_DEC, &tmpbyte); in preconfigure_through_82801()
2655 tmpbyte &= 0xf8; /* mask COMA bits */ in preconfigure_through_82801()
2658 tmpbyte |= 0x00; in preconfigure_through_82801()
2661 tmpbyte |= 0x01; in preconfigure_through_82801()
2664 tmpbyte |= 0x02; in preconfigure_through_82801()
2667 tmpbyte |= 0x03; in preconfigure_through_82801()
2670 tmpbyte |= 0x04; in preconfigure_through_82801()
2673 tmpbyte |= 0x05; in preconfigure_through_82801()
2676 tmpbyte |= 0x06; in preconfigure_through_82801()
2679 tmpbyte |= 0x07; in preconfigure_through_82801()
2682 tmpbyte |= 0x01; /* COM2 default */ in preconfigure_through_82801()
2684 pr_debug("COM_DEC (write): 0x%02x\n", tmpbyte); in preconfigure_through_82801()
2685 pci_write_config_byte(dev, COM_DEC, tmpbyte); in preconfigure_through_82801()
2786 unsigned char tmpbyte; in preconfigure_ali_port() local
2812 pci_read_config_byte(dev, reg, &tmpbyte); in preconfigure_ali_port()
2814 tmpbyte |= mask; in preconfigure_ali_port()
2815 pci_write_config_byte(dev, reg, tmpbyte); in preconfigure_ali_port()