Home
last modified time | relevance | path

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

12345678910>>...21

/linux/arch/alpha/kernel/
A Des1888.c16 inb(0x0229); in es1888_init()
17 inb(0x0229); in es1888_init()
18 inb(0x0229); in es1888_init()
19 inb(0x022b); in es1888_init()
20 inb(0x0229); in es1888_init()
21 inb(0x022b); in es1888_init()
22 inb(0x0229); in es1888_init()
23 inb(0x0229); in es1888_init()
24 inb(0x022b); in es1888_init()
25 inb(0x0229); in es1888_init()
[all …]
/linux/drivers/scsi/
A Dqlogicfas408.c84 x = inb(qbase + 0xd); in ql_zap()
137 j = inb(qbase + 8); in ql_pdma()
171 j = inb(qbase + 8); in ql_pdma()
274 j = inb(qbase + 6); in ql_pcmd()
275 i = inb(qbase + 5); in ql_pcmd()
358 while (inb(qbase + 5)) in ql_pcmd()
374 status = inb(qbase + 2); in ql_pcmd()
375 message = inb(qbase + 2); in ql_pcmd()
400 i |= inb(qbase + 5); in ql_pcmd()
593 return (((inb(qbase + 0xe) ^ inb(qbase + 0xe)) == 7) && in qlogicfas408_detect()
[all …]
A 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 */
A 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 */
A 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()
251 inb(G2STAT(base)),adapstat, 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()
502 *irq_level = intab[inb(INTDEF(base)) & 0x7]; in DEF_SCSI_QCMD()
504 *translation = inb(RESV1(base)) & 0x1; in DEF_SCSI_QCMD()
[all …]
/linux/drivers/i2c/busses/
A Di2c-isch.c66 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()
95 temp = inb(SMBHSTSTS) & 0x0f; in sch_transaction()
114 temp = inb(SMBHSTSTS) & 0x07; in sch_transaction()
126 inb(SMBHSTCMD), inb(SMBHSTADD), inb(SMBHSTDAT0), in sch_transaction()
127 inb(SMBHSTDAT1)); in sch_transaction()
145 temp = inb(SMBHSTSTS) & 0x0f; in sch_access()
222 data->byte = inb(SMBHSTDAT0); in sch_access()
[all …]
A 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()
175 outb(inb(ACBCTL1) | ACBCTL1_ACK, ACBCTL1); in scx200_acb_machine()
185 *iface->ptr++ = inb(ACBSDA); in scx200_acb_machine()
224 status = inb(ACBST); in scx200_acb_poll()
261 outb(inb(ACBCTL1) | ACBCTL1_STOP, ACBCTL1); in scx200_acb_reset()
265 outb(inb(ACBCST) | ACBCST_BB, ACBCST); in scx200_acb_reset()
388 if (inb(ACBCTL2) != 0x70) { in scx200_acb_probe()
395 val = inb(ACBCTL1); in scx200_acb_probe()
[all …]
A 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()
/linux/arch/arm/mach-footbridge/
A Dnetwinder-hw.c134 return inb(GP1_IO_BASE) | inb(GP2_IO_BASE) << 8; in nw_gpio_read()
438 inb(0x203); in rwa010_read_ident()
440 bit = inb(0x203); in rwa010_read_ident()
477 i = inb(0x203); in rwa010_game_port_init()
493 i = inb(0x203); in rwa010_waveartist_init()
515 i = inb(0x203); in rwa010_soundblaster_init()
530 i = inb(0x203); in rwa010_soundblaster_init()
547 if (inb(0x22e) & 0x80) in rwa010_soundblaster_reset()
557 if ((inb(0x22c) & 0x80) == 0) in rwa010_soundblaster_reset()
568 i = inb(0x22a); in rwa010_soundblaster_reset()
[all …]
A Disa-irq.c34 outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO); in isa_mask_pic_lo_irq()
41 outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO); in isa_ack_pic_lo_irq()
49 outb(inb(PIC_MASK_LO) & ~mask, PIC_MASK_LO); in isa_unmask_pic_lo_irq()
62 outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI); in isa_mask_pic_hi_irq()
69 outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI); in isa_ack_pic_hi_irq()
78 outb(inb(PIC_MASK_HI) & ~mask, PIC_MASK_HI); in isa_unmask_pic_hi_irq()
135 if (inb(PIC_MASK_LO) == 0xf5 && inb(PIC_MASK_HI) == 0xfa) { in isa_init_irq()
/linux/drivers/net/appletalk/
A Dcops.c383 inb(ioaddr+DAYNA_RESET); in cops_irq()
388 inb(ioaddr); in cops_irq()
590 inb(ioaddr); in cops_load()
691 status=inb(ioaddr+TANG_CARD_STATUS); in cops_poll()
696 status = inb(ioaddr+TANG_CARD_STATUS); in cops_poll()
731 status=inb(ioaddr+TANG_CARD_STATUS); in cops_interrupt()
736 status=inb(ioaddr+TANG_CARD_STATUS); in cops_interrupt()
782 pkt_len = inb(ioaddr); in cops_rx()
783 pkt_len |= (inb(ioaddr) << 8); in cops_rx()
785 rsp_type=inb(ioaddr); in cops_rx()
[all …]
/linux/drivers/parport/
A Dparport_pc.c962 cr1 = inb(io + 1); in show_parconfig_smsc37c669()
964 cr4 = inb(io + 1); in show_parconfig_smsc37c669()
966 cra = inb(io + 1); in show_parconfig_smsc37c669()
968 cr23 = inb(io + 1); in show_parconfig_smsc37c669()
970 cr26 = inb(io + 1); in show_parconfig_smsc37c669()
972 cr27 = inb(io + 1); in show_parconfig_smsc37c669()
1285 id = inb(io + 1); in smsc_check()
1287 rev = inb(io + 1); in smsc_check()
1341 dev |= inb(0x2f); in detect_and_report_it87()
1348 r = inb(0x2f); in detect_and_report_it87()
[all …]
/linux/drivers/input/gameport/
A 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()
130 cal[i] = inb(L4_PORT); in l4_getcal()
149 if (inb(L4_PORT) & L4_BUSY) in l4_setcal()
248 if (inb(L4_PORT) & L4_BUSY) in l4_add_card()
260 if (inb(L4_PORT) != L4_ID) in l4_add_card()
[all …]
/linux/scripts/dtc/
A Dflattree.c572 inb->base = base; in inbuf_init()
573 inb->limit = limit; in inbuf_init()
574 inb->ptr = inb->base; in inbuf_init()
579 if ((inb->ptr + len) > inb->limit) in flat_read_chunk()
584 inb->ptr += len; in flat_read_chunk()
591 assert(((inb->ptr - inb->base) % sizeof(val)) == 0); in flat_read_word()
600 int off = inb->ptr - inb->base; in flat_realign()
602 inb->ptr = inb->base + ALIGN(off, align); in flat_realign()
603 if (inb->ptr > inb->limit) in flat_realign()
621 inb->ptr += len; in flat_read_string()
[all …]
/linux/kernel/debug/kdb/
A Dkdb_keyboard.c44 (inb(KBD_STATUS_REG) == 0xff && inb(KBD_DATA_REG) == 0xff)) { in kdb_get_kbd_char()
50 if ((inb(KBD_STATUS_REG) & KBD_STAT_OBF) == 0) in kdb_get_kbd_char()
56 scancode = inb(KBD_DATA_REG); in kdb_get_kbd_char()
57 scanstatus = inb(KBD_STATUS_REG); in kdb_get_kbd_char()
227 while ((inb(KBD_STATUS_REG) & KBD_STAT_OBF) == 0) in kdb_kbd_cleanup_state()
233 scancode = inb(KBD_DATA_REG); in kdb_kbd_cleanup_state()
234 scanstatus = inb(KBD_STATUS_REG); in kdb_kbd_cleanup_state()
/linux/drivers/ata/
A Dpata_legacy.c303 inb(0x1F5); in pdc20230_set_piomode()
305 inb(0x1F2); in pdc20230_set_piomode()
325 inb(0x1F5); in pdc20230_set_piomode()
397 inb(0x3E6); in ht6560a_set_piomode()
398 inb(0x3E6); in ht6560a_set_piomode()
399 inb(0x3E6); in ht6560a_set_piomode()
400 inb(0x3E6); in ht6560a_set_piomode()
431 inb(0x3E6); in ht6560b_set_piomode()
432 inb(0x3E6); in ht6560b_set_piomode()
433 inb(0x3E6); in ht6560b_set_piomode()
[all …]
/linux/drivers/net/ethernet/8390/
A Dwd.c176 checksum += inb(ioaddr + 8 + i); in wd_probe1()
178 || inb(ioaddr + 9) == 0xff 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()
250 (inb(ioaddr+1) & 0x01) ? 16 : 8); in wd_probe1()
260 int reg0 = inb(ioaddr); in wd_probe1()
280 int reg1 = inb(ioaddr+1); in wd_probe1()
281 int reg4 = inb(ioaddr+4); in wd_probe1()
[all …]
/linux/drivers/media/rc/
A Dite-cir.c525 val = inb(dev->cir_addr + IT87_RCR) in it87_set_carrier_params()
553 *(buf++) = inb(dev->cir_addr + IT87_DR); in it87_get_rx_bytes()
642 outb(inb(dev->cir_addr + IT87_IER) & in it87_disable()
659 outb((inb(dev->cir_addr + IT87_IER) & in it87_init_hardware()
718 val = (inb(dev->cir_addr + IT8708_C0CFR) in it8708_set_carrier_params()
730 val = inb(dev->cir_addr + IT8708_C0RCR) in it8708_set_carrier_params()
796 outb(inb(dev->cir_addr + IT8708_C0IER) & in it8708_disable_rx()
820 outb(inb(dev->cir_addr + IT8708_C0IER) in it8708_enable_rx()
839 outb(inb(dev->cir_addr + IT8708_C0IER) in it8708_enable_tx_interrupt()
848 outb(inb(dev->cir_addr + IT8708_C0IER) & in it8708_disable()
[all …]
/linux/drivers/watchdog/
A 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()
137 reg = inb(asr_read_addr); in asr_disable()
157 high = inb(0x2f); in asr_get_base_address()
[all …]
A 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()
/linux/arch/mips/loongson2ef/lemote-2f/
A Dec_kb3310b.c27 value = inb(EC_IO_PORT_DATA); in ec_read()
43 inb(EC_IO_PORT_DATA); in ec_write()
67 status = inb(EC_STS_PORT); in ec_query_seq()
69 status = inb(EC_STS_PORT); in ec_query_seq()
109 status = inb(EC_STS_PORT); in ec_get_event_num()
112 status = inb(EC_STS_PORT); in ec_get_event_num()
120 value = inb(EC_DAT_PORT); in ec_get_event_num()
/linux/drivers/comedi/drivers/
A 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()
/linux/drivers/net/
A Dsb1000.c267 a = inb(ioaddr[0] + 7); in card_wait_for_busy_clear()
273 a = inb(ioaddr[0] + 7); in card_wait_for_busy_clear()
291 a = inb(ioaddr[1] + 6); in card_wait_for_ready()
297 a = inb(ioaddr[1] + 6); in card_wait_for_ready()
335 inb(ioaddr[0] + 7); in card_send_command()
384 inb(ioaddr[0] + 7); in sb1000_wait_for_ready()
466 inb(port); in sb1000_reset()
469 inb(port); in sb1000_reset()
472 inb(port); in sb1000_reset()
475 inb(port); in sb1000_reset()
[all …]
/linux/drivers/media/radio/
A 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()
/linux/arch/x86/kernel/
A Di8259.c104 ret = inb(PIC_MASTER_CMD) & mask; in i8259A_irq_pending()
106 ret = inb(PIC_SLAVE_CMD) & (mask >> 8); in i8259A_irq_pending()
134 value = inb(PIC_MASTER_CMD) & irqmask; in i8259A_irq_real()
139 value = inb(PIC_SLAVE_CMD) & (irqmask >> 8); in i8259A_irq_real()
178 inb(PIC_SLAVE_IMR); /* DUMMY - (do we need this?) */ in mask_and_ack_8259A()
185 inb(PIC_MASTER_IMR); /* DUMMY - (do we need this?) */ in mask_and_ack_8259A()
245 trigger[0] = inb(PIC_ELCR1) & 0xF8; in save_ELCR()
246 trigger[1] = inb(PIC_ELCR2) & 0xDE; in save_ELCR()
317 new_val = inb(PIC_MASTER_IMR); in probe_8259A()

Completed in 69 milliseconds

12345678910>>...21