Searched refs:_attrname (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/platform/x86/ |
| H A D | asus-armoury.h | 94 #define __ATTR_SHOW_FMT(_prop, _attrname, _fmt, _val) \ argument 95 static ssize_t _attrname##_##_prop##_show( \ 100 static struct kobj_attribute attr_##_attrname##_##_prop = \ 101 __ASUS_ATTR_RO(_attrname, _prop) 103 #define __ATTR_RO_INT_GROUP_ENUM(_attrname, _wmi, _fsname, _possible, _dispname)\ argument 104 ASUS_WMI_SHOW_INT(_attrname##_current_value, _wmi); \ 105 static struct kobj_attribute attr_##_attrname##_current_value = \ 106 __ASUS_ATTR_RO(_attrname, current_value); \ 107 __ATTR_SHOW_FMT(display_name, _attrname, "%s\n", _dispname); \ 108 __ATTR_SHOW_FMT(possible_values, _attrname, "%s\n", _possible); \ [all …]
|
| /linux/drivers/platform/x86/lenovo/ |
| H A D | wmi-other.c | 420 #define __LWMI_ATTR_SHOW_FMT(_prop, _attrname, _fmt, _val) \ argument 421 static ssize_t _attrname##_##_prop##_show( \ 426 static struct kobj_attribute attr_##_attrname##_##_prop = \ 427 __LWMI_ATTR_RO(_attrname, _prop) 430 #define __LWMI_TUNABLE_CURRENT_VALUE_CAP01(_attrname) \ argument 431 static ssize_t _attrname##_current_value_store( \ 436 &_attrname); \ 438 static ssize_t _attrname##_current_value_show( \ 441 return attr_current_value_show(kobj, kattr, buf, &_attrname); \ 443 static struct kobj_attribute attr_##_attrname##_current_value = \ [all …]
|