Home
last modified time | relevance | path

Searched refs:pbi (Results 1 – 4 of 4) sorted by relevance

/linux-3.4.99/drivers/power/
Dintel_mid_battery.c254 static void pmic_battery_read_status(struct pmic_power_module_info *pbi) in pmic_battery_read_status() argument
266 if (pbi->update_time && time_before(jiffies, pbi->update_time + in pmic_battery_read_status()
270 update_time_intrvl = jiffies_to_msecs(jiffies - pbi->update_time); in pmic_battery_read_status()
271 pbi->update_time = jiffies; in pmic_battery_read_status()
275 dev_warn(pbi->dev, "%s(): ipc config cmd failed\n", in pmic_battery_read_status()
281 dev_warn(pbi->dev, "%s(): ipc pmic read failed\n", in pmic_battery_read_status()
293 pbi->batt_is_present = PMIC_BATT_PRESENT; in pmic_battery_read_status()
296 pbi->batt_is_present = PMIC_BATT_NOT_PRESENT; in pmic_battery_read_status()
297 pbi->batt_health = POWER_SUPPLY_HEALTH_UNKNOWN; in pmic_battery_read_status()
298 pbi->batt_status = POWER_SUPPLY_STATUS_UNKNOWN; in pmic_battery_read_status()
[all …]
Dpmu_battery.c21 struct pmu_battery_info *pbi; member
68 static char *pmu_bat_get_model_name(struct pmu_battery_info *pbi) in pmu_bat_get_model_name() argument
70 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() local
91 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 …]
/linux-3.4.99/include/net/
Dipv6.h349 unsigned pdw, pbi; in __ipv6_prefix_equal() local
357 pbi = prefixlen & 0x1f; in __ipv6_prefix_equal()
358 if (pbi && ((a1[pdw] ^ a2[pdw]) & htonl((0xffffffff) << (32 - pbi)))) in __ipv6_prefix_equal()
Dxfrm.h812 int pbi; in addr_match() local
815 pbi = prefixlen & 0x1f; /* num of bits in incomplete u32 in prefix */ in addr_match()
821 if (pbi) { in addr_match()
824 mask = htonl((0xffffffff) << (32 - pbi)); in addr_match()