Lines Matching full:sel
267 u32 sel, value; in mt6360_charger_get_ichg() local
269 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL7, &sel); in mt6360_charger_get_ichg()
272 sel = (sel & MT6360_ICHG_MASK) >> MT6360_ICHG_SHFT; in mt6360_charger_get_ichg()
273 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_ICHG], sel, &value); in mt6360_charger_get_ichg()
290 u32 sel, value; in mt6360_charger_get_cv() local
292 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL4, &sel); in mt6360_charger_get_cv()
295 sel = (sel & MT6360_VOREG_MASK) >> MT6360_VOREG_SHFT; in mt6360_charger_get_cv()
296 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_VOREG], sel, &value); in mt6360_charger_get_cv()
313 u32 sel, value; in mt6360_charger_get_aicr() local
315 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL3, &sel); in mt6360_charger_get_aicr()
318 sel = (sel & MT6360_IAICR_MASK) >> MT6360_IAICR_SHFT; in mt6360_charger_get_aicr()
319 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_AICR], sel, &value); in mt6360_charger_get_aicr()
329 u32 sel, value; in mt6360_charger_get_mivr() local
331 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL6, &sel); in mt6360_charger_get_mivr()
334 sel = (sel & MT6360_VMIVR_MASK) >> MT6360_VMIVR_SHFT; in mt6360_charger_get_mivr()
335 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_VMIVR], sel, &value); in mt6360_charger_get_mivr()
345 u32 sel, value; in mt6360_charger_get_iprechg() local
347 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL8, &sel); in mt6360_charger_get_iprechg()
350 sel = (sel & MT6360_IPREC_MASK) >> MT6360_IPREC_SHFT; in mt6360_charger_get_iprechg()
351 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_IPREC], sel, &value); in mt6360_charger_get_iprechg()
361 u32 sel, value; in mt6360_charger_get_ieoc() local
363 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL9, &sel); in mt6360_charger_get_ieoc()
366 sel = (sel & MT6360_IEOC_MASK) >> MT6360_IEOC_SHFT; in mt6360_charger_get_ieoc()
367 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_IEOC], sel, &value); in mt6360_charger_get_ieoc()
387 u32 sel; in mt6360_charger_set_ichg() local
389 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_ICHG], val->intval, &sel); in mt6360_charger_set_ichg()
393 sel << MT6360_ICHG_SHFT); in mt6360_charger_set_ichg()
399 u32 sel; in mt6360_charger_set_cv() local
401 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_VOREG], val->intval, &sel); in mt6360_charger_set_cv()
405 sel << MT6360_VOREG_SHFT); in mt6360_charger_set_cv()
411 u32 sel; in mt6360_charger_set_aicr() local
413 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_AICR], val->intval, &sel); in mt6360_charger_set_aicr()
417 sel << MT6360_IAICR_SHFT); in mt6360_charger_set_aicr()
423 u32 sel; in mt6360_charger_set_mivr() local
425 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_VMIVR], val->intval, &sel); in mt6360_charger_set_mivr()
429 sel << MT6360_VMIVR_SHFT); in mt6360_charger_set_mivr()
435 u32 sel; in mt6360_charger_set_iprechg() local
437 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_IPREC], val->intval, &sel); in mt6360_charger_set_iprechg()
441 sel << MT6360_IPREC_SHFT); in mt6360_charger_set_iprechg()
447 u32 sel; in mt6360_charger_set_ieoc() local
449 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_IEOC], val->intval, &sel); in mt6360_charger_set_ieoc()
453 sel << MT6360_IEOC_SHFT); in mt6360_charger_set_ieoc()
755 u32 sel; in mt6360_chg_init_setting() local
757 sel = mt6360_vinovp_trans_to_sel(mci->vinovp); in mt6360_chg_init_setting()
759 MT6360_VINOVP_MASK, sel << MT6360_VINOVP_SHFT); in mt6360_chg_init_setting()