Lines Matching defs:ab8500_charger
167 struct ab8500_charger, usb_chg)
169 struct ab8500_charger, ac_chg)
216 * struct ab8500_charger - ab8500 Charger device information
273 struct ab8500_charger {
348 static void ab8500_enable_disable_sw_fallback(struct ab8500_charger *di,
409 * @di: pointer to the ab8500_charger structure
413 static void ab8500_power_supply_changed(struct ab8500_charger *di,
440 static void ab8500_charger_set_usb_connected(struct ab8500_charger *di,
478 * @di: pointer to the ab8500_charger structure
482 static int ab8500_charger_get_ac_voltage(struct ab8500_charger *di)
499 * @di: pointer to the ab8500_charger structure
503 static int ab8500_charger_ac_cv(struct ab8500_charger *di)
528 * @di: pointer to the ab8500_charger structure
533 static int ab8500_charger_get_vbus_voltage(struct ab8500_charger *di)
550 * @di: pointer to the ab8500_charger structure
555 static int ab8500_charger_get_usb_current(struct ab8500_charger *di)
572 * @di: pointer to the ab8500_charger structure
577 static int ab8500_charger_get_ac_current(struct ab8500_charger *di)
594 * @di: pointer to the ab8500_charger structure
598 static int ab8500_charger_usb_cv(struct ab8500_charger *di)
625 * @di: pointer to the ab8500_charger structure
640 static int ab8500_charger_detect_chargers(struct ab8500_charger *di, bool probe)
685 * @di: pointer to the ab8500_charger structure
692 static int ab8500_charger_max_usb_curr(struct ab8500_charger *di,
819 * @di: pointer to the ab8500_charger structure
824 static int ab8500_charger_read_usb_type(struct ab8500_charger *di)
859 * @di: pointer to the ab8500_charger structure
864 static int ab8500_charger_detect_usb_type(struct ab8500_charger *di)
1026 static int ab8500_current_to_regval(struct ab8500_charger *di, int curr)
1046 static int ab8500_vbus_in_curr_to_regval(struct ab8500_charger *di, int curr)
1068 * @di: pointer to the ab8500_charger structre
1075 static int ab8500_charger_get_usb_cur(struct ab8500_charger *di)
1105 * @di: pointer to the ab8500_charger structure
1112 static bool ab8500_charger_check_continue_stepping(struct ab8500_charger *di,
1123 * @di: pointer to the ab8500_charger structure
1134 static int ab8500_charger_set_current(struct ab8500_charger *di,
1249 * @di: pointer to the ab8500_charger structure
1255 static int ab8500_charger_set_vbus_in_curr(struct ab8500_charger *di,
1294 * @di: pointer to the ab8500_charger structure
1300 static int ab8500_charger_set_main_in_curr(struct ab8500_charger *di,
1309 * @di: pointer to the ab8500_charger structure
1315 static int ab8500_charger_set_output_curr(struct ab8500_charger *di,
1324 * @di: pointer to the ab8500_charger structure
1330 static int ab8500_charger_led_en(struct ab8500_charger *di, int on)
1367 * @di: pointer to the ab8500_charger structure
1384 struct ab8500_charger *di = to_ab8500_charger_ac_device_info(charger);
1544 * @di: pointer to the ab8500_charger structure
1560 struct ab8500_charger *di = to_ab8500_charger_usb_device_info(charger);
1739 struct ab8500_charger *di = to_ab8500_charger_usb_device_info(charger);
1788 struct ab8500_charger *di = to_ab8500_charger_ac_device_info(charger);
1825 * @di: pointer to the ab8500_charger structure
1833 struct ab8500_charger *di;
1852 * @di: pointer to the ab8500_charger structure
1861 struct ab8500_charger *di;
1894 struct ab8500_charger *di;
1946 struct ab8500_charger *di = container_of(work,
1947 struct ab8500_charger, check_vbat_work.work);
1993 struct ab8500_charger *di = container_of(work,
1994 struct ab8500_charger, check_hw_failure_work.work);
2047 struct ab8500_charger *di = container_of(work,
2048 struct ab8500_charger, kick_wd_work.work);
2070 struct ab8500_charger *di = container_of(work,
2071 struct ab8500_charger, ac_work);
2095 struct ab8500_charger *di = container_of(work,
2096 struct ab8500_charger,
2133 struct ab8500_charger *di = container_of(work,
2134 struct ab8500_charger,
2181 struct ab8500_charger *di = container_of(work,
2182 struct ab8500_charger, detect_usb_type_work);
2239 struct ab8500_charger *di =
2240 container_of(work, struct ab8500_charger, attach_work.work);
2268 struct ab8500_charger *di = container_of(work,
2269 struct ab8500_charger, usb_link_status_work);
2396 struct ab8500_charger *di = container_of(work,
2397 struct ab8500_charger, usb_state_changed_work.work);
2464 struct ab8500_charger *di = container_of(work,
2465 struct ab8500_charger, check_usbchgnotok_work.work);
2502 struct ab8500_charger *di = container_of(work,
2503 struct ab8500_charger, check_main_thermal_prot_work);
2532 struct ab8500_charger *di = container_of(work,
2533 struct ab8500_charger, check_usb_thermal_prot_work);
2553 * @_di: pointer to the ab8500_charger structure
2559 struct ab8500_charger *di = _di;
2574 * @_di: pointer to the ab8500_charger structure
2580 struct ab8500_charger *di = _di;
2598 * @_di: pointer to the ab8500_charger structure
2604 struct ab8500_charger *di = _di;
2620 * @_di: pointer to the ab8500_charger structure
2626 struct ab8500_charger *di = _di;
2639 * @_di: pointer to the ab8500_charger structure
2645 struct ab8500_charger *di = _di;
2656 struct ab8500_charger *di = container_of(work,
2657 struct ab8500_charger, vbus_drop_end_work.work);
2703 * @_di: pointer to the ab8500_charger structure
2709 struct ab8500_charger *di = _di;
2721 * @_di: pointer to the ab8500_charger structure
2727 struct ab8500_charger *di = _di;
2740 * @_di: pointer to the ab8500_charger structure
2746 struct ab8500_charger *di = _di;
2759 * @_di: pointer to the ab8500_charger structure
2765 struct ab8500_charger *di = _di;
2778 * @_di: pointer to the ab8500_charger structure
2784 struct ab8500_charger *di = _di;
2796 * @_di: pointer to the ab8500_charger structure
2802 struct ab8500_charger *di = _di;
2813 * @_di: pointer to the ab8500_charger structure
2819 struct ab8500_charger *di = _di;
2842 * @_di: pointer to the ab8500_charger structure
2848 struct ab8500_charger *di = _di;
2866 * @_di: pointer to the ab8500_charger structure
2872 struct ab8500_charger *di = _di;
2902 struct ab8500_charger *di;
2969 struct ab8500_charger *di;
3031 * @di: pointer to the ab8500_charger structure
3036 static int ab8500_charger_init_hw_registers(struct ab8500_charger *di)
3184 struct ab8500_charger *di =
3185 container_of(nb, struct ab8500_charger, nb);
3232 struct ab8500_charger *di = platform_get_drvdata(pdev);
3269 struct ab8500_charger *di = platform_get_drvdata(pdev);
3302 struct ab8500_charger *di = platform_get_drvdata(pdev);
3371 struct ab8500_charger *di;
3376 dev_err(&pdev->dev, "%s no mem for ab8500_charger\n", __func__);