Home
last modified time | relevance | path

Searched refs:inb (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/drivers/scsi/
Dqlogicfas408.c84 x = inb(qbase + 0xd); in ql_zap()
106 if (reqlen >= 128 && (inb(qbase + 8) & 2)) { /* full */ in ql_pdma()
112 if ((j = inb(qbase + 8)) & 4) in ql_pdma()
118 if (reqlen >= 44 && (inb(qbase + 8) & 8)) { /* 1/3 */ in ql_pdma()
131 while (reqlen && !((j = inb(qbase + 8)) & 0x10)) in ql_pdma()
133 *request++ = inb(qbase + 4); in ql_pdma()
137 j = inb(qbase + 8); in ql_pdma()
143 if (reqlen >= 128 && inb(qbase + 8) & 0x10) { /* empty */ in ql_pdma()
149 if (!((j = inb(qbase + 8)) & 8)) { in ql_pdma()
154 if (reqlen >= 40 && !(inb(qbase + 8) & 4)) { /* 2/3 */ in ql_pdma()
[all …]
Dppa.h129 #define r_dtr(x) (unsigned char)inb((x))
130 #define r_str(x) (unsigned char)inb((x)+1)
131 #define r_ctr(x) (unsigned char)inb((x)+2)
132 #define r_epp(x) (unsigned char)inb((x)+4)
133 #define r_fifo(x) (unsigned char)inb((x)) /* x must be base_hi */
135 #define r_ecr(x) (unsigned char)inb((x)+0x2) /* x must be base_hi */
Dimm.h122 #define r_dtr(x) (unsigned char)inb((x))
123 #define r_str(x) (unsigned char)inb((x)+1)
124 #define r_ctr(x) (unsigned char)inb((x)+2)
125 #define r_epp(x) (unsigned char)inb((x)+4)
126 #define r_fifo(x) (unsigned char)inb((x)) /* x must be base_hi */
128 #define r_ecr(x) (unsigned char)inb((x)+2) /* x must be base_hi */
Daha1740.c200 if ( inb(PORTADR(base)) & PORTADDR_ENH ) in aha1740_test_port()
229 while(inb(G2STAT(base)) & G2STAT_INTPEND) { in aha1740_intr_handle()
232 adapstat = inb(G2INTST(base)); in aha1740_intr_handle()
244 inb(G2STAT(base)),adapstat, in aha1740_intr_handle()
245 inb(G2INTST(base)), number_serviced++); in aha1740_intr_handle()
251 inb(G2STAT(base)),adapstat, in aha1740_intr_handle()
252 inb(G2INTST(base)), number_serviced++); in aha1740_intr_handle()
295 inb(MBOXIN0(base)), in aha1740_intr_handle()
296 inb(MBOXIN1(base)), in aha1740_intr_handle()
297 inb(MBOXIN2(base)), in aha1740_intr_handle()
[all …]
Dinitio.c352 rb = inb(base + TUL_NVRAM); in initio_se2_rd()
403 if ((rb = inb(base + TUL_NVRAM)) & SE2DI) in initio_se2_wr()
489 gctrl = inb(base + TUL_GCTRL); in initio_read_eeprom()
496 gctrl = inb(base + TUL_GCTRL); in initio_read_eeprom()
510 if (inb(host->addr + TUL_XStatus) & XPEND) { /* if DMA xfer is pending, abort DMA xfer */ in initio_stop_bm()
513 while ((inb(host->addr + TUL_Int) & XABT) == 0) in initio_stop_bm()
531 while (!((host->jsint = inb(host->addr + TUL_SInt)) & TSS_SCSIRST_INT)) in initio_reset_scsi()
542 inb(host->addr + TUL_SInt); in initio_reset_scsi()
578 outb(inb(host->addr + TUL_PCMD) | 0x40, host->addr + TUL_PCMD); in initio_init()
611 (inb(host->addr + TUL_GCTRL1) & 0xFE), in initio_init()
[all …]
/drivers/i2c/busses/
Di2c-isch.c65 "ADD=%02x, DAT0=%02x, DAT1=%02x\n", inb(SMBHSTCNT), in sch_transaction()
66 inb(SMBHSTCMD), inb(SMBHSTADD), inb(SMBHSTDAT0), in sch_transaction()
67 inb(SMBHSTDAT1)); in sch_transaction()
70 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction()
82 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction()
91 outb(inb(SMBHSTCNT) | 0x10, SMBHSTCNT); in sch_transaction()
95 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction()
114 temp = inb(SMBHSTSTS) & 0x07; in sch_transaction()
125 "ADD=%02x, DAT0=%02x, DAT1=%02x\n", inb(SMBHSTCNT), in sch_transaction()
126 inb(SMBHSTCMD), inb(SMBHSTADD), inb(SMBHSTDAT0), in sch_transaction()
[all …]
Dscx200_acb.c123 outb(inb(ACBCTL1) | ACBCTL1_STOP, ACBCTL1); in scx200_acb_machine()
153 outb(inb(ACBCTL1) | ACBCTL1_START, ACBCTL1); in scx200_acb_machine()
159 outb(inb(ACBCTL1) | ACBCTL1_ACK, ACBCTL1); in scx200_acb_machine()
161 outb(inb(ACBCTL1) & ~ACBCTL1_ACK, ACBCTL1); in scx200_acb_machine()
175 outb(inb(ACBCTL1) | ACBCTL1_ACK, ACBCTL1); in scx200_acb_machine()
177 outb(inb(ACBCTL1) & ~ACBCTL1_ACK, ACBCTL1); in scx200_acb_machine()
182 outb(inb(ACBCTL1) | ACBCTL1_STOP, ACBCTL1); in scx200_acb_machine()
185 *iface->ptr++ = inb(ACBSDA); in scx200_acb_machine()
194 outb(inb(ACBCTL1) | ACBCTL1_STOP, ACBCTL1); in scx200_acb_machine()
224 status = inb(ACBST); in scx200_acb_poll()
[all …]
Di2c-via.c43 outb(state ? inb(I2C_DIR) & ~I2C_SCL : inb(I2C_DIR) | I2C_SCL, I2C_DIR); in bit_via_setscl()
48 outb(state ? inb(I2C_DIR) & ~I2C_SDA : inb(I2C_DIR) | I2C_SDA, I2C_DIR); in bit_via_setsda()
53 return (0 != (inb(I2C_IN) & I2C_SCL)); in bit_via_getscl()
58 return (0 != (inb(I2C_IN) & I2C_SDA)); in bit_via_getsda()
121 outb(inb(I2C_DIR) & ~(I2C_SDA | I2C_SCL), I2C_DIR); in vt586b_probe()
122 outb(inb(I2C_OUT) & ~(I2C_SDA | I2C_SCL), I2C_OUT); in vt586b_probe()
/drivers/net/appletalk/
Dcops.c383 inb(ioaddr+DAYNA_RESET); in cops_irq()
388 inb(ioaddr); in cops_irq()
400 status = (inb(ioaddr+DAYNA_CARD_STATUS)&3); in cops_irq()
406 if((inb(ioaddr+TANG_CARD_STATUS)& TANG_TX_READY) !=0) in cops_irq()
478 while(timeout++ < 5 && (inb(ioaddr+TANG_CARD_STATUS)&TANG_TX_READY)==0) in tangent_wait_reset()
492 inb(ioaddr); /* Clear request latch. */ in cops_reset()
502 inb(ioaddr+DAYNA_RESET); /* Clear the reset */ in cops_reset()
564 if((inb(ioaddr+DAYNA_CARD_STATUS)&3)==1) in cops_load()
590 inb(ioaddr); in cops_load()
595 inb(ioaddr); /* Clear initial ready signal. */ in cops_load()
[all …]
/drivers/parport/
Dparport_pc.c112 ectr = inb(ECONTROL(pb)); in frob_econtrol()
146 oecr = inb(ECONTROL(p)); in change_mode()
161 if (inb(ECONTROL(p)) & 0x01) in change_mode()
169 while (!(inb(ECONTROL(p)) & 0x01)) { in change_mode()
244 s->u.pc.ecr = inb(ECONTROL(p)); in parport_pc_save_state()
272 status = inb(STATUS(port)); in parport_pc_epp_read_data()
286 *((char *)buf) = inb(EPPDATA(port)); in parport_pc_epp_read_data()
291 status = inb(STATUS(port)); in parport_pc_epp_read_data()
306 if (inb(STATUS(port)) & 0x01) { in parport_pc_epp_read_data()
313 *((char *)buf) = inb(EPPDATA(port)); in parport_pc_epp_read_data()
[all …]
/drivers/input/gameport/
Dlightning.c52 while ((inb(L4_PORT) & L4_BUSY) && t > 0) t--; in l4_wait_ready()
69 if (inb(L4_PORT) & L4_BUSY) goto fail; in l4_cooked_read()
73 status = inb(L4_PORT); in l4_cooked_read()
78 axes[i] = inb(L4_PORT); in l4_cooked_read()
84 *buttons = inb(L4_PORT) & 0x0f; in l4_cooked_read()
113 if (inb(L4_PORT) & L4_BUSY) in l4_getcal()
120 if (inb(L4_PORT) != L4_SELECT_DIGITAL + (port >> 2)) in l4_getcal()
130 cal[i] = inb(L4_PORT); in l4_getcal()
149 if (inb(L4_PORT) & L4_BUSY) in l4_setcal()
156 if (inb(L4_PORT) != L4_SELECT_DIGITAL + (port >> 2)) in l4_setcal()
[all …]
Dns558.c67 c = inb(io); in ns558_isa_probe()
69 if (~(u = v = inb(io)) & 3) { in ns558_isa_probe()
78 for (i = 0; i < 1000; i++) v &= inb(io); in ns558_isa_probe()
90 u = inb(io); in ns558_isa_probe()
92 if ((u ^ inb(io)) & 0xf) { in ns558_isa_probe()
110 if (inb(io & (-1 << i)) != inb((io & (-1 << i)) + (1 << i) - 1)) b++; in ns558_isa_probe()
/drivers/ata/
Dpata_legacy.c303 inb(0x1F5); in pdc20230_set_piomode()
304 outb(inb(0x1F2) | 0x80, 0x1F2); in pdc20230_set_piomode()
305 inb(0x1F2); in pdc20230_set_piomode()
306 inb(0x3F6); in pdc20230_set_piomode()
307 inb(0x3F6); in pdc20230_set_piomode()
308 inb(0x1F2); in pdc20230_set_piomode()
309 inb(0x1F2); in pdc20230_set_piomode()
311 while ((inb(0x1F2) & 0x80) && --tries); in pdc20230_set_piomode()
315 outb(inb(0x1F4) & 0x07, 0x1F4); in pdc20230_set_piomode()
317 rt = inb(0x1F3); in pdc20230_set_piomode()
[all …]
/drivers/net/ethernet/8390/
Dwd.c176 checksum += inb(ioaddr + 8 + i); in wd_probe1()
177 if (inb(ioaddr + 8) == 0xff /* Extra check to avoid soundcard. */ in wd_probe1()
178 || inb(ioaddr + 9) == 0xff in wd_probe1()
194 dev->dev_addr[i] = inb(ioaddr + 8 + i); in wd_probe1()
203 if (inb(ioaddr+0) == 'P' && inb(ioaddr+1) == 'D') { in wd_probe1()
204 unsigned char reg5 = inb(ioaddr+5); in wd_probe1()
206 switch (inb(ioaddr+2)) { in wd_probe1()
223 if (inb(ioaddr+i) != inb(ioaddr+8+i)) in wd_probe1()
230 int tmp = inb(ioaddr+1); /* fiddle with 16bit bit */ in wd_probe1()
232 if (((inb( ioaddr+1) & 0x01) == 0x01) /* A 16 bit card */ in wd_probe1()
[all …]
/drivers/media/rc/
Dite-cir.c499 iflags = inb(dev->cir_addr + IT87_IIR) & IT87_II; in it87_get_irq_causes()
525 val = inb(dev->cir_addr + IT87_RCR) in it87_set_carrier_params()
550 fifo = inb(dev->cir_addr + IT87_RSR) & IT87_RXFBC; in it87_get_rx_bytes()
553 *(buf++) = inb(dev->cir_addr + IT87_DR); in it87_get_rx_bytes()
567 return inb(dev->cir_addr + IT87_TSR) & IT87_TXFBC; in it87_get_tx_used_slots()
581 outb(inb(dev->cir_addr + IT87_RCR) | IT87_RXACT, in it87_idle_rx()
585 outb(inb(dev->cir_addr + IT87_TCR1) | IT87_FIFOCLR, in it87_idle_rx()
593 outb(inb(dev->cir_addr + IT87_IER) & ~(IT87_RDAIE | IT87_RFOIE), in it87_disable_rx()
597 outb(inb(dev->cir_addr + IT87_RCR) & ~IT87_RXEN, in it87_disable_rx()
609 outb(inb(dev->cir_addr + IT87_RCR) | IT87_RXEN, in it87_enable_rx()
[all …]
/drivers/watchdog/
Dibmasr.c77 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 …]
Dpc87413_wdt.c78 cr_data = inb(WDT_DATA_IO_PORT); in pc87413_select_wdt_out()
104 cr_data = inb(WDT_DATA_IO_PORT); in pc87413_enable_swc()
123 addr_h = inb(WDT_DATA_IO_PORT); in pc87413_get_swc_base_addr()
127 addr_l = inb(WDT_DATA_IO_PORT); in pc87413_get_swc_base_addr()
142 outb_p(inb(swc_base_addr + 0x0f) | 0x03, swc_base_addr + 0x0f); in pc87413_swc_bank3()
164 outb_p(inb(swc_base_addr + WDCTL) | 0x01, swc_base_addr + WDCTL); in pc87413_enable_wden()
174 outb_p(inb(swc_base_addr + WDCFG) | 0x80, swc_base_addr + WDCFG); in pc87413_enable_sw_wd_tren()
185 outb_p(inb(swc_base_addr + WDCFG) & 0x7f, swc_base_addr + WDCFG); in pc87413_disable_sw_wd_tren()
196 outb_p(inb(swc_base_addr + WDCTL) | 0x80, swc_base_addr + WDCTL); in pc87413_enable_sw_wd_trg()
207 outb_p(inb(swc_base_addr + WDCTL) & 0x7f, swc_base_addr + WDCTL); in pc87413_disable_sw_wd_trg()
Dwdt_pci.c131 inb(WDT_DC); /* Disable watchdog */ in wdtpci_start()
137 inb(WDT_DC); /* Disable watchdog */ in wdtpci_start()
141 inb(WDT_BUZZER); /* disable */ in wdtpci_start()
143 inb(WDT_OPTONOTRST); /* disable */ in wdtpci_start()
145 inb(WDT_OPTORST); /* disable */ in wdtpci_start()
147 inb(WDT_PROGOUT); /* disable */ in wdtpci_start()
177 inb(WDT_DC); /* Disable watchdog */ in wdtpci_stop()
197 inb(WDT_DC); /* Disable watchdog */ in wdtpci_ping()
244 new_status = inb(WDT_SR); in wdtpci_get_status()
279 c = inb(WDT_RT); in wdtpci_get_temperature()
[all …]
/drivers/comedi/drivers/
Dssv_dnp.c64 val = inb(CSCDR) & 0x0f; in dnp_dio_insn_bits()
69 val = inb(CSCDR); in dnp_dio_insn_bits()
71 val |= (inb(CSCDR) << 8); in dnp_dio_insn_bits()
73 val |= ((inb(CSCDR) & 0xf0) << 12); in dnp_dio_insn_bits()
114 val = inb(CSCDR); in dnp_dio_insn_config()
155 outb((inb(CSCDR) & 0xAA), CSCDR); in dnp_attach()
167 outb((inb(CSCDR) & 0xAA), CSCDR); in dnp_detach()
Ddt2814.c57 status = inb(dev->iobase + DT2814_CSR); in dt2814_ai_notbusy()
81 inb(dev->iobase + DT2814_DATA); in dt2814_ai_clear()
82 inb(dev->iobase + DT2814_DATA); in dt2814_ai_clear()
94 status = inb(dev->iobase + DT2814_CSR); in dt2814_ai_eoc()
118 hi = inb(dev->iobase + DT2814_DATA); in dt2814_ai_insn_read()
119 lo = inb(dev->iobase + DT2814_DATA); in dt2814_ai_insn_read()
226 status = inb(dev->iobase + DT2814_CSR); in dt2814_ai_cancel()
259 status = inb(dev->iobase + DT2814_CSR); in dt2814_interrupt()
273 hi = inb(dev->iobase + DT2814_DATA); in dt2814_interrupt()
274 lo = inb(dev->iobase + DT2814_DATA); in dt2814_interrupt()
/drivers/net/
Dsb1000.c263 a = inb(ioaddr[0] + 7); in card_wait_for_busy_clear()
269 a = inb(ioaddr[0] + 7); in card_wait_for_busy_clear()
287 a = inb(ioaddr[1] + 6); in card_wait_for_ready()
293 a = inb(ioaddr[1] + 6); in card_wait_for_ready()
301 in[1] = inb(ioaddr[0] + 1); in card_wait_for_ready()
302 in[2] = inb(ioaddr[0] + 2); in card_wait_for_ready()
303 in[3] = inb(ioaddr[0] + 3); in card_wait_for_ready()
304 in[4] = inb(ioaddr[0] + 4); in card_wait_for_ready()
305 in[0] = inb(ioaddr[0] + 5); in card_wait_for_ready()
306 in[6] = inb(ioaddr[0] + 6); in card_wait_for_ready()
[all …]
/drivers/media/radio/
Dradio-zoltrix.c96 inb(isa->io + 3); /* Zoltrix needs to be read to confirm */ in zoltrix_s_mute_volume()
102 inb(isa->io + 2); in zoltrix_s_mute_volume()
128 inb(isa->io + 3); /* Zoltrix needs to be read to confirm */ in zoltrix_s_frequency()
157 inb(isa->io + 2); in zoltrix_s_frequency()
173 a = inb(isa->io); in zoltrix_g_rxsubchans()
175 b = inb(isa->io); in zoltrix_g_rxsubchans()
190 a = inb(isa->io); in zoltrix_g_signal()
192 b = inb(isa->io); in zoltrix_g_signal()
/drivers/block/paride/
Dppc6lnx.c126 i = inb(ppc->lpt_addr + 1); in ppc6_select()
131 ppc->org_data = inb(ppc->lpt_addr); in ppc6_select()
133 ppc->org_ctrl = inb(ppc->lpt_addr + 2) & 0x5F; // readback ctrl in ppc6_select()
176 k = inb(ppc->lpt_addr + 1) & 0xB8; in ppc6_select()
184 k = (inb(ppc->lpt_addr + 1) & 0xB8) ^ 0xB8; in ppc6_select()
303 data = inb(ppc->lpt_addr + 1); in ppc6_rd_data_byte()
313 data |= inb(ppc->lpt_addr + 1) & 0xB8; in ppc6_rd_data_byte()
329 data = inb(ppc->lpt_addr); in ppc6_rd_data_byte()
348 data = inb(ppc->lpt_addr + 4); in ppc6_rd_data_byte()
396 d = inb(ppc->lpt_addr + 1); in ppc6_rd_data_blk()
[all …]
/drivers/char/tpm/
Dtpm_nsc.c76 *data = inb(priv->base + NSC_STATUS); in wait_for_stat()
84 *data = inb(priv->base + 1); in wait_for_stat()
100 status = inb(priv->base + NSC_STATUS); in nsc_wait_for_ready()
102 status = inb(priv->base + NSC_DATA); in nsc_wait_for_ready()
110 status = inb(priv->base + NSC_STATUS); in nsc_wait_for_ready()
112 status = inb(priv->base + NSC_DATA); in nsc_wait_for_ready()
139 data = inb(priv->base + NSC_DATA); in tpm_nsc_recv()
156 *p = inb(priv->base + NSC_DATA); in tpm_nsc_recv()
165 data = inb(priv->base + NSC_DATA); in tpm_nsc_recv()
238 return inb(priv->base + NSC_STATUS); in tpm_nsc_status()
[all …]
/drivers/input/mouse/
Dinport.c78 input_report_rel(inport_dev, REL_X, inb(INPORT_DATA_PORT)); in inport_interrupt()
81 input_report_rel(inport_dev, REL_Y, inb(INPORT_DATA_PORT)); in inport_interrupt()
84 buttons = inb(INPORT_DATA_PORT); in inport_interrupt()
124 a = inb(INPORT_SIGNATURE_PORT); in inport_init()
125 b = inb(INPORT_SIGNATURE_PORT); in inport_init()
126 c = inb(INPORT_SIGNATURE_PORT); in inport_init()

12345678910>>...14