Lines Matching refs:pchrgctrl
364 unsigned int icharge_range = 0, pchrgctrl; in bq2515x_get_battery_current_now() local
391 &pchrgctrl); in bq2515x_get_battery_current_now()
395 reg_code = pchrgctrl & BQ2515X_PRECHARGE_MASK; in bq2515x_get_battery_current_now()
405 ret = regmap_read(bq2515x->regmap, BQ2515X_PCHRGCTRL, &pchrgctrl); in bq2515x_get_battery_current_now()
409 icharge_range = pchrgctrl & BQ2515X_ICHARGE_RANGE; in bq2515x_get_battery_current_now()
452 unsigned int pchrgctrl; in bq2515x_get_const_charge_current() local
459 ret = regmap_read(bq2515x->regmap, BQ2515X_PCHRGCTRL, &pchrgctrl); in bq2515x_get_const_charge_current()
463 icharge_range = pchrgctrl & BQ2515X_ICHARGE_RANGE; in bq2515x_get_const_charge_current()
506 unsigned int pchrgctrl; in bq2515x_get_precharge_current() local
511 ret = regmap_read(bq2515x->regmap, BQ2515X_PCHRGCTRL, &pchrgctrl); in bq2515x_get_precharge_current()
515 icharge_range = pchrgctrl & BQ2515X_ICHARGE_RANGE; in bq2515x_get_precharge_current()
520 precharge_reg_code = pchrgctrl & BQ2515X_PRECHARGE_MASK; in bq2515x_get_precharge_current()
529 unsigned int pchrgctrl; in bq2515x_set_precharge_current() local
535 ret = regmap_read(bq2515x->regmap, BQ2515X_PCHRGCTRL, &pchrgctrl); in bq2515x_set_precharge_current()
539 icharge_range = pchrgctrl & BQ2515X_ICHARGE_RANGE; in bq2515x_set_precharge_current()