Home
last modified time | relevance | path

Searched refs:ICEREG (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/sound/pci/ice1712/
Dice1712.c144 old_cmd = inb(ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_write()
151 outb(reg, ICEREG(ice, AC97_INDEX)); in snd_ice1712_ac97_write()
152 outw(val, ICEREG(ice, AC97_DATA)); in snd_ice1712_ac97_write()
154 outb(old_cmd | ICE1712_AC97_WRITE, ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_write()
156 if ((inb(ICEREG(ice, AC97_CMD)) & ICE1712_AC97_WRITE) == 0) in snd_ice1712_ac97_write()
168 old_cmd = inb(ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_read()
175 outb(reg, ICEREG(ice, AC97_INDEX)); in snd_ice1712_ac97_read()
176 outb(old_cmd | ICE1712_AC97_READ, ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_read()
178 if ((inb(ICEREG(ice, AC97_CMD)) & ICE1712_AC97_READ) == 0) in snd_ice1712_ac97_read()
182 return inw(ICEREG(ice, AC97_DATA)); in snd_ice1712_ac97_read()
[all …]
Dice1712.h27 #define ICEREG(ice, x) ((ice)->port + ICE1712_REG_##x) macro
492 outb(addr, ICEREG(ice, INDEX)); in snd_ice1712_write()
493 outb(data, ICEREG(ice, DATA)); in snd_ice1712_write()
498 outb(addr, ICEREG(ice, INDEX)); in snd_ice1712_read()
499 return inb(ICEREG(ice, DATA)); in snd_ice1712_read()