Lines Matching refs:status
572 unsigned int status;
580 ret = regmap_read(bq2515x->regmap, BQ2515X_STAT0, &status);
589 if (((status & BQ2515X_STAT0_MASK) == true) &
590 ((status & BQ2515X_CHRG_DONE) == false)) {
593 } else if (status & BQ2515X_CHRG_DONE) {
601 ret = regmap_read(bq2515x->regmap, BQ2515X_STAT1, &status);
608 if ((status & BQ2515X_STAT1_MASK) == false)
616 * If there are no faults and charging is enabled, then status is
617 * charging. Otherwise, if charging is complete, then status is full.
618 * Otherwise, if a fault exists or charging is disabled, then status is