/openbsd/sys/arch/amd64/stand/libsa/ |
H A D | gateA20.c | 63 (inb(IO_KBD + KBSTATP) == 0xff && inb(IO_KBD + KBDATAP) == 0xff)) { in gateA20() 68 data = inb(0x92); in gateA20() 71 data = inb(0x92); in gateA20() 76 while (inb(IO_KBD + KBSTATP) & KBS_IBF); in gateA20() 78 while (inb(IO_KBD + KBSTATP) & KBS_DIB) in gateA20() 79 (void)inb(IO_KBD + KBDATAP); in gateA20() 82 while (inb(IO_KBD + KBSTATP) & KBS_IBF); in gateA20() 88 while (inb(IO_KBD + KBSTATP) & KBS_IBF); in gateA20() 90 while (inb(IO_KBD + KBSTATP) & KBS_DIB) in gateA20() 91 (void)inb(IO_KBD + KBDATAP); in gateA20()
|
H A D | bioscons.c | 60 if ((inb(IO_RTC+1) & PRESENT_MASK) == PRESENT_MASK) { in pc_probe() 154 (void) inb(port + com_iir); in com_init() 161 while (inb(port + com_lsr) & LSR_RXRDY) in com_init() 162 (void)inb(port + com_data); in com_init() 171 return (inb(port + com_lsr) & LSR_RXRDY); in com_getc() 173 while ((inb(port + com_lsr) & LSR_RXRDY) == 0) in com_getc() 176 return (inb(port + com_data) & 0xff); in com_getc() 239 while ((inb(port + com_lsr) & LSR_TXRDY) == 0) in com_putc()
|
/openbsd/sys/arch/i386/stand/libsa/ |
H A D | gateA20.c | 61 (inb(IO_KBD + KBSTATP) == 0xff && inb(IO_KBD + KBDATAP) == 0xff)) { in gateA20() 66 data = inb(0x92); in gateA20() 69 data = inb(0x92); in gateA20() 74 while (inb(IO_KBD + KBSTATP) & KBS_IBF); in gateA20() 76 while (inb(IO_KBD + KBSTATP) & KBS_DIB) in gateA20() 77 (void)inb(IO_KBD + KBDATAP); in gateA20() 80 while (inb(IO_KBD + KBSTATP) & KBS_IBF); in gateA20() 86 while (inb(IO_KBD + KBSTATP) & KBS_IBF); in gateA20() 88 while (inb(IO_KBD + KBSTATP) & KBS_DIB) in gateA20() 89 (void)inb(IO_KBD + KBDATAP); in gateA20()
|
H A D | bioscons.c | 58 if ((inb(IO_RTC+1) & PRESENT_MASK) == PRESENT_MASK) { in pc_probe() 151 (void) inb(port + com_iir); in com_init() 158 while (inb(port + com_lsr) & LSR_RXRDY) in com_init() 159 (void)inb(port + com_data); in com_init() 168 return (inb(port + com_lsr) & LSR_RXRDY); in com_getc() 170 while ((inb(port + com_lsr) & LSR_RXRDY) == 0) in com_getc() 173 return (inb(port + com_data) & 0xff); in com_getc() 236 while ((inb(port + com_lsr) & LSR_TXRDY) == 0) in com_putc()
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
H A D | 20030110-1.c | 11 while (inb(0x9ae8) & (0x0100 >> (2 +1))); in foo() 19 while (inb(0x9ae8) & (0x0100 >> (2))); in foo() 27 while (inb(0x9ae8) & (0x0100 >> (1))); in foo() 34 while (inb(0x9ae8) & (0x0100 >> (8 +1))); in foo()
|
/openbsd/sys/dev/isa/ |
H A D | if_el.c | 131 station_addr[i] = inb(iobase+EL_EAW); in elprobe() 343 i = inb(iobase+EL_TXS); in elstart() 367 (void)inb(iobase+EL_AS); in elstart() 374 (void)inb(iobase+EL_AS); in elstart() 424 (void)inb(iobase+EL_RXC); in elintr() 430 rxstat = inb(iobase+EL_RXS); in elintr() 443 (void)inb(iobase+EL_AS); in elintr() 449 len = inb(iobase+EL_RBL); in elintr() 450 len |= inb(iobase+EL_RBH) << 8; in elintr() 458 if ((inb(iobase+EL_AS) & EL_AS_RXBUSY) != 0) in elintr() [all …]
|
H A D | if_ie.c | 381 c = inb(PORT + IEATT_REVISION); in sl_probe() 473 c = inb(PORT + IE507_MADDR); in el_probe() 487 i = inb(PORT + 3); in el_probe() 492 i = inb(PORT + IE507_IRQ) & 0x0f; in el_probe() 1534 ectrl = inb(PORT + IEE16_ECTRL); in ee16_read_eeprom() 1542 ectrl = inb(PORT + IEE16_ECTRL); in ee16_read_eeprom() 1555 ectrl = inb(PORT + IEE16_ECTRL); in ee16_eeprom_outbits() 1577 ectrl = inb(PORT + IEE16_ECTRL); in ee16_eeprom_inbits() 1582 ectrl = inb(PORT + IEE16_ECTRL); in ee16_eeprom_inbits() 1596 ectrl = inb(PORT + IEE16_ECTRL); in ee16_eeprom_clock() [all …]
|
H A D | pas.c | 140 #define pasread(p) inb(p) 292 t = inb(INTERRUPT_MASK); in pasprobe()
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | ser-go32.c | 241 #define inb(p,a) inportb((p)->base + (a)) macro 297 iir = inb (port, com_iir) & IIR_IMASK; in dos_comisr() 302 lsr = inb (port, com_lsr); in dos_comisr() 312 c = inb (port, com_data); in dos_comisr() 337 port->msr = inb (port, com_msr); in dos_comisr() 496 if ((inb (port, com_iir) & 0x38) == 0) in dos_open() 514 (void) inb (port, com_lsr); in dos_open() 515 (void) inb (port, com_msr); in dos_open() 739 cfcr = inb (port, com_cfcr); in dos_setbaudrate() 759 cfcr = inb (port, com_cfcr); in dos_setstopbits() [all …]
|
/openbsd/sys/arch/i386/isa/ |
H A D | clock.c | 150 v = inb(IO_RTC+1); in mc146818_read() 248 v1 = inb(IO_TIMER1 + TIMER_CNTR0); in gettick() 249 v1 |= inb(IO_TIMER1 + TIMER_CNTR0) << 8; in gettick() 250 v2 = inb(IO_TIMER1 + TIMER_CNTR0); in gettick() 251 v2 |= inb(IO_TIMER1 + TIMER_CNTR0) << 8; in gettick() 252 v3 = inb(IO_TIMER1 + TIMER_CNTR0); in gettick() 253 v3 |= inb(IO_TIMER1 + TIMER_CNTR0) << 8; in gettick() 295 lo = inb(IO_TIMER1 + TIMER_CNTR0); in gettick() 296 hi = inb(IO_TIMER1 + TIMER_CNTR0); in gettick() 724 lo = inb(IO_TIMER1 + TIMER_CNTR0); in i8254_get_timecount() [all …]
|
H A D | joy_isa.c | 68 return (inb(iobase) & 0x0f) != 0x0f; in joy_isa_probe() 89 (inb(iobase) & 0x0f) == 0x0f ? " not " : " "); in joy_isa_attach()
|
H A D | joy.c | 106 state = inb(port); in joyread() 170 low = inb(IO_TIMER1 + TIMER_CNTR0); in joy_get_tick() 171 high = inb(IO_TIMER1 + TIMER_CNTR0); in joy_get_tick()
|
H A D | joy_isapnp.c | 71 (inb(iobase) & 0x0f) == 0x0f ? " not " : " "); in joy_isapnp_attach()
|
/openbsd/sys/dev/pci/drm/i915/display/ |
H A D | intel_vga.c | 42 sr1 = inb(VGA_SEQ_D); in intel_vga_disable() 46 sr1 = inb(VGA_SEQ_D); in intel_vga_disable() 105 outb(inb(VGA_MIS_R), VGA_MIS_W); in intel_vga_reset_io_mem() 107 outb(VGA_MIS_W, inb(VGA_MIS_R)); in intel_vga_reset_io_mem()
|
/openbsd/sys/arch/amd64/isa/ |
H A D | clock.c | 146 return (inb(IO_RTC+1)); in mc146818_read() 217 lo = inb(IO_TIMER1+TIMER_CNTR0); in gettick() 218 hi = inb(IO_TIMER1+TIMER_CNTR0); in gettick() 578 lo = inb(IO_TIMER1+TIMER_CNTR0); in i8254_get_timecount() 579 hi = inb(IO_TIMER1+TIMER_CNTR0); in i8254_get_timecount()
|
/openbsd/sys/arch/powerpc/include/ |
H A D | pio.h | 141 #define inb(a) (__inb((volatile u_int8_t *)(a))) macro 142 #define in8(a) inb(a) 153 #define in8rb(a) inb(a)
|
/openbsd/sbin/ifconfig/ |
H A D | brconfig.c | 316 char buf[sizeof(reqp->ifbr_ifsname) + 1], *inbuf = NULL, *inb; in bridge_list() local 320 inb = realloc(inbuf, len); in bridge_list() 321 if (inb == NULL) in bridge_list() 323 bifc.ifbic_buf = inbuf = inb; in bridge_list() 713 inb = realloc(inbuf, len); in bridge_addrs() 714 if (inb == NULL) in bridge_addrs() 716 ifbac.ifbac_buf = inbuf = inb; in bridge_addrs() 832 char *inbuf = NULL, *inb; in bridge_rules() local 839 inb = realloc(inbuf, len); in bridge_rules() 840 if (inb == NULL) in bridge_rules() [all …]
|
/openbsd/sys/arch/i386/include/ |
H A D | i8259.h | 122 inb $0x84,%al ;\ 131 inb $0x84,%al ;\
|
H A D | pio.h | 57 #define inb(port) \ macro
|
/openbsd/lib/libarch/alpha/ |
H A D | io.c | 64 inb(u_int32_t port) in inb() function 66 return ops->inb(port); in inb()
|
H A D | Makefile | 4 MAN= inb.2
|
H A D | io.h | 32 u_int8_t (*inb)(u_int32_t); member
|
/openbsd/sys/arch/amd64/include/ |
H A D | i8259.h | 116 #define MASKDELAY pushl %eax ; inb $0x84,%al ; popl %eax
|
H A D | pio.h | 57 #define inb(port) \ macro
|
/openbsd/usr.sbin/ospf6d/ |
H A D | ospf6d.c | 519 struct in6_addr ina, inb; in ospf_redistribute() local 587 inet6applymask(&inb, &r->addr, r->prefixlen); in ospf_redistribute() 588 if (IN6_ARE_ADDR_EQUAL(&ina, &inb) && in ospf_redistribute()
|