Lines Matching refs:port
151 HCFG_MUTEBUTTONENABLE, emu->port + HCFG); in snd_emu10k1_init()
162 outl(0, emu->port + INTE); in snd_emu10k1_init()
199 outl(0x0201, emu->port + HCFG2); in snd_emu10k1_init()
213 outl(0x600000, emu->port + 0x20); in snd_emu10k1_init()
214 outl(0x14, emu->port + 0x24); in snd_emu10k1_init()
217 outl(0x7b0000, emu->port + 0x20); in snd_emu10k1_init()
218 outl(0xFF000000, emu->port + 0x24); in snd_emu10k1_init()
224 outl(0x7a0000, emu->port + 0x20); in snd_emu10k1_init()
225 outl(0xFF000000, emu->port + 0x24); in snd_emu10k1_init()
226 tmp = inl(emu->port + A_IOCFG) & ~0x8; /* Clear bit 3 */ in snd_emu10k1_init()
227 outl(tmp, emu->port + A_IOCFG); in snd_emu10k1_init()
247 outl(0x76, emu->port + A_IOCFG); /* Windows uses 0x3f76 */ in snd_emu10k1_init()
253 tmp = inl(emu->port + A_IOCFG); in snd_emu10k1_init()
254 outl(tmp | 0x4, emu->port + A_IOCFG); /* Set bit 2 for mic input */ in snd_emu10k1_init()
255 tmp = inl(emu->port + A_IOCFG); in snd_emu10k1_init()
279 HCFG_AUDIOENABLE, emu->port + HCFG); in snd_emu10k1_init()
292 HCFG_AUTOMUTE | HCFG_JOYENABLE, emu->port + HCFG); in snd_emu10k1_init()
294 outl(HCFG_AUTOMUTE | HCFG_JOYENABLE, emu->port + HCFG); in snd_emu10k1_init()
300 outl(HCFG_LOCKTANKCACHE_MASK | HCFG_AUTOMUTE, emu->port + HCFG); in snd_emu10k1_init()
303 outl(HCFG_LOCKTANKCACHE_MASK | HCFG_AUTOMUTE | HCFG_JOYENABLE, emu->port + HCFG); in snd_emu10k1_init()
311 unsigned int reg = inl(emu->port + A_IOCFG); in snd_emu10k1_init()
312 outl(reg | A_IOCFG_GPOUT2, emu->port + A_IOCFG); in snd_emu10k1_init()
314 outl(reg | A_IOCFG_GPOUT1 | A_IOCFG_GPOUT2, emu->port + A_IOCFG); in snd_emu10k1_init()
316 outl(reg, emu->port + A_IOCFG); in snd_emu10k1_init()
318 unsigned int reg = inl(emu->port + HCFG); in snd_emu10k1_init()
319 outl(reg | HCFG_GPOUT2, emu->port + HCFG); in snd_emu10k1_init()
321 outl(reg | HCFG_GPOUT1 | HCFG_GPOUT2, emu->port + HCFG); in snd_emu10k1_init()
323 outl(reg, emu->port + HCFG); in snd_emu10k1_init()
332 unsigned int reg = inl(emu->port + A_IOCFG); in snd_emu10k1_init()
333 outl(reg | A_IOCFG_GPOUT0, emu->port + A_IOCFG); in snd_emu10k1_init()
338 outl(inl(emu->port + HCFG) | HCFG_EXPANDED_MEM, emu->port + HCFG); in snd_emu10k1_init()
349 outl(inl(emu->port + HCFG) | HCFG_AUDIOENABLE, emu->port + HCFG); in snd_emu10k1_audio_enable()
357 outl(inl(emu->port + A_IOCFG) & ~0x44, emu->port + A_IOCFG); in snd_emu10k1_audio_enable()
363 outl(inl(emu->port + A_IOCFG) | 0x0040, emu->port + A_IOCFG); in snd_emu10k1_audio_enable()
366 outl(inl(emu->port + A_IOCFG) | 0x0060, emu->port + A_IOCFG); in snd_emu10k1_audio_enable()
369 outl(inl(emu->port + A_IOCFG) | 0x0080, emu->port + A_IOCFG); in snd_emu10k1_audio_enable()
379 tmp = inl(emu->port + HCFG); in snd_emu10k1_audio_enable()
381 outl(tmp|0x800, emu->port + HCFG); in snd_emu10k1_audio_enable()
383 if (tmp != (inl(emu->port + HCFG) & ~0x800)) { in snd_emu10k1_audio_enable()
385 outl(tmp, emu->port + HCFG); in snd_emu10k1_audio_enable()
398 outl(0, emu->port + INTE); in snd_emu10k1_done()
434 outl(HCFG_LOCKSOUNDCACHE | HCFG_LOCKTANKCACHE_MASK | HCFG_MUTEBUTTONENABLE, emu->port + HCFG); in snd_emu10k1_done()
524 hc_port = emu->port + HCFG; in snd_emu10k1_ecard_write()
594 hc_value = inl(emu->port + HCFG); in snd_emu10k1_ecard_init()
595 outl(hc_value | HCFG_AUDIOENABLE | HCFG_CODECFORMAT_I2S, emu->port + HCFG); in snd_emu10k1_ecard_init()
596 inl(emu->port + HCFG); in snd_emu10k1_ecard_init()
631 special_port = emu->port + 0x38; in snd_emu10k1_cardbus_init()
669 outl(0x00, emu->port + A_IOCFG); /* Set PGMN low for 1uS. */ in snd_emu1010_load_firmware_entry()
670 write_post = inl(emu->port + A_IOCFG); in snd_emu1010_load_firmware_entry()
672 outl(0x80, emu->port + A_IOCFG); /* Leave bit 7 set during netlist setup. */ in snd_emu1010_load_firmware_entry()
673 write_post = inl(emu->port + A_IOCFG); in snd_emu1010_load_firmware_entry()
682 outl(reg, emu->port + A_IOCFG); in snd_emu1010_load_firmware_entry()
683 write_post = inl(emu->port + A_IOCFG); in snd_emu1010_load_firmware_entry()
684 outl(reg | 0x40, emu->port + A_IOCFG); in snd_emu1010_load_firmware_entry()
685 write_post = inl(emu->port + A_IOCFG); in snd_emu1010_load_firmware_entry()
689 outl(0x10, emu->port + A_IOCFG); in snd_emu1010_load_firmware_entry()
690 write_post = inl(emu->port + A_IOCFG); in snd_emu1010_load_firmware_entry()
838 outl(0x0005a00c, emu->port + HCFG); in snd_emu10k1_emu1010_init()
843 outl(0x0005a004, emu->port + HCFG); in snd_emu10k1_emu1010_init()
847 outl(0x0005a000, emu->port + HCFG); in snd_emu10k1_emu1010_init()
851 outl(0x0005a000, emu->port + HCFG); in snd_emu10k1_emu1010_init()
1082 outl(0x0000a000, emu->port + HCFG); in snd_emu10k1_emu1010_init()
1087 outl(0x0000a001, emu->port + HCFG); in snd_emu10k1_emu1010_init()
1247 if (emu->port) { /* avoid access to already used hardware */ in snd_emu10k1_free()
1271 if (emu->port) in snd_emu10k1_free()
1900 emu->port = pci_resource_start(pci, 0); in snd_emu10k1_create()
2109 emu->saved_a_iocfg = inl(emu->port + A_IOCFG); in snd_emu10k1_suspend_regs()
2110 emu->saved_hcfg = inl(emu->port + HCFG); in snd_emu10k1_suspend_regs()
2136 outl(emu->saved_a_iocfg, emu->port + A_IOCFG); in snd_emu10k1_resume_regs()
2137 outl(emu->saved_hcfg, emu->port + HCFG); in snd_emu10k1_resume_regs()