Home
last modified time | relevance | path

Searched refs:outb_p (Results 1 – 25 of 123) sorted by relevance

12345

/linux-6.1.9/drivers/watchdog/ !
Dw83977f_wdt.c73 outb_p(UNLOCK_DATA, IO_INDEX_PORT); in wdt_start()
74 outb_p(UNLOCK_DATA, IO_INDEX_PORT); in wdt_start()
82 outb_p(DEVICE_REGISTER, IO_INDEX_PORT); in wdt_start()
83 outb_p(0x08, IO_DATA_PORT); in wdt_start()
84 outb_p(0xF2, IO_INDEX_PORT); in wdt_start()
85 outb_p(timeoutW, IO_DATA_PORT); in wdt_start()
86 outb_p(0xF3, IO_INDEX_PORT); in wdt_start()
87 outb_p(0x08, IO_DATA_PORT); in wdt_start()
88 outb_p(0xF4, IO_INDEX_PORT); in wdt_start()
89 outb_p(0x00, IO_DATA_PORT); in wdt_start()
[all …]
Dwdt977.c83 outb_p(UNLOCK_DATA, IO_INDEX_PORT); in wdt977_start()
84 outb_p(UNLOCK_DATA, IO_INDEX_PORT); in wdt977_start()
92 outb_p(DEVICE_REGISTER, IO_INDEX_PORT); in wdt977_start()
93 outb_p(0x08, IO_DATA_PORT); in wdt977_start()
94 outb_p(0xF2, IO_INDEX_PORT); in wdt977_start()
95 outb_p(timeoutM, IO_DATA_PORT); in wdt977_start()
96 outb_p(0xF3, IO_INDEX_PORT); in wdt977_start()
97 outb_p(0x00, IO_DATA_PORT); /* another setting is 0E for in wdt977_start()
99 outb_p(0xF4, IO_INDEX_PORT); in wdt977_start()
100 outb_p(0x00, IO_DATA_PORT); in wdt977_start()
[all …]
Dpc87413_wdt.c76 outb_p(SIOCFG2, WDT_INDEX_IO_PORT); in pc87413_select_wdt_out()
81 outb_p(SIOCFG2, WDT_INDEX_IO_PORT); in pc87413_select_wdt_out()
83 outb_p(cr_data, WDT_DATA_IO_PORT); in pc87413_select_wdt_out()
100 outb_p(0x07, WDT_INDEX_IO_PORT); /* Point SWC_LDN (LDN=4) */ in pc87413_enable_swc()
101 outb_p(SWC_LDN, WDT_DATA_IO_PORT); in pc87413_enable_swc()
103 outb_p(0x30, WDT_INDEX_IO_PORT); /* Read Index 0x30 First */ in pc87413_enable_swc()
106 outb_p(0x30, WDT_INDEX_IO_PORT); in pc87413_enable_swc()
107 outb_p(cr_data, WDT_DATA_IO_PORT); /* Index0x30_bit0P1 */ in pc87413_enable_swc()
122 outb_p(0x60, WDT_INDEX_IO_PORT); /* Read Index 0x60 */ in pc87413_get_swc_base_addr()
125 outb_p(0x61, WDT_INDEX_IO_PORT); /* Read Index 0x61 */ in pc87413_get_swc_base_addr()
[all …]
/linux-6.1.9/drivers/i2c/busses/ !
Di2c-ali1535.c251 outb_p(ALI1535_T_OUT, SMBHSTTYP); in ali1535_transaction()
258 outb_p(0xFF, SMBHSTSTS); in ali1535_transaction()
273 outb_p(temp, SMBHSTSTS); in ali1535_transaction()
277 outb_p(0xFF, SMBHSTPORT); in ali1535_transaction()
329 outb_p(ALI1535_KILL, SMBHSTTYP); in ali1535_transaction()
330 outb_p(0xFF, SMBHSTSTS); in ali1535_transaction()
333 outb_p(ALI1535_T_OUT, SMBHSTTYP); in ali1535_transaction()
334 outb_p(0xFF, SMBHSTSTS); in ali1535_transaction()
362 outb_p(0xFF, SMBHSTSTS); in ali1535_access()
366 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access()
[all …]
Di2c-ali1563.c80 outb_p(data | HST_STS_BAD, SMB_HST_STS); in ali1563_transaction()
85 outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2); in ali1563_transaction()
104 outb_p(HST_CNTL2_KILL, SMB_HST_CNTL2); in ali1563_transaction()
119 outb_p(HST_CNTL1_TIMEOUT, SMB_HST_CNTL1); in ali1563_transaction()
124 outb_p(0x0, SMB_HST_CNTL2); in ali1563_transaction()
145 outb_p(data | HST_STS_BAD, SMB_HST_STS); in ali1563_block_start()
152 outb_p(data | HST_STS_DONE, SMB_HST_STS); in ali1563_block_start()
155 outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2); in ali1563_block_start()
193 outb_p(HST_CNTL1_LAST, SMB_HST_CNTL1); in ali1563_block()
201 outb_p(len, SMB_HST_DAT0); in ali1563_block()
[all …]
Di2c-ali15x3.c259 outb_p(ALI15X3_T_OUT, SMBHSTCNT); in ali15x3_transaction()
266 outb_p(0xFF, SMBHSTSTS); in ali15x3_transaction()
280 outb_p(temp, SMBHSTSTS); in ali15x3_transaction()
285 outb_p(0xFF, SMBHSTSTART); in ali15x3_transaction()
341 outb_p(0xFF, SMBHSTSTS); in ali15x3_access()
356 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
361 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
364 outb_p(command, SMBHSTCMD); in ali15x3_access()
368 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
370 outb_p(command, SMBHSTCMD); in ali15x3_access()
[all …]
Di2c-viapro.c141 outb_p(temp, SMBHSTSTS); in vt596_transaction()
150 outb_p(0x40 | size, SMBHSTCNT); in vt596_transaction()
182 outb_p(temp, SMBHSTSTS); in vt596_transaction()
203 outb_p(command, SMBHSTCMD); in vt596_access()
207 outb_p(command, SMBHSTCMD); in vt596_access()
209 outb_p(data->byte, SMBHSTDAT0); in vt596_access()
213 outb_p(command, SMBHSTCMD); in vt596_access()
215 outb_p(data->word & 0xff, SMBHSTDAT0); in vt596_access()
216 outb_p((data->word & 0xff00) >> 8, SMBHSTDAT1); in vt596_access()
221 outb_p(command, SMBHSTCMD); in vt596_access()
[all …]
Di2c-i801.c342 outb_p(status, SMBHSTSTS(priv)); in i801_check_pre()
356 outb_p(status, SMBAUXSTS(priv)); in i801_check_pre()
374 outb_p(SMBHSTCNT_KILL, SMBHSTCNT(priv)); in i801_check_post()
376 outb_p(0, SMBHSTCNT(priv)); in i801_check_post()
409 outb_p(SMBAUXSTS_CRCE, SMBAUXSTS(priv)); in i801_check_post()
471 outb_p(xact | SMBHSTCNT_INTREN | SMBHSTCNT_START, in i801_transaction()
477 outb_p(xact | SMBHSTCNT_START, SMBHSTCNT(priv)); in i801_transaction()
501 outb_p(inb_p(SMBAUXCTL(priv)) | SMBAUXCTL_E32B, SMBAUXCTL(priv)); in i801_block_transaction_by_block()
507 outb_p(len, SMBHSTDAT0(priv)); in i801_block_transaction_by_block()
509 outb_p(data->block[i+1], SMBBLKDAT(priv)); in i801_block_transaction_by_block()
[all …]
Di2c-nforce2.c142 outb_p(NVIDIA_SMB_CTRL_ABORT, NVIDIA_SMB_CTRL); in nforce2_abort()
150 outb_p(NVIDIA_SMB_STATUS_ABRT_STS, NVIDIA_SMB_STATUS_ABRT); in nforce2_abort()
199 outb_p(command, NVIDIA_SMB_CMD); in nforce2_access()
204 outb_p(command, NVIDIA_SMB_CMD); in nforce2_access()
206 outb_p(data->byte, NVIDIA_SMB_DATA); in nforce2_access()
211 outb_p(command, NVIDIA_SMB_CMD); in nforce2_access()
213 outb_p(data->word, NVIDIA_SMB_DATA); in nforce2_access()
214 outb_p(data->word >> 8, NVIDIA_SMB_DATA + 1); in nforce2_access()
220 outb_p(command, NVIDIA_SMB_CMD); in nforce2_access()
229 outb_p(len, NVIDIA_SMB_BCNT); in nforce2_access()
[all …]
Di2c-piix4.c361 outb_p(smb_en, SB800_PIIX4_SMB_IDX); in piix4_setup_sb800_smba()
363 outb_p(smb_en + 1, SB800_PIIX4_SMB_IDX); in piix4_setup_sb800_smba()
481 outb_p(SB800_PIIX4_PORT_IDX_SEL, SB800_PIIX4_SMB_IDX); in piix4_setup_sb800()
555 outb_p(temp, SMBHSTSTS); in piix4_transaction()
565 outb_p(inb(SMBHSTCNT) | 0x040, SMBHSTCNT); in piix4_transaction()
601 outb_p(inb(SMBHSTSTS), SMBHSTSTS); in piix4_transaction()
626 outb_p((addr << 1) | read_write, in piix4_access()
631 outb_p((addr << 1) | read_write, in piix4_access()
634 outb_p(command, SMBHSTCMD); in piix4_access()
638 outb_p((addr << 1) | read_write, in piix4_access()
[all …]
/linux-6.1.9/drivers/video/console/ !
Dvgacon.c268 outb_p(i, VGA_ATT_W); in vgacon_startup()
269 outb_p(i, VGA_ATT_W); in vgacon_startup()
271 outb_p(0x20, VGA_ATT_W); in vgacon_startup()
278 outb_p(color_table[i], VGA_PEL_IW); in vgacon_startup()
279 outb_p(default_red[i], VGA_PEL_D); in vgacon_startup()
280 outb_p(default_grn[i], VGA_PEL_D); in vgacon_startup()
281 outb_p(default_blu[i], VGA_PEL_D); in vgacon_startup()
460 outb_p(VGA_CRTC_CURSOR_START, vga_video_port_reg); in vgacon_set_cursor_size()
462 outb_p(VGA_CRTC_CURSOR_END, vga_video_port_reg); in vgacon_set_cursor_size()
472 outb_p(VGA_CRTC_CURSOR_START, vga_video_port_reg); in vgacon_set_cursor_size()
[all …]
Dmdacon.c114 outb_p(reg, mda_index_port); in write_mda_b()
115 outb_p(val, mda_value_port); in write_mda_b()
126 outb_p(reg, mda_index_port); outb_p(val >> 8, mda_value_port); in write_mda_w()
127 outb_p(reg+1, mda_index_port); outb_p(val & 0xff, mda_value_port); in write_mda_w()
139 outb_p(reg, mda_index_port); in test_mda_b()
315 outb_p(MDA_MODE_VIDEO_EN | MDA_MODE_BLINK_EN, mda_mode_port); in mda_initialize()
316 outb_p(0x00, mda_status_port); in mda_initialize()
317 outb_p(0x00, mda_gfx_port); in mda_initialize()
478 outb_p(0x00, mda_mode_port); /* disable video */ in mdacon_blank()
480 outb_p(MDA_MODE_VIDEO_EN | MDA_MODE_BLINK_EN, in mdacon_blank()
/linux-6.1.9/drivers/clocksource/ !
Di8253.c59 outb_p(0x00, PIT_MODE); /* latch the count ASAP */ in i8253_read()
65 outb_p(0x34, PIT_MODE); in i8253_read()
66 outb_p(PIT_LATCH & 0xff, PIT_CH0); in i8253_read()
67 outb_p(PIT_LATCH >> 8, PIT_CH0); in i8253_read()
118 outb_p(0x30, PIT_MODE); in pit_shutdown()
121 outb_p(0, PIT_CH0); in pit_shutdown()
122 outb_p(0, PIT_CH0); in pit_shutdown()
132 outb_p(0x38, PIT_MODE); in pit_set_oneshot()
142 outb_p(0x34, PIT_MODE); in pit_set_periodic()
143 outb_p(PIT_LATCH & 0xff, PIT_CH0); /* LSB */ in pit_set_periodic()
[all …]
/linux-6.1.9/drivers/input/serio/ !
Dct82c710.c84 outb_p(inb_p(CT82C710_STATUS) & ~(CT82C710_ENABLE | CT82C710_INTS_ON), CT82C710_STATUS); in ct82c710_close()
104 outb_p(status, CT82C710_STATUS); in ct82c710_open()
107 outb_p(status, CT82C710_STATUS); in ct82c710_open()
110 outb_p(status, CT82C710_STATUS); /* Enable interrupts */ in ct82c710_open()
115 outb_p(status, CT82C710_STATUS); in ct82c710_open()
130 outb_p(c, CT82C710_DATA); in ct82c710_write()
140 outb_p(0x55, 0x2fa); /* Any value except 9, ff or 36 */ in ct82c710_detect()
141 outb_p(0xaa, 0x3fa); /* Inverse of 55 */ in ct82c710_detect()
142 outb_p(0x36, 0x3fa); /* Address the chip */ in ct82c710_detect()
143 outb_p(0xe4, 0x3fa); /* 390/4; 390 = config address */ in ct82c710_detect()
[all …]
/linux-6.1.9/drivers/media/radio/ !
Dradio-rtrack2.c55 outb_p(1, isa->io); in zero()
56 outb_p(3, isa->io); in zero()
57 outb_p(1, isa->io); in zero()
62 outb_p(5, isa->io); in one()
63 outb_p(7, isa->io); in one()
64 outb_p(5, isa->io); in one()
73 outb_p(0xc8, isa->io); in rtrack2_s_frequency()
74 outb_p(0xc9, isa->io); in rtrack2_s_frequency()
75 outb_p(0xc9, isa->io); in rtrack2_s_frequency()
86 outb_p(0xc8, isa->io); in rtrack2_s_frequency()
[all …]
Dradio-typhoon.c105 outb_p((outval >> 8) & 0x01, isa->io + 4); in typhoon_s_frequency()
106 outb_p(outval >> 9, isa->io + 6); in typhoon_s_frequency()
107 outb_p(outval & 0xff, isa->io + 8); in typhoon_s_frequency()
119 outb_p(vol / 2, isa->io); /* Set the volume, high bit. */ in typhoon_s_mute_volume()
120 outb_p(vol % 2, isa->io + 2); /* Set the volume, low bit. */ in typhoon_s_mute_volume()
/linux-6.1.9/drivers/net/ethernet/8390/ !
Dne.c315 outb_p(E8390_NODMA+E8390_PAGE1+E8390_STOP, ioaddr + E8390_CMD); in ne_probe1()
317 outb_p(0xff, ioaddr + 0x0d); in ne_probe1()
318 outb_p(E8390_NODMA+E8390_PAGE0, ioaddr + E8390_CMD); in ne_probe1()
321 outb_p(reg0, ioaddr); in ne_probe1()
322 outb_p(regd, ioaddr + 0x0d); /* Restore the old values. */ in ne_probe1()
361 outb_p(0xff, ioaddr + EN0_ISR); /* Ack all intr. */ in ne_probe1()
387 outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); in ne_probe1()
402 outb_p(DCR_VAL, ioaddr + EN0_DCFG); in ne_probe1()
473 outb_p(0x50, ioaddr + EN0_IMR); /* Enable one interrupt. */ in ne_probe1()
474 outb_p(0x00, ioaddr + EN0_RCNTLO); in ne_probe1()
[all …]
Daxnet_cs.c220 outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); in get_prom()
424 outb_p(MDIO_DATA_WRITE1, addr); in mdio_sync()
425 outb_p(MDIO_DATA_WRITE1 | MDIO_SHIFT_CLK, addr); in mdio_sync()
437 outb_p(dat, addr); in mdio_read()
438 outb_p(dat | MDIO_SHIFT_CLK, addr); in mdio_read()
441 outb_p(MDIO_ENB_IN, addr); in mdio_read()
443 outb_p(MDIO_ENB_IN | MDIO_SHIFT_CLK, addr); in mdio_read()
456 outb_p(dat, addr); in mdio_write()
457 outb_p(dat | MDIO_SHIFT_CLK, addr); in mdio_write()
460 outb_p(MDIO_ENB_IN, addr); in mdio_write()
[all …]
Dpcnet_cs.c356 outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); in get_prom()
416 outb_p(0x01, ioaddr + EN0_DCFG); /* Set word-wide access. */ in get_ax88190()
417 outb_p(0x00, ioaddr + EN0_RSARLO); /* DMA starting at 0x0400. */ in get_ax88190()
418 outb_p(0x04, ioaddr + EN0_RSARHI); in get_ax88190()
419 outb_p(E8390_RREAD+E8390_START, ioaddr + E8390_CMD); in get_ax88190()
781 outb_p(EE_EEP|EE_CS|dataval, ee_addr); in read_eeprom()
782 outb_p(EE_EEP|EE_CS|dataval|EE_CK, ee_addr); in read_eeprom()
787 outb_p(EE_EEP|EE_CS | EE_CK, ee_addr); in read_eeprom()
789 outb_p(EE_EEP|EE_CS, ee_addr); in read_eeprom()
820 outb_p(EE_ASIC|EE_CS|EE_DI|dataval, ee_addr); in write_asic()
[all …]
/linux-6.1.9/drivers/cpufreq/ !
Delanfreq.c82 outb_p(0x80, REG_CSCIR); in elanfreq_get_cpu_frequency()
121 outb_p(0x40, REG_CSCIR); /* Disable hyperspeed mode */ in elanfreq_target()
122 outb_p(0x00, REG_CSCDR); in elanfreq_target()
129 outb_p(0x80, REG_CSCIR); in elanfreq_target()
130 outb_p(elan_multiplier[state].val80h, REG_CSCDR); in elanfreq_target()
133 outb_p(0x40, REG_CSCIR); in elanfreq_target()
134 outb_p(elan_multiplier[state].val40h, REG_CSCDR); in elanfreq_target()
/linux-6.1.9/drivers/input/touchscreen/ !
Dhtcpen.c53 outb_p(TOUCH_INDEX, HTCPEN_PORT_INDEX); in htcpen_interrupt()
58 outb_p(X_INDEX, HTCPEN_PORT_INDEX); in htcpen_interrupt()
61 outb_p(Y_INDEX, HTCPEN_PORT_INDEX); in htcpen_interrupt()
64 outb_p(LSB_XY_INDEX, HTCPEN_PORT_INDEX); in htcpen_interrupt()
91 outb_p(DEVICE_ENABLE, HTCPEN_PORT_INIT); in htcpen_open()
98 outb_p(DEVICE_DISABLE, HTCPEN_PORT_INIT); in htcpen_close()
191 outb_p(DEVICE_DISABLE, HTCPEN_PORT_INIT); in htcpen_isa_suspend()
198 outb_p(DEVICE_ENABLE, HTCPEN_PORT_INIT); in htcpen_isa_resume()
/linux-6.1.9/drivers/irqchip/ !
Dirq-i8259.c242 outb_p(0x11, PIC_MASTER_CMD); /* ICW1: select 8259A-1 init */ in init_8259A()
243outb_p(I8259A_IRQ_BASE + 0, PIC_MASTER_IMR); /* ICW2: 8259A-1 IR0 mapped to I8259A_IRQ_BASE + 0x00… in init_8259A()
244 outb_p(1U << PIC_CASCADE_IR, PIC_MASTER_IMR); /* 8259A-1 (the master) has a slave on IR2 */ in init_8259A()
246 outb_p(MASTER_ICW4_DEFAULT | PIC_ICW4_AEOI, PIC_MASTER_IMR); in init_8259A()
248 outb_p(MASTER_ICW4_DEFAULT, PIC_MASTER_IMR); in init_8259A()
250 outb_p(0x11, PIC_SLAVE_CMD); /* ICW1: select 8259A-2 init */ in init_8259A()
251outb_p(I8259A_IRQ_BASE + 8, PIC_SLAVE_IMR); /* ICW2: 8259A-2 IR0 mapped to I8259A_IRQ_BASE + 0x08 … in init_8259A()
252 outb_p(PIC_CASCADE_IR, PIC_SLAVE_IMR); /* 8259A-2 is a slave on master's IR2 */ in init_8259A()
253outb_p(SLAVE_ICW4_DEFAULT, PIC_SLAVE_IMR); /* (slave's support for AEOI in flat mode is to be inve… in init_8259A()
/linux-6.1.9/drivers/video/fbdev/ !
Dhgafb.c146 outb_p(reg, HGA_INDEX_PORT); in write_hga_b()
147 outb_p(val, HGA_VALUE_PORT); in write_hga_b()
152 outb_p(reg, HGA_INDEX_PORT); outb_p(val >> 8, HGA_VALUE_PORT); in write_hga_w()
153 outb_p(reg+1, HGA_INDEX_PORT); outb_p(val & 0xff, HGA_VALUE_PORT); in write_hga_w()
158 outb_p(reg, HGA_INDEX_PORT); in test_hga_b()
184 outb_p(HGA_MODE_VIDEO_EN | HGA_MODE_BLINK_EN, HGA_MODE_PORT); in hga_txt_mode()
185 outb_p(0x00, HGA_GFX_PORT); in hga_txt_mode()
186 outb_p(0x00, HGA_STATUS_PORT); in hga_txt_mode()
215 outb_p(0x00, HGA_STATUS_PORT); in hga_gfx_mode()
216 outb_p(HGA_GFX_MODE_EN, HGA_GFX_PORT); in hga_gfx_mode()
[all …]
/linux-6.1.9/arch/alpha/include/asm/ !
Dmc146818rtc.h20 outb_p((addr),RTC_PORT(0)); \
24 outb_p((addr),RTC_PORT(0)); \
25 outb_p((val),RTC_PORT(1)); \
/linux-6.1.9/arch/sparc/include/asm/ !
Dmc146818rtc_32.h20 outb_p((addr),RTC_PORT(0)); \
24 outb_p((addr),RTC_PORT(0)); \
25 outb_p((val),RTC_PORT(1)); \

12345