Searched refs:ICEREG (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/sound/pci/ice1712/ |
D | ice1712.c | 158 old_cmd = inb(ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_write() 165 outb(reg, ICEREG(ice, AC97_INDEX)); in snd_ice1712_ac97_write() 166 outw(val, ICEREG(ice, AC97_DATA)); in snd_ice1712_ac97_write() 168 outb(old_cmd | ICE1712_AC97_WRITE, ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_write() 170 if ((inb(ICEREG(ice, AC97_CMD)) & ICE1712_AC97_WRITE) == 0) in snd_ice1712_ac97_write() 182 old_cmd = inb(ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_read() 189 outb(reg, ICEREG(ice, AC97_INDEX)); in snd_ice1712_ac97_read() 190 outb(old_cmd | ICE1712_AC97_READ, ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_read() 192 if ((inb(ICEREG(ice, AC97_CMD)) & ICE1712_AC97_READ) == 0) in snd_ice1712_ac97_read() 196 return inw(ICEREG(ice, AC97_DATA)); in snd_ice1712_ac97_read() [all …]
|
D | ice1712.h | 41 #define ICEREG(ice, x) ((ice)->port + ICE1712_REG_##x) macro 506 outb(addr, ICEREG(ice, INDEX)); in snd_ice1712_write() 507 outb(data, ICEREG(ice, DATA)); in snd_ice1712_write() 512 outb(addr, ICEREG(ice, INDEX)); in snd_ice1712_read() 513 return inb(ICEREG(ice, DATA)); in snd_ice1712_read()
|