• Home
  • Raw
  • Download

Lines Matching refs:addr

58 snd_pmac_burgundy_wcw(struct snd_pmac *chip, unsigned addr, unsigned val)  in snd_pmac_burgundy_wcw()  argument
60 out_le32(&chip->awacs->codec_ctrl, addr + 0x200c00 + (val & 0xff)); in snd_pmac_burgundy_wcw()
62 out_le32(&chip->awacs->codec_ctrl, addr + 0x200d00 +((val>>8) & 0xff)); in snd_pmac_burgundy_wcw()
64 out_le32(&chip->awacs->codec_ctrl, addr + 0x200e00 +((val>>16) & 0xff)); in snd_pmac_burgundy_wcw()
66 out_le32(&chip->awacs->codec_ctrl, addr + 0x200f00 +((val>>24) & 0xff)); in snd_pmac_burgundy_wcw()
71 snd_pmac_burgundy_rcw(struct snd_pmac *chip, unsigned addr) in snd_pmac_burgundy_rcw() argument
78 out_le32(&chip->awacs->codec_ctrl, addr + 0x100000); in snd_pmac_burgundy_rcw()
83 out_le32(&chip->awacs->codec_ctrl, addr + 0x100100); in snd_pmac_burgundy_rcw()
88 out_le32(&chip->awacs->codec_ctrl, addr + 0x100200); in snd_pmac_burgundy_rcw()
93 out_le32(&chip->awacs->codec_ctrl, addr + 0x100300); in snd_pmac_burgundy_rcw()
104 snd_pmac_burgundy_wcb(struct snd_pmac *chip, unsigned int addr, in snd_pmac_burgundy_wcb() argument
107 out_le32(&chip->awacs->codec_ctrl, addr + 0x300000 + (val & 0xff)); in snd_pmac_burgundy_wcb()
112 snd_pmac_burgundy_rcb(struct snd_pmac *chip, unsigned int addr) in snd_pmac_burgundy_rcb() argument
119 out_le32(&chip->awacs->codec_ctrl, addr + 0x100000); in snd_pmac_burgundy_rcb()
130 #define ADDR2BASE(addr) ((addr) >> 12) argument
188 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume() local
190 snd_pmac_burgundy_read_volume(chip, addr, in snd_pmac_burgundy_get_volume()
199 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume() local
203 snd_pmac_burgundy_write_volume(chip, addr, in snd_pmac_burgundy_put_volume()
205 snd_pmac_burgundy_read_volume(chip, addr, nvoices, shift); in snd_pmac_burgundy_put_volume()
210 #define BURGUNDY_VOLUME_W(xname, xindex, addr, shift) \ argument
215 .private_value = ((ADDR2BASE(addr) & 0xff) | ((shift) << 8)) }
264 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume_2b() local
266 snd_pmac_burgundy_read_volume_2b(chip, addr, in snd_pmac_burgundy_get_volume_2b()
275 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume_2b() local
279 snd_pmac_burgundy_write_volume_2b(chip, addr, in snd_pmac_burgundy_put_volume_2b()
281 snd_pmac_burgundy_read_volume_2b(chip, addr, nvoices, off); in snd_pmac_burgundy_put_volume_2b()
286 #define BURGUNDY_VOLUME_2B(xname, xindex, addr, off) \ argument
291 .private_value = ((ADDR2BASE(addr) & 0xff) | ((off) << 8)) }
311 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_gain() local
316 oval = snd_pmac_burgundy_rcb(chip, addr); in snd_pmac_burgundy_get_gain()
329 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_gain() local
334 oval = snd_pmac_burgundy_rcb(chip, addr); in snd_pmac_burgundy_put_gain()
344 snd_pmac_burgundy_wcb(chip, addr, val); in snd_pmac_burgundy_put_gain()
348 #define BURGUNDY_VOLUME_B(xname, xindex, addr, stereo, atten) \ argument
353 .private_value = (ADDR2BASE(addr) | ((stereo) << 24) | ((atten) << 25)) }
373 unsigned int addr = BASE2ADDR((kcontrol->private_value >> 16) & 0xff); in snd_pmac_burgundy_get_switch_w() local
377 int val = snd_pmac_burgundy_rcw(chip, addr); in snd_pmac_burgundy_get_switch_w()
388 unsigned int addr = BASE2ADDR((kcontrol->private_value >> 16) & 0xff); in snd_pmac_burgundy_put_switch_w() local
393 oval = snd_pmac_burgundy_rcw(chip, addr); in snd_pmac_burgundy_put_switch_w()
399 snd_pmac_burgundy_wcw(chip, addr, val); in snd_pmac_burgundy_put_switch_w()
403 #define BURGUNDY_SWITCH_W(xname, xindex, addr, lbit, rbit, stereo) \ argument
409 | (ADDR2BASE(addr) << 16) | ((stereo) << 24)) }
429 unsigned int addr = BASE2ADDR((kcontrol->private_value >> 16) & 0xff); in snd_pmac_burgundy_get_switch_b() local
433 int val = snd_pmac_burgundy_rcb(chip, addr); in snd_pmac_burgundy_get_switch_b()
444 unsigned int addr = BASE2ADDR((kcontrol->private_value >> 16) & 0xff); in snd_pmac_burgundy_put_switch_b() local
449 oval = snd_pmac_burgundy_rcb(chip, addr); in snd_pmac_burgundy_put_switch_b()
455 snd_pmac_burgundy_wcb(chip, addr, val); in snd_pmac_burgundy_put_switch_b()
459 #define BURGUNDY_SWITCH_B(xname, xindex, addr, lmask, rmask, stereo) \ argument
465 | (ADDR2BASE(addr) << 16) | ((stereo) << 24)) }