Lines Matching refs:psyhw
122 const struct power_supply_hwmon *psyhw,
132 if (prop >= 0 && test_bit(prop, psyhw->props))
162 const struct power_supply_hwmon *psyhw = data;
166 if (power_supply_hwmon_has_input(psyhw, type, channel))
173 if (prop < 0 || !test_bit(prop, psyhw->props))
176 if (power_supply_property_is_writeable(psyhw->psy, prop) > 0 &&
209 struct power_supply_hwmon *psyhw = dev_get_drvdata(dev);
210 struct power_supply *psy = psyhw->psy;
253 struct power_supply_hwmon *psyhw = dev_get_drvdata(dev);
254 struct power_supply *psy = psyhw->psy;
337 struct power_supply_hwmon *psyhw;
347 psyhw = devm_kzalloc(dev, sizeof(*psyhw), GFP_KERNEL);
348 if (!psyhw) {
353 psyhw->psy = psy;
354 psyhw->props = bitmap_zalloc(POWER_SUPPLY_PROP_TIME_TO_FULL_AVG + 1,
356 if (!psyhw->props) {
362 psyhw->props);
385 set_bit(prop, psyhw->props);
405 psyhw,