/kernel/linux/linux-5.10/arch/alpha/kernel/ |
D | es1888.c | 16 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 …]
|
/kernel/linux/linux-5.10/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 | ppa.h | 129 #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 */
|
D | imm.h | 122 #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 */
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-isch.c | 65 "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 …]
|
D | scx200_acb.c | 123 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 …]
|
D | i2c-via.c | 43 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()
|
/kernel/linux/linux-5.10/arch/arm/mach-footbridge/ |
D | netwinder-hw.c | 134 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() 454 dprintk("Card no = %d\n", inb(0x203)); in rwa010_global_init() 477 i = inb(0x203); in rwa010_game_port_init() 480 dprintk("%02X%02X (201)\n", inb(0x203), i); in rwa010_game_port_init() 493 i = inb(0x203); in rwa010_waveartist_init() 496 dprintk("%02X%02X (%X),", inb(0x203), i, base); in rwa010_waveartist_init() 499 dprintk(" irq: %d (%d),", inb(0x203), irq); in rwa010_waveartist_init() 502 dprintk(" dma: %d (%d)\n", inb(0x203), dma); in rwa010_waveartist_init() [all …]
|
D | isa-irq.c | 34 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()
|
/kernel/linux/linux-5.10/kernel/debug/kdb/ |
D | kdb_keyboard.c | 44 (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()
|
/kernel/linux/linux-5.10/drivers/net/appletalk/ |
D | cops.c | 383 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 …]
|
/kernel/linux/linux-5.10/drivers/ide/ |
D | dtc2278.c | 57 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()
|
D | ht6560b.c | 139 (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()
|
/kernel/linux/linux-5.10/drivers/input/gameport/ |
D | lightning.c | 52 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 …]
|
/kernel/linux/linux-5.10/drivers/parport/ |
D | parport_pc.c | 112 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 …]
|
/kernel/linux/linux-5.10/scripts/dtc/ |
D | flattree.c | 569 static void inbuf_init(struct inbuf *inb, void *base, void *limit) in inbuf_init() argument 571 inb->base = base; in inbuf_init() 572 inb->limit = limit; in inbuf_init() 573 inb->ptr = inb->base; in inbuf_init() 576 static void flat_read_chunk(struct inbuf *inb, void *p, int len) in flat_read_chunk() argument 578 if ((inb->ptr + len) > inb->limit) in flat_read_chunk() 581 memcpy(p, inb->ptr, len); in flat_read_chunk() 583 inb->ptr += len; in flat_read_chunk() 586 static uint32_t flat_read_word(struct inbuf *inb) in flat_read_word() argument 590 assert(((inb->ptr - inb->base) % sizeof(val)) == 0); in flat_read_word() [all …]
|
/kernel/linux/linux-5.10/arch/mips/loongson2ef/lemote-2f/ |
D | ec_kb3310b.c | 27 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()
|
D | irq.c | 38 isr = inb(PIC_MASTER_CMD) & in mach_i8259_irq() 39 ~inb(PIC_MASTER_IMR) & ~(1 << PIC_CASCADE_IR); in mach_i8259_irq() 41 isr = (inb(PIC_SLAVE_CMD) & ~inb(PIC_SLAVE_IMR)) << 8; in mach_i8259_irq() 52 if (~inb(PIC_MASTER_ISR) & 0x80) in mach_i8259_irq()
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | pata_legacy.c | 266 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/8390/ |
D | wd.c | 176 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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/media/rc/ |
D | ite-cir.c | 556 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 …]
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
D | dt2814.c | 62 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 …]
|
D | ssv_dnp.c | 64 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()
|
/kernel/linux/linux-5.10/drivers/media/radio/ |
D | radio-zoltrix.c | 96 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()
|