Searched refs:ICEREG (Results 1 – 2 of 2) sorted by relevance
/linux-3.4.99/sound/pci/ice1712/ |
D | ice1712.c | 159 old_cmd = inb(ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_write() 166 outb(reg, ICEREG(ice, AC97_INDEX)); in snd_ice1712_ac97_write() 167 outw(val, ICEREG(ice, AC97_DATA)); in snd_ice1712_ac97_write() 169 outb(old_cmd | ICE1712_AC97_WRITE, ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_write() 171 if ((inb(ICEREG(ice, AC97_CMD)) & ICE1712_AC97_WRITE) == 0) in snd_ice1712_ac97_write() 183 old_cmd = inb(ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_read() 190 outb(reg, ICEREG(ice, AC97_INDEX)); in snd_ice1712_ac97_read() 191 outb(old_cmd | ICE1712_AC97_READ, ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_read() 193 if ((inb(ICEREG(ice, AC97_CMD)) & ICE1712_AC97_READ) == 0) in snd_ice1712_ac97_read() 197 return inw(ICEREG(ice, AC97_DATA)); in snd_ice1712_ac97_read() [all …]
|
D | ice1712.h | 40 #define ICEREG(ice, x) ((ice)->port + ICE1712_REG_##x) macro 499 outb(addr, ICEREG(ice, INDEX)); in snd_ice1712_write() 500 outb(data, ICEREG(ice, DATA)); in snd_ice1712_write() 505 outb(addr, ICEREG(ice, INDEX)); in snd_ice1712_read() 506 return inb(ICEREG(ice, DATA)); in snd_ice1712_read()
|