Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/iio/adc/
Daxp20x_adc.c557 unsigned int regmask, regval; in axp20x_write_raw() local
571 regmask = AXP20X_GPIO10_IN_RANGE_GPIO0; in axp20x_write_raw()
576 regmask = AXP20X_GPIO10_IN_RANGE_GPIO1; in axp20x_write_raw()
584 return regmap_update_bits(info->regmap, AXP20X_GPIO10_IN_RANGE, regmask, regval); in axp20x_write_raw()
Dtwl4030-madc.c682 int regmask; in twl4030_madc_set_current_generator() local
693 regmask = chan ? TWL4030_BCI_ITHEN : TWL4030_BCI_TYPEN; in twl4030_madc_set_current_generator()
695 regval |= regmask; in twl4030_madc_set_current_generator()
697 regval &= ~regmask; in twl4030_madc_set_current_generator()
/linux-6.6.21/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.6.21/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.6.21/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.6.21/drivers/gpu/drm/i915/gt/
Dselftest_workarounds.c951 struct regmask { struct
958 const struct regmask *tbl, in find_reg() argument
976 static const struct regmask pardon[] = { in pardon_reg()
999 static const struct regmask wo[] = { in writeonly_reg()
/linux-6.6.21/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()