Home
last modified time | relevance | path

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

/linux-6.3-rc2/sound/isa/cs423x/
A Dcs4236_lib.c496 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
545 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double() local
558 val2 <<= shift_right; in snd_cs4236_put_double()
576 shift_right, mask, invert) \ argument
583 shift_right, mask, invert, xtlv) \ argument
589 (shift_right << 19) | (mask << 24) | (invert << 22), \
599 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_get_double1() local
621 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_cs4236_put_double1() local
[all …]
/linux-6.3-rc2/include/sound/
A 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), \
A Dsoc.h34 .rshift = shift_right, .max = xmax, \
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, \
137 .private_value = SOC_DOUBLE_VALUE(reg, shift_left, shift_right, \
149 .shift = shift_left, .rshift = shift_right, \
242 #define SOC_DOUBLE_EXT(xname, reg, shift_left, shift_right, max, invert,\ argument
248 SOC_DOUBLE_VALUE(reg, shift_left, shift_right, max, invert, 0) }
[all …]
/linux-6.3-rc2/sound/isa/
A 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()
A 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.3-rc2/sound/pci/ac97/
A 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.3-rc2/tools/testing/selftests/timers/
A Draw_skew.c33 #define shift_right(x, s) ({ \ macro
134 ppm = shift_right(ppm, 16); in main()
/linux-6.3-rc2/sound/isa/ad1816a/
A 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.3-rc2/kernel/time/
A 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.3-rc2/sound/isa/es1688/
A 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.3-rc2/sound/parisc/
A 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.3-rc2/sound/spi/
A 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.3-rc2/sound/pci/
A 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()
A Des1938.c1195 #define ES1938_DOUBLE_TLV(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert… argument
1201 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1203 #define ES1938_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
1207 ….private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask <<…
1228 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1938_get_double() local
1239 ucontrol->value.integer.value[1] = (right >> shift_right) & mask; in snd_es1938_get_double()
1254 int shift_right = (kcontrol->private_value >> 19) & 0x07; in snd_es1938_put_double() local
1267 val2 <<= shift_right; in snd_es1938_put_double()
1269 mask2 = mask << shift_right; in snd_es1938_put_double()
A 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.3-rc2/include/linux/
A Dtimex.h151 #define shift_right(x, s) ({ \ macro
/linux-6.3-rc2/sound/sparc/
A 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.3-rc2/sound/isa/wss/
A 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.3-rc2/sound/pci/ymfpci/
A Dymfpci_main.c1513 unsigned int shift_left = 0, shift_right = 16, mask = 16383; in snd_ymfpci_get_double() local
1522 ucontrol->value.integer.value[1] = (val >> shift_right) & mask; in snd_ymfpci_get_double()
1530 unsigned int shift_left = 0, shift_right = 16, mask = 16383; in snd_ymfpci_put_double() local
1539 val2 <<= shift_right; in snd_ymfpci_put_double()
1542 val1 = (oval & ~((mask << shift_left) | (mask << shift_right))) | val1 | val2; in snd_ymfpci_put_double()
/linux-6.3-rc2/Documentation/sound/soc/
A Dcodec.rst95 #define SOC_DOUBLE(xname, reg, shift_left, shift_right, mask, invert)
/linux-6.3-rc2/drivers/iio/
A Dindustrialio-core.c659 tmp2 = shift_right((s64)vals[0] * 1000000000LL, vals[1]); in __iio_format_value()

Completed in 72 milliseconds