Lines Matching refs:prop
129 int prop = power_supply_hwmon_to_property(type, in power_supply_hwmon_has_input() local
132 if (prop >= 0 && test_bit(prop, psyhw->props)) in power_supply_hwmon_has_input()
163 int prop; in power_supply_hwmon_is_visible() local
172 prop = power_supply_hwmon_to_property(type, attr, channel); in power_supply_hwmon_is_visible()
173 if (prop < 0 || !test_bit(prop, psyhw->props)) in power_supply_hwmon_is_visible()
176 if (power_supply_property_is_writeable(psyhw->psy, prop) > 0 && in power_supply_hwmon_is_visible()
212 int ret, prop; in power_supply_hwmon_read() local
214 prop = power_supply_hwmon_to_property(type, attr, channel); in power_supply_hwmon_read()
215 if (prop < 0) in power_supply_hwmon_read()
216 return prop; in power_supply_hwmon_read()
218 ret = power_supply_get_property(psy, prop, &pspval); in power_supply_hwmon_read()
256 int prop; in power_supply_hwmon_write() local
258 prop = power_supply_hwmon_to_property(type, attr, channel); in power_supply_hwmon_write()
259 if (prop < 0) in power_supply_hwmon_write()
260 return prop; in power_supply_hwmon_write()
286 return power_supply_set_property(psy, prop, &pspval); in power_supply_hwmon_write()
356 const enum power_supply_property prop = desc->properties[i]; in power_supply_add_hwmon_sysfs() local
358 switch (prop) { in power_supply_add_hwmon_sysfs()
374 set_bit(prop, psyhw->props); in power_supply_add_hwmon_sysfs()