Home
last modified time | relevance | path

Searched refs:inb_p (Results 1 – 25 of 99) sorted by relevance

1234

/linux-6.1.9/drivers/i2c/busses/
Di2c-ali1563.c73 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()
77 data = inb_p(SMB_HST_STS); in ali1563_transaction()
81 data = inb_p(SMB_HST_STS); in ali1563_transaction()
85 outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2); in ali1563_transaction()
90 } while (((data = inb_p(SMB_HST_STS)) & HST_STS_BUSY) && --timeout); 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()
[all …]
Di2c-ali1535.c220 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 …]
Di2c-ali15x3.c226 "ADD=%02x, DAT0=%02x, DAT1=%02x\n", inb_p(SMBHSTSTS), in ali15x3_transaction()
227 inb_p(SMBHSTCNT), inb_p(SMBHSTCMD), inb_p(SMBHSTADD), in ali15x3_transaction()
228 inb_p(SMBHSTDAT0), inb_p(SMBHSTDAT1)); in ali15x3_transaction()
231 temp = inb_p(SMBHSTSTS); in ali15x3_transaction()
260 temp = inb_p(SMBHSTSTS); in ali15x3_transaction()
267 if ((temp = inb_p(SMBHSTSTS)) & in ali15x3_transaction()
291 temp = inb_p(SMBHSTSTS); in ali15x3_transaction()
316 inb_p(SMBHSTADD)); in ali15x3_transaction()
325 "ADD=%02x, DAT0=%02x, DAT1=%02x\n", inb_p(SMBHSTSTS), in ali15x3_transaction()
326 inb_p(SMBHSTCNT), inb_p(SMBHSTCMD), inb_p(SMBHSTADD), in ali15x3_transaction()
[all …]
Di2c-viapro.c105 "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()
137 if ((temp = inb_p(SMBHSTSTS)) & 0x1F) { in vt596_transaction()
142 if ((temp = inb_p(SMBHSTSTS)) & 0x1F) { in vt596_transaction()
155 temp = inb_p(SMBHSTSTS); in vt596_transaction()
239 inb_p(SMBHSTCNT); /* Reset SMBBLKDAT */ in vt596_access()
[all …]
Di2c-piix4.c362 smba_en_lo = inb_p(SB800_PIIX4_SMB_IDX + 1); in piix4_setup_sb800_smba()
364 smba_en_hi = inb_p(SB800_PIIX4_SMB_IDX + 1); in piix4_setup_sb800_smba()
447 i2ccfg = inb_p(piix4_smba + i2ccfg_offset); in piix4_setup_sb800()
482 port_sel = inb_p(SB800_PIIX4_SMB_IDX + 1); in piix4_setup_sb800()
547 "ADD=%02x, DAT0=%02x, DAT1=%02x\n", inb_p(SMBHSTCNT), in piix4_transaction()
548 inb_p(SMBHSTCMD), inb_p(SMBHSTADD), inb_p(SMBHSTDAT0), in piix4_transaction()
549 inb_p(SMBHSTDAT1)); in piix4_transaction()
552 if ((temp = inb_p(SMBHSTSTS)) != 0x00) { in piix4_transaction()
556 if ((temp = inb_p(SMBHSTSTS)) != 0x00) { in piix4_transaction()
574 ((temp = inb_p(SMBHSTSTS)) & 0x01)) in piix4_transaction()
[all …]
Di2c-i801.c333 status = inb_p(SMBHSTSTS(priv)); in i801_check_pre()
353 status = inb_p(SMBAUXSTS(priv)) & SMBAUXSTS_CRCE; in i801_check_pre()
379 status = inb_p(SMBHSTSTS(priv)); in i801_check_post()
408 (inb_p(SMBAUXSTS(priv)) & SMBAUXSTS_CRCE)) { in i801_check_post()
433 status = inb_p(SMBHSTSTS(priv)); in i801_wait_intr()
451 status = inb_p(SMBHSTSTS(priv)); in i801_wait_byte_done()
501 outb_p(inb_p(SMBAUXCTL(priv)) | SMBAUXCTL_E32B, SMBAUXCTL(priv)); in i801_block_transaction_by_block()
503 inb_p(SMBHSTCNT(priv)); /* reset the data buffer index */ in i801_block_transaction_by_block()
518 len = inb_p(SMBHSTDAT0(priv)); in i801_block_transaction_by_block()
524 data->block[i + 1] = inb_p(SMBBLKDAT(priv)); in i801_block_transaction_by_block()
[all …]
Di2c-nforce2.c145 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()
/linux-6.1.9/drivers/char/
Ddtlk.c206 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()
376 printk(" dtlk_readable=%u@%u", inb_p(dtlk_port_lpc) != 0x7f, jiffies); in dtlk_readable()
378 return inb_p(dtlk_port_lpc) != 0x7f; in dtlk_readable()
385 printk(" dtlk_writeable=%u", (inb_p(dtlk_port_tts) & TTS_WRITABLE)!=0); in dtlk_writeable()
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()
[all …]
Dsonypi.c516 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()
532 wait_on_command(1, inb_p(SONYPI_CST_IOPORT) & 3, ITERATIONS_LONG); in sonypi_ec_read()
534 wait_on_command(0, inb_p(SONYPI_CST_IOPORT) & 2, ITERATIONS_LONG); in sonypi_ec_read()
536 wait_on_command(0, inb_p(SONYPI_CST_IOPORT) & 2, ITERATIONS_LONG); in sonypi_ec_read()
537 *value = inb_p(SONYPI_DATA_IOPORT); in sonypi_ec_read()
639 wait_on_command(0, inb_p(sonypi_device.ioport2) & 2, ITERATIONS_LONG); in sonypi_call1()
641 v1 = inb_p(sonypi_device.ioport2); in sonypi_call1()
[all …]
Dpc8736x_gpio.c90 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()
/linux-6.1.9/drivers/input/serio/
Dct82c710.c70 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()
/linux-6.1.9/drivers/comedi/drivers/
Ddt2801.c233 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 …]
/linux-6.1.9/drivers/watchdog/
Dpcwd_pci.c176 got_response = inb_p(pcipcwd_private.io_addr + 2) & WD_PCI_WRSP; in send_command()
180 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()
[all …]
Dwdt.c121 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()
Dpcwd.c232 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()
Dwafer5823wdt.c76 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()
/linux-6.1.9/drivers/input/touchscreen/
Dhtcpen.c55 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()
/linux-6.1.9/drivers/accessibility/speakup/
Dserialio.c120 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()
Dspeakup_keypc.c123 return (inb_p(synth_port + UART_RX) & 0x10) != 0; in synth_writable()
128 return (inb_p(synth_port + UART_RX) & 0x80) == 0; in synth_full()
135 s1 = inb_p(synth_port); in oops()
136 s2 = inb_p(synth_port + 1); in oops()
137 s3 = inb_p(synth_port + 2); in oops()
138 s4 = inb_p(synth_port + 3); in oops()
/linux-6.1.9/drivers/video/console/
Dvgacon.c267 inb_p(VGA_IS1_RC); in vgacon_startup()
461 curs = inb_p(vga_video_port_val); in vgacon_set_cursor_size()
463 cure = inb_p(vga_video_port_val); in vgacon_set_cursor_size()
557 max_scan = inb_p(vga_video_port_val); in vgacon_doresize()
563 mode = inb_p(vga_video_port_val); in vgacon_doresize()
572 r7 = inb_p(vga_video_port_val) & ~0x42; in vgacon_doresize()
581 vsync_end = inb_p(vga_video_port_val); in vgacon_doresize()
681 vga_state.CrtCtrlIndex = inb_p(vga_video_port_reg); in vga_vesa_blank()
686 vga_state.HorizontalTotal = inb_p(vga_video_port_val); in vga_vesa_blank()
688 vga_state.HorizDisplayEnd = inb_p(vga_video_port_val); in vga_vesa_blank()
[all …]
/linux-6.1.9/drivers/net/ethernet/8390/
Dne.c306 reg0 = inb_p(ioaddr); in ne_probe1()
316 regd = inb_p(ioaddr + 0x0d); in ne_probe1()
319 inb_p(ioaddr + EN0_COUNTER0); /* Clear the counter by reading. */ in ne_probe1()
320 if (inb_p(ioaddr + EN0_COUNTER0) != 0) { in ne_probe1()
349 while ((inb_p(ioaddr + EN0_ISR) & ENISR_RESET) == 0) in ne_probe1()
561 while ((inb_p(NE_BASE+EN0_ISR) & ENISR_RESET) == 0) in ne_reset_8390()
662 int high = inb_p(nic_base + EN0_RSARHI); in ne_block_input()
663 int low = inb_p(nic_base + EN0_RSARLO); in ne_block_input()
752 int high = inb_p(nic_base + EN0_RSARHI); in ne_block_output()
753 int low = inb_p(nic_base + EN0_RSARLO); in ne_block_output()
[all …]
Daxnet_cs.c442 retval = (retval << 1) | ((inb_p(addr) & MDIO_DATA_READ) != 0); in mdio_read()
531 if ((inb_p(nic_base+EN0_ISR) & ENISR_RESET) != 0) in axnet_reset_8390()
563 if (info->stale++ && (inb_p(nic_base + EN0_ISR) & ENISR_ALL)) { in ei_watchdog()
1119 inb_p(e8390_base + EN0_ISR), in ax_interrupt()
1120 inb_p(e8390_base + EN0_IMR)); in ax_interrupt()
1127 inb_p(e8390_base + EN0_ISR)); in ax_interrupt()
1133 while ((interrupts = inb_p(e8390_base + EN0_ISR)) != 0 && in ax_interrupt()
1168 dev->stats.rx_frame_errors += inb_p(e8390_base + EN0_COUNTER0); in ax_interrupt()
1169 dev->stats.rx_crc_errors += inb_p(e8390_base + EN0_COUNTER1); in ax_interrupt()
1170 dev->stats.rx_missed_errors+= inb_p(e8390_base + EN0_COUNTER2); in ax_interrupt()
[all …]
/linux-6.1.9/arch/m68k/include/asm/
Dvga.h21 #undef inb_p
28 #define inb_p(port) 0 macro
/linux-6.1.9/drivers/input/mouse/
Dpc110pad.c42 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()
/linux-6.1.9/drivers/hwmon/
Dlm78.c687 res = inb_p(data->isa_addr + LM78_DATA_REG_OFFSET); in lm78_read_value()
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()
869 if (inb_p(address + LM78_ADDR_REG_OFFSET) != (val | 0x80)) { 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()
[all …]

1234