Lines Matching full:sel

257 	u32 sel, value;  in mt6360_charger_get_ichg()  local
259 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL7, &sel); in mt6360_charger_get_ichg()
262 sel = (sel & MT6360_ICHG_MASK) >> MT6360_ICHG_SHFT; in mt6360_charger_get_ichg()
263 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_ICHG], sel, &value); in mt6360_charger_get_ichg()
280 u32 sel, value; in mt6360_charger_get_cv() local
282 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL4, &sel); in mt6360_charger_get_cv()
285 sel = (sel & MT6360_VOREG_MASK) >> MT6360_VOREG_SHFT; in mt6360_charger_get_cv()
286 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_VOREG], sel, &value); in mt6360_charger_get_cv()
303 u32 sel, value; in mt6360_charger_get_aicr() local
305 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL3, &sel); in mt6360_charger_get_aicr()
308 sel = (sel & MT6360_IAICR_MASK) >> MT6360_IAICR_SHFT; in mt6360_charger_get_aicr()
309 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_AICR], sel, &value); in mt6360_charger_get_aicr()
319 u32 sel, value; in mt6360_charger_get_mivr() local
321 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL6, &sel); in mt6360_charger_get_mivr()
324 sel = (sel & MT6360_VMIVR_MASK) >> MT6360_VMIVR_SHFT; in mt6360_charger_get_mivr()
325 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_VMIVR], sel, &value); in mt6360_charger_get_mivr()
335 u32 sel, value; in mt6360_charger_get_iprechg() local
337 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL8, &sel); in mt6360_charger_get_iprechg()
340 sel = (sel & MT6360_IPREC_MASK) >> MT6360_IPREC_SHFT; in mt6360_charger_get_iprechg()
341 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_IPREC], sel, &value); in mt6360_charger_get_iprechg()
351 u32 sel, value; in mt6360_charger_get_ieoc() local
353 ret = regmap_read(mci->regmap, MT6360_PMU_CHG_CTRL9, &sel); in mt6360_charger_get_ieoc()
356 sel = (sel & MT6360_IEOC_MASK) >> MT6360_IEOC_SHFT; in mt6360_charger_get_ieoc()
357 ret = linear_range_get_value(&mt6360_chg_range[MT6360_RANGE_IEOC], sel, &value); in mt6360_charger_get_ieoc()
377 u32 sel; in mt6360_charger_set_ichg() local
379 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_ICHG], val->intval, &sel); in mt6360_charger_set_ichg()
383 sel << MT6360_ICHG_SHFT); in mt6360_charger_set_ichg()
389 u32 sel; in mt6360_charger_set_cv() local
391 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_VOREG], val->intval, &sel); in mt6360_charger_set_cv()
395 sel << MT6360_VOREG_SHFT); in mt6360_charger_set_cv()
401 u32 sel; in mt6360_charger_set_aicr() local
403 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_AICR], val->intval, &sel); in mt6360_charger_set_aicr()
407 sel << MT6360_IAICR_SHFT); in mt6360_charger_set_aicr()
413 u32 sel; in mt6360_charger_set_mivr() local
415 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_VMIVR], val->intval, &sel); in mt6360_charger_set_mivr()
419 sel << MT6360_VMIVR_SHFT); in mt6360_charger_set_mivr()
425 u32 sel; in mt6360_charger_set_iprechg() local
427 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_IPREC], val->intval, &sel); in mt6360_charger_set_iprechg()
431 sel << MT6360_IPREC_SHFT); in mt6360_charger_set_iprechg()
437 u32 sel; in mt6360_charger_set_ieoc() local
439 linear_range_get_selector_within(&mt6360_chg_range[MT6360_RANGE_IEOC], val->intval, &sel); in mt6360_charger_set_ieoc()
443 sel << MT6360_IEOC_SHFT); in mt6360_charger_set_ieoc()
747 u32 sel; in mt6360_chg_init_setting() local
749 sel = mt6360_vinovp_trans_to_sel(mci->vinovp); in mt6360_chg_init_setting()
751 MT6360_VINOVP_MASK, sel << MT6360_VINOVP_SHFT); in mt6360_chg_init_setting()