Lines Matching refs:iobase

350 	unsigned long iobase;  member
680 ch_st_sel = inb(state->card->iobase + ALI_SPDIFICS) & ALI_SPDIF_OUT_CH_STATUS; //select spdif_out in ali_set_spdifout_rate()
683 outb(ch_st_sel, (state->card->iobase + ALI_SPDIFICS)); in ali_set_spdifout_rate()
684 outb(status_rate | 0x20, (state->card->iobase + ALI_SPDIFCSR + 2)); in ali_set_spdifout_rate()
687 outb(ch_st_sel, (state->card->iobase + ALI_SPDIFICS)); in ali_set_spdifout_rate()
688 outw(status_rate | 0x10, (state->card->iobase + ALI_SPDIFCSR + 2)); in ali_set_spdifout_rate()
704 port = state->card->iobase + dmabuf->read_channel->port; in ali_get_dma_addr()
706 port = state->card->iobase + dmabuf->codec_spdifout_channel->port; in ali_get_dma_addr()
708 port = state->card->iobase + dmabuf->controller_spdifout_channel->port; in ali_get_dma_addr()
710 port = state->card->iobase + dmabuf->write_channel->port; in ali_get_dma_addr()
752 outl((1 << 18) | (1 << 16), card->iobase + ALI_DMACR); in __stop_adc()
755 outb(0, card->iobase + PI_CR); in __stop_adc()
758 while (inb(card->iobase + PI_CR) != 0); in __stop_adc()
761 outb(inb(card->iobase + PI_SR) | 0x001e, card->iobase + PI_SR); in __stop_adc()
762 outl(inl(card->iobase + ALI_INTERRUPTSR) & INT_PCMIN, card->iobase + ALI_INTERRUPTSR); in __stop_adc()
781 outb((1 << 4) | (1 << 2), state->card->iobase + PI_CR); in __start_adc()
783 outl(1, state->card->iobase + ALI_DMACR); // DMA CONTROL REGISTRER in __start_adc()
785 outl((1 << 2), state->card->iobase + ALI_DMACR); //DMA CONTROL REGISTER in __start_adc()
806 outl(0x00020000, card->iobase + 0x08); in __stop_dac()
807 outb(0, card->iobase + PO_CR); in __stop_dac()
808 while (inb(card->iobase + PO_CR) != 0) in __stop_dac()
811 outb(inb(card->iobase + PO_SR) | 0x001e, card->iobase + PO_SR); in __stop_dac()
813 outl(inl(card->iobase + ALI_INTERRUPTSR) & INT_PCMOUT, card->iobase + ALI_INTERRUPTSR); in __stop_dac()
831 outb((1 << 4) | (1 << 2), state->card->iobase + PO_CR); in __start_dac()
832 outl((1 << 1), state->card->iobase + 0x08); //dma control register in __start_dac()
853 outl((1 << 19), card->iobase + 0x08); in __stop_spdifout()
854 outb(0, card->iobase + CODECSPDIFOUT_CR); in __stop_spdifout()
856 while (inb(card->iobase + CODECSPDIFOUT_CR) != 0) in __stop_spdifout()
859 outb(inb(card->iobase + CODECSPDIFOUT_SR) | 0x001e, card->iobase + CODECSPDIFOUT_SR); in __stop_spdifout()
860 outl(inl(card->iobase + ALI_INTERRUPTSR) & INT_CODECSPDIFOUT, card->iobase + ALI_INTERRUPTSR); in __stop_spdifout()
864 outl((1 << 23), card->iobase + 0x08); in __stop_spdifout()
865 outb(0, card->iobase + CONTROLLERSPDIFOUT_CR); in __stop_spdifout()
866 while (inb(card->iobase + CONTROLLERSPDIFOUT_CR) != 0) in __stop_spdifout()
868 outb(inb(card->iobase + CONTROLLERSPDIFOUT_SR) | 0x001e, card->iobase + CONTROLLERSPDIFOUT_SR); in __stop_spdifout()
869 outl(inl(card->iobase + ALI_INTERRUPTSR) & INT_SPDIFOUT, card->iobase + ALI_INTERRUPTSR); in __stop_spdifout()
890 outb((1 << 4) | (1 << 2), state->card->iobase + CODECSPDIFOUT_CR); in __start_spdifout()
891 outl((1 << 3), state->card->iobase + 0x08); //dma control register in __start_spdifout()
895 outb((1 << 4) | (1 << 2), state->card->iobase + CONTROLLERSPDIFOUT_CR); in __start_spdifout()
896 outl((1 << 7), state->card->iobase + 0x08); //dma control register in __start_spdifout()
1067 outb(2, state->card->iobase + c->port + OFF_CR); /* reset DMA machine */ in prog_dmabuf()
1068 outl(virt_to_bus(&c->sg[0]), state->card->iobase + c->port + OFF_BDBAR); in prog_dmabuf()
1069 outb(0, state->card->iobase + c->port + OFF_CIV); in prog_dmabuf()
1070 outb(0, state->card->iobase + c->port + OFF_LVI); in prog_dmabuf()
1082 port = state->card->iobase; in __ali_update_lvi()
1165 if ((inb(state->card->iobase + PI_CIV) & 31) != (inb(state->card->iobase + PI_LVI) & 31)) { in ali_update_ptr()
1191 if ((inb(state->card->iobase + PO_CIV) & 31) != (inb(state->card->iobase + PO_LVI) & 31)) { in ali_update_ptr()
1194 inb(state->card->iobase + PO_CIV) & 31, in ali_update_ptr()
1195 inb(state->card->iobase + PO_LVI) & 31, in ali_update_ptr()
1218 …if ((inb(state->card->iobase + CODECSPDIFOUT_CIV) & 31) != (inb(state->card->iobase + CODECSPDIFOU… in ali_update_ptr()
1221 inb(state->card->iobase + CODECSPDIFOUT_CIV) & 31, in ali_update_ptr()
1222 inb(state->card->iobase + CODECSPDIFOUT_LVI) & 31, in ali_update_ptr()
1243 …if ((inb(state->card->iobase + CONTROLLERSPDIFOUT_CIV) & 31) != (inb(state->card->iobase + CONTROL… in ali_update_ptr()
1248 inb(state->card->iobase + CONTROLLERSPDIFOUT_CIV) & 31, in ali_update_ptr()
1249 inb(state->card->iobase + CONTROLLERSPDIFOUT_LVI) & 31, in ali_update_ptr()
1440 unsigned long port = card->iobase; in ali_channel_interrupt()
1493 outl((1 << 1), state->card->iobase + ALI_DMACR); in ali_channel_interrupt()
1495 outl((1 << 3), state->card->iobase + ALI_DMACR); in ali_channel_interrupt()
1497 outl((1 << 7), state->card->iobase + ALI_DMACR); in ali_channel_interrupt()
1528 outl((1 << 1), state->card->iobase + ALI_DMACR); in ali_channel_interrupt()
1530 outl((1 << 3), state->card->iobase + ALI_DMACR); in ali_channel_interrupt()
1532 outl((1 << 7), state->card->iobase + ALI_DMACR); in ali_channel_interrupt()
1556 status = inl(card->iobase + ALI_INTERRUPTSR); in ali_interrupt()
1566 outl(status & INT_MASK, card->iobase + ALI_INTERRUPTSR); in ali_interrupt()
2004 outb(2, state->card->iobase + c->port + OFF_CR); /* reset DMA machine */ in ali_ioctl()
2005 outl(virt_to_bus(&c->sg[0]), state->card->iobase + c->port + OFF_BDBAR); in ali_ioctl()
2006 outb(0, state->card->iobase + c->port + OFF_CIV); in ali_ioctl()
2007 outb(0, state->card->iobase + c->port + OFF_LVI); in ali_ioctl()
2064 i_scr = inl(state->card->iobase + ALI_SCR); in ali_ioctl()
2201 i_scr = inl(state->card->iobase + ALI_SCR); in ali_ioctl()
2212 outl(((i_scr & 0xfffffcff) | 0x00100000), (state->card->iobase + ALI_SCR)); in ali_ioctl()
2214 outl((i_scr & 0xfffffcff), (state->card->iobase + ALI_SCR)); in ali_ioctl()
2219 outl(((i_scr & 0xfffffcff) | 0x00000100 | 0x00200000), (state->card->iobase + ALI_SCR)); in ali_ioctl()
2221 outl(((i_scr & 0xfffffcff) | 0x00000100), (state->card->iobase + ALI_SCR)); in ali_ioctl()
2225 …outl(((i_scr & 0xfffffcff) | 0x00000200 | 0x00008000 | 0x00300000), (state->card->iobase + ALI_SCR… in ali_ioctl()
2227 outl(((i_scr & 0xfffffcff) | 0x00000200 | 0x00008000), (state->card->iobase + ALI_SCR)); in ali_ioctl()
2686 i_scr = inl(state->card->iobase + ALI_SCR); in ali_ioctl()
2821 i_scr = inl(state->card->iobase + ALI_SCR); in ali_open()
2875 outl(0x00000000, card->iobase + ALI_INTERRUPTCR); in ali_open()
2876 outl(0x00000000, card->iobase + ALI_INTERRUPTSR); in ali_open()
2942 while (count1-- && (inl(card->iobase + ALI_CAS) & 0x80000000)) in ali_ac97_get()
2948 val = inb(card->iobase + ALI_CSPSR); in ali_ac97_get()
2957 outw(reg, (card->iobase + ALI_CPR) + 2); in ali_ac97_get()
2959 val = inb(card->iobase + ALI_CSPSR); in ali_ac97_get()
2961 data = inw(card->iobase + ALI_SPR); in ali_ac97_get()
2962 addr2 = inw((card->iobase + ALI_SPR) + 2); in ali_ac97_get()
2984 while (count1-- && (inl(card->iobase + ALI_CAS) & 0x80000000)) in ali_ac97_set()
2988 val = inb(card->iobase + ALI_CSPSR); in ali_ac97_set()
2997 outw(data, (card->iobase + ALI_CPR)); in ali_ac97_set()
2998 outb(reg, (card->iobase + ALI_CPR) + 2); in ali_ac97_set()
3000 val = inb(card->iobase + ALI_CSPSR); in ali_ac97_set()
3061 u32 reg = inl(card->iobase + ALI_RTSR); in ali_ac97_exists()
3065 reg = inl(card->iobase + ALI_RTSR); in ali_ac97_exists()
3070 card->iobase + 0x34); in ali_ac97_exists()
3078 reg = inl(card->iobase + ALI_RTSR); in ali_ac97_exists()
3083 card->iobase + 0x34); in ali_ac97_exists()
3162 outl(0x80000003, card->iobase + ALI_SCR); in ali_reset_5455()
3163 outl(0x83838383, card->iobase + ALI_FIFOCR1); in ali_reset_5455()
3164 outl(0x83838383, card->iobase + ALI_FIFOCR2); in ali_reset_5455()
3166 outl((inl(card->iobase + ALI_SPDIFICS) | 0x00000001), in ali_reset_5455()
3167 card->iobase + ALI_SPDIFICS); in ali_reset_5455()
3168 outl(0x0408000a, card->iobase + ALI_INTERFACECR); in ali_reset_5455()
3171 …outl((inl(card->iobase + ALI_SCR) | 0x00100000), card->iobase + ALI_SCR); // now I select slot 7 &… in ali_reset_5455()
3172 outl(0x00200000, card->iobase + ALI_INTERFACECR); //enable codec independent spdifout in ali_reset_5455()
3174 outl(0x04080002, card->iobase + ALI_INTERFACECR); in ali_reset_5455()
3177 outl(0x00000000, card->iobase + ALI_INTERRUPTCR); in ali_reset_5455()
3178 outl(0x00000000, card->iobase + ALI_INTERRUPTSR); in ali_reset_5455()
3180 outl((inl(card->iobase + ALI_SPDIFICS) | 0x00000001), in ali_reset_5455()
3181 card->iobase + ALI_SPDIFICS); in ali_reset_5455()
3189 u32 reg = inl(card->iobase + ALI_SCR); in ali_ac97_random_init_stuff()
3191 reg = inl(card->iobase + ALI_SCR); in ali_ac97_random_init_stuff()
3197 outl(reg, card->iobase + ALI_SCR); in ali_ac97_random_init_stuff()
3200 if ((inl(card->iobase + 0x18) & (1 << 1)) == 0) in ali_ac97_random_init_stuff()
3235 inl(card->iobase + ALI_CPR); in ali_ac97_init()
3361 outb(31, card->iobase + dmabuf->write_channel->port + OFF_LVI); in ali_configure_clocking()
3371 outb(2, card->iobase + dmabuf->write_channel->port + OFF_CR); in ali_configure_clocking()
3412 card->iobase = pci_resource_start(pci_dev, 0); in ali_probe()
3426 card_names[pci_id->driver_data], card->iobase, card->irq); in ali_probe()
3449 request_region(card->iobase, 256, card_names[pci_id->driver_data]); in ali_probe()
3454 release_region(card->iobase, 256); in ali_probe()
3461 release_region(card->iobase, 256); in ali_probe()
3469 release_region(card->iobase, 256); in ali_probe()
3486 release_region(card->iobase, 256); in ali_probe()
3506 release_region(card->iobase, 256); in ali_remove()