Lines Matching full:sel

264 	u32 sel, value;  in mt6360_charger_get_ichg()  local
266 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL7, &sel); in mt6360_charger_get_ichg()
269 sel = (sel & MT6360_ICHG_MASK) >> MT6360_ICHG_SHFT; in mt6360_charger_get_ichg()
270 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_ICHG], sel, &value); in mt6360_charger_get_ichg()
287 u32 sel, value; in mt6360_charger_get_cv() local
289 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL4, &sel); in mt6360_charger_get_cv()
292 sel = (sel & MT6360_VOREG_MASK) >> MT6360_VOREG_SHFT; in mt6360_charger_get_cv()
293 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_VOREG], sel, &value); in mt6360_charger_get_cv()
310 u32 sel, value; in mt6360_charger_get_aicr() local
312 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL3, &sel); in mt6360_charger_get_aicr()
315 sel = (sel & MT6360_IAICR_MASK) >> MT6360_IAICR_SHFT; in mt6360_charger_get_aicr()
316 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_AICR], sel, &value); in mt6360_charger_get_aicr()
326 u32 sel, value; in mt6360_charger_get_mivr() local
328 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL6, &sel); in mt6360_charger_get_mivr()
331 sel = (sel & MT6360_VMIVR_MASK) >> MT6360_VMIVR_SHFT; in mt6360_charger_get_mivr()
332 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_VMIVR], sel, &value); in mt6360_charger_get_mivr()
342 u32 sel, value; in mt6360_charger_get_iprechg() local
344 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL8, &sel); in mt6360_charger_get_iprechg()
347 sel = (sel & MT6360_IPREC_MASK) >> MT6360_IPREC_SHFT; in mt6360_charger_get_iprechg()
348 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_IPREC], sel, &value); in mt6360_charger_get_iprechg()
358 u32 sel, value; in mt6360_charger_get_ieoc() local
360 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL9, &sel); in mt6360_charger_get_ieoc()
363 sel = (sel & MT6360_IEOC_MASK) >> MT6360_IEOC_SHFT; in mt6360_charger_get_ieoc()
364 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_IEOC], sel, &value); in mt6360_charger_get_ieoc()
384 u32 sel; in mt6360_charger_set_ichg() local
386 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_ICHG], val->intval, &sel); in mt6360_charger_set_ichg()
390 sel << MT6360_ICHG_SHFT); in mt6360_charger_set_ichg()
396 u32 sel; in mt6360_charger_set_cv() local
398 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_VOREG], val->intval, &sel); in mt6360_charger_set_cv()
402 sel << MT6360_VOREG_SHFT); in mt6360_charger_set_cv()
408 u32 sel; in mt6360_charger_set_aicr() local
410 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_AICR], val->intval, &sel); in mt6360_charger_set_aicr()
414 sel << MT6360_IAICR_SHFT); in mt6360_charger_set_aicr()
420 u32 sel; in mt6360_charger_set_mivr() local
422 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_VMIVR], val->intval, &sel); in mt6360_charger_set_mivr()
426 sel << MT6360_VMIVR_SHFT); in mt6360_charger_set_mivr()
432 u32 sel; in mt6360_charger_set_iprechg() local
434 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_IPREC], val->intval, &sel); in mt6360_charger_set_iprechg()
438 sel << MT6360_IPREC_SHFT); in mt6360_charger_set_iprechg()
444 u32 sel; in mt6360_charger_set_ieoc() local
446 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_IEOC], val->intval, &sel); in mt6360_charger_set_ieoc()
450 sel << MT6360_IEOC_SHFT); in mt6360_charger_set_ieoc()
752 u32 sel; in mt6360_chg_init_setting() local
754 sel = mt6360_vinovp_trans_to_sel(mci->vinovp); in mt6360_chg_init_setting()
756 MT6360_VINOVP_MASK, sel << MT6360_VINOVP_SHFT); in mt6360_chg_init_setting()