Searched refs:pbi (Results 1 – 4 of 4) sorted by relevance
253 static void pmic_battery_read_status(struct pmic_power_module_info *pbi) in pmic_battery_read_status() argument265 if (pbi->update_time && time_before(jiffies, pbi->update_time + in pmic_battery_read_status()269 update_time_intrvl = jiffies_to_msecs(jiffies - pbi->update_time); in pmic_battery_read_status()270 pbi->update_time = jiffies; in pmic_battery_read_status()274 dev_warn(pbi->dev, "%s(): ipc config cmd failed\n", in pmic_battery_read_status()280 dev_warn(pbi->dev, "%s(): ipc pmic read failed\n", in pmic_battery_read_status()292 pbi->batt_is_present = PMIC_BATT_PRESENT; in pmic_battery_read_status()295 pbi->batt_is_present = PMIC_BATT_NOT_PRESENT; in pmic_battery_read_status()296 pbi->batt_health = POWER_SUPPLY_HEALTH_UNKNOWN; in pmic_battery_read_status()297 pbi->batt_status = POWER_SUPPLY_STATUS_UNKNOWN; in pmic_battery_read_status()[all …]
21 struct pmu_battery_info *pbi; member68 static char *pmu_bat_get_model_name(struct pmu_battery_info *pbi) in pmu_bat_get_model_name() argument70 switch (pbi->flags & PMU_BATT_TYPE_MASK) { in pmu_bat_get_model_name()87 struct pmu_battery_info *pbi = pbat->pbi; in pmu_bat_get_property() local91 if (pbi->flags & PMU_BATT_CHARGING) in pmu_bat_get_property()99 val->intval = !!(pbi->flags & PMU_BATT_PRESENT); in pmu_bat_get_property()102 val->strval = pmu_bat_get_model_name(pbi); in pmu_bat_get_property()105 val->intval = pbi->charge * 1000; /* mWh -> µWh */ in pmu_bat_get_property()108 val->intval = pbi->max_charge * 1000; /* mWh -> µWh */ in pmu_bat_get_property()111 val->intval = pbi->amperage * 1000; /* mA -> µA */ in pmu_bat_get_property()[all …]
341 unsigned pdw, pbi; in __ipv6_prefix_equal() local349 pbi = prefixlen & 0x1f; in __ipv6_prefix_equal()350 if (pbi && ((a1[pdw] ^ a2[pdw]) & htonl((0xffffffff) << (32 - pbi)))) in __ipv6_prefix_equal()
809 int pbi; in addr_match() local812 pbi = prefixlen & 0x1f; /* num of bits in incomplete u32 in prefix */ in addr_match()818 if (pbi) { in addr_match()821 mask = htonl((0xffffffff) << (32 - pbi)); in addr_match()