Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/power/supply/
Dpmu_battery.c22 struct pmu_battery_info *pbi; member
71 static char *pmu_bat_get_model_name(struct pmu_battery_info *pbi) in pmu_bat_get_model_name() argument
73 switch (pbi->flags & PMU_BATT_TYPE_MASK) { in pmu_bat_get_model_name()
90 struct pmu_battery_info *pbi = pbat->pbi; in pmu_bat_get_property() local
94 if (pbi->flags & PMU_BATT_CHARGING) in pmu_bat_get_property()
102 val->intval = !!(pbi->flags & PMU_BATT_PRESENT); in pmu_bat_get_property()
105 val->strval = pmu_bat_get_model_name(pbi); in pmu_bat_get_property()
108 val->intval = pbi->charge * 1000; /* mWh -> µWh */ in pmu_bat_get_property()
111 val->intval = pbi->max_charge * 1000; /* mWh -> µWh */ in pmu_bat_get_property()
114 val->intval = pbi->amperage * 1000; /* mA -> µA */ in pmu_bat_get_property()
[all …]
/Linux-v4.19/net/xfrm/
Dxfrm_hash.h59 unsigned int pbi; in __xfrm6_pref_hash() local
63 pbi = prefixlen & 0x1f; /* num of bits in incomplete u32 in prefix */ in __xfrm6_pref_hash()
65 if (pbi) { in __xfrm6_pref_hash()
68 mask = htonl((0xffffffff) << (32 - pbi)); in __xfrm6_pref_hash()
/Linux-v4.19/include/net/
Dipv6.h561 unsigned int pdw, pbi; in ipv6_prefix_equal() local
569 pbi = prefixlen & 0x1f; in ipv6_prefix_equal()
570 if (pbi && ((a1[pdw] ^ a2[pdw]) & htonl((0xffffffff) << (32 - pbi)))) in ipv6_prefix_equal()
Dxfrm.h877 unsigned int pbi; in addr_match() local
880 pbi = prefixlen & 0x1f; /* num of bits in incomplete u32 in prefix */ in addr_match()
886 if (pbi) { in addr_match()
889 mask = htonl((0xffffffff) << (32 - pbi)); in addr_match()