Lines Matching defs:di
1075 #define BQ27XXX_DM_BUF(di, i) { \ argument
1110 struct bq27xxx_device_info *di; in poll_interval_param_set() local
1140 static inline int bq27xxx_read(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_read()
1156 static inline int bq27xxx_write(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_write()
1175 static inline int bq27xxx_read_block(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_read_block()
1194 static inline int bq27xxx_write_block(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_write_block()
1213 static int bq27xxx_battery_seal(struct bq27xxx_device_info *di) in bq27xxx_battery_seal()
1226 static int bq27xxx_battery_unseal(struct bq27xxx_device_info *di) in bq27xxx_battery_unseal()
1262 static int bq27xxx_battery_read_dm_block(struct bq27xxx_device_info *di, in bq27xxx_battery_read_dm_block()
1302 static void bq27xxx_battery_update_dm_block(struct bq27xxx_device_info *di,
1351 static int bq27xxx_battery_cfgupdate_priv(struct bq27xxx_device_info *di, bool active)
1379 static inline int bq27xxx_battery_set_cfgupdate(struct bq27xxx_device_info *di)
1388 static inline int bq27xxx_battery_soft_reset(struct bq27xxx_device_info *di)
1397 static int bq27xxx_battery_write_dm_block(struct bq27xxx_device_info *di,
1461 static void bq27xxx_battery_set_config(struct bq27xxx_device_info *di,
1506 static void bq27xxx_battery_settings(struct bq27xxx_device_info *di)
1562 static int bq27xxx_battery_read_soc(struct bq27xxx_device_info *di)
1581 static int bq27xxx_battery_read_charge(struct bq27xxx_device_info *di, u8 reg)
1604 static inline int bq27xxx_battery_read_nac(struct bq27xxx_device_info *di)
1613 static inline int bq27xxx_battery_read_rc(struct bq27xxx_device_info *di)
1622 static inline int bq27xxx_battery_read_fcc(struct bq27xxx_device_info *di)
1631 static int bq27xxx_battery_read_dcap(struct bq27xxx_device_info *di)
1657 static int bq27xxx_battery_read_energy(struct bq27xxx_device_info *di)
1679 static int bq27xxx_battery_read_temperature(struct bq27xxx_device_info *di)
1699 static int bq27xxx_battery_read_cyct(struct bq27xxx_device_info *di)
1714 static int bq27xxx_battery_read_time(struct bq27xxx_device_info *di, u8 reg)
1734 static bool bq27xxx_battery_overtemp(struct bq27xxx_device_info *di, u16 flags)
1747 static bool bq27xxx_battery_undertemp(struct bq27xxx_device_info *di, u16 flags)
1758 static bool bq27xxx_battery_dead(struct bq27xxx_device_info *di, u16 flags)
1771 static bool bq27xxx_battery_capacity_inaccurate(struct bq27xxx_device_info *di,
1780 static int bq27xxx_battery_read_health(struct bq27xxx_device_info *di)
1795 static bool bq27xxx_battery_is_full(struct bq27xxx_device_info *di, int flags)
1811 struct bq27xxx_device_info *di,
1868 static void bq27xxx_battery_update_unlocked(struct bq27xxx_device_info *di)
1923 void bq27xxx_battery_update(struct bq27xxx_device_info *di)
1933 struct bq27xxx_device_info *di = local
1944 static int bq27xxx_battery_pwr_avg(struct bq27xxx_device_info *di,
1966 static int bq27xxx_battery_capacity_level(struct bq27xxx_device_info *di,
2007 static int bq27xxx_battery_voltage(struct bq27xxx_device_info *di,
2039 struct bq27xxx_device_info *di = power_supply_get_drvdata(psy); local
2131 struct bq27xxx_device_info *di = power_supply_get_drvdata(psy); local
2137 int bq27xxx_battery_setup(struct bq27xxx_device_info *di)
2180 void bq27xxx_battery_teardown(struct bq27xxx_device_info *di)