Home
last modified time | relevance | path

Searched refs:shift_left (Results 1 – 14 of 14) sorted by relevance

/sound/isa/cs423x/
Dcs4236_lib.c491 #define CS4236_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
495 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
497 #define CS4236_DOUBLE_TLV(xname, xindex, left_reg, right_reg, shift_left, \ argument
503 .private_value = left_reg | (right_reg << 8) | (shift_left << 16) | \
524 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_get_double() local
530 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(left_reg)] >> shift_left) & mask; in snd_cs4236_get_double()
546 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4236_put_double() local
559 val1 <<= shift_left; in snd_cs4236_put_double()
563 val1 = (chip->eimage[CS4236_REG(left_reg)] & ~(mask << shift_left)) | val1; in snd_cs4236_put_double()
569 …val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | va… in snd_cs4236_put_double()
[all …]
/sound/isa/
Dopl3sa2.c381 #define OPL3SA2_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
385 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
386 #define OPL3SA2_DOUBLE_TLV(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, inver… argument
392 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
401 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_opl3sa2_get_double() local
407 ucontrol->value.integer.value[0] = (chip->ctlregs[left_reg] >> shift_left) & mask; in snd_opl3sa2_get_double()
423 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_opl3sa2_put_double() local
436 val1 <<= shift_left; in snd_opl3sa2_put_double()
442 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_opl3sa2_put_double()
449 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_opl3sa2_put_double()
Des18xx.c1177 #define ES18XX_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
1181 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1199 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_es18xx_get_double() local
1210 ucontrol->value.integer.value[0] = (left >> shift_left) & mask; in snd_es18xx_get_double()
1224 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_es18xx_put_double() local
1237 val1 <<= shift_left; in snd_es18xx_put_double()
1239 mask1 = mask << shift_left; in snd_es18xx_put_double()
/sound/isa/ad1816a/
Dad1816a_lib.c822 #define AD1816A_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
827 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
830 #define AD1816A_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
833 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) }
851 int shift_left = (kcontrol->private_value >> 8) & 0x0f; in snd_ad1816a_get_double() local
859 ucontrol->value.integer.value[0] = (val >> shift_left) & mask; in snd_ad1816a_get_double()
874 int shift_left = (kcontrol->private_value >> 8) & 0x0f; in snd_ad1816a_put_double() local
887 val1 <<= shift_left; in snd_ad1816a_put_double()
891 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double()
/sound/pci/ac97/
Dac97_patch.h25 #define AC97_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
29 ….private_value = (reg) | ((shift_left) << 8) | ((shift_right) << 12) | ((mask) << 16) | ((invert) …
/sound/isa/es1688/
Des1688_lib.c836 #define ES1688_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
840 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
859 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_es1688_get_double() local
878 ucontrol->value.integer.value[0] = (left >> shift_left) & mask; in snd_es1688_get_double()
893 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_es1688_put_double() local
906 val1 <<= shift_left; in snd_es1688_put_double()
918 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_es1688_put_double()
936 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_es1688_put_double()
/sound/parisc/
Dharmony.c697 int shift_left = (kc->private_value) & 0xff; in snd_harmony_volume_get() local
705 left = (h->st.gain >> shift_left) & mask; in snd_harmony_volume_get()
713 if (shift_left != shift_right) in snd_harmony_volume_get()
726 int shift_left = (kc->private_value) & 0xff; in snd_harmony_volume_put() local
738 h->st.gain &= ~( (mask << shift_left ) ); in snd_harmony_volume_put()
739 h->st.gain |= (left << shift_left); in snd_harmony_volume_put()
741 if (shift_left != shift_right) { in snd_harmony_volume_put()
/sound/pci/
Dfm801.c884 #define FM801_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
887 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) }
888 #define FM801_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
893 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
913 int shift_left = (kcontrol->private_value >> 8) & 0x0f; in snd_fm801_get_double() local
920 value[0] = (fm801_ioread16(chip, reg) >> shift_left) & mask; in snd_fm801_get_double()
935 int shift_left = (kcontrol->private_value >> 8) & 0x0f; in snd_fm801_put_double() local
948 (mask << shift_left) | (mask << shift_right), in snd_fm801_put_double()
949 (val1 << shift_left ) | (val2 << shift_right)); in snd_fm801_put_double()
Des1938.c1220 #define ES1938_DOUBLE_TLV(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert… argument
1226 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1228 #define ES1938_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
1232 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1252 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_es1938_get_double() local
1263 ucontrol->value.integer.value[0] = (left >> shift_left) & mask; in snd_es1938_get_double()
1278 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_es1938_put_double() local
1291 val1 <<= shift_left; in snd_es1938_put_double()
1293 mask1 = mask << shift_left; in snd_es1938_put_double()
Dsonicvibes.c1000 #define SONICVIBES_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert… argument
1004 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1022 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_sonicvibes_get_double() local
1028 ucontrol->value.integer.value[0] = (snd_sonicvibes_in1(sonic, left_reg) >> shift_left) & mask; in snd_sonicvibes_get_double()
1043 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_sonicvibes_put_double() local
1056 val1 <<= shift_left; in snd_sonicvibes_put_double()
1061 val1 = (oval1 & ~(mask << shift_left)) | val1; in snd_sonicvibes_put_double()
/sound/spi/
Dat73c213.c479 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_at73c213_stereo_get() local
487 (chip->reg_image[left_reg] >> shift_left) & mask; in snd_at73c213_stereo_get()
509 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_at73c213_stereo_put() local
522 val1 <<= shift_left; in snd_at73c213_stereo_put()
527 val1 = (chip->reg_image[left_reg] & ~(mask << shift_left)) | val1; in snd_at73c213_stereo_put()
657 #define AT73C213_STEREO(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
666 | (shift_left << 16) | (shift_right << 19) \
/sound/sparc/
Dcs4231.c1422 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4231_get_double() local
1430 (chip->image[left_reg] >> shift_left) & mask; in snd_cs4231_get_double()
1453 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_cs4231_put_double() local
1466 val1 <<= shift_left; in snd_cs4231_put_double()
1471 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; in snd_cs4231_put_double()
1489 #define CS4231_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, \ argument
1494 .private_value = (left_reg) | ((right_reg) << 8) | ((shift_left) << 16) | \
/sound/isa/wss/
Dwss_lib.c2117 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_wss_get_double() local
2123 ucontrol->value.integer.value[0] = (chip->image[left_reg] >> shift_left) & mask; in snd_wss_get_double()
2141 int shift_left = (kcontrol->private_value >> 16) & 0x07; in snd_wss_put_double() local
2154 val1 <<= shift_left; in snd_wss_put_double()
2158 val1 = (chip->image[left_reg] & ~(mask << shift_left)) | val1; in snd_wss_put_double()
2165 mask = (mask << shift_left) | (mask << shift_right); in snd_wss_put_double()
/sound/pci/ymfpci/
Dymfpci_main.c1520 unsigned int shift_left = 0, shift_right = 16, mask = 16383; in snd_ymfpci_get_double() local
1528 ucontrol->value.integer.value[0] = (val >> shift_left) & mask; in snd_ymfpci_get_double()
1537 unsigned int shift_left = 0, shift_right = 16, mask = 16383; in snd_ymfpci_put_double() local
1545 val1 <<= shift_left; in snd_ymfpci_put_double()
1549 val1 = (oval & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ymfpci_put_double()