Lines Matching full:ab8500_charger

169 	struct ab8500_charger, usb_chg)
171 struct ab8500_charger, ac_chg)
218 * struct ab8500_charger - ab8500 Charger device information
275 struct ab8500_charger { struct
350 static void ab8500_enable_disable_sw_fallback(struct ab8500_charger *di, in ab8500_enable_disable_sw_fallback()
411 * @di: pointer to the ab8500_charger structure
415 static void ab8500_power_supply_changed(struct ab8500_charger *di, in ab8500_power_supply_changed()
442 static void ab8500_charger_set_usb_connected(struct ab8500_charger *di, in ab8500_charger_set_usb_connected()
480 * @di: pointer to the ab8500_charger structure
484 static int ab8500_charger_get_ac_voltage(struct ab8500_charger *di) in ab8500_charger_get_ac_voltage()
505 * @di: pointer to the ab8500_charger structure
509 static int ab8500_charger_ac_cv(struct ab8500_charger *di) in ab8500_charger_ac_cv()
516 ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_ac_cv()
534 * @di: pointer to the ab8500_charger structure
539 static int ab8500_charger_get_vbus_voltage(struct ab8500_charger *di) in ab8500_charger_get_vbus_voltage()
560 * @di: pointer to the ab8500_charger structure
565 static int ab8500_charger_get_usb_current(struct ab8500_charger *di) in ab8500_charger_get_usb_current()
586 * @di: pointer to the ab8500_charger structure
591 static int ab8500_charger_get_ac_current(struct ab8500_charger *di) in ab8500_charger_get_ac_current()
612 * @di: pointer to the ab8500_charger structure
616 static int ab8500_charger_usb_cv(struct ab8500_charger *di) in ab8500_charger_usb_cv()
623 ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_usb_cv()
643 * @di: pointer to the ab8500_charger structure
658 static int ab8500_charger_detect_chargers(struct ab8500_charger *di, bool probe) in ab8500_charger_detect_chargers()
665 ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_detect_chargers()
686 ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_detect_chargers()
703 * @di: pointer to the ab8500_charger structure
710 static int ab8500_charger_max_usb_curr(struct ab8500_charger *di, in ab8500_charger_max_usb_curr()
837 * @di: pointer to the ab8500_charger structure
842 static int ab8500_charger_read_usb_type(struct ab8500_charger *di) in ab8500_charger_read_usb_type()
877 * @di: pointer to the ab8500_charger structure
882 static int ab8500_charger_detect_usb_type(struct ab8500_charger *di) in ab8500_charger_detect_usb_type()
1056 static int ab8500_current_to_regval(struct ab8500_charger *di, int curr_ua) in ab8500_current_to_regval()
1076 static int ab8500_vbus_in_curr_to_regval(struct ab8500_charger *di, int curr_ua) in ab8500_vbus_in_curr_to_regval()
1098 * @di: pointer to the ab8500_charger structure
1105 static int ab8500_charger_get_usb_cur(struct ab8500_charger *di) in ab8500_charger_get_usb_cur()
1135 * @di: pointer to the ab8500_charger structure
1142 static bool ab8500_charger_check_continue_stepping(struct ab8500_charger *di, in ab8500_charger_check_continue_stepping()
1153 * @di: pointer to the ab8500_charger structure
1164 static int ab8500_charger_set_current(struct ab8500_charger *di, in ab8500_charger_set_current()
1175 ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_set_current()
1236 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_set_current()
1245 AB8500_CHARGER, reg, (u8)i << shift_value); in ab8500_charger_set_current()
1259 AB8500_CHARGER, reg, (u8)i << shift_value); in ab8500_charger_set_current()
1279 * @di: pointer to the ab8500_charger structure
1285 static int ab8500_charger_set_vbus_in_curr(struct ab8500_charger *di, in ab8500_charger_set_vbus_in_curr()
1324 * @di: pointer to the ab8500_charger structure
1330 static int ab8500_charger_set_main_in_curr(struct ab8500_charger *di, in ab8500_charger_set_main_in_curr()
1339 * @di: pointer to the ab8500_charger structure
1345 static int ab8500_charger_set_output_curr(struct ab8500_charger *di, in ab8500_charger_set_output_curr()
1354 * @di: pointer to the ab8500_charger structure
1360 static int ab8500_charger_led_en(struct ab8500_charger *di, int on) in ab8500_charger_led_en()
1366 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_led_en()
1374 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_led_en()
1383 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_led_en()
1397 * @di: pointer to the ab8500_charger structure
1414 struct ab8500_charger *di = to_ab8500_charger_ac_device_info(charger); in ab8500_charger_ac_en()
1458 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_ac_en()
1486 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_ac_en()
1526 AB8500_CHARGER, in ab8500_charger_ac_en()
1543 AB8500_CHARGER, in ab8500_charger_ac_en()
1574 * @di: pointer to the ab8500_charger structure
1590 struct ab8500_charger *di = to_ab8500_charger_usb_device_info(charger); in ab8500_charger_usb_en()
1635 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_usb_en()
1648 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_usb_en()
1685 AB8500_CHARGER, in ab8500_charger_usb_en()
1746 struct ab8500_charger *di = to_ab8500_charger_usb_device_info(charger); in ab8500_charger_usb_check_enable()
1751 ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_usb_check_enable()
1763 AB8500_CHARGER, AB8500_CHARGER_CTRL, in ab8500_charger_usb_check_enable()
1795 struct ab8500_charger *di = to_ab8500_charger_ac_device_info(charger); in ab8500_charger_ac_check_enable()
1800 ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_ac_check_enable()
1812 AB8500_CHARGER, AB8500_CHARGER_CTRL, in ab8500_charger_ac_check_enable()
1832 * @di: pointer to the ab8500_charger structure
1840 struct ab8500_charger *di; in ab8500_charger_watchdog_kick()
1849 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_watchdog_kick()
1859 * @charger: pointer to the ab8500_charger structure
1869 struct ab8500_charger *di; in ab8500_charger_update_charger_current()
1887 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_update_charger_current()
1902 struct ab8500_charger *di; in ab8500_charger_get_ext_psy_data()
1961 struct ab8500_charger *di = container_of(work, in ab8500_charger_check_vbat_work()
1962 struct ab8500_charger, check_vbat_work.work); in ab8500_charger_check_vbat_work()
2007 struct ab8500_charger *di = container_of(work, in ab8500_charger_check_hw_failure_work()
2008 struct ab8500_charger, check_hw_failure_work.work); in ab8500_charger_check_hw_failure_work()
2013 AB8500_CHARGER, AB8500_CH_STATUS2_REG, &reg_value); in ab8500_charger_check_hw_failure_work()
2025 AB8500_CHARGER, AB8500_CH_USBCH_STAT2_REG, in ab8500_charger_check_hw_failure_work()
2061 struct ab8500_charger *di = container_of(work, in ab8500_charger_kick_watchdog_work()
2062 struct ab8500_charger, kick_wd_work.work); in ab8500_charger_kick_watchdog_work()
2064 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_kick_watchdog_work()
2084 struct ab8500_charger *di = container_of(work, in ab8500_charger_ac_work()
2085 struct ab8500_charger, ac_work); in ab8500_charger_ac_work()
2109 struct ab8500_charger *di = container_of(work, in ab8500_charger_usb_attached_work()
2110 struct ab8500_charger, in ab8500_charger_usb_attached_work()
2118 AB8500_CHARGER, in ab8500_charger_usb_attached_work()
2147 struct ab8500_charger *di = container_of(work, in ab8500_charger_ac_attached_work()
2148 struct ab8500_charger, in ab8500_charger_ac_attached_work()
2157 AB8500_CHARGER, in ab8500_charger_ac_attached_work()
2195 struct ab8500_charger *di = container_of(work, in ab8500_charger_detect_usb_type_work()
2196 struct ab8500_charger, detect_usb_type_work); in ab8500_charger_detect_usb_type_work()
2253 struct ab8500_charger *di = in ab8500_charger_usb_link_attach_work()
2254 container_of(work, struct ab8500_charger, attach_work.work); in ab8500_charger_usb_link_attach_work()
2282 struct ab8500_charger *di = container_of(work, in ab8500_charger_usb_link_status_work()
2283 struct ab8500_charger, usb_link_status_work); in ab8500_charger_usb_link_status_work()
2325 AB8500_CHARGER, AB8500_USBCH_CTRL1_REG, in ab8500_charger_usb_link_status_work()
2410 struct ab8500_charger *di = container_of(work, in ab8500_charger_usb_state_changed_work()
2411 struct ab8500_charger, usb_state_changed_work.work); in ab8500_charger_usb_state_changed_work()
2478 struct ab8500_charger *di = container_of(work, in ab8500_charger_check_usbchargernotok_work()
2479 struct ab8500_charger, check_usbchgnotok_work.work); in ab8500_charger_check_usbchargernotok_work()
2483 AB8500_CHARGER, AB8500_CH_USBCH_STAT2_REG, &reg_value); in ab8500_charger_check_usbchargernotok_work()
2516 struct ab8500_charger *di = container_of(work, in ab8500_charger_check_main_thermal_prot_work()
2517 struct ab8500_charger, check_main_thermal_prot_work); in ab8500_charger_check_main_thermal_prot_work()
2521 AB8500_CHARGER, AB8500_CH_STATUS2_REG, &reg_value); in ab8500_charger_check_main_thermal_prot_work()
2546 struct ab8500_charger *di = container_of(work, in ab8500_charger_check_usb_thermal_prot_work()
2547 struct ab8500_charger, check_usb_thermal_prot_work); in ab8500_charger_check_usb_thermal_prot_work()
2551 AB8500_CHARGER, AB8500_CH_USBCH_STAT2_REG, &reg_value); in ab8500_charger_check_usb_thermal_prot_work()
2567 * @_di: pointer to the ab8500_charger structure
2573 struct ab8500_charger *di = _di; in ab8500_charger_mainchunplugdet_handler()
2588 * @_di: pointer to the ab8500_charger structure
2594 struct ab8500_charger *di = _di; in ab8500_charger_mainchplugdet_handler()
2612 * @_di: pointer to the ab8500_charger structure
2618 struct ab8500_charger *di = _di; in ab8500_charger_mainextchnotok_handler()
2634 * @_di: pointer to the ab8500_charger structure
2640 struct ab8500_charger *di = _di; in ab8500_charger_mainchthprotr_handler()
2653 * @_di: pointer to the ab8500_charger structure
2659 struct ab8500_charger *di = _di; in ab8500_charger_mainchthprotf_handler()
2670 struct ab8500_charger *di = container_of(work, in ab8500_charger_vbus_drop_end_work()
2671 struct ab8500_charger, vbus_drop_end_work.work); in ab8500_charger_vbus_drop_end_work()
2679 AB8500_CHARGER, AB8500_CHARGER_CTRL, 0x01); in ab8500_charger_vbus_drop_end_work()
2681 ret = abx500_get_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_vbus_drop_end_work()
2717 * @_di: pointer to the ab8500_charger structure
2723 struct ab8500_charger *di = _di; in ab8500_charger_vbusdetf_handler()
2735 * @_di: pointer to the ab8500_charger structure
2741 struct ab8500_charger *di = _di; in ab8500_charger_vbusdetr_handler()
2754 * @_di: pointer to the ab8500_charger structure
2760 struct ab8500_charger *di = _di; in ab8500_charger_usblinkstatus_handler()
2773 * @_di: pointer to the ab8500_charger structure
2779 struct ab8500_charger *di = _di; in ab8500_charger_usbchthprotr_handler()
2792 * @_di: pointer to the ab8500_charger structure
2798 struct ab8500_charger *di = _di; in ab8500_charger_usbchthprotf_handler()
2810 * @_di: pointer to the ab8500_charger structure
2816 struct ab8500_charger *di = _di; in ab8500_charger_usbchargernotokr_handler()
2827 * @_di: pointer to the ab8500_charger structure
2833 struct ab8500_charger *di = _di; in ab8500_charger_chwdexp_handler()
2856 * @_di: pointer to the ab8500_charger structure
2862 struct ab8500_charger *di = _di; in ab8500_charger_vbuschdropend_handler()
2880 * @_di: pointer to the ab8500_charger structure
2886 struct ab8500_charger *di = _di; in ab8500_charger_vbusovv_handler()
2916 struct ab8500_charger *di; in ab8500_charger_ac_get_property()
2983 struct ab8500_charger *di; in ab8500_charger_usb_get_property()
3045 * @di: pointer to the ab8500_charger structure
3050 static int ab8500_charger_init_hw_registers(struct ab8500_charger *di) in ab8500_charger_init_hw_registers()
3057 AB8500_CHARGER, in ab8500_charger_init_hw_registers()
3066 AB8500_CHARGER, AB8500_CH_OPT_CRNTLVL_MAX_REG, in ab8500_charger_init_hw_registers()
3077 AB8500_CHARGER, in ab8500_charger_init_hw_registers()
3086 AB8500_CHARGER, in ab8500_charger_init_hw_registers()
3140 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_init_hw_registers()
3198 struct ab8500_charger *di = in ab8500_charger_usb_notifier_call()
3199 container_of(nb, struct ab8500_charger, nb); in ab8500_charger_usb_notifier_call()
3248 struct ab8500_charger *di = dev_get_drvdata(dev); in ab8500_charger_resume()
3260 ret = abx500_set_register_interruptible(di->dev, AB8500_CHARGER, in ab8500_charger_resume()
3284 struct ab8500_charger *di = dev_get_drvdata(dev); in ab8500_charger_suspend()
3331 struct ab8500_charger *di = dev_get_drvdata(dev); in ab8500_charger_bind()
3374 struct ab8500_charger *di = dev_get_drvdata(dev); in ab8500_charger_unbind()
3413 struct ab8500_charger *di; in ab8500_charger_probe()
3695 struct ab8500_charger *di = platform_get_drvdata(pdev); in ab8500_charger_remove()