Home
last modified time | relevance | path

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

/linux-6.6.21/sound/isa/cs423x/
Dcs4236_lib.c489 #define CS4236_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
493 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
496 shift_right, mask, invert, xtlv) \ argument
502 (shift_right << 19) | (mask << 24) | (invert << 22), \
523 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_get_double() local
529 ucontrol->value.integer.value[1] = (chip->eimage[CS4236_REG(right_reg)] >> shift_right) & mask; in snd_cs4236_get_double()
545 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double() local
558 val2 <<= shift_right; in snd_cs4236_put_double()
562 val2 = (chip->eimage[CS4236_REG(right_reg)] & ~(mask << shift_right)) | val2; in snd_cs4236_put_double()
567 …val1 = (chip->eimage[CS4236_REG(left_reg)] & ~((mask << shift_left) | (mask << shift_right))) | va… in snd_cs4236_put_double()
[all …]
/linux-6.6.21/include/sound/
Dwss.h178 #define WSS_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
186 (shift_right << 19) | (mask << 24) | (invert << 22) }
200 shift_left, shift_right, mask, invert, xtlv) \ argument
209 (shift_right << 19) | (mask << 24) | (invert << 22), \
Dsoc.h31 #define SOC_DOUBLE_VALUE(xreg, shift_left, shift_right, xmax, xinvert, xautodisable) \ argument
34 .rshift = shift_right, .max = xmax, \
36 #define SOC_DOUBLE_S_VALUE(xreg, shift_left, shift_right, xmin, xmax, xsign_bit, xinvert, xautodisa… argument
39 .rshift = shift_right, .min = xmin, .max = xmax, \
103 #define SOC_DOUBLE(xname, reg, shift_left, shift_right, max, invert) \ argument
107 .private_value = SOC_DOUBLE_VALUE(reg, shift_left, shift_right, \
109 #define SOC_DOUBLE_STS(xname, reg, shift_left, shift_right, max, invert) \ argument
115 .private_value = SOC_DOUBLE_VALUE(reg, shift_left, shift_right, \
130 #define SOC_DOUBLE_TLV(xname, reg, shift_left, shift_right, max, invert, tlv_array) \ argument
137 .private_value = SOC_DOUBLE_VALUE(reg, shift_left, shift_right, \
[all …]
/linux-6.6.21/sound/isa/
Dopl3sa2.c380 #define OPL3SA2_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
384 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
385 #define OPL3SA2_DOUBLE_TLV(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, inver… argument
391 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
401 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_opl3sa2_get_double() local
407 ucontrol->value.integer.value[1] = (chip->ctlregs[right_reg] >> shift_right) & mask; in snd_opl3sa2_get_double()
423 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_opl3sa2_put_double() local
436 val2 <<= shift_right; in snd_opl3sa2_put_double()
442 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_opl3sa2_put_double()
448 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_opl3sa2_put_double()
Des18xx.c1163 #define ES18XX_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
1167 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1186 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es18xx_get_double() local
1197 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es18xx_get_double()
1211 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es18xx_put_double() local
1224 val2 <<= shift_right; in snd_es18xx_put_double()
1226 mask2 = mask << shift_right; in snd_es18xx_put_double()
/linux-6.6.21/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) …
/linux-6.6.21/tools/testing/selftests/timers/
Draw_skew.c33 #define shift_right(x, s) ({ \ macro
133 ppm = shift_right(ppm, 16); in main()
/linux-6.6.21/sound/isa/ad1816a/
Dad1816a_lib.c776 #define AD1816A_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
781 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
784 #define AD1816A_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
787 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) }
806 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_ad1816a_get_double() local
814 ucontrol->value.integer.value[1] = (val >> shift_right) & mask; in snd_ad1816a_get_double()
829 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_ad1816a_put_double() local
842 val2 <<= shift_right; in snd_ad1816a_put_double()
845 val1 = (old_val & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ad1816a_put_double()
/linux-6.6.21/kernel/time/
Dntp.c130 return shift_right(offset, SHIFT_PLL + time_constant); in ntp_offset_chunk()
195 txc->ppsfreq = shift_right((pps_freq >> PPM_SCALE_INV_SHIFT) * in pps_fill_timex()
212 return shift_right(offset, SHIFT_PLL + time_constant); in ntp_offset_chunk()
797 txc->offset = shift_right(time_offset * NTP_INTERVAL_FREQ, in __do_adjtimex()
808 txc->freq = shift_right((time_freq >> PPM_SCALE_INV_SHIFT) * in __do_adjtimex()
954 delta = shift_right(ftemp - pps_freq, NTP_SCALE_SHIFT); in hardpps_update_freq()
/linux-6.6.21/sound/isa/es1688/
Des1688_lib.c813 #define ES1688_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
817 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
837 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1688_get_double() local
856 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es1688_get_double()
871 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1688_put_double() local
884 val2 <<= shift_right; in snd_es1688_put_double()
896 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_es1688_put_double()
913 val1 = (oval1 & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_es1688_put_double()
/linux-6.6.21/sound/parisc/
Dharmony.c672 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_get() local
680 right = (h->st.gain >> shift_right) & mask; in snd_harmony_volume_get()
687 if (shift_left != shift_right) in snd_harmony_volume_get()
701 int shift_right = (kc->private_value >> 8) & 0xff; in snd_harmony_volume_put() local
715 if (shift_left != shift_right) { in snd_harmony_volume_put()
719 h->st.gain &= ~( (mask << shift_right) ); in snd_harmony_volume_put()
720 h->st.gain |= (right << shift_right); in snd_harmony_volume_put()
/linux-6.6.21/sound/spi/
Dat73c213.c472 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_at73c213_stereo_get() local
481 (chip->reg_image[right_reg] >> shift_right) & mask; in snd_at73c213_stereo_get()
502 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_at73c213_stereo_put() local
515 val2 <<= shift_right; in snd_at73c213_stereo_put()
520 val2 = (chip->reg_image[right_reg] & ~(mask << shift_right)) | val2; in snd_at73c213_stereo_put()
649 #define AT73C213_STEREO(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
658 | (shift_left << 16) | (shift_right << 19) \
/linux-6.6.21/sound/pci/
Dfm801.c894 #define FM801_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
897 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) }
898 #define FM801_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
903 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
924 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_fm801_get_double() local
931 value[1] = (fm801_ioread16(chip, reg) >> shift_right) & mask; in snd_fm801_get_double()
946 int shift_right = (kcontrol->private_value >> 12) & 0x0f; in snd_fm801_put_double() local
958 (mask << shift_left) | (mask << shift_right), in snd_fm801_put_double()
959 (val1 << shift_left ) | (val2 << shift_right)); in snd_fm801_put_double()
Des1938.c1175 #define ES1938_DOUBLE_TLV(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 <<…
1183 #define ES1938_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
1187 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1208 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1938_get_double() local
1219 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es1938_get_double()
1234 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1938_put_double() local
1247 val2 <<= shift_right; in snd_es1938_put_double()
1249 mask2 = mask << shift_right; in snd_es1938_put_double()
Dsonicvibes.c983 #define SONICVIBES_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert… argument
987 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1006 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_sonicvibes_get_double() local
1012 ucontrol->value.integer.value[1] = (snd_sonicvibes_in1(sonic, right_reg) >> shift_right) & mask; in snd_sonicvibes_get_double()
1027 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_sonicvibes_put_double() local
1040 val2 <<= shift_right; in snd_sonicvibes_put_double()
1045 val2 = (oval2 & ~(mask << shift_right)) | val2; in snd_sonicvibes_put_double()
/linux-6.6.21/include/linux/
Dtimex.h151 #define shift_right(x, s) ({ \ macro
/linux-6.6.21/sound/sparc/
Dcs4231.c1407 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4231_get_double() local
1416 (chip->image[right_reg] >> shift_right) & mask; in snd_cs4231_get_double()
1438 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4231_put_double() local
1451 val2 <<= shift_right; in snd_cs4231_put_double()
1456 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_cs4231_put_double()
1474 shift_right, mask, invert) \ argument
1479 ((shift_right) << 19) | ((mask) << 24) | ((invert) << 22) }
/linux-6.6.21/sound/isa/wss/
Dwss_lib.c2056 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_wss_get_double() local
2062 ucontrol->value.integer.value[1] = (chip->image[right_reg] >> shift_right) & mask; in snd_wss_get_double()
2080 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_wss_put_double() local
2093 val2 <<= shift_right; in snd_wss_put_double()
2097 val2 = (chip->image[right_reg] & ~(mask << shift_right)) | val2; in snd_wss_put_double()
2103 mask = (mask << shift_left) | (mask << shift_right); in snd_wss_put_double()
/linux-6.6.21/sound/pci/ymfpci/
Dymfpci_main.c1508 unsigned int shift_left = 0, shift_right = 16, mask = 16383; in snd_ymfpci_get_double() local
1517 ucontrol->value.integer.value[1] = (val >> shift_right) & mask; in snd_ymfpci_get_double()
1525 unsigned int shift_left = 0, shift_right = 16, mask = 16383; in snd_ymfpci_put_double() local
1534 val2 <<= shift_right; in snd_ymfpci_put_double()
1537 val1 = (oval & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ymfpci_put_double()
/linux-6.6.21/Documentation/sound/soc/
Dcodec.rst95 #define SOC_DOUBLE(xname, reg, shift_left, shift_right, mask, invert)
/linux-6.6.21/drivers/iio/
Dindustrialio-core.c672 tmp2 = shift_right((s64)vals[0] * 1000000000LL, vals[1]); in __iio_format_value()