• Home
  • Raw
  • Download

Lines Matching refs:ES_REG

143 #define ES_REG(ensoniq, x) ((ensoniq)->port + ES_REG_##x)  macro
523 r = inl(ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_wait_src_ready()
529 ES_REG(ensoniq, 1371_SMPRATE), r); in snd_es1371_wait_src_ready()
544 outl(r, ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_src_read()
552 temp = inl(ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_src_read()
562 outl(r, ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_src_read()
576 outl(r | ES_1371_SRC_RAM_WE, ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_src_write()
592 reg, val, ES_1370_CODEC_WRITE(reg, val), ES_REG(ensoniq, 1370_CODEC)); in snd_es1370_codec_write()
595 if (!(inl(ES_REG(ensoniq, STATUS)) & ES_1370_CSTAT)) { in snd_es1370_codec_write()
596 outw(ES_1370_CODEC_WRITE(reg, val), ES_REG(ensoniq, 1370_CODEC)); in snd_es1370_codec_write()
602 inl(ES_REG(ensoniq, STATUS))); in snd_es1370_codec_write()
623 if (!(inl(ES_REG(ensoniq, 1371_CODEC)) & ES_1371_CODEC_WIP)) { in snd_es1371_codec_write()
628 ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_codec_write()
632 if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) == in snd_es1371_codec_write()
638 if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) == in snd_es1371_codec_write()
643 ES_REG(ensoniq, 1371_CODEC)); in snd_es1371_codec_write()
646 outl(x, ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_codec_write()
653 ES_REG(ensoniq, 1371_CODEC), inl(ES_REG(ensoniq, 1371_CODEC))); in snd_es1371_codec_write()
666 if (!(inl(ES_REG(ensoniq, 1371_CODEC)) & ES_1371_CODEC_WIP)) { in snd_es1371_codec_read()
671 ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_codec_read()
675 if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) == in snd_es1371_codec_read()
681 if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) == in snd_es1371_codec_read()
686 ES_REG(ensoniq, 1371_CODEC)); in snd_es1371_codec_read()
689 outl(x, ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_codec_read()
692 if (!(inl(ES_REG(ensoniq, 1371_CODEC)) & ES_1371_CODEC_WIP)) in snd_es1371_codec_read()
697 if ((x = inl(ES_REG(ensoniq, 1371_CODEC))) & ES_1371_CODEC_RDY) { in snd_es1371_codec_read()
700 inl(ES_REG(ensoniq, CONTROL)); in snd_es1371_codec_read()
701 x = inl(ES_REG(ensoniq, 1371_CODEC)); in snd_es1371_codec_read()
711 ES_REG(ensoniq, 1371_CODEC), reg, in snd_es1371_codec_read()
712 inl(ES_REG(ensoniq, 1371_CODEC))); in snd_es1371_codec_read()
720 ES_REG(ensoniq, 1371_CODEC), inl(ES_REG(ensoniq, 1371_CODEC))); in snd_es1371_codec_read()
774 outl(r, ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_dac1_rate()
782 outl(r, ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_dac1_rate()
795 outl(r, ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_dac2_rate()
804 outl(r, ES_REG(ensoniq, 1371_SMPRATE)); in snd_es1371_dac2_rate()
834 outl(ensoniq->sctrl, ES_REG(ensoniq, SERIAL)); in snd_ensoniq_trigger()
860 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_trigger()
906 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_playback1_prepare()
907 outl(ES_MEM_PAGEO(ES_PAGE_DAC), ES_REG(ensoniq, MEM_PAGE)); in snd_ensoniq_playback1_prepare()
908 outl(runtime->dma_addr, ES_REG(ensoniq, DAC1_FRAME)); in snd_ensoniq_playback1_prepare()
909 outl((ensoniq->p1_dma_size >> 2) - 1, ES_REG(ensoniq, DAC1_SIZE)); in snd_ensoniq_playback1_prepare()
912 outl(ensoniq->sctrl, ES_REG(ensoniq, SERIAL)); in snd_ensoniq_playback1_prepare()
914 ES_REG(ensoniq, DAC1_COUNT)); in snd_ensoniq_playback1_prepare()
925 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_playback1_prepare()
947 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_playback2_prepare()
948 outl(ES_MEM_PAGEO(ES_PAGE_DAC), ES_REG(ensoniq, MEM_PAGE)); in snd_ensoniq_playback2_prepare()
949 outl(runtime->dma_addr, ES_REG(ensoniq, DAC2_FRAME)); in snd_ensoniq_playback2_prepare()
950 outl((ensoniq->p2_dma_size >> 2) - 1, ES_REG(ensoniq, DAC2_SIZE)); in snd_ensoniq_playback2_prepare()
955 outl(ensoniq->sctrl, ES_REG(ensoniq, SERIAL)); in snd_ensoniq_playback2_prepare()
957 ES_REG(ensoniq, DAC2_COUNT)); in snd_ensoniq_playback2_prepare()
965 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_playback2_prepare()
987 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_capture_prepare()
988 outl(ES_MEM_PAGEO(ES_PAGE_ADC), ES_REG(ensoniq, MEM_PAGE)); in snd_ensoniq_capture_prepare()
989 outl(runtime->dma_addr, ES_REG(ensoniq, ADC_FRAME)); in snd_ensoniq_capture_prepare()
990 outl((ensoniq->c_dma_size >> 2) - 1, ES_REG(ensoniq, ADC_SIZE)); in snd_ensoniq_capture_prepare()
993 outl(ensoniq->sctrl, ES_REG(ensoniq, SERIAL)); in snd_ensoniq_capture_prepare()
995 ES_REG(ensoniq, ADC_COUNT)); in snd_ensoniq_capture_prepare()
1003 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_capture_prepare()
1017 if (inl(ES_REG(ensoniq, CONTROL)) & ES_DAC1_EN) { in snd_ensoniq_playback1_pointer()
1018 outl(ES_MEM_PAGEO(ES_PAGE_DAC), ES_REG(ensoniq, MEM_PAGE)); in snd_ensoniq_playback1_pointer()
1019 ptr = ES_REG_FCURR_COUNTI(inl(ES_REG(ensoniq, DAC1_SIZE))); in snd_ensoniq_playback1_pointer()
1034 if (inl(ES_REG(ensoniq, CONTROL)) & ES_DAC2_EN) { in snd_ensoniq_playback2_pointer()
1035 outl(ES_MEM_PAGEO(ES_PAGE_DAC), ES_REG(ensoniq, MEM_PAGE)); in snd_ensoniq_playback2_pointer()
1036 ptr = ES_REG_FCURR_COUNTI(inl(ES_REG(ensoniq, DAC2_SIZE))); in snd_ensoniq_playback2_pointer()
1051 if (inl(ES_REG(ensoniq, CONTROL)) & ES_ADC_EN) { in snd_ensoniq_capture_pointer()
1052 outl(ES_MEM_PAGEO(ES_PAGE_ADC), ES_REG(ensoniq, MEM_PAGE)); in snd_ensoniq_capture_pointer()
1053 ptr = ES_REG_FCURR_COUNTI(inl(ES_REG(ensoniq, ADC_SIZE))); in snd_ensoniq_capture_pointer()
1382 outl(val, ES_REG(ensoniq, CHANNEL_STATUS)); in snd_ens1373_spdif_default_put()
1426 outl(val, ES_REG(ensoniq, CHANNEL_STATUS)); in snd_ens1373_spdif_stream_put()
1463 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_es1371_spdif_put()
1464 outl(ensoniq->cssr, ES_REG(ensoniq, STATUS)); in snd_es1371_spdif_put()
1528 outl(ensoniq->cssr, ES_REG(ensoniq, STATUS)); in snd_es1373_rear_put()
1573 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_es1373_line_put()
1657 outl(ensoniq->spdif_default, ES_REG(ensoniq, CHANNEL_STATUS)); in snd_ensoniq_1371_mixer()
1727 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_control_put()
1757 outw(ES_1370_CODEC_WRITE(AK4531_RESET, 0x02), ES_REG(ensoniq, 1370_CODEC)); in snd_ensoniq_1370_mixer()
1758 inw(ES_REG(ensoniq, 1370_CODEC)); in snd_ensoniq_1370_mixer()
1760 outw(ES_1370_CODEC_WRITE(AK4531_RESET, 0x03), ES_REG(ensoniq, 1370_CODEC)); in snd_ensoniq_1370_mixer()
1761 inw(ES_REG(ensoniq, 1370_CODEC)); in snd_ensoniq_1370_mixer()
1857 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_create_gameport()
1872 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_free_gameport()
1922 outl(ES_1370_SERR_DISABLE, ES_REG(ensoniq, CONTROL)); /* switch everything off */ in snd_ensoniq_free()
1923 outl(0, ES_REG(ensoniq, SERIAL)); /* clear serial interface */ in snd_ensoniq_free()
1925 outl(0, ES_REG(ensoniq, CONTROL)); /* switch everything off */ in snd_ensoniq_free()
1926 outl(0, ES_REG(ensoniq, SERIAL)); /* clear serial interface */ in snd_ensoniq_free()
1978 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_chip_init()
1979 outl(ensoniq->sctrl, ES_REG(ensoniq, SERIAL)); in snd_ensoniq_chip_init()
1980 outl(ES_MEM_PAGEO(ES_PAGE_ADC), ES_REG(ensoniq, MEM_PAGE)); in snd_ensoniq_chip_init()
1981 outl(ensoniq->dma_bug.addr, ES_REG(ensoniq, PHANTOM_FRAME)); in snd_ensoniq_chip_init()
1982 outl(0, ES_REG(ensoniq, PHANTOM_COUNT)); in snd_ensoniq_chip_init()
1984 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_chip_init()
1985 outl(ensoniq->sctrl, ES_REG(ensoniq, SERIAL)); in snd_ensoniq_chip_init()
1986 outl(0, ES_REG(ensoniq, 1371_LEGACY)); in snd_ensoniq_chip_init()
1988 outl(ensoniq->cssr, ES_REG(ensoniq, STATUS)); in snd_ensoniq_chip_init()
1994 outl(ensoniq->ctrl | ES_1371_SYNC_RES, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_chip_init()
1995 inl(ES_REG(ensoniq, CONTROL)); in snd_ensoniq_chip_init()
1997 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_chip_init()
2000 outl(ES_1371_SRC_DISABLE, ES_REG(ensoniq, 1371_SMPRATE)); in snd_ensoniq_chip_init()
2023 outl(0, ES_REG(ensoniq, 1371_SMPRATE)); in snd_ensoniq_chip_init()
2025 outl(ES_1371_CODEC_WRITE(0, 0), ES_REG(ensoniq, 1371_CODEC)); in snd_ensoniq_chip_init()
2027 outb(ensoniq->uartc = 0x00, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_chip_init()
2028 outb(0x00, ES_REG(ensoniq, UART_RES)); in snd_ensoniq_chip_init()
2029 outl(ensoniq->cssr, ES_REG(ensoniq, STATUS)); in snd_ensoniq_chip_init()
2048 outw(ES_1370_CODEC_WRITE(AK4531_RESET, 0x02), ES_REG(ensoniq, 1370_CODEC)); in snd_ensoniq_suspend()
2049 inw(ES_REG(ensoniq, 1370_CODEC)); in snd_ensoniq_suspend()
2051 outw(ES_1370_CODEC_WRITE(AK4531_RESET, 0x03), ES_REG(ensoniq, 1370_CODEC)); in snd_ensoniq_suspend()
2052 inw(ES_REG(ensoniq, 1370_CODEC)); in snd_ensoniq_suspend()
2174 status = inb(ES_REG(ensoniq, UART_STATUS)); in snd_ensoniq_midi_interrupt()
2177 byte = inb(ES_REG(ensoniq, UART_DATA)); in snd_ensoniq_midi_interrupt()
2186 status = inb(ES_REG(ensoniq, UART_STATUS)); in snd_ensoniq_midi_interrupt()
2191 outb(ensoniq->uartc, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_interrupt()
2194 outb(byte, ES_REG(ensoniq, UART_DATA)); in snd_ensoniq_midi_interrupt()
2208 outb(ES_CNTRL(3), ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_input_open()
2209 outb(ensoniq->uartc = 0, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_input_open()
2210 outl(ensoniq->ctrl |= ES_UART_EN, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_midi_input_open()
2222 outb(ensoniq->uartc = 0, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_input_close()
2223 outl(ensoniq->ctrl &= ~ES_UART_EN, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_midi_input_close()
2225 outb(ensoniq->uartc &= ~ES_RXINTEN, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_input_close()
2241 outb(ES_CNTRL(3), ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_output_open()
2242 outb(ensoniq->uartc = 0, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_output_open()
2243 outl(ensoniq->ctrl |= ES_UART_EN, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_midi_output_open()
2255 outb(ensoniq->uartc = 0, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_output_close()
2256 outl(ensoniq->ctrl &= ~ES_UART_EN, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_midi_output_close()
2258 outb(ensoniq->uartc &= ~ES_TXINTENM, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_output_close()
2277 inb(ES_REG(ensoniq, UART_DATA)); in snd_ensoniq_midi_input_trigger()
2279 outb(ensoniq->uartc, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_input_trigger()
2284 outb(ensoniq->uartc, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_input_trigger()
2302 (inb(ES_REG(ensoniq, UART_STATUS)) & ES_TXRDY)) { in snd_ensoniq_midi_output_trigger()
2306 outb(byte, ES_REG(ensoniq, UART_DATA)); in snd_ensoniq_midi_output_trigger()
2309 outb(ensoniq->uartc, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_output_trigger()
2314 outb(ensoniq->uartc, ES_REG(ensoniq, UART_CONTROL)); in snd_ensoniq_midi_output_trigger()
2363 status = inl(ES_REG(ensoniq, STATUS)); in snd_audiopci_interrupt()
2375 outl(sctrl, ES_REG(ensoniq, SERIAL)); in snd_audiopci_interrupt()
2376 outl(ensoniq->sctrl, ES_REG(ensoniq, SERIAL)); in snd_audiopci_interrupt()