Home
last modified time | relevance | path

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

12345678910>>...15

/drivers/scsi/
Dqlogicfas408.c84 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 …]
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.c199 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 …]
/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 …]
/drivers/ata/
Dpata_legacy.c266 inb(0x1F5); in pdc20230_set_piomode()
267 outb(inb(0x1F2) | 0x80, 0x1F2); in pdc20230_set_piomode()
268 inb(0x1F2); in pdc20230_set_piomode()
269 inb(0x3F6); in pdc20230_set_piomode()
270 inb(0x3F6); in pdc20230_set_piomode()
271 inb(0x1F2); in pdc20230_set_piomode()
272 inb(0x1F2); in pdc20230_set_piomode()
274 while ((inb(0x1F2) & 0x80) && --tries); in pdc20230_set_piomode()
278 outb(inb(0x1F4) & 0x07, 0x1F4); in pdc20230_set_piomode()
280 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.c556 iflags = inb(dev->cir_addr + IT87_IIR) & IT87_II; in it87_get_irq_causes()
584 val = inb(dev->cir_addr + IT87_RCR) in it87_set_carrier_params()
611 fifo = inb(dev->cir_addr + IT87_RSR) & IT87_RXFBC; in it87_get_rx_bytes()
614 *(buf++) = inb(dev->cir_addr + IT87_DR); in it87_get_rx_bytes()
630 return inb(dev->cir_addr + IT87_TSR) & IT87_TXFBC; in it87_get_tx_used_slots()
646 outb(inb(dev->cir_addr + IT87_RCR) | IT87_RXACT, in it87_idle_rx()
650 outb(inb(dev->cir_addr + IT87_TCR1) | IT87_FIFOCLR, in it87_idle_rx()
660 outb(inb(dev->cir_addr + IT87_IER) & ~(IT87_RDAIE | IT87_RFOIE), in it87_disable_rx()
664 outb(inb(dev->cir_addr + IT87_RCR) & ~IT87_RXEN, in it87_disable_rx()
678 outb(inb(dev->cir_addr + IT87_RCR) | IT87_RXEN, in it87_enable_rx()
[all …]
/drivers/ide/
Ddtc2278.c57 inb(0x3f6); in sub22()
59 inb(0x3f6); in sub22()
61 inb(0x3f6); in sub22()
62 if(inb(0xb4) == c) { in sub22()
64 inb(0x3f6); in sub22()
118 inb(0x3f6); in dtc2278_probe()
120 inb(0x3f6); in dtc2278_probe()
Dht6560b.c139 (void)inb(HT_CONFIG_PORT); in ht6560b_dev_select()
140 (void)inb(HT_CONFIG_PORT); in ht6560b_dev_select()
141 (void)inb(HT_CONFIG_PORT); in ht6560b_dev_select()
142 (void)inb(HT_CONFIG_PORT); in ht6560b_dev_select()
148 (void)inb(hwif->io_ports.status_addr); in ht6560b_dev_select()
168 if ((orig_value = inb(HT_CONFIG_PORT)) == 0xff) in try_to_init_ht6560b()
173 if (!( (~inb(HT_CONFIG_PORT)) & 0x3f )) { in try_to_init_ht6560b()
179 if ((~inb(HT_CONFIG_PORT))& 0x3f) { in try_to_init_ht6560b()
188 (void)inb(0x1f7); /* Status register */ in try_to_init_ht6560b()
/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/staging/comedi/drivers/
Ddt2814.c62 status = inb(dev->iobase + DT2814_CSR); in dt2814_ai_eoc()
85 hi = inb(dev->iobase + DT2814_DATA); in dt2814_ai_insn_read()
86 lo = inb(dev->iobase + DT2814_DATA); in dt2814_ai_insn_read()
200 hi = inb(dev->iobase + DT2814_DATA); in dt2814_interrupt()
201 lo = inb(dev->iobase + DT2814_DATA); in dt2814_interrupt()
215 if (inb(dev->iobase + DT2814_CSR) & DT2814_FINISH) in dt2814_interrupt()
218 inb(dev->iobase + DT2814_DATA); in dt2814_interrupt()
219 inb(dev->iobase + DT2814_DATA); in dt2814_interrupt()
240 if (inb(dev->iobase + DT2814_CSR) & DT2814_ERR) { in dt2814_attach()
244 i = inb(dev->iobase + DT2814_DATA); in dt2814_attach()
[all …]
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()
/drivers/tty/
Dmxser.c293 oldlcr = inb(baseio + UART_LCR); in mxser_enable_must_enchance_mode()
296 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_enable_must_enchance_mode()
309 oldlcr = inb(baseio + UART_LCR); in mxser_disable_must_enchance_mode()
312 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_disable_must_enchance_mode()
325 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_xon1_value()
328 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xon1_value()
342 oldlcr = inb(baseio + UART_LCR); in mxser_set_must_xoff1_value()
345 efr = inb(baseio + MOXA_MUST_EFR_REGISTER); in mxser_set_must_xoff1_value()
359 oldlcr = inb(info->ioaddr + UART_LCR); in mxser_set_must_fifo_value()
362 efr = inb(info->ioaddr + MOXA_MUST_EFR_REGISTER); in mxser_set_must_fifo_value()
[all …]
/drivers/net/
Dsb1000.c262 a = inb(ioaddr[0] + 7); in card_wait_for_busy_clear()
268 a = inb(ioaddr[0] + 7); in card_wait_for_busy_clear()
286 a = inb(ioaddr[1] + 6); in card_wait_for_ready()
292 a = inb(ioaddr[1] + 6); in card_wait_for_ready()
300 in[1] = inb(ioaddr[0] + 1); in card_wait_for_ready()
301 in[2] = inb(ioaddr[0] + 2); in card_wait_for_ready()
302 in[3] = inb(ioaddr[0] + 3); in card_wait_for_ready()
303 in[4] = inb(ioaddr[0] + 4); in card_wait_for_ready()
304 in[0] = inb(ioaddr[0] + 5); in card_wait_for_ready()
305 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 …]

12345678910>>...15