/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-ali1563.c | 73 inb_p(SMB_HST_STS), inb_p(SMB_HST_CNTL1), inb_p(SMB_HST_CNTL2), in ali1563_transaction() 74 inb_p(SMB_HST_CMD), inb_p(SMB_HST_ADD), inb_p(SMB_HST_DAT0), in ali1563_transaction() 75 inb_p(SMB_HST_DAT1)); in ali1563_transaction() 94 inb_p(SMB_HST_STS), inb_p(SMB_HST_CNTL1), inb_p(SMB_HST_CNTL2), in ali1563_transaction() 95 inb_p(SMB_HST_CMD), inb_p(SMB_HST_ADD), inb_p(SMB_HST_DAT0), in ali1563_transaction() 96 inb_p(SMB_HST_DAT1)); in ali1563_transaction() 138 inb_p(SMB_HST_STS), inb_p(SMB_HST_CNTL1), inb_p(SMB_HST_CNTL2), in ali1563_block_start() 139 inb_p(SMB_HST_CMD), inb_p(SMB_HST_ADD), inb_p(SMB_HST_DAT0), in ali1563_block_start() 164 inb_p(SMB_HST_STS), inb_p(SMB_HST_CNTL1), inb_p(SMB_HST_CNTL2), in ali1563_block_start() 165 inb_p(SMB_HST_CMD), inb_p(SMB_HST_ADD), inb_p(SMB_HST_DAT0), in ali1563_block_start() [all …]
|
H A D | i2c-ali1535.c | 220 inb_p(SMBHSTSTS), inb_p(SMBHSTTYP), inb_p(SMBHSTCMD), in ali1535_transaction() 221 inb_p(SMBHSTADD), inb_p(SMBHSTDAT0), inb_p(SMBHSTDAT1)); in ali1535_transaction() 224 temp = inb_p(SMBHSTSTS); in ali1535_transaction() 252 temp = inb_p(SMBHSTSTS); in ali1535_transaction() 259 temp = inb_p(SMBHSTSTS); in ali1535_transaction() 283 temp = inb_p(SMBHSTSTS); in ali1535_transaction() 306 inb_p(SMBHSTADD)); in ali1535_transaction() 323 inb_p(SMBHSTSTS), inb_p(SMBHSTTYP), inb_p(SMBHSTCMD), in ali1535_transaction() 324 inb_p(SMBHSTADD), inb_p(SMBHSTDAT0), inb_p(SMBHSTDAT1)); in ali1535_transaction() 351 temp = inb_p(SMBHSTSTS); in ali1535_access() [all …]
|
H A D | i2c-ali15x3.c | 228 inb_p(SMBHSTCNT), inb_p(SMBHSTCMD), inb_p(SMBHSTADD), in ali15x3_transaction() 229 inb_p(SMBHSTDAT0), inb_p(SMBHSTDAT1)); in ali15x3_transaction() 232 temp = inb_p(SMBHSTSTS); in ali15x3_transaction() 261 temp = inb_p(SMBHSTSTS); in ali15x3_transaction() 292 temp = inb_p(SMBHSTSTS); in ali15x3_transaction() 317 inb_p(SMBHSTADD)); in ali15x3_transaction() 327 inb_p(SMBHSTCNT), inb_p(SMBHSTCMD), inb_p(SMBHSTADD), in ali15x3_transaction() 328 inb_p(SMBHSTDAT0), inb_p(SMBHSTDAT1)); in ali15x3_transaction() 344 temp = inb_p(SMBHSTSTS); in ali15x3_access() 349 temp = inb_p(SMBHSTSTS); in ali15x3_access() [all …]
|
H A D | i2c-viapro.c | 105 "DAT=%02x,%02x\n", msg, inb_p(SMBHSTSTS), inb_p(SMBHSTCNT), in vt596_dump_regs() 106 inb_p(SMBHSTCMD), inb_p(SMBHSTADD), inb_p(SMBHSTDAT0), in vt596_dump_regs() 107 inb_p(SMBHSTDAT1)); in vt596_dump_regs() 115 printk("%02x,", inb_p(SMBBLKDAT)); in vt596_dump_regs() 119 printk("%02x,", inb_p(SMBBLKDAT)); in vt596_dump_regs() 120 printk("%02x\n", inb_p(SMBBLKDAT)); in vt596_dump_regs() 155 temp = inb_p(SMBHSTSTS); in vt596_transaction() 265 data->byte = inb_p(SMBHSTDAT0); in vt596_access() 269 data->word = inb_p(SMBHSTDAT0) + (inb_p(SMBHSTDAT1) << 8); in vt596_access() 273 data->block[0] = inb_p(SMBHSTDAT0); in vt596_access() [all …]
|
H A D | i2c-piix4.c | 548 inb_p(SMBHSTCMD), inb_p(SMBHSTADD), inb_p(SMBHSTDAT0), in piix4_transaction() 549 inb_p(SMBHSTDAT1)); in piix4_transaction() 600 if (inb_p(SMBHSTSTS) != 0x00) in piix4_transaction() 609 inb_p(SMBHSTCMD), inb_p(SMBHSTADD), inb_p(SMBHSTDAT0), in piix4_transaction() 610 inb_p(SMBHSTDAT1)); in piix4_transaction() 688 data->byte = inb_p(SMBHSTDAT0); in piix4_access() 691 data->word = inb_p(SMBHSTDAT0) + (inb_p(SMBHSTDAT1) << 8); in piix4_access() 694 data->block[0] = inb_p(SMBHSTDAT0); in piix4_access() 708 return inb_p(KERNCZ_IMC_DATA); in piix4_imc_read() 813 smbslvcnt = inb_p(SMBSLVCNT); in piix4_access_sb800() [all …]
|
H A D | i2c-i801.c | 339 status = inb_p(SMBHSTSTS(priv)); in i801_check_pre() 385 status = inb_p(SMBHSTSTS(priv)); in i801_check_post() 439 status = inb_p(SMBHSTSTS(priv)); in i801_wait_intr() 457 status = inb_p(SMBHSTSTS(priv)); in i801_wait_byte_done() 517 len = inb_p(SMBHSTDAT0(priv)); in i801_block_transaction_by_block() 571 addr = inb_p(SMBNTFDADD(priv)) >> 1; in i801_host_notify_isr() 612 status = inb_p(SMBSLVSTS(priv)); in i801_isr() 617 status = inb_p(SMBHSTSTS(priv)); in i801_isr() 695 len = inb_p(SMBHSTDAT0(priv)); in i801_block_transaction_byte_by_byte() 701 while (inb_p(SMBHSTSTS(priv)) & in i801_block_transaction_byte_by_byte() [all …]
|
H A D | i2c-nforce2.c | 145 temp = inb_p(NVIDIA_SMB_STATUS_ABRT); in nforce2_abort() 161 temp = inb_p(NVIDIA_SMB_STS); in nforce2_check_status() 255 data->byte = inb_p(NVIDIA_SMB_DATA); in nforce2_access() 259 data->word = inb_p(NVIDIA_SMB_DATA) | in nforce2_access() 260 (inb_p(NVIDIA_SMB_DATA + 1) << 8); in nforce2_access() 264 len = inb_p(NVIDIA_SMB_BCNT); in nforce2_access() 272 data->block[i + 1] = inb_p(NVIDIA_SMB_DATA + i); in nforce2_access()
|
/openbmc/linux/drivers/char/ |
H A D | dtlk.c | 206 if (inb_p(dtlk_port_tts) & in dtlk_write() 223 inb_p(dtlk_port_tts)); in dtlk_write() 289 portval = inb_p(dtlk_port_tts); in dtlk_ioctl() 378 return inb_p(dtlk_port_lpc) != 0x7f; in dtlk_readable() 387 return inb_p(dtlk_port_tts) & TTS_WRITABLE; in dtlk_writeable() 440 buffer[b++] = inb_p(dtlk_port_lpc); \ in dtlk_dev_probe() 470 buffer[b++] = inb_p(dtlk_port_tts); \ in dtlk_dev_probe() 574 portval = inb_p(dtlk_port_tts); in dtlk_read_tts() 580 ch = inb_p(dtlk_port_tts); /* input from TTS port */ in dtlk_read_tts() 586 portval = inb_p(dtlk_port_tts); in dtlk_read_tts() [all …]
|
H A D | pc8736x_gpio.c | 90 return inb_p(superio_cmd + 1); in superio_inb() 159 val = inb_p(pc8736x_gpio_base + port_offset[port] + PORT_IN); in pc8736x_gpio_get() 177 curval = inb_p(pc8736x_gpio_base + port_offset[port] + PORT_OUT); in pc8736x_gpio_set() 190 curval = inb_p(pc8736x_gpio_base + port_offset[port] + PORT_OUT); in pc8736x_gpio_set() 191 val = inb_p(pc8736x_gpio_base + port_offset[port] + PORT_IN); in pc8736x_gpio_set() 248 = inb_p(pc8736x_gpio_base + port_offset[port] in pc8736x_init_shadow()
|
H A D | sonypi.c | 516 wait_on_command(1, inb_p(SONYPI_CST_IOPORT) & 3, ITERATIONS_LONG); in sonypi_ec_write() 518 wait_on_command(0, inb_p(SONYPI_CST_IOPORT) & 2, ITERATIONS_LONG); in sonypi_ec_write() 520 wait_on_command(0, inb_p(SONYPI_CST_IOPORT) & 2, ITERATIONS_LONG); in sonypi_ec_write() 522 wait_on_command(0, inb_p(SONYPI_CST_IOPORT) & 2, ITERATIONS_LONG); in sonypi_ec_write() 537 *value = inb_p(SONYPI_DATA_IOPORT); in sonypi_ec_read() 641 v1 = inb_p(sonypi_device.ioport2); in sonypi_call1() 642 v2 = inb_p(sonypi_device.ioport1); in sonypi_call1() 654 v1 = inb_p(sonypi_device.ioport1); in sonypi_call2() 668 v1 = inb_p(sonypi_device.ioport1); in sonypi_call3() 829 v1 = inb_p(sonypi_device.ioport1); in sonypi_irq() [all …]
|
/openbmc/linux/drivers/input/serio/ |
H A D | ct82c710.c | 70 if (inb_p(CT82C710_STATUS) & CT82C710_RX_FULL) inb_p(CT82C710_DATA); in ct82c170_wait() 84 outb_p(inb_p(CT82C710_STATUS) & ~(CT82C710_ENABLE | CT82C710_INTS_ON), CT82C710_STATUS); in ct82c710_close() 101 status = inb_p(CT82C710_STATUS); in ct82c710_open() 146 if (inb_p(0x391) != 0xe4) /* Config address found? */ in ct82c710_detect() 150 ct82c710_iores.start = inb_p(0x391) << 2; /* Get mouse I/O address */ in ct82c710_detect()
|
/openbmc/linux/drivers/watchdog/ |
H A D | pcwd_pci.c | 176 got_response = inb_p(pcipcwd_private.io_addr + 2) & WD_PCI_WRSP; in send_command() 194 *lsb = inb_p(pcipcwd_private.io_addr + 4); in send_command() 195 *msb = inb_p(pcipcwd_private.io_addr + 5); in send_command() 198 inb_p(pcipcwd_private.io_addr + 6); in send_command() 212 if (inb_p(pcipcwd_private.io_addr) != 0xF0) in pcipcwd_check_temperature_support() 220 option_switches = inb_p(pcipcwd_private.io_addr + 3); in pcipcwd_get_option_switches() 267 stat_reg = inb_p(pcipcwd_private.io_addr + 2); in pcipcwd_start() 292 stat_reg = inb_p(pcipcwd_private.io_addr + 2); in pcipcwd_stop() 342 control_status = inb_p(pcipcwd_private.io_addr + 1); in pcipcwd_get_status() 366 control_status = inb_p(pcipcwd_private.io_addr + 1); in pcipcwd_clear_status() [all …]
|
H A D | wdt.c | 121 inb_p(WDT_DC); /* Disable watchdog */ in wdt_start() 147 inb_p(WDT_DC); /* Disable watchdog */ in wdt_stop() 165 inb_p(WDT_DC); /* Disable watchdog */ in wdt_ping() 209 new_status = inb_p(WDT_SR); in wdt_get_status() 244 c = inb_p(WDT_RT); in wdt_get_temperature() 252 pr_crit("Overheat alarm (%d)\n", inb_p(WDT_RT)); in wdt_decode_501() 278 status = inb_p(WDT_SR); in wdt_interrupt()
|
H A D | pcwd.c | 232 port0 = inb_p(pcwd_private.io_addr); in send_isa_command() 235 port0 = inb_p(pcwd_private.io_addr); in send_isa_command() 383 wdrst_stat = inb_p(pcwd_private.io_addr); in pcwd_timer_ping() 416 stat_reg = inb_p(pcwd_private.io_addr + 2); in pcwd_start() 444 stat_reg = inb_p(pcwd_private.io_addr + 2); in pcwd_stop() 540 control_status = inb_p(pcwd_private.io_addr + 1); in pcwd_clear_status() 824 port0 = inb_p(base_addr); /* For REV A boards */ in pcwd_isa_match() 825 port1 = inb_p(base_addr + 1); /* For REV C boards */ in pcwd_isa_match() 835 port0 = inb_p(base_addr); in pcwd_isa_match() 836 port1 = inb_p(base_addr + 1); in pcwd_isa_match()
|
H A D | wafer5823wdt.c | 76 inb_p(wdt_stop); in wafwdt_ping() 77 inb_p(wdt_start); in wafwdt_ping() 85 inb_p(wdt_start); in wafwdt_start() 91 inb_p(wdt_stop); in wafwdt_stop()
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | dt2801.c | 233 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_readdata() 237 *data = inb_p(dev->iobase + DT2801_DATA); in dt2801_readdata() 268 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_writedata() 300 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_wait_for_ready() 304 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_wait_for_ready() 321 stat = inb_p(dev->iobase + DT2801_STATUS); in dt2801_writecmd() 338 inb_p(dev->iobase + DT2801_DATA); in dt2801_reset() 339 inb_p(dev->iobase + DT2801_DATA); in dt2801_reset() 340 inb_p(dev->iobase + DT2801_DATA); in dt2801_reset() 341 inb_p(dev->iobase + DT2801_DATA); in dt2801_reset() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | htcpen.c | 55 if (inb_p(HTCPEN_PORT_DATA)) { in htcpen_interrupt() 59 x = inb_p(HTCPEN_PORT_DATA); in htcpen_interrupt() 62 y = inb_p(HTCPEN_PORT_DATA); in htcpen_interrupt() 65 xy = inb_p(HTCPEN_PORT_DATA); in htcpen_interrupt() 84 inb_p(HTCPEN_PORT_IRQ_CLEAR); in htcpen_interrupt() 150 inb_p(HTCPEN_PORT_IRQ_CLEAR); in htcpen_isa_probe()
|
/openbmc/linux/drivers/accessibility/speakup/ |
H A D | serialio.c | 120 while (inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR) { in synth_readbuf_handler() 121 c = inb_p(speakup_info.port_tts + UART_RX); in synth_readbuf_handler() 242 while (!((inb_p(speakup_info.port_tts + UART_MSR)) & UART_MSR_CTS)) { in spk_serial_wait_for_xmitr() 258 while (!(inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR)) { in spk_serial_in() 265 return inb_p(speakup_info.port_tts + UART_RX); in spk_serial_in() 272 lsr = inb_p(speakup_info.port_tts + UART_LSR); in spk_serial_in_nowait() 275 return inb_p(speakup_info.port_tts + UART_RX); in spk_serial_in_nowait()
|
H A D | speakup_keypc.c | 132 return (inb_p(synth_port + UART_RX) & 0x10) != 0; in synth_writable() 137 return (inb_p(synth_port + UART_RX) & 0x80) == 0; in synth_full() 144 s1 = inb_p(synth_port); in oops() 145 s2 = inb_p(synth_port + 1); in oops() 146 s3 = inb_p(synth_port + 2); in oops() 147 s4 = inb_p(synth_port + 3); in oops()
|
/openbmc/linux/drivers/video/console/ |
H A D | vgacon.c | 259 inb_p(VGA_IS1_RC); in vgacon_startup() 453 curs = inb_p(vga_video_port_val); in vgacon_set_cursor_size() 455 cure = inb_p(vga_video_port_val); in vgacon_set_cursor_size() 540 max_scan = inb_p(vga_video_port_val); in vgacon_doresize() 546 mode = inb_p(vga_video_port_val); in vgacon_doresize() 555 r7 = inb_p(vga_video_port_val) & ~0x42; in vgacon_doresize() 564 vsync_end = inb_p(vga_video_port_val); in vgacon_doresize() 676 vga_state.Overflow = inb_p(vga_video_port_val); in vga_vesa_blank() 932 inb_p(video_port_status); in vgacon_do_font_op() 976 ovr = inb_p(vga_video_port_val); in vgacon_adjust_height() [all …]
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | vga.h | 21 #undef inb_p 28 #define inb_p(port) 0 macro
|
/openbmc/linux/drivers/net/ethernet/8390/ |
H A D | ne.c | 305 reg0 = inb_p(ioaddr); in ne_probe1() 315 regd = inb_p(ioaddr + 0x0d); in ne_probe1() 318 inb_p(ioaddr + EN0_COUNTER0); /* Clear the counter by reading. */ in ne_probe1() 319 if (inb_p(ioaddr + EN0_COUNTER0) != 0) { in ne_probe1() 348 while ((inb_p(ioaddr + EN0_ISR) & ENISR_RESET) == 0) in ne_probe1() 560 while ((inb_p(NE_BASE+EN0_ISR) & ENISR_RESET) == 0) in ne_reset_8390() 661 int high = inb_p(nic_base + EN0_RSARHI); in ne_block_input() 662 int low = inb_p(nic_base + EN0_RSARLO); in ne_block_input() 751 int high = inb_p(nic_base + EN0_RSARHI); in ne_block_output() 752 int low = inb_p(nic_base + EN0_RSARLO); in ne_block_output() [all …]
|
H A D | axnet_cs.c | 531 if ((inb_p(nic_base+EN0_ISR) & ENISR_RESET) != 0) in axnet_reset_8390() 1116 inb_p(e8390_base + EN0_ISR), in ax_interrupt() 1117 inb_p(e8390_base + EN0_IMR)); in ax_interrupt() 1124 inb_p(e8390_base + EN0_ISR)); in ax_interrupt() 1130 while ((interrupts = inb_p(e8390_base + EN0_ISR)) != 0 && in ax_interrupt() 1214 unsigned char txsr = inb_p(e8390_base+EN0_TSR); in ei_tx_err() 1352 rxing_page = inb_p(e8390_base + EN1_CURPAG -1); in ei_receive() 1355 this_frame = inb_p(e8390_base + EN0_BOUNDARY) + 1; in ei_receive() 1465 was_txing = inb_p(e8390_base+E8390_CMD) & E8390_TRANS; in ei_rx_overrun() 1532 dev->stats.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); in get_stats() [all …]
|
/openbmc/linux/drivers/input/mouse/ |
H A D | pc110pad.c | 42 int value = inb_p(pc110pad_io); in pc110pad_interrupt() 43 int handshake = inb_p(pc110pad_io + 2); in pc110pad_interrupt() 49 inb_p(0x64); in pc110pad_interrupt()
|
/openbmc/linux/drivers/hwmon/ |
H A D | lm78.c | 853 val = inb_p(address + 1); in lm78_isa_found() 854 if (inb_p(address + 2) != val in lm78_isa_found() 855 || inb_p(address + 3) != val in lm78_isa_found() 856 || inb_p(address + 7) != val) in lm78_isa_found() 864 save = inb_p(address + LM78_ADDR_REG_OFFSET); in lm78_isa_found() 876 val = inb_p(address + LM78_DATA_REG_OFFSET); in lm78_isa_found() 880 val = inb_p(address + LM78_DATA_REG_OFFSET); in lm78_isa_found() 885 if (inb_p(address + LM78_ADDR_REG_OFFSET) & 0x80) in lm78_isa_found() 890 val = inb_p(address + LM78_DATA_REG_OFFSET); in lm78_isa_found() 896 val = inb_p(address + LM78_DATA_REG_OFFSET); in lm78_isa_found() [all …]
|