Lines Matching defs:bq

196 static int bq2415x_i2c_read(struct bq2415x_device *bq, u8 reg)  in bq2415x_i2c_read()
226 static int bq2415x_i2c_read_mask(struct bq2415x_device *bq, u8 reg, in bq2415x_i2c_read_mask()
241 static int bq2415x_i2c_read_bit(struct bq2415x_device *bq, u8 reg, u8 bit) in bq2415x_i2c_read_bit()
251 static int bq2415x_i2c_write(struct bq2415x_device *bq, u8 reg, u8 val) in bq2415x_i2c_write()
280 static int bq2415x_i2c_write_mask(struct bq2415x_device *bq, u8 reg, u8 val, in bq2415x_i2c_write_mask()
299 static int bq2415x_i2c_write_bit(struct bq2415x_device *bq, u8 reg, in bq2415x_i2c_write_bit()
310 static int bq2415x_exec_command(struct bq2415x_device *bq, in bq2415x_exec_command()
414 static enum bq2415x_chip bq2415x_detect_chip(struct bq2415x_device *bq) in bq2415x_detect_chip()
464 static int bq2415x_detect_revision(struct bq2415x_device *bq) in bq2415x_detect_revision()
504 static int bq2415x_get_vender_code(struct bq2415x_device *bq) in bq2415x_get_vender_code()
519 static void bq2415x_reset_chip(struct bq2415x_device *bq) in bq2415x_reset_chip()
531 static int bq2415x_set_current_limit(struct bq2415x_device *bq, int mA) in bq2415x_set_current_limit()
549 static int bq2415x_get_current_limit(struct bq2415x_device *bq) in bq2415x_get_current_limit()
569 static int bq2415x_set_weak_battery_voltage(struct bq2415x_device *bq, int mV) in bq2415x_set_weak_battery_voltage()
588 static int bq2415x_get_weak_battery_voltage(struct bq2415x_device *bq) in bq2415x_get_weak_battery_voltage()
600 static int bq2415x_set_battery_regulation_voltage(struct bq2415x_device *bq, in bq2415x_set_battery_regulation_voltage()
619 static int bq2415x_get_battery_regulation_voltage(struct bq2415x_device *bq) in bq2415x_get_battery_regulation_voltage()
630 static int bq2415x_set_charge_current(struct bq2415x_device *bq, int mA) in bq2415x_set_charge_current()
649 static int bq2415x_get_charge_current(struct bq2415x_device *bq) in bq2415x_get_charge_current()
664 static int bq2415x_set_termination_current(struct bq2415x_device *bq, int mA) in bq2415x_set_termination_current()
683 static int bq2415x_get_termination_current(struct bq2415x_device *bq) in bq2415x_get_termination_current()
698 #define bq2415x_set_default_value(bq, prop) \ argument
708 static int bq2415x_set_defaults(struct bq2415x_device *bq) in bq2415x_set_defaults()
731 static int bq2415x_set_mode(struct bq2415x_device *bq, enum bq2415x_mode mode) in bq2415x_set_mode()
795 static bool bq2415x_update_reported_mode(struct bq2415x_device *bq, int mA) in bq2415x_update_reported_mode()
818 struct bq2415x_device *bq = in bq2415x_notifier_call() local
859 static void bq2415x_set_autotimer(struct bq2415x_device *bq, int state) in bq2415x_set_autotimer()
882 static void bq2415x_timer_error(struct bq2415x_device *bq, const char *msg) in bq2415x_timer_error()
896 struct bq2415x_device *bq = container_of(work, struct bq2415x_device, in bq2415x_timer_work() local
1009 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_power_supply_get_property() local
1035 static int bq2415x_power_supply_init(struct bq2415x_device *bq) in bq2415x_power_supply_init()
1080 static void bq2415x_power_supply_exit(struct bq2415x_device *bq) in bq2415x_power_supply_exit()
1098 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_status() local
1131 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_set_timer() local
1152 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_timer() local
1176 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_set_mode() local
1228 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_mode() local
1265 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_reported_mode() local
1293 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_set_registers() local
1311 static ssize_t bq2415x_sysfs_print_reg(struct bq2415x_device *bq, in bq2415x_sysfs_print_reg()
1328 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_registers() local
1346 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_set_limit() local
1377 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_limit() local
1405 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_set_enable() local
1440 struct bq2415x_device *bq = power_supply_get_drvdata(psy); in bq2415x_sysfs_show_enable() local
1529 static int bq2415x_sysfs_init(struct bq2415x_device *bq) in bq2415x_sysfs_init()
1535 static void bq2415x_sysfs_exit(struct bq2415x_device *bq) in bq2415x_sysfs_exit()
1547 struct bq2415x_device *bq; in bq2415x_probe() local
1722 struct bq2415x_device *bq = i2c_get_clientdata(client); in bq2415x_remove() local