Home
last modified time | relevance | path

Searched refs:shift_right (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 <<…
498 shift_right, mask, invert, xtlv) \ argument
504 (shift_right << 19) | (mask << 24) | (invert << 22), \
525 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_get_double() local
531 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; in snd_cs4236_get_double()
547 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double() local
560 val2 <<= shift_right; in snd_cs4236_put_double()
564 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; 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 <<…
402 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_opl3sa2_get_double() local
408 ucontrol->value.integer.value[1] = (chip->ctlregs[right_reg] >> shift_right) & mask; in snd_opl3sa2_get_double()
424 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_opl3sa2_put_double() local
437 val2 <<= shift_right; in snd_opl3sa2_put_double()
443 val2 = (oval2 & ~(mask << shift_right)) | val2; 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 <<…
1200 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es18xx_get_double() local
1211 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es18xx_get_double()
1225 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es18xx_put_double() local
1238 val2 <<= shift_right; in snd_es18xx_put_double()
1240 mask2 = mask << shift_right; 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) }
852 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_ad1816a_get_double() local
860 ucontrol->value.integer.value[1] = (val >> shift_right) & mask; in snd_ad1816a_get_double()
875 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_ad1816a_put_double() local
888 val2 <<= shift_right; 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 <<…
860 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1688_get_double() local
879 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es1688_get_double()
894 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1688_put_double() local
907 val2 <<= shift_right; in snd_es1688_put_double()
919 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_es1688_put_double()
936 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_es1688_put_double()
/sound/parisc/
Dharmony.c698 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_get() local
706 right = (h->st.gain >> shift_right) & mask; in snd_harmony_volume_get()
713 if (shift_left != shift_right) in snd_harmony_volume_get()
727 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_put() local
741 if (shift_left != shift_right) { in snd_harmony_volume_put()
745 h->st.gain &= ~( (mask << shift_right) ); in snd_harmony_volume_put()
746 h->st.gain |= (right << 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), \
914 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_fm801_get_double() local
921 value[1] = (fm801_ioread16(chip, reg) >> shift_right) & mask; in snd_fm801_get_double()
936 int shift_right = (kcontrol->private_value >> 12) & 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 <<…
1253 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1938_get_double() local
1264 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es1938_get_double()
1279 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1938_put_double() local
1292 val2 <<= shift_right; in snd_es1938_put_double()
1294 mask2 = mask << shift_right; 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 <<…
1023 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_sonicvibes_get_double() local
1029 ucontrol->value.integer.value[1] = (snd_sonicvibes_in1(sonic, right_reg) >> shift_right) & mask; in snd_sonicvibes_get_double()
1044 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_sonicvibes_put_double() local
1057 val2 <<= shift_right; in snd_sonicvibes_put_double()
1062 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_sonicvibes_put_double()
/sound/spi/
Dat73c213.c480 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_at73c213_stereo_get() local
489 (chip->reg_image[right_reg] >> shift_right) & mask; in snd_at73c213_stereo_get()
510 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_at73c213_stereo_put() local
523 val2 <<= shift_right; in snd_at73c213_stereo_put()
528 val2 = (chip->reg_image[right_reg] & ~(mask << shift_right)) | val2; 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.c1423 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4231_get_double() local
1432 (chip->image[right_reg] >> shift_right) & mask; in snd_cs4231_get_double()
1454 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4231_put_double() local
1467 val2 <<= shift_right; in snd_cs4231_put_double()
1472 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_cs4231_put_double()
1490 shift_right, mask, invert) \ argument
1495 ((shift_right) << 19) | ((mask) << 24) | ((invert) << 22) }
/sound/isa/wss/
Dwss_lib.c2118 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_wss_get_double() local
2124 ucontrol->value.integer.value[1] = (chip->image[right_reg] >> shift_right) & mask; in snd_wss_get_double()
2142 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_wss_put_double() local
2155 val2 <<= shift_right; in snd_wss_put_double()
2159 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; 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
1529 ucontrol->value.integer.value[1] = (val >> shift_right) & mask; in snd_ymfpci_get_double()
1537 unsigned int shift_left = 0, shift_right = 16, mask = 16383; in snd_ymfpci_put_double() local
1546 val2 <<= shift_right; in snd_ymfpci_put_double()
1549 val1 = (oval & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ymfpci_put_double()