Lines Matching +full:use +full:- +full:case
1 /* SPDX-License-Identifier: GPL-2.0-only */
50 POWER_SUPPLY_CHARGE_TYPE_CUSTOM, /* use CHARGE_CONTROL_* props */
164 POWER_SUPPLY_PROP_TYPE, /* use power_supply.type instead */
226 /* Run-time specific power supply configuration */
253 * this power supply. Instead use power_supply_*() functions (for
326 * class itself does not use it, but that's what implementing most platform
358 * struct power_supply_maintenance_charge_table - setting for maintenace charging
368 * time in minutes. We will only use maintenance charging in this setting
391 * +-------------------------------------------------------------------> t
393 * Practically this means that the Li-ions are wandering back and forth in the
404 * +-------------------------------------------------------------------> t
415 * As an example, a Samsung EB425161LA Lithium-Ion battery is CC/CV charged
422 * the user to disconnect the device and make use of it before both maintenance
430 * the expected stand-by current. Also overvoltage protection will be applied
442 * struct power_supply_battery_info - information about batteries
458 * @precharge_current_ua: current to use in the precharge phase in microamperes,
467 * poles reach charge_restart_voltage_uv unless we use maintenance charging.
476 * @constant_charge_current_max_ua: current in microamperes to use in the CC
488 * @alert_low_temp_charge_current_ua: The charging current to use if the battery
494 * @alert_high_temp_charge_current_ua: The charging current to use if the
514 * indicating which capacity table to use for a certain temperature, since
569 * for example 10 for +/- 10%, if the bti_resistance is set to 7000 and the
575 * use these for consistency.
578 * The default field value is -EINVAL or NULL for pointers.
587 * | --- overvoltage_limit_uv
600 * +------------------------------------------------------------------> time
617 * +-----------------------------------------------------------------> time
628 * 2. Next a small initial pre-charge current (precharge_current_ua)
631 * to as "trickle charging" but the use in the Linux kernel is different
669 * many chargers uses a so-called fuel gauge or coloumb counter that measure
670 * how much charge goes into the battery and how much goes out (+/- leak
673 * and charged in a separate charger. Therefore many capacity algorithms use
674 * the open circuit voltage with a look-up table to determine the rough
679 * +-------> IBAT >----------------+
683 * o <---------- | |
685 * .---. | | |
687 * '---' | | |
689 * GND +-------------------------------+
704 * OCV = VBAT - (IBAT * Ri)
725 * The power supply class itself doesn't use this struct as of now.
834 return ((info->vbat2ri_discharging != NULL) && in power_supply_supports_vbat2ri()
835 info->vbat2ri_discharging_size > 0); in power_supply_supports_vbat2ri()
841 return ((info->resist_table != NULL) && in power_supply_supports_temp2ri()
842 info->resist_table_size > 0); in power_supply_supports_temp2ri()
848 static inline int power_supply_is_system_supplied(void) { return -ENOSYS; } in power_supply_is_system_supplied()
896 case POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN: in power_supply_is_amp_property()
897 case POWER_SUPPLY_PROP_CHARGE_EMPTY_DESIGN: in power_supply_is_amp_property()
898 case POWER_SUPPLY_PROP_CHARGE_FULL: in power_supply_is_amp_property()
899 case POWER_SUPPLY_PROP_CHARGE_EMPTY: in power_supply_is_amp_property()
900 case POWER_SUPPLY_PROP_CHARGE_NOW: in power_supply_is_amp_property()
901 case POWER_SUPPLY_PROP_CHARGE_AVG: in power_supply_is_amp_property()
902 case POWER_SUPPLY_PROP_CHARGE_COUNTER: in power_supply_is_amp_property()
903 case POWER_SUPPLY_PROP_PRECHARGE_CURRENT: in power_supply_is_amp_property()
904 case POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT: in power_supply_is_amp_property()
905 case POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT: in power_supply_is_amp_property()
906 case POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX: in power_supply_is_amp_property()
907 case POWER_SUPPLY_PROP_CURRENT_MAX: in power_supply_is_amp_property()
908 case POWER_SUPPLY_PROP_CURRENT_NOW: in power_supply_is_amp_property()
909 case POWER_SUPPLY_PROP_CURRENT_AVG: in power_supply_is_amp_property()
910 case POWER_SUPPLY_PROP_CURRENT_BOOT: in power_supply_is_amp_property()
922 case POWER_SUPPLY_PROP_ENERGY_FULL_DESIGN: in power_supply_is_watt_property()
923 case POWER_SUPPLY_PROP_ENERGY_EMPTY_DESIGN: in power_supply_is_watt_property()
924 case POWER_SUPPLY_PROP_ENERGY_FULL: in power_supply_is_watt_property()
925 case POWER_SUPPLY_PROP_ENERGY_EMPTY: in power_supply_is_watt_property()
926 case POWER_SUPPLY_PROP_ENERGY_NOW: in power_supply_is_watt_property()
927 case POWER_SUPPLY_PROP_ENERGY_AVG: in power_supply_is_watt_property()
928 case POWER_SUPPLY_PROP_VOLTAGE_MAX: in power_supply_is_watt_property()
929 case POWER_SUPPLY_PROP_VOLTAGE_MIN: in power_supply_is_watt_property()
930 case POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN: in power_supply_is_watt_property()
931 case POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN: in power_supply_is_watt_property()
932 case POWER_SUPPLY_PROP_VOLTAGE_NOW: in power_supply_is_watt_property()
933 case POWER_SUPPLY_PROP_VOLTAGE_AVG: in power_supply_is_watt_property()
934 case POWER_SUPPLY_PROP_VOLTAGE_OCV: in power_supply_is_watt_property()
935 case POWER_SUPPLY_PROP_VOLTAGE_BOOT: in power_supply_is_watt_property()
936 case POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE: in power_supply_is_watt_property()
937 case POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE_MAX: in power_supply_is_watt_property()
938 case POWER_SUPPLY_PROP_POWER_NOW: in power_supply_is_watt_property()
974 return -EOPNOTSUPP; in power_supply_charge_behaviour_show()
980 return -EOPNOTSUPP; in power_supply_charge_behaviour_parse()