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;
330 struct power_supply_hwmon *psyhw;
340 psyhw = devm_kzalloc(dev, sizeof(*psyhw), GFP_KERNEL);
341 if (!psyhw) {
346 psyhw->psy = psy;
347 psyhw->props = devm_bitmap_zalloc(dev,
350 if (!psyhw->props) {
374 set_bit(prop, psyhw->props);
394 psyhw,