Lines Matching refs:cpcap_battery_ddata
125 struct cpcap_battery_ddata { struct
142 cpcap_battery_get_state(struct cpcap_battery_ddata *ddata, in cpcap_battery_get_state() argument
152 cpcap_battery_latest(struct cpcap_battery_ddata *ddata) in cpcap_battery_latest()
158 cpcap_battery_previous(struct cpcap_battery_ddata *ddata) in cpcap_battery_previous()
163 static int cpcap_charger_battery_temperature(struct cpcap_battery_ddata *ddata, in cpcap_charger_battery_temperature()
183 static int cpcap_battery_get_voltage(struct cpcap_battery_ddata *ddata) in cpcap_battery_get_voltage()
199 static int cpcap_battery_get_current(struct cpcap_battery_ddata *ddata) in cpcap_battery_get_current()
236 static int cpcap_battery_cc_raw_div(struct cpcap_battery_ddata *ddata, in cpcap_battery_cc_raw_div()
255 static int cpcap_battery_cc_to_uah(struct cpcap_battery_ddata *ddata, in cpcap_battery_cc_to_uah()
264 static int cpcap_battery_cc_to_ua(struct cpcap_battery_ddata *ddata, in cpcap_battery_cc_to_ua()
290 cpcap_battery_read_accumulated(struct cpcap_battery_ddata *ddata, in cpcap_battery_read_accumulated()
340 static int cpcap_battery_cc_get_avg_current(struct cpcap_battery_ddata *ddata) in cpcap_battery_cc_get_avg_current()
369 static bool cpcap_battery_full(struct cpcap_battery_ddata *ddata) in cpcap_battery_full()
380 static int cpcap_battery_update_status(struct cpcap_battery_ddata *ddata) in cpcap_battery_update_status()
437 struct cpcap_battery_ddata *ddata = power_supply_get_drvdata(psy); in cpcap_battery_get_property()
548 static int cpcap_battery_update_charger(struct cpcap_battery_ddata *ddata, in cpcap_battery_update_charger()
581 struct cpcap_battery_ddata *ddata = power_supply_get_drvdata(psy); in cpcap_battery_set_property()
613 struct cpcap_battery_ddata *ddata = data; in cpcap_battery_irq_thread()
657 struct cpcap_battery_ddata *ddata, in cpcap_battery_init_irq()
698 struct cpcap_battery_ddata *ddata) in cpcap_battery_init_interrupts()
726 static int cpcap_battery_init_iio(struct cpcap_battery_ddata *ddata) in cpcap_battery_init_iio()
755 static int cpcap_battery_calibrate(struct cpcap_battery_ddata *ddata) in cpcap_battery_calibrate()
841 struct cpcap_battery_ddata *ddata; in cpcap_battery_probe()
929 struct cpcap_battery_ddata *ddata = platform_get_drvdata(pdev); in cpcap_battery_remove()