Lines Matching refs:regmask
1097 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()
3259 hdspm_set_toggle_setting(hdspm, regmask, val); in snd_hdspm_put_toggle_setting()
3473 static int hdspm_tristate(struct hdspm *hdspm, u32 regmask) in hdspm_tristate() argument
3475 u32 reg = hdspm->settings_register & (regmask * 3); in hdspm_tristate()
3476 return reg / regmask; in hdspm_tristate()
3479 static int hdspm_set_tristate(struct hdspm *hdspm, int mode, u32 regmask) in hdspm_set_tristate() argument
3481 hdspm->settings_register &= ~(regmask * 3); in hdspm_set_tristate()
3482 hdspm->settings_register |= (regmask * mode); in hdspm_set_tristate()
3491 u32 regmask = kcontrol->private_value; in snd_hdspm_info_tristate() local
3496 switch (regmask) { in snd_hdspm_info_tristate()
3511 u32 regmask = kcontrol->private_value; in snd_hdspm_get_tristate() local
3514 ucontrol->value.enumerated.item[0] = hdspm_tristate(hdspm, regmask); in snd_hdspm_get_tristate()
3523 u32 regmask = kcontrol->private_value; in snd_hdspm_put_tristate() local
3536 change = val != hdspm_tristate(hdspm, regmask); in snd_hdspm_put_tristate()
3537 hdspm_set_tristate(hdspm, val, regmask); in snd_hdspm_put_tristate()