Home
last modified time | relevance | path

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

/sound/isa/cs423x/
Dcs4236_lib.c505 #define CS4236_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
509 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
512 shift_right, mask, invert, xtlv) \ argument
518 (shift_right << 19) | (mask << 24) | (invert << 22), \
539 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_get_double() local
545 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; in snd_cs4236_get_double()
561 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double() local
574 val2 <<= shift_right; in snd_cs4236_put_double()
578 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; in snd_cs4236_put_double()
583 …val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | va… in snd_cs4236_put_double()
[all …]
/sound/isa/
Dopl3sa2.c396 #define OPL3SA2_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
400 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
401 #define OPL3SA2_DOUBLE_TLV(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, inver… argument
407 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
417 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_opl3sa2_get_double() local
423 ucontrol->value.integer.value[1] = (chip->ctlregs[right_reg] >> shift_right) & mask; in snd_opl3sa2_get_double()
439 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_opl3sa2_put_double() local
452 val2 <<= shift_right; in snd_opl3sa2_put_double()
458 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_opl3sa2_put_double()
464 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_opl3sa2_put_double()
Des18xx.c1191 #define ES18XX_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
1195 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1214 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es18xx_get_double() local
1225 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es18xx_get_double()
1239 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es18xx_put_double() local
1252 val2 <<= shift_right; in snd_es18xx_put_double()
1254 mask2 = mask << shift_right; in snd_es18xx_put_double()
/sound/isa/ad1816a/
Dad1816a_lib.c834 #define AD1816A_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
839 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
842 #define AD1816A_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
845 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) }
864 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_ad1816a_get_double() local
872 ucontrol->value.integer.value[1] = (val >> shift_right) & mask; in snd_ad1816a_get_double()
887 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_ad1816a_put_double() local
900 val2 <<= shift_right; in snd_ad1816a_put_double()
903 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double()
/sound/pci/ac97/
Dac97_patch.h40 #define AC97_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
44 ….private_value = (reg) | ((shift_left) << 8) | ((shift_right) << 12) | ((mask) << 16) | ((invert) …
/sound/isa/es1688/
Des1688_lib.c853 #define ES1688_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
857 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
877 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1688_get_double() local
896 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es1688_get_double()
911 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1688_put_double() local
924 val2 <<= shift_right; in snd_es1688_put_double()
936 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_es1688_put_double()
953 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_es1688_put_double()
/sound/parisc/
Dharmony.c717 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_get() local
725 right = (h->st.gain >> shift_right) & mask; in snd_harmony_volume_get()
732 if (shift_left != shift_right) in snd_harmony_volume_get()
746 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_put() local
760 if (shift_left != shift_right) { in snd_harmony_volume_put()
764 h->st.gain &= ~( (mask << shift_right) ); in snd_harmony_volume_put()
765 h->st.gain |= (right << shift_right); in snd_harmony_volume_put()
/sound/spi/
Dat73c213.c478 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_at73c213_stereo_get() local
487 (chip->reg_image[right_reg] >> shift_right) & mask; in snd_at73c213_stereo_get()
508 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_at73c213_stereo_put() local
521 val2 <<= shift_right; in snd_at73c213_stereo_put()
526 val2 = (chip->reg_image[right_reg] & ~(mask << shift_right)) | val2; in snd_at73c213_stereo_put()
655 #define AT73C213_STEREO(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
664 | (shift_left << 16) | (shift_right << 19) \
/sound/pci/
Dfm801.c877 #define FM801_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
880 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) }
881 #define FM801_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
886 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
907 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_fm801_get_double() local
913 ucontrol->value.integer.value[1] = (inw(chip->port + reg) >> shift_right) & mask; in snd_fm801_get_double()
928 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_fm801_put_double() local
940 (mask << shift_left) | (mask << shift_right), in snd_fm801_put_double()
941 (val1 << shift_left ) | (val2 << shift_right)); in snd_fm801_put_double()
Des1938.c1218 #define ES1938_DOUBLE_TLV(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert… argument
1224 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1226 #define ES1938_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
1230 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1251 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1938_get_double() local
1262 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es1938_get_double()
1277 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1938_put_double() local
1290 val2 <<= shift_right; in snd_es1938_put_double()
1292 mask2 = mask << shift_right; in snd_es1938_put_double()
Dsonicvibes.c1014 #define SONICVIBES_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert… argument
1018 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1037 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_sonicvibes_get_double() local
1043 ucontrol->value.integer.value[1] = (snd_sonicvibes_in1(sonic, right_reg) >> shift_right) & mask; in snd_sonicvibes_get_double()
1058 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_sonicvibes_put_double() local
1071 val2 <<= shift_right; in snd_sonicvibes_put_double()
1076 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_sonicvibes_put_double()
/sound/sparc/
Dcs4231.c1422 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4231_get_double() local
1431 (chip->image[right_reg] >> shift_right) & mask; in snd_cs4231_get_double()
1453 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4231_put_double() local
1466 val2 <<= shift_right; in snd_cs4231_put_double()
1471 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_cs4231_put_double()
1489 shift_right, mask, invert) \ argument
1494 ((shift_right) << 19) | ((mask) << 24) | ((invert) << 22) }
/sound/isa/wss/
Dwss_lib.c2133 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_wss_get_double() local
2139 ucontrol->value.integer.value[1] = (chip->image[right_reg] >> shift_right) & mask; in snd_wss_get_double()
2157 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_wss_put_double() local
2170 val2 <<= shift_right; in snd_wss_put_double()
2174 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_wss_put_double()
2180 mask = (mask << shift_left) | (mask << shift_right); in snd_wss_put_double()
/sound/pci/ymfpci/
Dymfpci_main.c1534 unsigned int shift_left = 0, shift_right = 16, mask = 16383; in snd_ymfpci_get_double() local
1543 ucontrol->value.integer.value[1] = (val >> shift_right) & mask; in snd_ymfpci_get_double()
1551 unsigned int shift_left = 0, shift_right = 16, mask = 16383; in snd_ymfpci_put_double() local
1560 val2 <<= shift_right; in snd_ymfpci_put_double()
1563 val1 = (oval & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ymfpci_put_double()