/drivers/scsi/ |
D | qlogicfas408.c | 84 x = inb(qbase + 0xd); in ql_zap() 105 if (reqlen >= 128 && (inb(qbase + 8) & 2)) { /* full */ in ql_pdma() 111 if ((j = inb(qbase + 8)) & 4) in ql_pdma() 117 if (reqlen >= 44 && (inb(qbase + 8) & 8)) { /* 1/3 */ in ql_pdma() 130 while (reqlen && !((j = inb(qbase + 8)) & 0x10)) in ql_pdma() 132 *request++ = inb(qbase + 4); in ql_pdma() 136 j = inb(qbase + 8); in ql_pdma() 142 if (reqlen >= 128 && inb(qbase + 8) & 0x10) { /* empty */ in ql_pdma() 148 if (!((j = inb(qbase + 8)) & 8)) { in ql_pdma() 153 if (reqlen >= 40 && !(inb(qbase + 8) & 4)) { /* 2/3 */ in ql_pdma() [all …]
|
D | fdomain.c | 598 inb( port + MSB_ID_Code ), inb( port + LSB_ID_Code ) ); in fdomain_is_valid_port() 607 if (inb( port + LSB_ID_Code ) != 0xe9) { /* test for 0x6127 id */ in fdomain_is_valid_port() 608 if (inb( port + LSB_ID_Code ) != 0x27) return 0; in fdomain_is_valid_port() 609 if (inb( port + MSB_ID_Code ) != 0x61) return 0; in fdomain_is_valid_port() 612 if (inb( port + MSB_ID_Code ) != 0x60) return 0; in fdomain_is_valid_port() 621 if ((inb( port + Configuration2 ) & 0x80) == 0x80) { in fdomain_is_valid_port() 623 if ((inb( port + Configuration2 ) & 0x80) == 0x00) { in fdomain_is_valid_port() 641 result = inb( port_base + Read_Loopback ); in fdomain_test_loopback() 666 int options = inb(base + Configuration1); in fdomain_get_irq() 1050 status = inb(port_base + TMC_Status); /* Read adapter status */ [all …]
|
D | ppa.h | 128 #define r_dtr(x) (unsigned char)inb((x)) 129 #define r_str(x) (unsigned char)inb((x)+1) 130 #define r_ctr(x) (unsigned char)inb((x)+2) 131 #define r_epp(x) (unsigned char)inb((x)+4) 132 #define r_fifo(x) (unsigned char)inb((x)) /* x must be base_hi */ 134 #define r_ecr(x) (unsigned char)inb((x)+0x2) /* x must be base_hi */
|
D | imm.h | 121 #define r_dtr(x) (unsigned char)inb((x)) 122 #define r_str(x) (unsigned char)inb((x)+1) 123 #define r_ctr(x) (unsigned char)inb((x)+2) 124 #define r_epp(x) (unsigned char)inb((x)+4) 125 #define r_fifo(x) (unsigned char)inb((x)) /* x must be base_hi */ 127 #define r_ecr(x) (unsigned char)inb((x)+2) /* x must be base_hi */
|
D | aha1740.c | 199 if ( inb(PORTADR(base)) & PORTADDR_ENH ) in aha1740_test_port() 228 while(inb(G2STAT(base)) & G2STAT_INTPEND) { in aha1740_intr_handle() 231 adapstat = inb(G2INTST(base)); in aha1740_intr_handle() 243 inb(G2STAT(base)),adapstat, in aha1740_intr_handle() 244 inb(G2INTST(base)), number_serviced++); in aha1740_intr_handle() 250 inb(G2STAT(base)),adapstat, in aha1740_intr_handle() 251 inb(G2INTST(base)), number_serviced++); in aha1740_intr_handle() 291 inb(MBOXIN0(base)), in aha1740_intr_handle() 292 inb(MBOXIN1(base)), in aha1740_intr_handle() 293 inb(MBOXIN2(base)), in aha1740_intr_handle() [all …]
|
D | sym53c416.c | 255 bytes_left = inb(base + PIO_FIFO_CNT); /* Number of bytes in the PIO FIFO */ in sym53c416_read() 266 *(buffer++) = inb(base + PIO_FIFO_1); in sym53c416_read() 272 while(time_before(jiffies, i) && (inb(base + PIO_INT_REG) & EMPTY) && timeout) in sym53c416_read() 273 if(inb(base + PIO_INT_REG) & SCI) in sym53c416_read() 276 if(inb(base + PIO_INT_REG) & EMPTY) in sym53c416_read() 297 bufferfree = PIO_SIZE - inb(base + PIO_FIFO_CNT); in sym53c416_write() 316 while(time_before(jiffies, i) && (inb(base + PIO_INT_REG) & FULL) && timeout) in sym53c416_write() 319 if(inb(base + PIO_INT_REG) & FULL) in sym53c416_write() 338 status_reg = inb(base + STATUS_REG); in sym53c416_intr_handle() 339 pio_int_reg = inb(base + PIO_INT_REG); in sym53c416_intr_handle() [all …]
|
/drivers/i2c/busses/ |
D | i2c-isch.c | 73 "ADD=%02x, DAT0=%02x, DAT1=%02x\n", inb(SMBHSTCNT), in sch_transaction() 74 inb(SMBHSTCMD), inb(SMBHSTADD), inb(SMBHSTDAT0), in sch_transaction() 75 inb(SMBHSTDAT1)); in sch_transaction() 78 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction() 90 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction() 99 outb(inb(SMBHSTCNT) | 0x10, SMBHSTCNT); in sch_transaction() 103 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction() 122 temp = inb(SMBHSTSTS) & 0x07; in sch_transaction() 133 "ADD=%02x, DAT0=%02x, DAT1=%02x\n", inb(SMBHSTCNT), in sch_transaction() 134 inb(SMBHSTCMD), inb(SMBHSTADD), inb(SMBHSTDAT0), in sch_transaction() [all …]
|
D | scx200_acb.c | 131 outb(inb(ACBCTL1) | ACBCTL1_STOP, ACBCTL1); in scx200_acb_machine() 161 outb(inb(ACBCTL1) | ACBCTL1_START, ACBCTL1); in scx200_acb_machine() 167 outb(inb(ACBCTL1) | ACBCTL1_ACK, ACBCTL1); in scx200_acb_machine() 169 outb(inb(ACBCTL1) & ~ACBCTL1_ACK, ACBCTL1); in scx200_acb_machine() 183 outb(inb(ACBCTL1) | ACBCTL1_ACK, ACBCTL1); in scx200_acb_machine() 185 outb(inb(ACBCTL1) & ~ACBCTL1_ACK, ACBCTL1); in scx200_acb_machine() 190 outb(inb(ACBCTL1) | ACBCTL1_STOP, ACBCTL1); in scx200_acb_machine() 193 *iface->ptr++ = inb(ACBSDA); in scx200_acb_machine() 202 outb(inb(ACBCTL1) | ACBCTL1_STOP, ACBCTL1); in scx200_acb_machine() 232 status = inb(ACBST); in scx200_acb_poll() [all …]
|
D | i2c-via.c | 51 outb(state ? inb(I2C_DIR) & ~I2C_SCL : inb(I2C_DIR) | I2C_SCL, I2C_DIR); in bit_via_setscl() 56 outb(state ? inb(I2C_DIR) & ~I2C_SDA : inb(I2C_DIR) | I2C_SDA, I2C_DIR); in bit_via_setsda() 61 return (0 != (inb(I2C_IN) & I2C_SCL)); in bit_via_getscl() 66 return (0 != (inb(I2C_IN) & I2C_SDA)); in bit_via_getsda() 129 outb(inb(I2C_DIR) & ~(I2C_SDA | I2C_SCL), I2C_DIR); in vt586b_probe() 130 outb(inb(I2C_OUT) & ~(I2C_SDA | I2C_SCL), I2C_OUT); in vt586b_probe()
|
/drivers/net/appletalk/ |
D | cops.c | 380 inb(ioaddr+DAYNA_RESET); in cops_irq() 385 inb(ioaddr); in cops_irq() 397 status = (inb(ioaddr+DAYNA_CARD_STATUS)&3); in cops_irq() 403 if((inb(ioaddr+TANG_CARD_STATUS)& TANG_TX_READY) !=0) in cops_irq() 476 while(timeout++ < 5 && (inb(ioaddr+TANG_CARD_STATUS)&TANG_TX_READY)==0) in tangent_wait_reset() 490 inb(ioaddr); /* Clear request latch. */ in cops_reset() 500 inb(ioaddr+DAYNA_RESET); /* Clear the reset */ in cops_reset() 562 if((inb(ioaddr+DAYNA_CARD_STATUS)&3)==1) in cops_load() 588 inb(ioaddr); in cops_load() 593 inb(ioaddr); /* Clear initial ready signal. */ in cops_load() [all …]
|
/drivers/parport/ |
D | parport_pc.c | 118 ectr = inb(ECONTROL(pb)); in frob_econtrol() 152 oecr = inb(ECONTROL(p)); in change_mode() 167 if (inb(ECONTROL(p)) & 0x01) in change_mode() 175 while (!(inb(ECONTROL(p)) & 0x01)) { in change_mode() 250 s->u.pc.ecr = inb(ECONTROL(p)); in parport_pc_save_state() 278 status = inb(STATUS(port)); in parport_pc_epp_read_data() 292 *((char *)buf) = inb(EPPDATA(port)); in parport_pc_epp_read_data() 297 status = inb(STATUS(port)); in parport_pc_epp_read_data() 312 if (inb(STATUS(port)) & 0x01) { in parport_pc_epp_read_data() 319 *((char *)buf) = inb(EPPDATA(port)); in parport_pc_epp_read_data() [all …]
|
/drivers/input/gameport/ |
D | lightning.c | 68 while ((inb(L4_PORT) & L4_BUSY) && t > 0) t--; in l4_wait_ready() 85 if (inb(L4_PORT) & L4_BUSY) goto fail; in l4_cooked_read() 89 status = inb(L4_PORT); in l4_cooked_read() 94 axes[i] = inb(L4_PORT); in l4_cooked_read() 100 *buttons = inb(L4_PORT) & 0x0f; in l4_cooked_read() 129 if (inb(L4_PORT) & L4_BUSY) in l4_getcal() 136 if (inb(L4_PORT) != L4_SELECT_DIGITAL + (port >> 2)) in l4_getcal() 146 cal[i] = inb(L4_PORT); in l4_getcal() 165 if (inb(L4_PORT) & L4_BUSY) in l4_setcal() 172 if (inb(L4_PORT) != L4_SELECT_DIGITAL + (port >> 2)) in l4_setcal() [all …]
|
/drivers/ata/ |
D | pata_legacy.c | 280 inb(0x1F5); in pdc20230_set_piomode() 281 outb(inb(0x1F2) | 0x80, 0x1F2); in pdc20230_set_piomode() 282 inb(0x1F2); in pdc20230_set_piomode() 283 inb(0x3F6); in pdc20230_set_piomode() 284 inb(0x3F6); in pdc20230_set_piomode() 285 inb(0x1F2); in pdc20230_set_piomode() 286 inb(0x1F2); in pdc20230_set_piomode() 288 while ((inb(0x1F2) & 0x80) && --tries); in pdc20230_set_piomode() 292 outb(inb(0x1F4) & 0x07, 0x1F4); in pdc20230_set_piomode() 294 rt = inb(0x1F3); in pdc20230_set_piomode() [all …]
|
/drivers/net/irda/ |
D | smsc-ircc2.c | 362 outb(((inb(iobase + IRCC_MASTER) & 0xf0) | (bank & 0x07)), in register_bank() 659 high = inb(fir_base + IRCC_ID_HIGH); in smsc_ircc_present() 660 low = inb(fir_base + IRCC_ID_LOW); in smsc_ircc_present() 661 chip = inb(fir_base + IRCC_CHIP_ID); in smsc_ircc_present() 662 version = inb(fir_base + IRCC_VERSION); in smsc_ircc_present() 663 config = inb(fir_base + IRCC_INTERFACE); in smsc_ircc_present() 699 config = inb(fir_base + IRCC_INTERFACE); in smsc_ircc_setup_io() 762 outb(((inb(iobase + IRCC_SCE_CFGA) & 0x87) | IRCC_CFGA_IRDA_SIR_A), in smsc_ircc_init_chip() 766 outb(((inb(iobase + IRCC_SCE_CFGB) & 0x3f) | IRCC_CFGB_MUX_COM), in smsc_ircc_init_chip() 769 outb(((inb(iobase + IRCC_SCE_CFGB) & 0x3f) | IRCC_CFGB_MUX_IR), in smsc_ircc_init_chip() [all …]
|
D | nsc-ircc.c | 239 reg = inb(cfg_base); in nsc_ircc_init() 248 id = inb(cfg_base+1); in nsc_ircc_init() 615 reg = inb(cfg_base+1); in nsc_ircc_probe_108() 637 reg = inb(cfg_base+1); in nsc_ircc_probe_108() 686 reg = inb(cfg_base+1); in nsc_ircc_probe_108() 723 reg = inb(cfg_base+1); in nsc_ircc_probe_338() 729 reg = inb(cfg_base+1); in nsc_ircc_probe_338() 735 reg = (inb(cfg_base+1) & 0xfe) << 2; in nsc_ircc_probe_338() 738 reg |= ((inb(cfg_base+1) & 0xfc) << 8); in nsc_ircc_probe_338() 744 reg = inb(cfg_base+1); in nsc_ircc_probe_338() [all …]
|
D | w83977af_ir.c | 344 outb(inb(iobase+ADCR1) | ADCR1_ADV_SL, iobase+ADCR1); in w83977af_probe() 352 version = inb(iobase+AUID); in w83977af_probe() 411 set = inb(iobase+SSR); in w83977af_change_speed() 511 set = inb(iobase+SSR); in w83977af_hard_xmit() 559 set = inb(iobase+SSR); in w83977af_dma_write() 563 outb(inb(iobase+HCR) & ~HCR_EN_DMA, iobase+HCR); in w83977af_dma_write() 574 outb(inb(iobase+HCR) | HCR_EN_DMA | HCR_TX_WT, iobase+HCR); in w83977af_dma_write() 592 set = inb(iobase+SSR); in w83977af_pio_write() 637 set = inb(iobase+SSR); in w83977af_dma_xmit_complete() 641 outb(inb(iobase+HCR) & ~HCR_EN_DMA, iobase+HCR); in w83977af_dma_xmit_complete() [all …]
|
D | ali-ircc.c | 194 reg = inb(cfg_base+1); in ali_ircc_init() 202 revision = inb(cfg_base+1); in ali_ircc_init() 492 hi = inb(cfg_base+1); in ali_ircc_probe_53() 494 low = inb(cfg_base+1); in ali_ircc_probe_53() 503 reg = inb(cfg_base+1); in ali_ircc_probe_53() 509 reg = inb(cfg_base+1); in ali_ircc_probe_53() 520 reg = inb(cfg_base+1); in ali_ircc_probe_53() 526 reg = inb(cfg_base+1); in ali_ircc_probe_53() 564 version = inb(iobase+FIR_ID_VR); in ali_ircc_setup() 583 outb(inb(iobase+FIR_IRDA_CR) | IRDA_CR_CRC, iobase+FIR_IRDA_CR); in ali_ircc_setup() [all …]
|
/drivers/net/ethernet/8390/ |
D | wd.c | 177 checksum += inb(ioaddr + 8 + i); in wd_probe1() 178 if (inb(ioaddr + 8) == 0xff /* Extra check to avoid soundcard. */ in wd_probe1() 179 || inb(ioaddr + 9) == 0xff in wd_probe1() 195 dev->dev_addr[i] = inb(ioaddr + 8 + i); in wd_probe1() 204 if (inb(ioaddr+0) == 'P' && inb(ioaddr+1) == 'D') { in wd_probe1() 205 unsigned char reg5 = inb(ioaddr+5); in wd_probe1() 207 switch (inb(ioaddr+2)) { in wd_probe1() 224 if (inb(ioaddr+i) != inb(ioaddr+8+i)) in wd_probe1() 231 int tmp = inb(ioaddr+1); /* fiddle with 16bit bit */ in wd_probe1() 233 if (((inb( ioaddr+1) & 0x01) == 0x01) /* A 16 bit card */ in wd_probe1() [all …]
|
/drivers/media/rc/ |
D | ite-cir.c | 566 iflags = inb(dev->cir_addr + IT87_IIR) & IT87_II; in it87_get_irq_causes() 594 val = inb(dev->cir_addr + IT87_RCR) in it87_set_carrier_params() 621 fifo = inb(dev->cir_addr + IT87_RSR) & IT87_RXFBC; in it87_get_rx_bytes() 624 *(buf++) = inb(dev->cir_addr + IT87_DR); in it87_get_rx_bytes() 640 return inb(dev->cir_addr + IT87_TSR) & IT87_TXFBC; in it87_get_tx_used_slots() 656 outb(inb(dev->cir_addr + IT87_RCR) | IT87_RXACT, in it87_idle_rx() 660 outb(inb(dev->cir_addr + IT87_TCR1) | IT87_FIFOCLR, in it87_idle_rx() 670 outb(inb(dev->cir_addr + IT87_IER) & ~(IT87_RDAIE | IT87_RFOIE), in it87_disable_rx() 674 outb(inb(dev->cir_addr + IT87_RCR) & ~IT87_RXEN, in it87_disable_rx() 688 outb(inb(dev->cir_addr + IT87_RCR) | IT87_RXEN, in it87_enable_rx() [all …]
|
/drivers/ide/ |
D | dtc2278.c | 56 inb(0x3f6); in sub22() 58 inb(0x3f6); in sub22() 60 inb(0x3f6); in sub22() 61 if(inb(0xb4) == c) { in sub22() 63 inb(0x3f6); in sub22() 117 inb(0x3f6); in dtc2278_probe() 119 inb(0x3f6); in dtc2278_probe()
|
/drivers/platform/chrome/ |
D | cros_ec_lpc.c | 41 if (!(inb(EC_LPC_ADDR_HOST_CMD) & EC_LPC_STATUS_BUSY_MASK)) in ec_response_timed_out() 77 msg->result = inb(EC_LPC_ADDR_HOST_DATA); in cros_ec_pkt_xfer_lpc() 85 dout[i] = inb(EC_LPC_ADDR_HOST_PACKET + i); in cros_ec_pkt_xfer_lpc() 102 inb(EC_LPC_ADDR_HOST_PACKET + sizeof(response) + i); in cros_ec_pkt_xfer_lpc() 168 msg->result = inb(EC_LPC_ADDR_HOST_DATA); in cros_ec_cmd_xfer_lpc() 174 args.flags = inb(EC_LPC_ADDR_HOST_ARGS); in cros_ec_cmd_xfer_lpc() 175 args.command_version = inb(EC_LPC_ADDR_HOST_ARGS + 1); in cros_ec_cmd_xfer_lpc() 176 args.data_size = inb(EC_LPC_ADDR_HOST_ARGS + 2); in cros_ec_cmd_xfer_lpc() 177 args.checksum = inb(EC_LPC_ADDR_HOST_ARGS + 3); in cros_ec_cmd_xfer_lpc() 193 msg->data[i] = inb(EC_LPC_ADDR_HOST_PARAM + i); in cros_ec_cmd_xfer_lpc() [all …]
|
/drivers/watchdog/ |
D | ibmasr.c | 77 reg = inb(asr_read_addr); in __asr_toggle() 80 reg = inb(asr_read_addr); in __asr_toggle() 83 reg = inb(asr_read_addr); in __asr_toggle() 86 reg = inb(asr_read_addr); in __asr_toggle() 103 reg = inb(asr_read_addr); in asr_enable() 113 reg = inb(asr_read_addr); in asr_enable() 116 reg = inb(asr_read_addr); in asr_enable() 125 reg = inb(asr_read_addr); in asr_disable() 133 reg = inb(asr_read_addr); in asr_disable() 137 reg = inb(asr_read_addr); in asr_disable() [all …]
|
D | wdt_pci.c | 135 inb(WDT_DC); /* Disable watchdog */ in wdtpci_start() 141 inb(WDT_DC); /* Disable watchdog */ in wdtpci_start() 145 inb(WDT_BUZZER); /* disable */ in wdtpci_start() 147 inb(WDT_OPTONOTRST); /* disable */ in wdtpci_start() 149 inb(WDT_OPTORST); /* disable */ in wdtpci_start() 151 inb(WDT_PROGOUT); /* disable */ in wdtpci_start() 181 inb(WDT_DC); /* Disable watchdog */ in wdtpci_stop() 201 inb(WDT_DC); /* Disable watchdog */ in wdtpci_ping() 248 new_status = inb(WDT_SR); in wdtpci_get_status() 283 c = inb(WDT_RT); in wdtpci_get_temperature() [all …]
|
/drivers/staging/comedi/drivers/ |
D | dt2814.c | 71 status = inb(dev->iobase + DT2814_CSR); in dt2814_ai_eoc() 94 hi = inb(dev->iobase + DT2814_DATA); in dt2814_ai_insn_read() 95 lo = inb(dev->iobase + DT2814_DATA); in dt2814_ai_insn_read() 209 hi = inb(dev->iobase + DT2814_DATA); in dt2814_interrupt() 210 lo = inb(dev->iobase + DT2814_DATA); in dt2814_interrupt() 224 if (inb(dev->iobase + DT2814_CSR) & DT2814_FINISH) in dt2814_interrupt() 227 inb(dev->iobase + DT2814_DATA); in dt2814_interrupt() 228 inb(dev->iobase + DT2814_DATA); in dt2814_interrupt() 249 if (inb(dev->iobase + DT2814_CSR) & DT2814_ERR) { in dt2814_attach() 253 i = inb(dev->iobase + DT2814_DATA); in dt2814_attach() [all …]
|
/drivers/tty/ |
D | mxser.c | 297 oldlcr = inb(baseio + UART_LCR); in mxser_enable_must_enchance_mode() 300 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_enchance_mode() 313 oldlcr = inb(baseio + UART_LCR); in mxser_disable_must_enchance_mode() 316 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_enchance_mode() 329 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_xon1_value() 332 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xon1_value() 346 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_xoff1_value() 349 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xoff1_value() 363 oldlcr = inb(info->ioaddr + UART_LCR); in mxser_set_must_fifo_value() 366 efr = inb(info->ioaddr + MOXA_MUST_EFR_REGISTER); in mxser_set_must_fifo_value() [all …]
|