Lines Matching refs:bq
1137 struct bq25700_device *bq = power_supply_get_drvdata(psy); in bq25700_power_supply_get_property() local
1140 state = bq->state; in bq25700_power_supply_get_property()
1171 ret = bq25700_field_read(bq, OUTPUT_CHG_CUR); in bq25700_power_supply_get_property()
1190 ret = bq25700_field_read(bq, OUTPUT_BAT_VOL); in bq25700_power_supply_get_property()
1211 ret = bq25700_field_read(bq, MAX_CHARGE_VOLTAGE); in bq25700_power_supply_get_property()
1216 ret = bq25700_field_read(bq, CHARGE_CURRENT); in bq25700_power_supply_get_property()
1260 struct bq25700_device *bq = in bq2570x_pd_notifier_call() local
1272 if (bq->notify_node) { in bq2570x_pd_notifier_call()
1274 psy->dev.parent->of_node != bq->notify_node) in bq2570x_pd_notifier_call()
1276 } else if (bq->plat_data.notify_device) { in bq2570x_pd_notifier_call()
1277 if (strcmp(psy->desc->name, bq->plat_data.notify_device) != 0) in bq2570x_pd_notifier_call()
1286 queue_delayed_work(bq->usb_charger_wq, &bq->discnt_work, in bq2570x_pd_notifier_call()
1307 bq25700_field_write(bq, INPUT_CURRENT, cur_idx); in bq2570x_pd_notifier_call()
1308 bq25700_field_write(bq, INPUT_VOLTAGE, vol_idx); in bq2570x_pd_notifier_call()
1309 bq25700_field_write(bq, CHARGE_CURRENT, chr_idx); in bq2570x_pd_notifier_call()
1310 dev_info(bq->dev, "INPUT_CURRENT:%d, INPUT_VOLTAGE:%d, CHARGE_CURRENT:%d\n", in bq2570x_pd_notifier_call()
1313 bq25700_get_chip_state(bq, &state); in bq2570x_pd_notifier_call()
1314 bq->state = state; in bq2570x_pd_notifier_call()
1315 power_supply_changed(bq->supply_charger); in bq2570x_pd_notifier_call()