Home
last modified time | relevance | path

Searched refs:right_shift (Results 1 – 8 of 8) sorted by relevance

/linux/sound/pci/
H A Dak4531_codec.c144 int right_shift = (kcontrol->private_value >> 19) & 0x07; in snd_ak4531_get_double() local
151 right = (ak4531->regs[right_reg] >> right_shift) & mask; in snd_ak4531_get_double()
168 int right_shift = (kcontrol->private_value >> 19) & 0x07; in snd_ak4531_put_double() local
181 right <<= right_shift; in snd_ak4531_put_double()
189 right = (ak4531->regs[right_reg] & ~(mask << right_shift)) | right; in snd_ak4531_put_double()
219 int right_shift = (kcontrol->private_value >> 24) & 0x0f; in snd_ak4531_get_input_sw() local
236 int right_shift = (kcontrol->private_value >> 24) & 0x0f; in snd_ak4531_put_input_sw() local
241 val1 = ak4531->regs[reg1] & ~((1 << left_shift) | (1 << right_shift)); in snd_ak4531_put_input_sw()
242 val2 = ak4531->regs[reg2] & ~((1 << left_shift) | (1 << right_shift)); in snd_ak4531_put_input_sw()
245 val1 |= (ucontrol->value.integer.value[2] & 1) << right_shift; in snd_ak4531_put_input_sw()
[all …]
H A Dcmipci.c1960 unsigned int left_shift, right_shift; member
1986 r->right_shift = (val >> 19) & 0x07; in cmipci_sb_reg_decode()
2045 right <<= reg.right_shift; in snd_cmipci_put_volume()
2058 right |= oright & ~(reg.mask << reg.right_shift); in snd_cmipci_put_volume()
2070 #define CMIPCI_SB_INPUT_SW(xname, left_shift, right_shift) \ argument
2101 ucontrol->value.integer.value[2] = (val1 >> reg.right_shift) & 1; in snd_cmipci_get_input_sw()
2102 ucontrol->value.integer.value[3] = (val2 >> reg.right_shift) & 1; in snd_cmipci_get_input_sw()
2118 val1 = oval1 & ~((1 << reg.left_shift) | (1 << reg.right_shift)); in snd_cmipci_put_input_sw()
2192 val = (oreg >> reg.right_shift) & reg.mask; in snd_cmipci_get_native_mixer()
2220 nreg &= ~(reg.mask << reg.right_shift); in snd_cmipci_put_native_mixer()
[all …]
/linux/include/sound/
H A Dsb.h327 #define SB_MIXVAL_DOUBLE(left_reg, right_reg, left_shift, right_shift, mask) \ argument
328 ((left_reg) | ((right_reg) << 8) | ((left_shift) << 16) | ((right_shift) << 19) | ((mask) << 24))
331 #define SB_MIXVAL_INPUT_SW(reg1, reg2, left_shift, right_shift) \ argument
332 ((reg1) | ((reg2) << 8) | ((left_shift) << 16) | ((right_shift) << 24))
348 #define SB_DOUBLE(xname, left_reg, right_reg, left_shift, right_shift, mask) \ argument
351 .private_value = SB_MIXVAL_DOUBLE(left_reg, right_reg, left_shift, right_shift, mask) }
353 #define SB16_INPUT_SW(xname, reg1, reg2, left_shift, right_shift) \ argument
356 .private_value = SB_MIXVAL_INPUT_SW(reg1, reg2, left_shift, right_shift) }
/linux/sound/isa/sb/
H A Dsb_mixer.c115 int right_shift = (kcontrol->private_value >> 19) & 0x07; in snd_sbmixer_get_double() local
121 right = (snd_sbmixer_read(sb, right_reg) >> right_shift) & mask; in snd_sbmixer_get_double()
135 int right_shift = (kcontrol->private_value >> 19) & 0x07; in snd_sbmixer_put_double() local
141 right = (ucontrol->value.integer.value[1] & mask) << right_shift; in snd_sbmixer_put_double()
153 right = (oright & ~(mask << right_shift)) | right; in snd_sbmixer_put_double()
391 int right_shift = (kcontrol->private_value >> 24) & 0x0f; in snd_sb16mixer_get_input_sw() local
412 int right_shift = (kcontrol->private_value >> 24) & 0x0f; in snd_sb16mixer_put_input_sw() local
419 val1 = oval1 & ~((1 << left_shift) | (1 << right_shift)); in snd_sb16mixer_put_input_sw()
420 val2 = oval2 & ~((1 << left_shift) | (1 << right_shift)); in snd_sb16mixer_put_input_sw()
423 val1 |= (ucontrol->value.integer.value[2] & 1) << right_shift; in snd_sb16mixer_put_input_sw()
[all …]
/linux/sound/parisc/
H A Dharmony.c655 int right_shift = (kc->private_value >> 8) & 0xff; in snd_harmony_mixercontrol_info() local
659 uinfo->count = left_shift == right_shift ? 1 : 2; in snd_harmony_mixercontrol_info()
779 #define HARMONY_VOLUME(xname, left_shift, right_shift, mask, invert) \ argument
783 .private_value = ((left_shift) | ((right_shift) << 8) | \
/linux/drivers/media/rc/
H A Dimon.c1315 u8 right_shift = 1; in imon_mouse_event() local
1326 right_shift = 1; in imon_mouse_event()
1340 right_shift = 2; in imon_mouse_event()
1343 right_shift = 2; in imon_mouse_event()
1365 buf[1] >> right_shift & 0x1); in imon_mouse_event()
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_dbg_hsi.h432 u8 right_shift; member
H A Dqed_debug.c1503 u8 right_shift, in qed_bus_config_dbg_line() argument
1514 right_shift); in qed_bus_config_dbg_line()