Lines Matching refs:ss_reg

241 	u8				ss_reg;  member
1508 u8 ss_reg, chrg_fault; in bq24190_battery_get_status() local
1518 ret = bq24190_read(bdi, BQ24190_REG_SS, &ss_reg); in bq24190_battery_get_status()
1529 if (!(ss_reg & BQ24190_REG_SS_PG_STAT_MASK) || chrg_fault) { in bq24190_battery_get_status()
1532 ss_reg &= BQ24190_REG_SS_CHRG_STAT_MASK; in bq24190_battery_get_status()
1533 ss_reg >>= BQ24190_REG_SS_CHRG_STAT_SHIFT; in bq24190_battery_get_status()
1535 switch (ss_reg) { in bq24190_battery_get_status()
1742 static int bq24190_configure_usb_otg(struct bq24190_dev_info *bdi, u8 ss_reg) in bq24190_configure_usb_otg() argument
1747 otg_enabled = !!(ss_reg & BQ24190_REG_SS_VBUS_STAT_MASK); in bq24190_configure_usb_otg()
1761 u8 ss_reg = 0, f_reg = 0; in bq24190_check_status() local
1766 ret = bq24190_read(bdi, BQ24190_REG_SS, &ss_reg); in bq24190_check_status()
1783 !(ss_reg & BQ24190_REG_SS_PG_STAT_MASK)) in bq24190_check_status()
1803 if (ss_reg != bdi->ss_reg) { in bq24190_check_status()
1808 if ((bdi->ss_reg & BQ24190_REG_SS_PG_STAT_MASK) && in bq24190_check_status()
1809 !(ss_reg & BQ24190_REG_SS_PG_STAT_MASK)) { in bq24190_check_status()
1819 if ((bdi->ss_reg & battery_mask_ss) != (ss_reg & battery_mask_ss)) in bq24190_check_status()
1821 if ((bdi->ss_reg & ~battery_mask_ss) != (ss_reg & ~battery_mask_ss)) in bq24190_check_status()
1823 bdi->ss_reg = ss_reg; in bq24190_check_status()
1828 bq24190_configure_usb_otg(bdi, ss_reg); in bq24190_check_status()
1833 dev_dbg(bdi->dev, "ss_reg: 0x%02x, f_reg: 0x%02x\n", ss_reg, f_reg); in bq24190_check_status()
1919 return bq24190_read(bdi, BQ24190_REG_SS, &bdi->ss_reg); in bq24190_hw_init()
2059 bdi->ss_reg = BQ24190_REG_SS_VBUS_STAT_MASK; /* impossible state */ in bq24190_probe()
2129 ret = bq24190_configure_usb_otg(bdi, bdi->ss_reg); in bq24190_probe()
2251 bdi->ss_reg = BQ24190_REG_SS_VBUS_STAT_MASK; /* impossible state */ in bq24190_pm_resume()
2259 bq24190_read(bdi, BQ24190_REG_SS, &bdi->ss_reg); in bq24190_pm_resume()