Lines Matching refs:iobase

153 	unsigned long 		iobase;		/* Ctrl BAR address */  member
186 unsigned long iobase; member
228 while ( (inw (chip->iobase + FORTE_AC97_CMD) & FORTE_AC97_PORT_BSY) in forte_ac97_wait()
257 outw (reg | (1<<7), chip->iobase + FORTE_AC97_CMD); in forte_ac97_read()
266 if (inw (chip->iobase + FORTE_AC97_CMD) & FORTE_AC97_DP_INVALID) { in forte_ac97_read()
272 ret = inw (chip->iobase + FORTE_AC97_DATA); in forte_ac97_read()
300 outw (val, chip->iobase + FORTE_AC97_DATA); in forte_ac97_write()
301 outb (reg | FORTE_AC97_WRITE, chip->iobase + FORTE_AC97_CMD); in forte_ac97_write()
389 if (!channel || !channel->iobase) in forte_channel_reset()
395 outw (channel->ctrl, channel->iobase + FORTE_PLY_CTRL); in forte_channel_reset()
420 if (!channel || !channel->iobase || channel->active) in forte_channel_start()
427 outw (channel->ctrl, channel->iobase + FORTE_PLY_CTRL); in forte_channel_start()
441 if (!channel || !channel->iobase) in forte_channel_stop()
448 outw (channel->ctrl, channel->iobase + FORTE_PLY_CTRL); in forte_channel_stop()
462 if (!channel || !channel->iobase) in forte_channel_pause()
468 outw (channel->ctrl, channel->iobase + FORTE_PLY_CTRL); in forte_channel_pause()
486 if (!channel || !channel->iobase) in forte_channel_rate()
525 if (!channel || !channel->iobase) in forte_channel_format()
565 if (!channel || !channel->iobase) in forte_channel_stereo()
700 outw (channel->frag_sz - 1, channel->iobase + FORTE_PLY_COUNT); in forte_channel_prep()
701 outl (channel->buf_handle, channel->iobase + FORTE_PLY_BUF1); in forte_channel_prep()
703 channel->iobase + FORTE_PLY_BUF2); in forte_channel_prep()
779 DPRINTK ("%s: chip iobase @ %p\n", __FUNCTION__, (void *)chip->iobase); in forte_channel_init()
786 channel->iobase = chip->iobase; in forte_channel_init()
788 (void *) channel->iobase); in forte_channel_init()
792 channel->iobase = chip->iobase + FORTE_CAP_OFFSET; in forte_channel_init()
794 (void *) channel->iobase); in forte_channel_init()
802 channel->ctrl = inw (channel->iobase + FORTE_PLY_CTRL); in forte_channel_init()
1165 count = inw (chip->play.iobase + FORTE_PLY_COUNT) + 1; in forte_dsp_ioctl()
1697 status = inw (chip->iobase + FORTE_IRQ_STATUS); in forte_interrupt()
1727 channel->iobase + FORTE_PLY_BUF1 : in forte_interrupt()
1728 channel->iobase + FORTE_PLY_BUF2); in forte_interrupt()
1736 outw (FORTE_IRQ_PLAYBACK, chip->iobase + FORTE_IRQ_STATUS); in forte_interrupt()
1752 count = inw (channel->iobase + FORTE_PLY_COUNT) + 1; in forte_interrupt()
1764 channel->iobase + FORTE_PLY_BUF1 : in forte_interrupt()
1765 channel->iobase + FORTE_PLY_BUF2); in forte_interrupt()
1779 outw (FORTE_IRQ_CAPTURE, chip->iobase + FORTE_IRQ_STATUS); in forte_interrupt()
1805 if (!forte->iobase) in forte_proc_read()
1809 p_reg = inw (forte->iobase + FORTE_PLY_CTRL); in forte_proc_read()
1820 r_reg = inw (forte->iobase + FORTE_CAP_CTRL); in forte_proc_read()
1947 chip->iobase + FORTE_CODEC_CTRL); in forte_chip_init()
1949 outw (0, chip->iobase + FORTE_CODEC_CTRL); in forte_chip_init()
1953 chip->iobase + FORTE_AC97_CMD); in forte_chip_init()
1956 if ((inw (chip->iobase + FORTE_AC97_CMD) & (3<<8)) != (1<<8)) { in forte_chip_init()
1962 outw (0x0808, chip->iobase + FORTE_PCM_VOL); in forte_chip_init()
1963 outw (0x9f1f, chip->iobase + FORTE_FM_VOL); in forte_chip_init()
1964 outw (0x8808, chip->iobase + FORTE_I2S_VOL); in forte_chip_init()
1967 outw (0x0003, chip->iobase + FORTE_I2S_MODE); in forte_chip_init()
1970 cmdw = inw (chip->iobase + FORTE_IRQ_MASK); in forte_chip_init()
1972 outw (cmdw, chip->iobase + FORTE_IRQ_MASK); in forte_chip_init()
1976 chip->iobase + FORTE_IRQ_STATUS); in forte_chip_init()
2066 chip->iobase = pci_resource_start (pci_dev, 0); in forte_probe()
2079 chip->iobase, pci_resource_end (pci_dev, 0), chip->irq); in forte_probe()
2089 if (chip->iobase) in forte_probe()
2114 outw (0x1f1f, chip->iobase + FORTE_PCM_VOL); in forte_remove()
2115 outw (0x1f1f, chip->iobase + FORTE_FM_VOL); in forte_remove()
2116 outw (0x1f1f, chip->iobase + FORTE_I2S_VOL); in forte_remove()
2120 release_region (chip->iobase, pci_resource_len (pci_dev, 0)); in forte_remove()