Lines Matching refs:TRID_REG
58 outb(voice, TRID_REG(trident, T4D_LFO_GC_CIR));
59 val = inl(TRID_REG(trident, CH_LBA));
61 val = inl(TRID_REG(trident, CH_GVSEL_PAN_VOL_CTRL_EC));
68 val = inl(TRID_REG(trident, CH_DX_CSO_ALPHA_FMS));
72 val = inl(TRID_REG(trident, CH_DX_ESO_DELTA));
75 val = inl(TRID_REG(trident, CH_DX_FMC_RVOL_CVOL));
77 val = inl(TRID_REG(trident, CH_NX_DELTA_CSO));
80 val = inl(TRID_REG(trident, CH_NX_DELTA_ESO));
84 val = inl(TRID_REG(trident, CH_NX_ALPHA_FMS_FMC_RVOL_CVOL));
116 outl(data, TRID_REG(trident, DX_ACR1_AC97_R)); in snd_trident_codec_read()
118 data = inl(TRID_REG(trident, DX_ACR1_AC97_R)); in snd_trident_codec_read()
125 outl(data, TRID_REG(trident, treg)); in snd_trident_codec_read()
127 data = inl(TRID_REG(trident, treg)); in snd_trident_codec_read()
135 outl(data, TRID_REG(trident, SI_AC97_READ)); in snd_trident_codec_read()
137 data = inl(TRID_REG(trident, SI_AC97_READ)); in snd_trident_codec_read()
184 if ((inw(TRID_REG(trident, address)) & DX_AC97_BUSY_WRITE) == 0) in snd_trident_codec_write()
194 if ((inw(TRID_REG(trident, address)) & NX_AC97_BUSY_WRITE) == 0) in snd_trident_codec_write()
204 if ((inw(TRID_REG(trident, address)) & (SI_AC97_BUSY_WRITE)) == 0) in snd_trident_codec_write()
220 outl(data, TRID_REG(trident, address)); in snd_trident_codec_write()
240 val = inl(TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_enable_eso()
245 outl(val, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_enable_eso()
267 tmp = inl(TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_disable_eso()
270 outl(tmp, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_disable_eso()
292 outl(mask, TRID_REG(trident, reg)); in snd_trident_start_voice()
316 outl(mask, TRID_REG(trident, reg)); in snd_trident_stop_voice()
478 outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_write_voice_regs()
479 outl(regs[0], TRID_REG(trident, CH_START + 0)); in snd_trident_write_voice_regs()
480 outl(regs[1], TRID_REG(trident, CH_START + 4)); in snd_trident_write_voice_regs()
481 outl(regs[2], TRID_REG(trident, CH_START + 8)); in snd_trident_write_voice_regs()
482 outl(regs[3], TRID_REG(trident, CH_START + 12)); in snd_trident_write_voice_regs()
483 outl(regs[4], TRID_REG(trident, CH_START + 16)); in snd_trident_write_voice_regs()
488 regs[0], inl(TRID_REG(trident, CH_START + 0))); in snd_trident_write_voice_regs()
490 regs[1], inl(TRID_REG(trident, CH_START + 4))); in snd_trident_write_voice_regs()
492 regs[2], inl(TRID_REG(trident, CH_START + 8))); in snd_trident_write_voice_regs()
494 regs[3], inl(TRID_REG(trident, CH_START + 12))); in snd_trident_write_voice_regs()
496 regs[4], inl(TRID_REG(trident, CH_START + 16))); in snd_trident_write_voice_regs()
519 outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_write_cso_reg()
521 outw(voice->CSO, TRID_REG(trident, CH_DX_CSO_ALPHA_FMS) + 2); in snd_trident_write_cso_reg()
524 (voice->CSO & 0x00ffffff), TRID_REG(trident, CH_NX_DELTA_CSO)); in snd_trident_write_cso_reg()
545 outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_write_eso_reg()
547 outw(voice->ESO, TRID_REG(trident, CH_DX_ESO_DELTA) + 2); in snd_trident_write_eso_reg()
550 TRID_REG(trident, CH_NX_DELTA_ESO)); in snd_trident_write_eso_reg()
571 outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_write_vol_reg()
575 outb(voice->Vol >> 2, TRID_REG(trident, CH_GVSEL_PAN_VOL_CTRL_EC + 2)); in snd_trident_write_vol_reg()
580 TRID_REG(trident, CH_GVSEL_PAN_VOL_CTRL_EC)); in snd_trident_write_vol_reg()
602 outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_write_pan_reg()
604 TRID_REG(trident, CH_GVSEL_PAN_VOL_CTRL_EC + 3)); in snd_trident_write_pan_reg()
624 outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_write_rvol_reg()
627 TRID_REG(trident, trident->device == TRIDENT_DEVICE_ID_NX ? in snd_trident_write_rvol_reg()
648 outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_write_cvol_reg()
651 TRID_REG(trident, trident->device == TRIDENT_DEVICE_ID_NX ? in snd_trident_write_cvol_reg()
1019 outb(0, TRID_REG(trident, LEGACY_DMAR15)); in snd_trident_capture_prepare()
1022 outb(0x54, TRID_REG(trident, LEGACY_DMAR11)); in snd_trident_capture_prepare()
1026 outl(voice->LBA, TRID_REG(trident, LEGACY_DMAR0)); in snd_trident_capture_prepare()
1032 outb((ESO_bytes & 0x00ff0000) >> 16, TRID_REG(trident, LEGACY_DMAR6)); in snd_trident_capture_prepare()
1033 outw((ESO_bytes & 0x0000ffff), TRID_REG(trident, LEGACY_DMAR4)); in snd_trident_capture_prepare()
1038 outw(val, TRID_REG(trident, T4D_SBDELTA_DELTA_R)); in snd_trident_capture_prepare()
1047 outl((val << 16) | val, TRID_REG(trident, T4D_SBBL_SBCL)); in snd_trident_capture_prepare()
1250 outb(((voice->number & 0x3f) | 0x80), TRID_REG(trident, T4D_RCI + voice->foldback_chan)); in snd_trident_foldback_prepare()
1409 outw((RESO & 0xffff), TRID_REG(trident, NX_SPESO)); in snd_trident_spdif_prepare()
1410 outb((RESO >> 16), TRID_REG(trident, NX_SPESO + 2)); in snd_trident_spdif_prepare()
1411 outl((LBAO & 0xfffffffc), TRID_REG(trident, NX_SPLBA)); in snd_trident_spdif_prepare()
1412 outw((voice->CSO & 0xffff), TRID_REG(trident, NX_SPCTRL_SPCSO)); in snd_trident_spdif_prepare()
1413 outb((voice->CSO >> 16), TRID_REG(trident, NX_SPCTRL_SPCSO + 2)); in snd_trident_spdif_prepare()
1416 outb(trident->spdif_pcm_ctrl, TRID_REG(trident, NX_SPCTRL_SPCSO + 3)); in snd_trident_spdif_prepare()
1417 outl(trident->spdif_pcm_bits, TRID_REG(trident, NX_SPCSTATUS)); in snd_trident_spdif_prepare()
1470 outl(trident->spdif_pcm_bits, TRID_REG(trident, SI_SPDIF_CS)); in snd_trident_spdif_prepare()
1471 temp = inl(TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_spdif_prepare()
1473 outl(temp, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_spdif_prepare()
1474 temp = inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_spdif_prepare()
1476 outl(temp, TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_spdif_prepare()
1522 val = inl(TRID_REG(trident, T4D_STIMER)) & 0x00ffffff; in snd_trident_trigger()
1551 outl(trident->spdif_pcm_bits, TRID_REG(trident, NX_SPCSTATUS)); in snd_trident_trigger()
1555 outb(val, TRID_REG(trident, NX_SPCTRL_SPCSO + 3)); in snd_trident_trigger()
1557 outl(trident->spdif_pcm_bits, TRID_REG(trident, SI_SPDIF_CS)); in snd_trident_trigger()
1558 val = inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)) | SPDIF_EN; in snd_trident_trigger()
1559 outl(val, TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_trigger()
1563 outl(what, TRID_REG(trident, T4D_STOP_B)); in snd_trident_trigger()
1564 val = inl(TRID_REG(trident, T4D_AINTEN_B)); in snd_trident_trigger()
1570 outl(val, TRID_REG(trident, T4D_AINTEN_B)); in snd_trident_trigger()
1572 outl(what, TRID_REG(trident, T4D_START_B)); in snd_trident_trigger()
1575 outb(trident->bDMAStart, TRID_REG(trident, T4D_SBCTRL_SBE2R_SBDD)); in snd_trident_trigger()
1578 outb(0x00, TRID_REG(trident, T4D_SBCTRL_SBE2R_SBDD)); in snd_trident_trigger()
1607 outb(voice->number, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_playback_pointer()
1610 cso = inw(TRID_REG(trident, CH_DX_CSO_ALPHA_FMS + 2)); in snd_trident_playback_pointer()
1612 cso = (unsigned int) inl(TRID_REG(trident, CH_NX_DELTA_CSO)) & 0x00ffffff; in snd_trident_playback_pointer()
1644 result = inw(TRID_REG(trident, T4D_SBBL_SBCL)); in snd_trident_capture_pointer()
1674 result = inl(TRID_REG(trident, NX_SPCTRL_SPCSO)) & 0x00ffffff; in snd_trident_spdif_pointer()
1907 outb(trident->spdif_ctrl, TRID_REG(trident, NX_SPCTRL_SPCSO + 3)); in snd_trident_spdif_close()
1908 outl(trident->spdif_bits, TRID_REG(trident, NX_SPCSTATUS)); in snd_trident_spdif_close()
1910 outl(trident->spdif_bits, TRID_REG(trident, SI_SPDIF_CS)); in snd_trident_spdif_close()
1911 temp = inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_spdif_close()
1917 outl(temp, TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_spdif_close()
2017 outb(0x00, TRID_REG(trident, T4D_RCI + voice->foldback_chan)); in snd_trident_foldback_close()
2292 if ((inb(TRID_REG(trident, NX_SPCTRL_SPCSO + 3)) & 0x10) == 0) { in snd_trident_spdif_control_put()
2293 outl(trident->spdif_bits, TRID_REG(trident, NX_SPCSTATUS)); in snd_trident_spdif_control_put()
2294 outb(trident->spdif_ctrl, TRID_REG(trident, NX_SPCTRL_SPCSO + 3)); in snd_trident_spdif_control_put()
2299 outl(trident->spdif_bits, TRID_REG(trident, SI_SPDIF_CS)); in snd_trident_spdif_control_put()
2300 temp = inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)) & ~SPDIF_EN; in snd_trident_spdif_control_put()
2303 outl(temp, TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_spdif_control_put()
2363 if ((inb(TRID_REG(trident, NX_SPCTRL_SPCSO + 3)) & 0x10) == 0) in snd_trident_spdif_default_put()
2364 outl(trident->spdif_bits, TRID_REG(trident, NX_SPCSTATUS)); in snd_trident_spdif_default_put()
2367 outl(trident->spdif_bits, TRID_REG(trident, SI_SPDIF_CS)); in snd_trident_spdif_default_put()
2459 outl(trident->spdif_pcm_bits, TRID_REG(trident, NX_SPCSTATUS)); in snd_trident_spdif_stream_put()
2461 outl(trident->spdif_bits, TRID_REG(trident, SI_SPDIF_CS)); in snd_trident_spdif_stream_put()
2493 val = trident->ac97_ctrl = inl(TRID_REG(trident, NX_ACR0_AC97_COM_STAT)); in snd_trident_ac97_control_get()
2507 val = trident->ac97_ctrl = inl(TRID_REG(trident, NX_ACR0_AC97_COM_STAT)); in snd_trident_ac97_control_put()
2513 outl(trident->ac97_ctrl = val, TRID_REG(trident, NX_ACR0_AC97_COM_STAT)); in snd_trident_ac97_control_put()
2571 outl(trident->musicvol_wavevol = val, TRID_REG(trident, T4D_MUSICVOL_WAVEVOL)); in snd_trident_vol_control_put()
2951 (inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)) & SI_AC97_PRIMARY_READY) != 0) { in snd_trident_mixer()
2981 outl(trident->musicvol_wavevol = 0x00000000, TRID_REG(trident, T4D_MUSICVOL_WAVEVOL)); in snd_trident_mixer()
2983 outl(trident->musicvol_wavevol = 0xffff0000, TRID_REG(trident, T4D_MUSICVOL_WAVEVOL)); in snd_trident_mixer()
3103 return inb(TRID_REG(chip, GAMEPORT_LEGACY)); in snd_trident_gameport_read()
3112 outb(0xff, TRID_REG(chip, GAMEPORT_LEGACY)); in snd_trident_gameport_trigger()
3123 *buttons = (~inb(TRID_REG(chip, GAMEPORT_LEGACY)) >> 4) & 0xf; in snd_trident_gameport_cooked_read()
3126 axes[i] = inw(TRID_REG(chip, GAMEPORT_AXES + i * 2)); in snd_trident_gameport_cooked_read()
3142 outb(GAMEPORT_MODE_ADC, TRID_REG(chip, GAMEPORT_GCR)); in snd_trident_gameport_open()
3146 outb(0, TRID_REG(chip, GAMEPORT_GCR)); in snd_trident_gameport_open()
3217 outb(0x00, TRID_REG(trident, SI_AC97_GPIO)); in snd_trident_sis_reset()
3220 outl(i, TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_sis_reset()
3224 outl(i, TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_sis_reset()
3229 if ((inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)) & SI_AC97_PRIMARY_READY) != 0) in snd_trident_sis_reset()
3234 inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL))); in snd_trident_sis_reset()
3245 if ((inl(TRID_REG(trident, SI_SERIAL_INTF_CTRL)) & SI_AC97_SECONDARY_READY) != 0) in snd_trident_sis_reset()
3250 outl(BANK_B_EN, TRID_REG(trident, T4D_LFO_GC_CIR)); in snd_trident_sis_reset()
3358 outl(0xffffffff, TRID_REG(trident, T4D_STOP_A)); in snd_trident_stop_all_voices()
3359 outl(0xffffffff, TRID_REG(trident, T4D_STOP_B)); in snd_trident_stop_all_voices()
3360 outl(0, TRID_REG(trident, T4D_AINTEN_A)); in snd_trident_stop_all_voices()
3361 outl(0, TRID_REG(trident, T4D_AINTEN_B)); in snd_trident_stop_all_voices()
3379 outl(0x00000001, TRID_REG(trident, DX_ACR2_AC97_COM_STAT)); in snd_trident_4d_dx_init()
3381 outl(0x00000000, TRID_REG(trident, DX_ACR2_AC97_COM_STAT)); in snd_trident_4d_dx_init()
3384 outl(trident->ac97_ctrl, TRID_REG(trident, DX_ACR2_AC97_COM_STAT)); in snd_trident_4d_dx_init()
3388 if ((inl(TRID_REG(trident, DX_ACR2_AC97_COM_STAT)) & 0x0010) != 0) in snd_trident_4d_dx_init()
3420 outl(0x00000001, TRID_REG(trident, NX_ACR0_AC97_COM_STAT)); in snd_trident_4d_nx_init()
3422 outl(0x00000000, TRID_REG(trident, NX_ACR0_AC97_COM_STAT)); in snd_trident_4d_nx_init()
3426 if ((inl(TRID_REG(trident, NX_ACR0_AC97_COM_STAT)) & 0x0008) != 0) in snd_trident_4d_nx_init()
3431 inl(TRID_REG(trident, NX_ACR0_AC97_COM_STAT))); in snd_trident_4d_nx_init()
3437 outl(trident->ac97_ctrl, TRID_REG(trident, NX_ACR0_AC97_COM_STAT)); in snd_trident_4d_nx_init()
3439 outl(NX_SB_IRQ_DISABLE, TRID_REG(trident, T4D_MISCINT)); in snd_trident_4d_nx_init()
3448 outl(i, TRID_REG(trident, NX_TLBC)); in snd_trident_4d_nx_init()
3450 outl(0, TRID_REG(trident, NX_TLBC)); in snd_trident_4d_nx_init()
3453 outl(trident->spdif_bits, TRID_REG(trident, NX_SPCSTATUS)); in snd_trident_4d_nx_init()
3454 outb(trident->spdif_ctrl, TRID_REG(trident, NX_SPCTRL_SPCSO + 3)); in snd_trident_4d_nx_init()
3473 outl(trident->spdif_bits, TRID_REG(trident, SI_SPDIF_CS)); in snd_trident_sis_init()
3533 trident->midi_port = TRID_REG(trident, T4D_MPU401_BASE); in snd_trident_create()
3622 outb(0x00, TRID_REG(trident, NX_SPCTRL_SPCSO + 3)); in snd_trident_free()
3624 outl(0, TRID_REG(trident, SI_SERIAL_INTF_CTRL)); in snd_trident_free()
3627 outl(0, TRID_REG(trident, NX_TLBC)); in snd_trident_free()
3657 audio_int = inl(TRID_REG(trident, T4D_MISCINT)); in snd_trident_interrupt()
3663 stimer = inl(TRID_REG(trident, T4D_STIMER)) & 0x00ffffff; in snd_trident_interrupt()
3664 chn_int = inl(TRID_REG(trident, T4D_AINT_A)); in snd_trident_interrupt()
3667 outl(chn_int, TRID_REG(trident, T4D_AINT_A)); /* ack */ in snd_trident_interrupt()
3669 chn_int = inl(TRID_REG(trident, T4D_AINT_B)); in snd_trident_interrupt()
3678 outl(mask, TRID_REG(trident, T4D_STOP_B)); in snd_trident_interrupt()
3694 tmp = inw(TRID_REG(trident, T4D_SBBL_SBCL)); in snd_trident_interrupt()
3700 tmp = inl(TRID_REG(trident, NX_SPCTRL_SPCSO)) & 0x00ffffff; in snd_trident_interrupt()
3732 outl(chn_int, TRID_REG(trident, T4D_AINT_B)); /* ack */ in snd_trident_interrupt()
3740 inb(TRID_REG(trident, T4D_MPUR0)); in snd_trident_interrupt()
3830 outl(mask[0], TRID_REG(trident, T4D_STOP_A)); in snd_trident_clear_voices()
3831 val = inl(TRID_REG(trident, T4D_AINTEN_A)); in snd_trident_clear_voices()
3832 outl(val & ~mask[0], TRID_REG(trident, T4D_AINTEN_A)); in snd_trident_clear_voices()
3835 outl(mask[1], TRID_REG(trident, T4D_STOP_B)); in snd_trident_clear_voices()
3836 val = inl(TRID_REG(trident, T4D_AINTEN_B)); in snd_trident_clear_voices()
3837 outl(val & ~mask[1], TRID_REG(trident, T4D_AINTEN_B)); in snd_trident_clear_voices()
3875 outl(trident->musicvol_wavevol, TRID_REG(trident, T4D_MUSICVOL_WAVEVOL)); in snd_trident_resume()