Lines Matching refs:ICHREG
71 #define ICHREG(x) ICH_REG_##x macro
486 if ((igetdword(chip, ICHREG(GLOB_STA)) & codec) == 0) in snd_intel8x0_codec_semaphore()
495 if (!(igetbyte(chip, ICHREG(ACC_SEMA)) & ICH_CAS)) in snd_intel8x0_codec_semaphore()
505 igetbyte(chip, ICHREG(ACC_SEMA)), igetdword(chip, ICHREG(GLOB_STA))); in snd_intel8x0_codec_semaphore()
541 tmp = igetdword(chip, ICHREG(GLOB_STA)); in snd_intel8x0_codec_read()
544 iputdword(chip, ICHREG(GLOB_STA), tmp & in snd_intel8x0_codec_read()
563 tmp = igetdword(chip, ICHREG(GLOB_STA)); in snd_intel8x0_codec_read_test()
566 iputdword(chip, ICHREG(GLOB_STA), tmp & in snd_intel8x0_codec_read_test()
579 int val = igetbyte(chip, ICHREG(ALI_CSPSR)); in snd_intel8x0_ali_codec_ready()
593 while (--time && (igetdword(chip, ICHREG(ALI_CAS)) & ALI_CAS_SEM_BUSY)) in snd_intel8x0_ali_codec_semaphore()
610 iputword(chip, ICHREG(ALI_CPR_ADDR), reg); in snd_intel8x0_ali_codec_read()
613 data = igetword(chip, ICHREG(ALI_SPR)); in snd_intel8x0_ali_codec_read()
625 iputword(chip, ICHREG(ALI_CPR), val); in snd_intel8x0_ali_codec_write()
628 iputword(chip, ICHREG(ALI_CPR_ADDR), reg); in snd_intel8x0_ali_codec_write()
830 ICHREG(ALI_FIFOCR1), ICHREG(ALI_FIFOCR2), ICHREG(ALI_FIFOCR3) in snd_intel8x0_ali_trigger()
834 val = igetdword(chip, ICHREG(ALI_DMACR)); in snd_intel8x0_ali_trigger()
851 iputdword(chip, ICHREG(ALI_DMACR), val | (1 << ichdev->ali_slot)); in snd_intel8x0_ali_trigger()
859 iputdword(chip, ICHREG(ALI_DMACR), val | (1 << (ichdev->ali_slot + 16))); in snd_intel8x0_ali_trigger()
870 iputdword(chip, ICHREG(ALI_INTERRUPTSR), in snd_intel8x0_ali_trigger()
871 igetdword(chip, ICHREG(ALI_INTERRUPTSR)) & ichdev->int_sta_mask); in snd_intel8x0_ali_trigger()
926 cnt = igetdword(chip, ICHREG(ALI_SCR)); in snd_intel8x0_setup_pcm_out()
932 iputdword(chip, ICHREG(ALI_SCR), cnt); in snd_intel8x0_setup_pcm_out()
935 cnt = igetdword(chip, ICHREG(GLOB_CNT)); in snd_intel8x0_setup_pcm_out()
941 iputdword(chip, ICHREG(GLOB_CNT), cnt); in snd_intel8x0_setup_pcm_out()
944 cnt = igetdword(chip, ICHREG(GLOB_CNT)); in snd_intel8x0_setup_pcm_out()
957 iputdword(chip, ICHREG(GLOB_CNT), cnt & ~ICH_PCM_246_MASK); in snd_intel8x0_setup_pcm_out()
966 iputdword(chip, ICHREG(GLOB_CNT), cnt); in snd_intel8x0_setup_pcm_out()
1242 val = igetdword(chip, ICHREG(ALI_INTERFACECR)); in snd_intel8x0_ali_ac97spdifout_open()
1244 iputdword(chip, ICHREG(ALI_INTERFACECR), val); in snd_intel8x0_ali_ac97spdifout_open()
1258 val = igetdword(chip, ICHREG(ALI_INTERFACECR)); in snd_intel8x0_ali_ac97spdifout_close()
1260 iputdword(chip, ICHREG(ALI_INTERFACECR), val); in snd_intel8x0_ali_ac97spdifout_close()
2162 glob_sta = igetdword(chip, ICHREG(GLOB_STA)); in snd_intel8x0_mixer()
2172 igetbyte(chip, ICHREG(SDM)) & ICH_LDI_MASK; in snd_intel8x0_mixer()
2187 unsigned int reg = igetdword(chip, ICHREG(ALI_RTSR)); in snd_intel8x0_mixer()
2192 iputdword(chip, ICHREG(ALI_RTSR), reg | 0x40); in snd_intel8x0_mixer()
2248 u8 tmp = igetbyte(chip, ICHREG(SDM)); in snd_intel8x0_mixer()
2262 iputbyte(chip, ICHREG(SDM), tmp); in snd_intel8x0_mixer()
2276 if ((igetdword(chip, ICHREG(GLOB_STA)) & ICH_SAMPLE_CAP) == ICH_SAMPLE_16_20) in snd_intel8x0_mixer()
2286 val = igetdword(chip, ICHREG(GLOB_CNT)) & ~ICH_PCM_SPDIF_MASK; in snd_intel8x0_mixer()
2288 iputdword(chip, ICHREG(GLOB_CNT), val); in snd_intel8x0_mixer()
2297 iputdword(chip, ICHREG(GLOB_CNT), in snd_intel8x0_mixer()
2298 igetdword(chip, ICHREG(GLOB_CNT)) & ~ICH_AC97COLD); in snd_intel8x0_mixer()
2309 iputdword(chip, ICHREG(ALI_SCR), ICH_ALI_SC_RESET); in do_ali_reset()
2310 iputdword(chip, ICHREG(ALI_FIFOCR1), 0x83838383); in do_ali_reset()
2311 iputdword(chip, ICHREG(ALI_FIFOCR2), 0x83838383); in do_ali_reset()
2312 iputdword(chip, ICHREG(ALI_FIFOCR3), 0x83838383); in do_ali_reset()
2313 iputdword(chip, ICHREG(ALI_INTERFACECR), in do_ali_reset()
2315 iputdword(chip, ICHREG(ALI_INTERRUPTCR), 0x00000000); in do_ali_reset()
2316 iputdword(chip, ICHREG(ALI_INTERRUPTSR), 0x00000000); in do_ali_reset()
2333 cnt = igetdword(chip, ICHREG(GLOB_CNT)); in snd_intel8x0_ich_chip_cold_reset()
2339 iputdword(chip, ICHREG(GLOB_CNT), cnt & ~ICH_AC97COLD); in snd_intel8x0_ich_chip_cold_reset()
2340 cnt = igetdword(chip, ICHREG(GLOB_CNT)); in snd_intel8x0_ich_chip_cold_reset()
2342 iputdword(chip, ICHREG(GLOB_CNT), cnt | ICH_AC97COLD); in snd_intel8x0_ich_chip_cold_reset()
2358 cnt = igetdword(chip, ICHREG(GLOB_CNT)); in snd_intel8x0_ich_chip_reset()
2362 iputdword(chip, ICHREG(GLOB_CNT), cnt); in snd_intel8x0_ich_chip_reset()
2365 if ((igetdword(chip, ICHREG(GLOB_CNT)) & ICH_AC97WARM) == 0) in snd_intel8x0_ich_chip_reset()
2370 igetdword(chip, ICHREG(GLOB_CNT))); in snd_intel8x0_ich_chip_reset()
2386 cnt = igetdword(chip, ICHREG(GLOB_STA)); in snd_intel8x0_ich_chip_init()
2387 iputdword(chip, ICHREG(GLOB_STA), cnt & status); in snd_intel8x0_ich_chip_init()
2403 status = igetdword(chip, ICHREG(GLOB_STA)) & in snd_intel8x0_ich_chip_init()
2413 igetdword(chip, ICHREG(GLOB_STA))); in snd_intel8x0_ich_chip_init()
2422 status |= igetdword(chip, ICHREG(GLOB_STA)) & in snd_intel8x0_ich_chip_init()
2436 nstatus = igetdword(chip, ICHREG(GLOB_STA)) & in snd_intel8x0_ich_chip_init()
2463 reg = igetdword(chip, ICHREG(ALI_SCR)); in snd_intel8x0_ali_chip_init()
2469 iputdword(chip, ICHREG(ALI_SCR), reg); in snd_intel8x0_ali_chip_init()
2472 if (! (igetdword(chip, ICHREG(ALI_INTERRUPTSR)) & ALI_INT_GPIO)) in snd_intel8x0_ali_chip_init()
2482 reg = igetdword(chip, ICHREG(ALI_RTSR)); in snd_intel8x0_ali_chip_init()
2485 iputdword(chip, ICHREG(ALI_RTSR), reg | 0x80); in snd_intel8x0_ali_chip_init()
2572 chip->sdm_saved = igetbyte(chip, ICHREG(SDM)); in intel8x0_suspend()
2603 iputbyte(chip, ICHREG(SDM), chip->sdm_saved); in intel8x0_resume()
2605 iputdword(chip, ICHREG(GLOB_CNT), in intel8x0_resume()
2606 (igetdword(chip, ICHREG(GLOB_CNT)) & ~ICH_PCM_SPDIF_MASK) | in intel8x0_resume()
2680 iputdword(chip, ICHREG(ALI_DMACR), 1 << ichdev->ali_slot); in intel8x0_measure_ac97_clock()
2709 iputdword(chip, ICHREG(ALI_DMACR), 1 << (ichdev->ali_slot + 16)); in intel8x0_measure_ac97_clock()
2794 tmp = igetdword(chip, ICHREG(GLOB_STA)); in snd_intel8x0_proc_read()
2795 snd_iprintf(buffer, "Global control : 0x%08x\n", igetdword(chip, ICHREG(GLOB_CNT))); in snd_intel8x0_proc_read()
2798 snd_iprintf(buffer, "SDM : 0x%08x\n", igetdword(chip, ICHREG(SDM))); in snd_intel8x0_proc_read()