Home
last modified time | relevance | path

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

123

/linux/drivers/watchdog/
H A 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 …]
H A 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 …]
H A 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/drivers/clocksource/
H A Di8253.c52 outb_p(0x00, PIT_MODE); /* latch the count ASAP */ in i8253_read()
58 outb_p(0x34, PIT_MODE); in i8253_read()
59 outb_p(PIT_LATCH & 0xff, PIT_CH0); in i8253_read()
60 outb_p(PIT_LATCH >> 8, PIT_CH0); in i8253_read()
130 outb_p(0x30, PIT_MODE); in clockevent_i8253_disable()
131 outb_p(0, PIT_CH0); in clockevent_i8253_disable()
132 outb_p(0, PIT_CH0); in clockevent_i8253_disable()
134 outb_p(0x30, PIT_MODE); in clockevent_i8253_disable()
149 outb_p(0x38, PIT_MODE); in pit_set_oneshot()
159 outb_p(0x34, PIT_MODE); in pit_set_periodic()
[all …]
/linux/drivers/i2c/busses/
H A 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()
325 outb_p(ALI1535_KILL, SMBHSTTYP); in ali1535_transaction()
326 outb_p(0xFF, SMBHSTSTS); in ali1535_transaction()
329 outb_p(ALI1535_T_OUT, SMBHSTTYP); in ali1535_transaction()
330 outb_p(0xFF, SMBHSTSTS); in ali1535_transaction()
358 outb_p(0xFF, SMBHSTSTS); in ali1535_access()
362 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access()
[all …]
H A 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()
103 outb_p(HST_CNTL2_KILL, SMB_HST_CNTL2); in ali1563_transaction()
118 outb_p(HST_CNTL1_TIMEOUT, SMB_HST_CNTL1); in ali1563_transaction()
123 outb_p(0x0, SMB_HST_CNTL2); in ali1563_transaction()
144 outb_p(data | HST_STS_BAD, SMB_HST_STS); in ali1563_block_start()
151 outb_p(data | HST_STS_DONE, SMB_HST_STS); in ali1563_block_start()
154 outb_p(inb_p(SMB_HST_CNTL2) | HST_CNTL2_START, SMB_HST_CNTL2); in ali1563_block_start()
192 outb_p(HST_CNTL1_LAST, SMB_HST_CNTL1); in ali1563_block()
200 outb_p(len, SMB_HST_DAT0); in ali1563_block()
[all …]
H A Di2c-ali15x3.c260 outb_p(ALI15X3_T_OUT, SMBHSTCNT); in ali15x3_transaction()
267 outb_p(0xFF, SMBHSTSTS); in ali15x3_transaction()
281 outb_p(temp, SMBHSTSTS); in ali15x3_transaction()
286 outb_p(0xFF, SMBHSTSTART); in ali15x3_transaction()
340 outb_p(0xFF, SMBHSTSTS); in ali15x3_access()
355 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
360 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
363 outb_p(command, SMBHSTCMD); in ali15x3_access()
367 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
369 outb_p(command, SMBHSTCMD); in ali15x3_access()
[all …]
H A Di2c-amd-asf-plat.c74 outb_p(reg, ASFDATABNKSEL); in amd_asf_process_target()
90 outb_p(reg, ASFDATABNKSEL); in amd_asf_process_target()
99 outb_p(reg, ASFDATABNKSEL); in amd_asf_process_target()
102 outb_p(reg, ASFDATABNKSEL); in amd_asf_process_target()
106 outb_p(0, ASFSETDATARDPTR); in amd_asf_process_target()
129 outb_p(reg, offset); in amd_asf_update_ioport_target()
146 outb_p(0, SMBHSTSTS); in amd_asf_setup_target()
147 outb_p(0, ASFSLVSTA); in amd_asf_setup_target()
148 outb_p(0, ASFSTA); in amd_asf_setup_target()
169 outb_p((addr << 1), SMBHSTADD); in amd_asf_access()
[all …]
H A 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 …]
H A Di2c-nforce2.c128 outb_p(NVIDIA_SMB_CTRL_ABORT, NVIDIA_SMB_CTRL); in nforce2_abort()
136 outb_p(NVIDIA_SMB_STATUS_ABRT_STS, NVIDIA_SMB_STATUS_ABRT); in nforce2_abort()
185 outb_p(command, NVIDIA_SMB_CMD); in nforce2_access()
190 outb_p(command, NVIDIA_SMB_CMD); in nforce2_access()
192 outb_p(data->byte, NVIDIA_SMB_DATA); in nforce2_access()
197 outb_p(command, NVIDIA_SMB_CMD); in nforce2_access()
199 outb_p(data->word, NVIDIA_SMB_DATA); in nforce2_access()
200 outb_p(data->word >> 8, NVIDIA_SMB_DATA + 1); in nforce2_access()
206 outb_p(command, NVIDIA_SMB_CMD); in nforce2_access()
215 outb_p(len, NVIDIA_SMB_BCNT); in nforce2_access()
[all …]
H A Di2c-piix4.c344 outb_p(smb_en, SB800_PIIX4_SMB_IDX); in piix4_setup_sb800_smba()
346 outb_p(smb_en + 1, SB800_PIIX4_SMB_IDX); in piix4_setup_sb800_smba()
464 outb_p(SB800_PIIX4_PORT_IDX_SEL, SB800_PIIX4_SMB_IDX); in piix4_setup_sb800()
536 outb_p(temp, SMBHSTSTS); in piix4_transaction()
546 outb_p(inb(SMBHSTCNT) | 0x040, SMBHSTCNT); in piix4_transaction()
582 outb_p(inb(SMBHSTSTS), SMBHSTSTS); in piix4_transaction()
608 outb_p((addr << 1) | read_write, in piix4_access()
613 outb_p((addr << 1) | read_write, in piix4_access()
616 outb_p(command, SMBHSTCMD); in piix4_access()
620 outb_p((addr << 1) | read_write, in piix4_access()
[all …]
/linux/drivers/video/console/
H A Dvgacon.c295 outb_p(i, VGA_ATT_W); in vgacon_startup()
296 outb_p(i, VGA_ATT_W); in vgacon_startup()
298 outb_p(0x20, VGA_ATT_W); in vgacon_startup()
305 outb_p(color_table[i], VGA_PEL_IW); in vgacon_startup()
306 outb_p(default_red[i], VGA_PEL_D); in vgacon_startup()
307 outb_p(default_grn[i], VGA_PEL_D); in vgacon_startup()
308 outb_p(default_blu[i], VGA_PEL_D); in vgacon_startup()
487 outb_p(VGA_CRTC_CURSOR_START, vga_video_port_reg); in vgacon_set_cursor_size()
489 outb_p(VGA_CRTC_CURSOR_END, vga_video_port_reg); in vgacon_set_cursor_size()
499 outb_p(VGA_CRTC_CURSOR_START, vga_video_port_reg); in vgacon_set_cursor_size()
[all …]
/linux/drivers/media/radio/
H A 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 …]
H A 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()
H A Dradio-gemtek.c157 outb_p(mute | GEMTEK_CE | GEMTEK_DA | GEMTEK_CK, isa->io); in gemtek_bu2614_transmit()
162 outb_p(mute | GEMTEK_CE | bit, isa->io); in gemtek_bu2614_transmit()
164 outb_p(mute | GEMTEK_CE | bit | GEMTEK_CK, isa->io); in gemtek_bu2614_transmit()
168 outb_p(mute | GEMTEK_DA | GEMTEK_CK, isa->io); in gemtek_bu2614_transmit()
240 outb_p((i >> 5) | (mute ? GEMTEK_MT : 0), isa->io); in gemtek_s_mute_volume()
263 outb_p(1 << i, io); in gemtek_probe()
269 outb_p(q >> 5, io); /* Write bus contents back. */ in gemtek_probe()
/linux/drivers/input/touchscreen/
H A 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/drivers/irqchip/
H A Dirq-i8259.c246 outb_p(0x11, PIC_MASTER_CMD); /* ICW1: select 8259A-1 init */ in init_8259A()
247outb_p(I8259A_IRQ_BASE + 0, PIC_MASTER_IMR); /* ICW2: 8259A-1 IR0 mapped to I8259A_IRQ_BASE + 0x00… in init_8259A()
248 outb_p(1U << PIC_CASCADE_IR, PIC_MASTER_IMR); /* 8259A-1 (the master) has a slave on IR2 */ in init_8259A()
250 outb_p(MASTER_ICW4_DEFAULT | PIC_ICW4_AEOI, PIC_MASTER_IMR); in init_8259A()
252 outb_p(MASTER_ICW4_DEFAULT, PIC_MASTER_IMR); in init_8259A()
254 outb_p(0x11, PIC_SLAVE_CMD); /* ICW1: select 8259A-2 init */ in init_8259A()
255outb_p(I8259A_IRQ_BASE + 8, PIC_SLAVE_IMR); /* ICW2: 8259A-2 IR0 mapped to I8259A_IRQ_BASE + 0x08 … in init_8259A()
256 outb_p(PIC_CASCADE_IR, PIC_SLAVE_IMR); /* 8259A-2 is a slave on master's IR2 */ in init_8259A()
257outb_p(SLAVE_ICW4_DEFAULT, PIC_SLAVE_IMR); /* (slave's support for AEOI in flat mode is to be inve… in init_8259A()
/linux/arch/alpha/include/asm/
H A Dmc146818rtc.h20 outb_p((addr),RTC_PORT(0)); \
24 outb_p((addr),RTC_PORT(0)); \
25 outb_p((val),RTC_PORT(1)); \
/linux/arch/powerpc/include/asm/
H A Dmc146818rtc.h23 outb_p((addr),RTC_PORT(0)); \
27 outb_p((addr),RTC_PORT(0)); \
28 outb_p((val),RTC_PORT(1)); \
/linux/arch/sparc/include/asm/
H A Dmc146818rtc_32.h20 outb_p((addr),RTC_PORT(0)); \
24 outb_p((addr),RTC_PORT(0)); \
25 outb_p((val),RTC_PORT(1)); \
H A Dmc146818rtc_64.h21 outb_p((addr),RTC_PORT(0)); \
25 outb_p((addr),RTC_PORT(0)); \
26 outb_p((val),RTC_PORT(1)); \
/linux/drivers/net/ethernet/8390/
H A Dpcnet_cs.c355 outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); in get_prom()
415 outb_p(0x01, ioaddr + EN0_DCFG); /* Set word-wide access. */ in get_ax88190()
416 outb_p(0x00, ioaddr + EN0_RSARLO); /* DMA starting at 0x0400. */ in get_ax88190()
417 outb_p(0x04, ioaddr + EN0_RSARHI); in get_ax88190()
418 outb_p(E8390_RREAD+E8390_START, ioaddr + E8390_CMD); in get_ax88190()
780 outb_p(EE_EEP|EE_CS|dataval, ee_addr); in read_eeprom()
781 outb_p(EE_EEP|EE_CS|dataval|EE_CK, ee_addr); in read_eeprom()
786 outb_p(EE_EEP|EE_CS | EE_CK, ee_addr); in read_eeprom()
788 outb_p(EE_EEP|EE_CS, ee_addr); in read_eeprom()
819 outb_p(EE_ASIC|EE_CS|EE_DI|dataval, ee_addr); in write_asic()
[all …]
/linux/arch/arm/include/asm/
H A Dmc146818rtc.h23 outb_p((addr),RTC_PORT(0)); \
27 outb_p((addr),RTC_PORT(0)); \
28 outb_p((val),RTC_PORT(1)); \
/linux/arch/sh/boards/mach-se/770x/
H A Dsetup.c25 outb_p(index, INDEX_PORT); in smsc_config()
26 outb_p(data, DATA_PORT); in smsc_config()
32 outb_p(CONFIG_ENTER, CONFIG_PORT); in smsc_setup()
33 outb_p(CONFIG_ENTER, CONFIG_PORT); in smsc_setup()
65 outb_p(CONFIG_EXIT, CONFIG_PORT); in smsc_setup()
/linux/sound/drivers/pcsp/
H A Dpcsp_input.c24 outb_p(0xB6, 0x43); in pcspkr_do_sound()
26 outb_p(count & 0xff, 0x42); in pcspkr_do_sound()
29 outb_p(inb_p(0x61) | 3, 0x61); in pcspkr_do_sound()

123