| /linux/fs/nilfs2/ |
| H A D | sysfs.h | 54 struct nilfs_##name##_attr { \ 65 struct nilfs_##name##_attr { \ 67 ssize_t (*show)(struct nilfs_##name##_attr *, struct the_nilfs *, \ 69 ssize_t (*store)(struct nilfs_##name##_attr *, struct the_nilfs *, \ 81 struct nilfs_##name##_attr { \ 83 ssize_t (*show)(struct nilfs_##name##_attr *, struct nilfs_root *, \ 85 ssize_t (*store)(struct nilfs_##name##_attr *, struct nilfs_root *, \ 92 static struct nilfs_##type##_attr nilfs_##type##_attr_##name = \
|
| H A D | sysfs.c | 29 struct nilfs_##name##_attr *a = container_of(attr, \ 30 struct nilfs_##name##_attr, \ 41 struct nilfs_##name##_attr *a = container_of(attr, \ 42 struct nilfs_##name##_attr, \
|
| /linux/drivers/powercap/ |
| H A D | powercap_sys.c | 19 #define define_power_zone_show(_attr) \ argument 20 static ssize_t _attr##_show(struct device *dev, \ 28 if (power_zone->ops->get_##_attr) { \ 29 if (!power_zone->ops->get_##_attr(power_zone, &value)) \ 37 #define define_power_zone_store(_attr) \ argument 38 static ssize_t _attr##_store(struct device *dev,\ 51 if (power_zone->ops->reset_##_attr) { \ 52 if (!power_zone->ops->reset_##_attr(power_zone)) \ 60 #define define_power_zone_constraint_show(_attr) \ argument 61 static ssize_t show_constraint_##_attr(struct device *dev, \ [all …]
|
| /linux/drivers/thermal/intel/int340x_thermal/ |
| H A D | platform_temperature_control.c | 123 struct ptc_data *data = container_of(attr, struct ptc_data, suffix##_attr);\ 176 struct ptc_data *data = container_of(attr, struct ptc_data, suffix##_attr);\ 189 sysfs_attr_init(&data->_name##_attr.attr);\ 190 data->_name##_attr.show = _name##_show;\ 191 data->_name##_attr.store = _name##_store;\ 192 data->_name##_attr.attr.name = #_name;\ 193 data->_name##_attr.attr.mode = 0644;\
|
| /linux/drivers/vfio/mdev/ |
| H A D | mdev_private.h | 16 #define to_mdev_type_attr(_attr) \ argument 17 container_of(_attr, struct mdev_type_attribute, attr)
|
| /linux/drivers/platform/x86/ |
| H A D | asus-armoury.h | 75 #define __WMI_STORE_INT(_attr, _min, _max, _wmi) \ argument 76 static ssize_t _attr##_store(struct kobject *kobj, \ 84 #define ASUS_WMI_SHOW_INT(_attr, _wmi) \ argument 85 static ssize_t _attr##_show(struct kobject *kobj, \ 254 #define __ROG_TUNABLE_RW(_attr, _wmi) \ argument 255 static ssize_t _attr##_current_value_store( \ 264 if (tunables->power_limits->_attr##_min == \ 265 tunables->power_limits->_attr##_max) \ 269 tunables->power_limits->_attr##_min, \ 270 tunables->power_limits->_attr##_max, \ [all …]
|
| /linux/drivers/input/mouse/ |
| H A D | trackpoint.c | 249 struct trackpoint_attr_data *_attr = &trackpoint_attr_##_name; \ 251 if ((!_power_on || _tp->_name != _attr->power_on_default) && \ 254 if (!_attr->mask) \ 256 _attr->command, _tp->_name); \ 259 _attr->command, _attr->mask, \
|
| /linux/fs/ocfs2/cluster/ |
| H A D | masklog.c | 90 #define to_mlog_attr(_attr) container_of(_attr, struct mlog_attribute, attr) argument
|
| /linux/drivers/usb/core/ |
| H A D | endpoint.c | 34 #define to_ep_attribute(_attr) \ argument 35 container_of(_attr, struct ep_attribute, attr)
|
| /linux/kernel/ |
| H A D | ksysfs.c | 33 static struct kobj_attribute _name##_attr = __ATTR_RO(_name) 36 static struct kobj_attribute _name##_attr = __ATTR_RW(_name)
|
| H A D | fail_function.c | 95 static bool fei_attr_is_valid(struct fei_attr *_attr) in fei_attr_is_valid() argument 100 if (attr == _attr) in fei_attr_is_valid()
|
| H A D | padata.c | 821 #define attr2pentry(_attr) \ argument 822 container_of_const(_attr, struct padata_sysfs_entry, attr) 883 static const struct padata_sysfs_entry _name##_attr = \ 886 static const struct padata_sysfs_entry _name##_attr = \
|
| /linux/drivers/mfd/ |
| H A D | lm3533-core.c | 251 #define to_lm3533_dev_attr(_attr) \ argument 252 container_of(_attr, struct lm3533_device_attribute, dev_attr) 353 #define to_dev_attr(_attr) \ argument 354 container_of(_attr, struct device_attribute, attr)
|
| /linux/mm/ |
| H A D | hugetlb_sysfs.c | 15 static struct kobj_attribute _name##_attr = __ATTR_RO(_name) 18 static struct kobj_attribute _name##_attr = __ATTR_WO(_name) 21 static struct kobj_attribute _name##_attr = __ATTR_RW(_name)
|
| H A D | cma_sysfs.c | 15 static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
|
| /linux/drivers/firmware/ |
| H A D | dmi-id.c | 38 static struct dmi_device_attribute sys_dmi_##_name##_attr = \ 190 sys_dmi_attributes[i++] = &sys_dmi_##_name##_attr.dev_attr.attr;
|
| H A D | qemu_fw_cfg.c | 399 #define FW_CFG_SYSFS_ATTR(_attr) \ argument 400 struct fw_cfg_sysfs_attribute fw_cfg_sysfs_attr_##_attr = { \ 401 .attr = { .name = __stringify(_attr), .mode = S_IRUSR }, \ 402 .show = fw_cfg_sysfs_show_##_attr, \
|
| /linux/drivers/firmware/efi/ |
| H A D | esrt.c | 91 struct attribute *_attr, char *buf) in esre_attr_show() argument 94 struct esre_attribute *attr = to_attr(_attr); in esre_attr_show()
|
| /linux/drivers/iommu/intel/ |
| H A D | perfmon.c | 55 static struct attribute *_name##_attr[] = { \ 73 .attrs = _name##_attr, \ 129 static struct attribute *_name##_attr[] = { \ 147 .attrs = _name##_attr, \
|
| /linux/rust/macros/ |
| H A D | vtable.rs | |
| /linux/Documentation/translations/zh_TW/filesystems/ |
| H A D | sysfs.txt | 160 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr)
|
| /linux/Documentation/translations/zh_CN/filesystems/ |
| H A D | sysfs.txt | 157 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr)
|
| /linux/drivers/base/ |
| H A D | bus.c | 31 #define to_bus_attr(_attr) container_of(_attr, struct bus_attribute, attr) argument 37 #define to_drv_attr(_attr) container_of(_attr, struct driver_attribute, attr) argument
|
| H A D | class.c | 26 #define to_class_attr(_attr) container_of(_attr, struct class_attribute, attr) argument
|
| /linux/block/ |
| H A D | blk-crypto-sysfs.c | 61 static struct blk_crypto_attr _name##_attr = __ATTR_RO(_name)
|