Home
last modified time | relevance | path

Searched refs:bq27xxx_device_info (Results 1 – 4 of 4) sorted by relevance

/linux/include/linux/power/
H A Dbq27xxx_battery.h41 struct bq27xxx_device_info;
43 int (*read)(struct bq27xxx_device_info *di, u8 reg, bool single);
44 int (*write)(struct bq27xxx_device_info *di, u8 reg, int value, bool single);
45 int (*read_bulk)(struct bq27xxx_device_info *di, u8 reg, u8 *data, int len);
46 int (*write_bulk)(struct bq27xxx_device_info *di, u8 reg, u8 *data, int len);
54 struct bq27xxx_device_info { struct
74 void bq27xxx_battery_update(struct bq27xxx_device_info *di); argument
75 int bq27xxx_battery_setup(struct bq27xxx_device_info *di);
76 void bq27xxx_battery_teardown(struct bq27xxx_device_info *di);
/linux/drivers/power/supply/
H A Dbq27xxx_battery.c1110 struct bq27xxx_device_info *di; in poll_interval_param_set()
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)
[all …]
H A Dbq27xxx_battery_i2c.c20 struct bq27xxx_device_info *di = data; in bq27xxx_battery_irq_handler_thread()
27 static int bq27xxx_battery_i2c_read(struct bq27xxx_device_info *di, u8 reg, in bq27xxx_battery_i2c_read()
62 static int bq27xxx_battery_i2c_write(struct bq27xxx_device_info *di, u8 reg, in bq27xxx_battery_i2c_write()
94 static int bq27xxx_battery_i2c_bulk_read(struct bq27xxx_device_info *di, u8 reg, in bq27xxx_battery_i2c_bulk_read()
111 static int bq27xxx_battery_i2c_bulk_write(struct bq27xxx_device_info *di, in bq27xxx_battery_i2c_bulk_write()
148 struct bq27xxx_device_info *di; in bq27xxx_battery_i2c_probe()
208 struct bq27xxx_device_info *di = i2c_get_clientdata(client); in bq27xxx_battery_i2c_remove()
H A Dbq27xxx_battery_hdq.c40 static int bq27xxx_battery_hdq_read(struct bq27xxx_device_info *di, u8 reg, in bq27xxx_battery_hdq_read()
77 struct bq27xxx_device_info *di; in bq27xxx_battery_hdq_add_slave()
95 struct bq27xxx_device_info *di = dev_get_drvdata(&sl->dev); in bq27xxx_battery_hdq_remove_slave()