Home
last modified time | relevance | path

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

/Linux-v6.1/sound/pci/ice1712/
Dice1712.c138 old_cmd = inb(ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_write()
145 outb(reg, ICEREG(ice, AC97_INDEX)); in snd_ice1712_ac97_write()
146 outw(val, ICEREG(ice, AC97_DATA)); in snd_ice1712_ac97_write()
148 outb(old_cmd | ICE1712_AC97_WRITE, ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_write()
150 if ((inb(ICEREG(ice, AC97_CMD)) & ICE1712_AC97_WRITE) == 0) in snd_ice1712_ac97_write()
162 old_cmd = inb(ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_read()
169 outb(reg, ICEREG(ice, AC97_INDEX)); in snd_ice1712_ac97_read()
170 outb(old_cmd | ICE1712_AC97_READ, ICEREG(ice, AC97_CMD)); in snd_ice1712_ac97_read()
172 if ((inb(ICEREG(ice, AC97_CMD)) & ICE1712_AC97_READ) == 0) in snd_ice1712_ac97_read()
176 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()