Lines Matching refs:bq2415x_device
158 struct bq2415x_device {
187 static int bq2415x_i2c_read(struct bq2415x_device *bq, u8 reg)
217 static int bq2415x_i2c_read_mask(struct bq2415x_device *bq, u8 reg,
232 static int bq2415x_i2c_read_bit(struct bq2415x_device *bq, u8 reg, u8 bit)
242 static int bq2415x_i2c_write(struct bq2415x_device *bq, u8 reg, u8 val)
271 static int bq2415x_i2c_write_mask(struct bq2415x_device *bq, u8 reg, u8 val,
290 static int bq2415x_i2c_write_bit(struct bq2415x_device *bq, u8 reg,
301 static int bq2415x_exec_command(struct bq2415x_device *bq,
405 static enum bq2415x_chip bq2415x_detect_chip(struct bq2415x_device *bq)
455 static int bq2415x_detect_revision(struct bq2415x_device *bq)
495 static int bq2415x_get_vender_code(struct bq2415x_device *bq)
510 static void bq2415x_reset_chip(struct bq2415x_device *bq)
522 static int bq2415x_set_current_limit(struct bq2415x_device *bq, int mA)
540 static int bq2415x_get_current_limit(struct bq2415x_device *bq)
560 static int bq2415x_set_weak_battery_voltage(struct bq2415x_device *bq, int mV)
579 static int bq2415x_get_weak_battery_voltage(struct bq2415x_device *bq)
591 static int bq2415x_set_battery_regulation_voltage(struct bq2415x_device *bq,
610 static int bq2415x_get_battery_regulation_voltage(struct bq2415x_device *bq)
621 static int bq2415x_set_charge_current(struct bq2415x_device *bq, int mA)
640 static int bq2415x_get_charge_current(struct bq2415x_device *bq)
655 static int bq2415x_set_termination_current(struct bq2415x_device *bq, int mA)
674 static int bq2415x_get_termination_current(struct bq2415x_device *bq)
699 static int bq2415x_set_defaults(struct bq2415x_device *bq)
722 static int bq2415x_set_mode(struct bq2415x_device *bq, enum bq2415x_mode mode)
786 static bool bq2415x_update_reported_mode(struct bq2415x_device *bq, int mA)
809 struct bq2415x_device *bq =
810 container_of(nb, struct bq2415x_device, nb);
850 static void bq2415x_set_autotimer(struct bq2415x_device *bq, int state)
873 static void bq2415x_timer_error(struct bq2415x_device *bq, const char *msg)
887 struct bq2415x_device *bq = container_of(work, struct bq2415x_device,
1000 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1026 static void bq2415x_power_supply_exit(struct bq2415x_device *bq)
1044 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1077 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1098 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1122 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1174 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1211 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1239 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1257 static ssize_t bq2415x_sysfs_print_reg(struct bq2415x_device *bq,
1274 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1292 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1323 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1351 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1386 struct bq2415x_device *bq = power_supply_get_drvdata(psy);
1473 static int bq2415x_power_supply_init(struct bq2415x_device *bq)
1529 struct bq2415x_device *bq;
1701 struct bq2415x_device *bq = i2c_get_clientdata(client);