/freebsd/stand/i386/libi386/ |
H A D | textvidc.c | 557 inb(IO_DUMMY); in delay7() 558 inb(IO_DUMMY); in delay7() 559 inb(IO_DUMMY); in delay7() 560 inb(IO_DUMMY); in delay7() 561 inb(IO_DUMMY); in delay7() 562 inb(IO_DUMMY); in delay7() 579 (void)inb(0x84); in delay1ms() 599 while (inb(IO_KBD + KBD_STATUS_PORT) & KBDS_ANY_BUFFER_FULL) { in probe_keyboard() 601 inb(IO_KBD + KBD_DATA_PORT); in probe_keyboard() 607 if (((i = inb(IO_KBD + KBD_STATUS_PORT)) in probe_keyboard() [all …]
|
H A D | comconsole.c | 153 if (inb(comc_port + com_lsr) & LSR_TXRDY) { in comc_putchar() 162 return (comc_ischar() ? inb(comc_port + com_data) : -1); in comc_getchar() 168 return (inb(comc_port + com_lsr) & LSR_RXRDY); in comc_ischar() 336 if (inb(comc_port + com_scr) != COMC_TEST) { in comc_setup() 349 inb(comc_port + com_data); in comc_setup() 350 while (inb(comc_port + com_lsr) & LSR_RXRDY && ++tries < TRY_COUNT); in comc_setup() 381 cfcr = inb(comc_port + com_cfcr); in comc_getspeed() 384 dlbl = inb(comc_port + com_dlbl); in comc_getspeed() 385 dlbh = inb(comc_port + com_dlbh); in comc_getspeed()
|
H A D | vidconsole.c | 1162 inb(IO_DUMMY); inb(IO_DUMMY); in delay7() 1163 inb(IO_DUMMY); inb(IO_DUMMY); in delay7() 1164 inb(IO_DUMMY); inb(IO_DUMMY); in delay7() 1181 (void) inb(0x84); in delay1ms() 1201 while (inb(IO_KBD + KBD_STATUS_PORT) & KBDS_ANY_BUFFER_FULL) { in probe_keyboard() 1203 inb(IO_KBD + KBD_DATA_PORT); in probe_keyboard() 1209 if (((i = inb(IO_KBD + KBD_STATUS_PORT)) in probe_keyboard() 1215 inb(IO_KBD + KBD_DATA_PORT); in probe_keyboard() 1227 if (inb(IO_KBD + KBD_STATUS_PORT) & in probe_keyboard() 1236 i = inb(IO_KBD + KBD_DATA_PORT); in probe_keyboard()
|
H A D | vbe.c | 157 return (inb(reg + index)); in vga_get_reg() 165 (void) inb(reg + VGA_GEN_INPUT_STAT_1); in vga_get_atr() 167 ret = inb(reg + VGA_AC_READ); in vga_get_atr() 169 (void) inb(reg + VGA_GEN_INPUT_STAT_1); in vga_get_atr() 177 (void) inb(reg + VGA_GEN_INPUT_STAT_1); in vga_set_atr() 181 (void) inb(reg + VGA_GEN_INPUT_STAT_1); in vga_set_atr() 195 return (inb(reg + datareg)); in vga_get_indexed()
|
/freebsd/sys/dev/ppc/ |
H A D | ppc.c | 433 (void)inb(idport); (void)inb(idport); in ppc_pc873xx_detect() 434 (void)inb(idport); (void)inb(idport); in ppc_pc873xx_detect() 445 val = inb(idport + 1); in ppc_pc873xx_detect() 468 inb(idport + 1) & 0xff); in ppc_pc873xx_detect() 477 val = inb(idport + 1); in ppc_pc873xx_detect() 484 val = inb(idport + 1); in ppc_pc873xx_detect() 515 val = inb(idport + 1) & 0x3; in ppc_pc873xx_detect() 528 ptr = inb(idport + 1); in ppc_pc873xx_detect() 567 pcr = inb(idport + 1); in ppc_pc873xx_detect() 590 ptr = inb(idport + 1); in ppc_pc873xx_detect() [all …]
|
/freebsd/lib/libvgl/ |
H A D | simple.c | 565 inb(0x3DA); in VGLRestorePalette() 569 inb(0x84); in VGLRestorePalette() 571 inb(0x84); in VGLRestorePalette() 573 inb(0x84); in VGLRestorePalette() 575 inb(0x3DA); in VGLRestorePalette() 587 inb(0x3DA); in VGLSavePalette() 590 VGLSavePaletteRed[i] = inb(0x3C9); in VGLSavePalette() 591 inb(0x84); in VGLSavePalette() 592 VGLSavePaletteGreen[i] = inb(0x3C9); in VGLSavePalette() 593 inb(0x84); in VGLSavePalette() [all …]
|
/freebsd/stand/common/ |
H A D | isapnp.c | 37 #define inb(x) (archsw.arch_isainb((x))) macro 97 bit = inb(isapnp_readport) == 0x55; in isapnp_get_serial() 101 bit = (inb(isapnp_readport) == 0xaa) && bit; in isapnp_get_serial() 131 if ((inb(isapnp_readport)) & 0x1) in isapnp_get_resource_info() 140 temp = inb(isapnp_readport); in isapnp_get_resource_info()
|
/freebsd/usr.bin/tcopy/ |
H A D | tcopy.c | 230 char *inb; in verify() local 232 inb = getspace(maxblk); in verify() 235 if ((inn = read(inp, inb, inmaxblk)) == -1) { in verify() 238 inn = read(inp, inb, inmaxblk); in verify() 264 free(inb); in verify() 268 if (bcmp(inb, outb, inn)) { in verify()
|
/freebsd/sys/dev/fb/ |
H A D | vga.c | 756 if (inb(adp->va_crtc_addr) == 7) { in verify_adapter() 1288 if (inb(TSREG) & 1) in set_display_start() 1312 inb(adp->va_crtc_addr + 6); in set_display_start() 1315 inb(adp->va_crtc_addr + 6); in set_display_start() 1675 outb(TSIDX, 0x02); buf[0] = inb(TSREG); in set_font_mode() 1676 outb(TSIDX, 0x04); buf[1] = inb(TSREG); in set_font_mode() 1677 outb(GDCIDX, 0x04); buf[2] = inb(GDCREG); in set_font_mode() 1678 outb(GDCIDX, 0x05); buf[3] = inb(GDCREG); in set_font_mode() 1679 outb(GDCIDX, 0x06); buf[4] = inb(GDCREG); in set_font_mode() 1680 inb(adp->va_crtc_addr + 6); in set_font_mode() [all …]
|
/freebsd/sys/x86/isa/ |
H A D | isa_dma.c | 476 low1 = inb(waport); in isa_dmastatus_locked() 477 high1 = inb(waport); in isa_dmastatus_locked() 479 low2 = inb(waport); in isa_dmastatus_locked() 480 high2 = inb(waport); in isa_dmastatus_locked() 519 return(inb(DMA1_STATUS) & (1 << chan)); in isa_dmatc() 521 return(inb(DMA2_STATUS) & (1 << (chan & 3))); in isa_dmatc()
|
H A D | nmi.c | 55 int isa_port = inb(0x61); in isa_nmi() 56 int eisa_port = inb(0x461); in isa_nmi()
|
H A D | atrtc.c | 103 inb(0x84); in rtcin_locked() 106 inb(0x84); in rtcin_locked() 108 return (inb(IO_RTC + 1)); in rtcin_locked() 116 inb(0x84); in rtcout_locked() 119 inb(0x84); in rtcout_locked() 122 inb(0x84); in rtcout_locked()
|
H A D | elcr.c | 67 elcr_status = inb(ELCR_PORT) | inb(ELCR_PORT + 1) << 8; in elcr_probe()
|
H A D | clock.c | 217 low = inb(TIMER_CNTR0); in getit() 218 high = inb(TIMER_CNTR0); in getit() 293 inb(0x84); in i8254_delay() 487 low = inb(TIMER_CNTR0); in i8254_get_timecount() 488 high = inb(TIMER_CNTR0); in i8254_get_timecount()
|
/freebsd/sys/x86/include/ |
H A D | ppireg.h | 44 #define ppi_spkr_on() outb(IO_PPI, inb(IO_PPI) | PIT_SPKR) 45 #define ppi_spkr_off() outb(IO_PPI, inb(IO_PPI) & ~PIT_SPKR)
|
/freebsd/stand/i386/boot2/ |
H A D | sio.S | 59 sio_putc.1: inb (%dx),%al # Transmitter 73 inb (%dx),%al # Read character 80 inb (%dx),%al # Received data
|
/freebsd/contrib/pnpinfo/ |
H A D | pnpinfo.c | 61 return inb( (rd_port << 2) + 3) & 0xff; in pnp_read() 139 bit = inb((rd_port << 2) | 0x3) == 0x55; in get_serial() 143 bit = (inb((rd_port << 2) | 0x3) == 0xaa) && bit; in get_serial() 173 if ((inb((rd_port << 2) | 0x3)) & 0x1) in get_resource_info() 182 buffer[i] = inb((rd_port << 2) | 0x3); in get_resource_info()
|
/freebsd/tools/tools/net80211/wesside/wesside/ |
H A D | aircrack-ptw-lib.c | 108 static int compare(const void * ina, const void * inb) { in compare() argument 110 PTW_tableentry * b = (PTW_tableentry * )inb; in compare() 121 static int comparedoublesorthelper(const void * ina, const void * inb) { in comparedoublesorthelper() argument 123 doublesorthelper * b = (doublesorthelper * )inb; in comparedoublesorthelper() 166 static int comparesorthelper(const void * ina, const void * inb) { in comparesorthelper() argument 168 sorthelper * b = (sorthelper * ) inb; in comparesorthelper()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_mad.c | 34 int mlx5_core_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb, in mlx5_core_mad_ifc() argument 55 memcpy(data, inb, MLX5_FLD_SZ_BYTES(mad_ifc_in, mad)); in mlx5_core_mad_ifc()
|
/freebsd/tools/test/stress2/misc/ |
H A D | ldt.sh | 221 inb(unsigned int port) 256 inb(port_num); 276 inb(port_num);
|
/freebsd/contrib/ntp/kernel/sys/ |
H A D | pcl720.h | 35 #define pcl720_inb(x) inb(x) 39 unsigned char x = inb(addr); in pcl720_inb()
|
/freebsd/stand/i386/pxeldr/ |
H A D | pxeldr.S | 242 inb $0x64,%al # Get status 247 seta20.2: inb $0x64,%al # Get status
|
/freebsd/sys/i386/pci/ |
H A D | pci_cfgreg.c | 309 data = inb(port); in pcireg_cfgread() 377 header = inb(port); in pci_cfgcheck() 441 oldval2 = inb(CONF2_ENABLE_PORT); in pcireg_cfgopen() 453 mode2res = inb(CONF2_ENABLE_PORT); in pcireg_cfgopen()
|
/freebsd/sys/isa/ |
H A D | pnp.c | 145 bit = inb((pnp_rd_port << 2) | 0x3) == 0x55; in pnp_get_serial() 149 bit = (inb((pnp_rd_port << 2) | 0x3) == 0xaa) && bit; in pnp_get_serial() 178 if ((inb((pnp_rd_port << 2) | 0x3)) & 0x1) in pnp_get_resource_info() 187 temp = inb((pnp_rd_port << 2) | 0x3); in pnp_get_resource_info()
|
/freebsd/sys/powerpc/include/ |
H A D | pio.h | 160 #define inb(a) (__inb((volatile u_int8_t *)(a))) macro 161 #define in8(a) inb(a) 174 #define in8rb(a) inb(a)
|