Lines Matching refs:xval
412 unsigned int xval; in snd_via82xx_codec_write() local
417 xval = !ac97->num ? VIA_REG_AC97_CODEC_ID_PRIMARY : VIA_REG_AC97_CODEC_ID_SECONDARY; in snd_via82xx_codec_write()
418 xval <<= VIA_REG_AC97_CODEC_ID_SHIFT; in snd_via82xx_codec_write()
419 xval |= reg << VIA_REG_AC97_CMD_SHIFT; in snd_via82xx_codec_write()
420 xval |= val << VIA_REG_AC97_DATA_SHIFT; in snd_via82xx_codec_write()
421 snd_via82xx_codec_xwrite(chip, xval); in snd_via82xx_codec_write()
428 unsigned int xval, val = 0xffff; in snd_via82xx_codec_read() local
431 xval = ac97->num << VIA_REG_AC97_CODEC_ID_SHIFT; in snd_via82xx_codec_read()
432 xval |= ac97->num ? VIA_REG_AC97_SECONDARY_VALID : VIA_REG_AC97_PRIMARY_VALID; in snd_via82xx_codec_read()
433 xval |= VIA_REG_AC97_READ; in snd_via82xx_codec_read()
434 xval |= (reg & 0x7f) << VIA_REG_AC97_CMD_SHIFT; in snd_via82xx_codec_read()
442 snd_via82xx_codec_xwrite(chip, xval); in snd_via82xx_codec_read()