Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/iio/adc/
Dtwl4030-madc.c688 int regmask; in twl4030_madc_set_current_generator() local
699 regmask = chan ? TWL4030_BCI_ITHEN : TWL4030_BCI_TYPEN; in twl4030_madc_set_current_generator()
701 regval |= regmask; in twl4030_madc_set_current_generator()
703 regval &= ~regmask; in twl4030_madc_set_current_generator()
/Linux-v5.4/sound/soc/codecs/
Dmax98095.c1502 int regmask, regsave; in max98095_put_eq_enum() local
1534 regmask = (channel == 0) ? M98095_EQ1EN : M98095_EQ2EN; in max98095_put_eq_enum()
1538 snd_soc_component_update_bits(component, M98095_088_CFG_LEVEL, regmask, 0); in max98095_put_eq_enum()
1551 snd_soc_component_update_bits(component, M98095_088_CFG_LEVEL, regmask, regsave); in max98095_put_eq_enum()
1653 int regmask, regsave; in max98095_put_bq_enum() local
1685 regmask = (channel == 0) ? M98095_BQ1EN : M98095_BQ2EN; in max98095_put_bq_enum()
1689 snd_soc_component_update_bits(component, M98095_088_CFG_LEVEL, regmask, 0); in max98095_put_bq_enum()
1699 snd_soc_component_update_bits(component, M98095_088_CFG_LEVEL, regmask, regsave); in max98095_put_bq_enum()
/Linux-v5.4/sound/pci/rme9652/
Dhdspm.c1094 static int hdspm_set_toggle_setting(struct hdspm *hdspm, u32 regmask, int out);
3198 static int hdspm_toggle_setting(struct hdspm *hdspm, u32 regmask) in hdspm_toggle_setting() argument
3207 return (reg & regmask) ? 1 : 0; in hdspm_toggle_setting()
3210 static int hdspm_set_toggle_setting(struct hdspm *hdspm, u32 regmask, int out) in hdspm_set_toggle_setting() argument
3224 *reg |= regmask; in hdspm_set_toggle_setting()
3226 *reg &= ~regmask; in hdspm_set_toggle_setting()
3239 u32 regmask = kcontrol->private_value; in snd_hdspm_get_toggle_setting() local
3242 ucontrol->value.integer.value[0] = hdspm_toggle_setting(hdspm, regmask); in snd_hdspm_get_toggle_setting()
3251 u32 regmask = kcontrol->private_value; in snd_hdspm_put_toggle_setting() local
3259 change = (int) val != hdspm_toggle_setting(hdspm, regmask); in snd_hdspm_put_toggle_setting()
[all …]
Dhdsp.c1705 static int hdsp_toggle_setting(struct hdsp *hdsp, u32 regmask) in hdsp_toggle_setting() argument
1707 return (hdsp->control_register & regmask) ? 1 : 0; in hdsp_toggle_setting()
1710 static int hdsp_set_toggle_setting(struct hdsp *hdsp, u32 regmask, int out) in hdsp_set_toggle_setting() argument
1713 hdsp->control_register |= regmask; in hdsp_set_toggle_setting()
1715 hdsp->control_register &= ~regmask; in hdsp_set_toggle_setting()
1727 u32 regmask = kcontrol->private_value; in snd_hdsp_get_toggle_setting() local
1730 ucontrol->value.integer.value[0] = hdsp_toggle_setting(hdsp, regmask); in snd_hdsp_get_toggle_setting()
1739 u32 regmask = kcontrol->private_value; in snd_hdsp_put_toggle_setting() local
1747 change = (int) val != hdsp_toggle_setting(hdsp, regmask); in snd_hdsp_put_toggle_setting()
1749 hdsp_set_toggle_setting(hdsp, regmask, val); in snd_hdsp_put_toggle_setting()
/Linux-v5.4/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-v5.4/drivers/gpu/drm/i915/gt/
Dselftest_workarounds.c868 struct regmask { struct
875 const struct regmask *tbl, in find_reg() argument
893 static const struct regmask pardon[] = { in pardon_reg()
916 static const struct regmask wo[] = { in writeonly_reg()
/Linux-v5.4/sound/soc/
Dsoc-ops.c889 unsigned int i, regval, regmask; in snd_soc_put_xr_sx() local
897 regmask = (mask >> (regwshift*(regcount-i-1))) & regwmask; in snd_soc_put_xr_sx()
899 regmask, regval); in snd_soc_put_xr_sx()