Lines Matching refs:xval
557 unsigned int xval; in snd_via82xx_codec_write() local
559 xval = !ac97->num ? VIA_REG_AC97_CODEC_ID_PRIMARY : VIA_REG_AC97_CODEC_ID_SECONDARY; in snd_via82xx_codec_write()
560 xval <<= VIA_REG_AC97_CODEC_ID_SHIFT; in snd_via82xx_codec_write()
561 xval |= reg << VIA_REG_AC97_CMD_SHIFT; in snd_via82xx_codec_write()
562 xval |= val << VIA_REG_AC97_DATA_SHIFT; in snd_via82xx_codec_write()
563 snd_via82xx_codec_xwrite(chip, xval); in snd_via82xx_codec_write()
570 unsigned int xval, val = 0xffff; in snd_via82xx_codec_read() local
573 xval = ac97->num << VIA_REG_AC97_CODEC_ID_SHIFT; in snd_via82xx_codec_read()
574 xval |= ac97->num ? VIA_REG_AC97_SECONDARY_VALID : VIA_REG_AC97_PRIMARY_VALID; in snd_via82xx_codec_read()
575 xval |= VIA_REG_AC97_READ; in snd_via82xx_codec_read()
576 xval |= (reg & 0x7f) << VIA_REG_AC97_CMD_SHIFT; in snd_via82xx_codec_read()
584 snd_via82xx_codec_xwrite(chip, xval); in snd_via82xx_codec_read()