Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dns8390.c414 inb(0x84); in ns8390_transmit()
420 inb(0x84); in ns8390_transmit()
422 inb(0x84); in ns8390_transmit()
432 inb(0x84); in ns8390_transmit()
435 inb(0x84); in ns8390_transmit()
462 inb(0x84); in ns8390_transmit()
519 inb(0x84); in ns8390_poll()
524 inb(0x84); in ns8390_poll()
527 inb(0x84); in ns8390_poll()
567 inb(0x84); in ns8390_poll()
[all …]
H A Dvia-rhine.c756 byMIItemp = inb (byMIICR); in ReadMII()
761 byMIItemp = inb (byMIICR); in ReadMII()
801 byMIItemp = inb (byMIICR); in WriteMII()
830 byMIItemp = inb (byMIICR); in WriteMII()
847 inb (0x61); in MIIDelay()
848 inb (0x61); in MIIDelay()
849 inb (0x61); in MIIDelay()
850 inb (0x61); in MIIDelay()
967 byOrgValue = inb(bySTICKHW); in rhine_probe1()
1045 MIICRbak = inb (byMIICR); in rhine_probe1()
[all …]
H A Dpic8259.h49 #define irq_enabled(x) ( ( inb ( IMR_REG(x) ) & IMR_BIT(x) ) == 0 )
50 #define enable_irq(x) outb ( inb( IMR_REG(x) ) & ~IMR_BIT(x), IMR_REG(x) )
51 #define disable_irq(x) outb ( inb( IMR_REG(x) ) | IMR_BIT(x), IMR_REG(x) )
H A Drtl8139.c212 speed10 = inb(nic->ioaddr + MediaStatus) & MSRSpeed10; in rtl8139_probe()
220 if (inb(nic->ioaddr + MediaStatus) & MSRLinkFail) { in rtl8139_probe()
281 retval = (retval << 1) | ((inb(ee_addr) & EE_DATA_READ) ? 1 : 0); in read_eeprom()
321 while ((inb(nic->ioaddr + ChipCmd) & CmdReset) != 0 && in rtl_reset()
429 if (inb(nic->ioaddr + ChipCmd) & RxBufEmpty) { in rtl_poll()
523 while ((inb(nic->ioaddr + ChipCmd) & CmdReset) != 0 && timer2_running()) in rtl_disable()
H A Di386_timer.c29 outb((inb(PPC_PORTB) & ~PPCB_SPKR) | PPCB_T2GATE, PPC_PORTB); in __load_timer2()
40 return ((inb(PPC_PORTB) & PPCB_T2OUT) == 0); in __timer2_running()
H A D3c595.c118 inb(BASE + VX_W1_TX_STATUS); in t595_reset()
192 while(( status=inb(BASE + VX_W1_TX_STATUS) )& TXS_COMPLETE ) { in t595_transmit()
271 nic->packet[rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
284 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_asm.S60 ENTRY(inb) function
63 inb (%dx)
65 SET_SIZE(inb)
107 ENTRY_NP(inb) function
109 inb (%dx)
112 SET_SIZE(inb)
/illumos-gate/usr/src/uts/i86pc/io/
H A Dtodpc_subr.c371 reg = inb(RTC_DATA); in todpc_rtcget()
382 reg = inb(RTC_DATA); in todpc_rtcget()
390 *rawp++ = inb(RTC_DATA); in todpc_rtcget()
393 ((struct rtc_t *)buf)->rtc_century = inb(RTC_DATA); in todpc_rtcget()
397 ((struct rtc_t *)buf)->rtc_adom = inb(RTC_DATA) & 0x3f; in todpc_rtcget()
401 ((struct rtc_t *)buf)->rtc_amon = inb(RTC_DATA); in todpc_rtcget()
405 reg = inb(RTC_DATA); in todpc_rtcget()
435 reg = inb(RTC_DATA); in todpc_rtcput()
448 tmp = inb(RTC_DATA) & RTC_VRT; in todpc_rtcput()
458 reg = inb(RTC_DATA); in todpc_rtcput()
/illumos-gate/usr/src/uts/common/io/
H A Di8237A.c244 if ((istate = (inb(EISA_DMAIS) & 0xef)) != 0) { in d37A_intr()
254 mask = inb(DMAC1_ALLMASK) >> (chnl); in d37A_intr()
256 mask = inb(DMAC2_ALLMASK) >> (chnl - 4); in d37A_intr()
720 adr_byte[0] = inb(chan_addr[chnl].addr_reg); in d37A_read_addr()
721 adr_byte[1] = inb(chan_addr[chnl].addr_reg); in d37A_read_addr()
722 adr_byte[2] = inb(chan_addr[chnl].page_reg); in d37A_read_addr()
724 adr_byte[3] = inb(chan_addr[chnl].hpage_reg); in d37A_read_addr()
819 count_byte[0] = inb(chan_addr[chnl].cnt_reg); in d37A_read_count()
820 count_byte[1] = inb(chan_addr[chnl].cnt_reg); in d37A_read_count()
822 count_byte[2] = inb(chan_addr[chnl].hcnt_reg); in d37A_read_count()
H A Dfdc.c481 stat = inb(ioaddr + FCR_MSR); in fdc_probe()
731 if ((inb(fcp->c_regbase + FCR_DIR) & in fdc_propinit2()
777 save = inb(fcp->c_regbase + FCR_SRA); in fdc_enhance_probe()
797 result = inb(fcp->c_regbase + FCR_SRB); in fdc_enhance_probe()
825 result = inb(fcp->c_regbase + FCR_SRB); in fdc_enhance_probe()
1649 if ((inb(fcp->c_regbase + FCR_MSR) & in fdc_quiesce()
1903 save = inb(fcp->c_regbase + FCR_SRA); in fdcspdchange()
2621 state = inb(fcp->c_regbase + FCR_MSR); in fdc_intr()
2627 state = inb(fcp->c_regbase + FCR_MSR); in fdc_intr()
3174 if ((inb(fcp->c_regbase + FCR_MSR) & in fdc_result()
[all …]
/illumos-gate/usr/src/boot/common/
H A Disapnp.c39 #define inb(x) (archsw.arch_isainb((x))) macro
99 bit = inb(isapnp_readport) == 0x55; in isapnp_get_serial()
103 bit = (inb(isapnp_readport) == 0xaa) && bit; in isapnp_get_serial()
134 if ((inb(isapnp_readport)) & 0x1) in isapnp_get_resource_info()
143 temp = inb(isapnp_readport); in isapnp_get_resource_info()
/illumos-gate/usr/src/uts/i86pc/boot/
H A Dboot_vga.c321 (void) inb(VGA_REG_ADDR + CGA_STAT); in vga_set_atr()
325 (void) inb(VGA_REG_ADDR + CGA_STAT); in vga_set_atr()
334 (void) inb(VGA_REG_ADDR + CGA_STAT); in vga_get_atr()
336 val = inb(VGA_REG_ADDR + VGA_ATR_DATA); in vga_get_atr()
338 (void) inb(VGA_REG_ADDR + CGA_STAT); in vga_get_atr()
355 return (inb(VGA_REG_ADDR + VGA_CRTC_DATA)); in vga_get_crtc()
H A Dboot_keyboard.c224 buffer_stat = inb(I8042_STAT); in kb_ischar()
237 (void) inb(I8042_DATA); in kb_ischar()
241 code = inb(I8042_DATA); in kb_ischar()
473 (inb(I8042_STAT) & I8042_STAT_INBF) != 0 && retries < 100000; in kb_send()
H A Dboot_console.c139 if (inb(port + ISR) & 0x20) { in serial_init()
160 if ((inb(port + ISR) & 0xc0) != 0xc0) { in serial_init()
873 while (((inb(port + LSR) & XHRE) == 0) && checks--) in serial_putchar()
886 lsr = inb(port + LSR); in serial_getchar()
890 return (inb(port + DAT)); in serial_getchar()
893 (void) inb(port + DAT); in serial_getchar()
897 return (inb(port + DAT)); in serial_getchar()
903 return (inb(port + LSR) & RCA); in serial_ischar()
/illumos-gate/usr/src/uts/intel/io/acpica/
H A Dacpica_ec.c128 while (inb(sc_addr) & EC_IBF) { in ec_wait_ibf_clear()
146 while (!(inb(sc_addr) & EC_OBF)) { in ec_wait_obf_set()
164 sc = inb(ec.ec_sc); in ec_rd()
198 rv = inb(ec.ec_base); in ec_rd()
213 sc = inb(ec.ec_sc); in ec_wr()
278 rv = inb(ec.ec_base); in ec_query()
355 if (!(inb(ec.ec_sc) & EC_SCI)) in ec_gpe_callback()
607 if (inb(ec.ec_sc) & EC_OBF) { in ec_init()
608 x = inb(ec.ec_base); /* read and discard value */ in ec_init()
/illumos-gate/usr/src/boot/i386/libi386/
H A Dvidconsole.c1021 inb(IO_DUMMY); inb(IO_DUMMY); in delay7()
1022 inb(IO_DUMMY); inb(IO_DUMMY); in delay7()
1023 inb(IO_DUMMY); inb(IO_DUMMY); in delay7()
1040 (void) inb(0x84); in delay1ms()
1060 while (inb(IO_KBD + KBD_STATUS_PORT) & KBDS_ANY_BUFFER_FULL) { in probe_keyboard()
1062 inb(IO_KBD + KBD_DATA_PORT); in probe_keyboard()
1068 if (((i = inb(IO_KBD + KBD_STATUS_PORT)) & in probe_keyboard()
1074 inb(IO_KBD + KBD_DATA_PORT); in probe_keyboard()
1086 if (inb(IO_KBD + KBD_STATUS_PORT) & in probe_keyboard()
1095 i = inb(IO_KBD + KBD_DATA_PORT); in probe_keyboard()
H A Dcomconsole.c111 return (inb(ioaddr + com_scr) == COMC_TEST); in comc_port_is_present()
308 if (inb(sp->ioaddr + com_lsr) & LSR_TXRDY) { in comc_putchar()
318 return (comc_ischar(cp) ? inb(sp->ioaddr + com_data) : -1); in comc_getchar()
325 return (inb(sp->ioaddr + com_lsr) & LSR_RXRDY); in comc_ischar()
683 inb(sp->ioaddr + com_data); in comc_setup()
684 } while (inb(sp->ioaddr + com_lsr) & LSR_RXRDY && ++tries < TRY_COUNT); in comc_setup()
701 cfcr = inb(ioaddr + com_cfcr); in comc_getspeed()
704 dlbl = inb(ioaddr + com_dlbl); in comc_getspeed()
705 dlbh = inb(ioaddr + com_dlbh); in comc_getspeed()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dtscc_pit.c114 (void) inb(PITCTR0_PORT); in pit_sanity_check()
115 pit_count = inb(PITCTR0_PORT); in pit_sanity_check()
116 pit_count |= inb(PITCTR0_PORT) << 8; in pit_sanity_check()
H A Dpci_neptune.c58 oldstatus = inb(PCI_CSE_PORT); in pci_check_neptune()
72 (inb(PCI_CADDR2(0, PCI_CONF_REVID)) & 0xf0) != 0x10) { in pci_check_neptune()
98 neptune_BIOS_cfg_method = inb(PCI_PMC); in pci_check_neptune()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dserial.c69 inb (unsigned short port) in inb() function
91 if (inb (serial_hw_port + UART_LSR) & UART_DATA_READY) in serial_hw_fetch()
92 return inb (serial_hw_port + UART_RX); in serial_hw_fetch()
104 while ((inb (serial_hw_port + UART_LSR) & UART_EMPTY_TRANSMITTER) == 0) in serial_hw_put()
151 status = inb (port + UART_SR); in serial_hw_init()
/illumos-gate/usr/src/test/bhyve-tests/tests/kdev/
H A Dpayload_vatpit_freq.c44 val = inb(IOP_ATPIT_C0); in timer0_read()
45 val |= (uint16_t)inb(IOP_ATPIT_C0) << 8; in timer0_read()
/illumos-gate/usr/src/test/bhyve-tests/tests/common/
H A Dpayload_utils.S44 ENTRY(inb) function
46 inb (%dx)
48 SET_SIZE(inb)
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/
H A Dapic_common.c1150 pit_tick_lo = inb(PITCTR0_PORT); in apic_calibrate_pit()
1162 pit_tick_lo = inb(PITCTR0_PORT); in apic_calibrate_pit()
1173 pit_tick_lo = inb(PITCTR0_PORT); in apic_calibrate_pit()
1455 byte = inb(CMOS_DATA); in apic_shutdown()
1461 byte = inb(CMOS_DATA); in apic_shutdown()
1474 byte = inb(CMOS_DATA); in apic_shutdown()
1489 byte = inb(MISMIC_FLAG_REGISTER); in apic_shutdown()
1499 byte = inb(MISMIC_FLAG_REGISTER); in apic_shutdown()
1518 byte = inb(MISMIC_FLAG_REGISTER); in apic_shutdown()
1531 byte = inb(SMS_STATUS_REGISTER); in apic_shutdown()
[all …]
/illumos-gate/usr/src/boot/i386/gptzfsboot/
H A Dsio.S65 sio_putc.1: inb (%dx),%al # Transmitter
79 inb (%dx),%al # Read character
87 inb (%dx),%al # Received data
/illumos-gate/usr/src/cmd/refer/
H A Dglue4.c26 char *inp, inb[500]; in grepcall() local
32 strcpy(inp = inb, in); in grepcall()

1234