Lines Matching refs:psyhw
136 const struct power_supply_hwmon *psyhw, in power_supply_hwmon_has_input() argument
146 if (prop >= 0 && test_bit(prop, psyhw->props)) in power_supply_hwmon_has_input()
176 const struct power_supply_hwmon *psyhw = data; in power_supply_hwmon_is_visible() local
180 if (power_supply_hwmon_has_input(psyhw, type, channel)) in power_supply_hwmon_is_visible()
187 if (prop < 0 || !test_bit(prop, psyhw->props)) in power_supply_hwmon_is_visible()
190 if (power_supply_property_is_writeable(psyhw->psy, prop) > 0 && in power_supply_hwmon_is_visible()
223 struct power_supply_hwmon *psyhw = dev_get_drvdata(dev); in power_supply_hwmon_read() local
224 struct power_supply *psy = psyhw->psy; in power_supply_hwmon_read()
272 struct power_supply_hwmon *psyhw = dev_get_drvdata(dev); in power_supply_hwmon_write() local
273 struct power_supply *psy = psyhw->psy; in power_supply_hwmon_write()
354 struct power_supply_hwmon *psyhw; in power_supply_add_hwmon_sysfs() local
364 psyhw = devm_kzalloc(dev, sizeof(*psyhw), GFP_KERNEL); in power_supply_add_hwmon_sysfs()
365 if (!psyhw) { in power_supply_add_hwmon_sysfs()
370 psyhw->psy = psy; in power_supply_add_hwmon_sysfs()
371 psyhw->props = devm_bitmap_zalloc(dev, in power_supply_add_hwmon_sysfs()
374 if (!psyhw->props) { in power_supply_add_hwmon_sysfs()
400 set_bit(prop, psyhw->props); in power_supply_add_hwmon_sysfs()
420 psyhw, in power_supply_add_hwmon_sysfs()