Lines Matching refs:pchrgctrl
369 unsigned int icharge_range = 0, pchrgctrl; in bq2515x_get_battery_current_now() local
396 &pchrgctrl); in bq2515x_get_battery_current_now()
400 reg_code = pchrgctrl & BQ2515X_PRECHARGE_MASK; in bq2515x_get_battery_current_now()
410 ret = regmap_read(bq2515x->regmap, BQ2515X_PCHRGCTRL, &pchrgctrl); in bq2515x_get_battery_current_now()
414 icharge_range = pchrgctrl & BQ2515X_ICHARGE_RANGE; in bq2515x_get_battery_current_now()
457 unsigned int pchrgctrl; in bq2515x_get_const_charge_current() local
464 ret = regmap_read(bq2515x->regmap, BQ2515X_PCHRGCTRL, &pchrgctrl); in bq2515x_get_const_charge_current()
468 icharge_range = pchrgctrl & BQ2515X_ICHARGE_RANGE; in bq2515x_get_const_charge_current()
511 unsigned int pchrgctrl; in bq2515x_get_precharge_current() local
516 ret = regmap_read(bq2515x->regmap, BQ2515X_PCHRGCTRL, &pchrgctrl); in bq2515x_get_precharge_current()
520 icharge_range = pchrgctrl & BQ2515X_ICHARGE_RANGE; in bq2515x_get_precharge_current()
525 precharge_reg_code = pchrgctrl & BQ2515X_PRECHARGE_MASK; in bq2515x_get_precharge_current()
534 unsigned int pchrgctrl; in bq2515x_set_precharge_current() local
540 ret = regmap_read(bq2515x->regmap, BQ2515X_PCHRGCTRL, &pchrgctrl); in bq2515x_set_precharge_current()
544 icharge_range = pchrgctrl & BQ2515X_ICHARGE_RANGE; in bq2515x_set_precharge_current()