Lines Matching defs:bq

187 static int bq2415x_i2c_read(struct bq2415x_device *bq, u8 reg)  in bq2415x_i2c_read()
217 static int bq2415x_i2c_read_mask(struct bq2415x_device *bq, u8 reg, in bq2415x_i2c_read_mask()
232 static int bq2415x_i2c_read_bit(struct bq2415x_device *bq, u8 reg, u8 bit) in bq2415x_i2c_read_bit()
242 static int bq2415x_i2c_write(struct bq2415x_device *bq, u8 reg, u8 val) in bq2415x_i2c_write()
271 static int bq2415x_i2c_write_mask(struct bq2415x_device *bq, u8 reg, u8 val, in bq2415x_i2c_write_mask()
290 static int bq2415x_i2c_write_bit(struct bq2415x_device *bq, u8 reg, in bq2415x_i2c_write_bit()
301 static int bq2415x_exec_command(struct bq2415x_device *bq, in bq2415x_exec_command()
405 static enum bq2415x_chip bq2415x_detect_chip(struct bq2415x_device *bq) in bq2415x_detect_chip()
455 static int bq2415x_detect_revision(struct bq2415x_device *bq) in bq2415x_detect_revision()
495 static int bq2415x_get_vender_code(struct bq2415x_device *bq) in bq2415x_get_vender_code()
510 static void bq2415x_reset_chip(struct bq2415x_device *bq) in bq2415x_reset_chip()
522 static int bq2415x_set_current_limit(struct bq2415x_device *bq, int mA) in bq2415x_set_current_limit()
540 static int bq2415x_get_current_limit(struct bq2415x_device *bq) in bq2415x_get_current_limit()
560 static int bq2415x_set_weak_battery_voltage(struct bq2415x_device *bq, int mV) in bq2415x_set_weak_battery_voltage()
579 static int bq2415x_get_weak_battery_voltage(struct bq2415x_device *bq) in bq2415x_get_weak_battery_voltage()
591 static int bq2415x_set_battery_regulation_voltage(struct bq2415x_device *bq, in bq2415x_set_battery_regulation_voltage()
610 static int bq2415x_get_battery_regulation_voltage(struct bq2415x_device *bq) in bq2415x_get_battery_regulation_voltage()
621 static int bq2415x_set_charge_current(struct bq2415x_device *bq, int mA) in bq2415x_set_charge_current()
640 static int bq2415x_get_charge_current(struct bq2415x_device *bq) in bq2415x_get_charge_current()
655 static int bq2415x_set_termination_current(struct bq2415x_device *bq, int mA) in bq2415x_set_termination_current()
674 static int bq2415x_get_termination_current(struct bq2415x_device *bq) in bq2415x_get_termination_current()
689 #define bq2415x_set_default_value(bq, prop) \ argument
699 static int bq2415x_set_defaults(struct bq2415x_device *bq) in bq2415x_set_defaults()
722 static int bq2415x_set_mode(struct bq2415x_device *bq, enum bq2415x_mode mode) in bq2415x_set_mode()
786 static bool bq2415x_update_reported_mode(struct bq2415x_device *bq, int mA) in bq2415x_update_reported_mode()
809 struct bq2415x_device *bq = in bq2415x_notifier_call() local
850 static void bq2415x_set_autotimer(struct bq2415x_device *bq, int state) in bq2415x_set_autotimer()
873 static void bq2415x_timer_error(struct bq2415x_device *bq, const char *msg) in bq2415x_timer_error()
887 struct bq2415x_device *bq = container_of(work, struct bq2415x_device, in bq2415x_timer_work() local
1000 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_power_supply_get_property() local
1026 static void bq2415x_power_supply_exit(struct bq2415x_device *bq) in bq2415x_power_supply_exit()
1044 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_status() local
1077 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_set_timer() local
1098 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_timer() local
1122 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_set_mode() local
1174 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_mode() local
1211 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_reported_mode() local
1239 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_set_registers() local
1257 static ssize_t bq2415x_sysfs_print_reg(struct bq2415x_device *bq, in bq2415x_sysfs_print_reg()
1274 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_registers() local
1292 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_set_limit() local
1323 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_limit() local
1351 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_set_enable() local
1386 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_enable() local
1473 static int bq2415x_power_supply_init(struct bq2415x_device *bq) in bq2415x_power_supply_init()
1529 struct bq2415x_device *bq; in bq2415x_probe() local
1701 struct bq2415x_device *bq = i2c_get_clientdata(client); in bq2415x_remove() local