Home
last modified time | relevance | path

Searched refs:regmask (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/drivers/iio/adc/
Dtwl4030-madc.c681 int regmask; in twl4030_madc_set_current_generator() local
692 regmask = chan ? TWL4030_BCI_ITHEN : TWL4030_BCI_TYPEN; in twl4030_madc_set_current_generator()
694 regval |= regmask; in twl4030_madc_set_current_generator()
696 regval &= ~regmask; in twl4030_madc_set_current_generator()
/linux-6.1.9/sound/soc/codecs/
Dmax98095.c1496 int regmask, regsave; in max98095_put_eq_enum() local
1528 regmask = (channel == 0) ? M98095_EQ1EN : M98095_EQ2EN; in max98095_put_eq_enum()
1532 snd_soc_component_update_bits(component, M98095_088_CFG_LEVEL, regmask, 0); in max98095_put_eq_enum()
1545 snd_soc_component_update_bits(component, M98095_088_CFG_LEVEL, regmask, regsave); in max98095_put_eq_enum()
1647 int regmask, regsave; in max98095_put_bq_enum() local
1679 regmask = (channel == 0) ? M98095_BQ1EN : M98095_BQ2EN; in max98095_put_bq_enum()
1683 snd_soc_component_update_bits(component, M98095_088_CFG_LEVEL, regmask, 0); in max98095_put_bq_enum()
1693 snd_soc_component_update_bits(component, M98095_088_CFG_LEVEL, regmask, regsave); in max98095_put_bq_enum()
/linux-6.1.9/sound/pci/rme9652/
Dhdspm.c1097 static int hdspm_set_toggle_setting(struct hdspm *hdspm, u32 regmask, int out);
3197 static int hdspm_toggle_setting(struct hdspm *hdspm, u32 regmask) in hdspm_toggle_setting() argument
3206 return (reg & regmask) ? 1 : 0; in hdspm_toggle_setting()
3209 static int hdspm_set_toggle_setting(struct hdspm *hdspm, u32 regmask, int out) in hdspm_set_toggle_setting() argument
3223 *reg |= regmask; in hdspm_set_toggle_setting()
3225 *reg &= ~regmask; in hdspm_set_toggle_setting()
3238 u32 regmask = kcontrol->private_value; in snd_hdspm_get_toggle_setting() local
3241 ucontrol->value.integer.value[0] = hdspm_toggle_setting(hdspm, regmask); in snd_hdspm_get_toggle_setting()
3250 u32 regmask = kcontrol->private_value; in snd_hdspm_put_toggle_setting() local
3258 change = (int) val != hdspm_toggle_setting(hdspm, regmask); in snd_hdspm_put_toggle_setting()
[all …]
Dhdsp.c1697 static int hdsp_toggle_setting(struct hdsp *hdsp, u32 regmask) in hdsp_toggle_setting() argument
1699 return (hdsp->control_register & regmask) ? 1 : 0; in hdsp_toggle_setting()
1702 static int hdsp_set_toggle_setting(struct hdsp *hdsp, u32 regmask, int out) in hdsp_set_toggle_setting() argument
1705 hdsp->control_register |= regmask; in hdsp_set_toggle_setting()
1707 hdsp->control_register &= ~regmask; in hdsp_set_toggle_setting()
1719 u32 regmask = kcontrol->private_value; in snd_hdsp_get_toggle_setting() local
1722 ucontrol->value.integer.value[0] = hdsp_toggle_setting(hdsp, regmask); in snd_hdsp_get_toggle_setting()
1731 u32 regmask = kcontrol->private_value; in snd_hdsp_put_toggle_setting() local
1739 change = (int) val != hdsp_toggle_setting(hdsp, regmask); in snd_hdsp_put_toggle_setting()
1741 hdsp_set_toggle_setting(hdsp, regmask, val); in snd_hdsp_put_toggle_setting()
/linux-6.1.9/drivers/media/usb/dvb-usb/
Daf9005.c37 u8 regmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff }; variable
206 *value = (temp >> pos) & regmask[len - 1]; in af9005_read_register_bits()
223 mask = regmask[len - 1] << pos; in af9005_write_register_bits()
265 done = temp & (regmask[i2c_m_status_wdat_done_len - 1] in af9005_write_tuner_registers()
269 fail = temp & (regmask[i2c_m_status_wdat_fail_len - 1] in af9005_write_tuner_registers()
Daf9005-fe.c829 if (temp & (regmask[reg_ofdm_rst_len - 1] << reg_ofdm_rst_pos)) in af9005_fe_init()
863 temp = regmask[reg_ofdm_rst_len - 1] << reg_ofdm_rst_pos; in af9005_fe_init()
Daf9005.h3475 extern u8 regmask[8];
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dselftest_workarounds.c967 struct regmask { struct
974 const struct regmask *tbl, in find_reg() argument
992 static const struct regmask pardon[] = { in pardon_reg()
1015 static const struct regmask wo[] = { in writeonly_reg()
/linux-6.1.9/sound/soc/
Dsoc-ops.c946 unsigned int regmask = (mask >> (regwshift*(regcount-i-1))) & regwmask; in snd_soc_put_xr_sx() local
948 regmask, regval); in snd_soc_put_xr_sx()