/linux/fs/nilfs2/ |
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 = \
|
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/scsi/qla2xxx/ |
A D | qla_dfs.c | 52 #define DEFINE_QLA_DFS_RPORT_RW_ATTR(_attr_id, _attr) \ argument 64 qla_dfs_rport_##_attr##_get, \ 65 qla_dfs_rport_##_attr##_set, "%llu\n") 81 qla_dfs_rport_field_##_attr##_get, \ 84 #define DEFINE_QLA_DFS_RPORT_ACCESS(_attr, _get_val) \ argument 85 DEFINE_QLA_DFS_RPORT_FIELD_GET(_attr, _get_val) 87 #define DEFINE_QLA_DFS_RPORT_FIELD(_attr) \ argument 88 DEFINE_QLA_DFS_RPORT_FIELD_GET(_attr, fp->_attr) 110 #define QLA_CREATE_RPORT_FIELD_ATTR(_attr) \ in qla2x00_dfs_create_rport() argument 111 debugfs_create_file(#_attr, 0400, fp->dfs_rport_dir, \ in qla2x00_dfs_create_rport() [all …]
|
/linux/drivers/powercap/ |
A D | powercap_sys.c | 18 #define define_power_zone_show(_attr) \ argument 19 static ssize_t _attr##_show(struct device *dev, \ 27 if (power_zone->ops->get_##_attr) { \ 28 if (!power_zone->ops->get_##_attr(power_zone, &value)) \ 36 #define define_power_zone_store(_attr) \ argument 37 static ssize_t _attr##_store(struct device *dev,\ 50 if (power_zone->ops->reset_##_attr) { \ 51 if (!power_zone->ops->reset_##_attr(power_zone)) \ 59 #define define_power_zone_constraint_show(_attr) \ argument 84 #define define_power_zone_constraint_store(_attr) \ argument [all …]
|
/linux/drivers/input/mouse/ |
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/drivers/vfio/mdev/ |
A D | mdev_private.h | 35 #define to_mdev_type_attr(_attr) \ argument 36 container_of(_attr, struct mdev_type_attribute, attr)
|
/linux/kernel/power/ |
A D | power.h | 81 static struct kobj_attribute _name##_attr = { \ 91 static struct kobj_attribute _name##_attr = { \
|
/linux/drivers/usb/core/ |
A D | endpoint.c | 33 #define to_ep_attribute(_attr) \ argument 34 container_of(_attr, struct ep_attribute, attr)
|
/linux/fs/ocfs2/cluster/ |
A D | masklog.c | 90 #define to_mlog_attr(_attr) container_of(_attr, struct mlog_attribute, attr) argument
|
/linux/drivers/mfd/ |
A D | lm3533-core.c | 253 #define to_lm3533_dev_attr(_attr) \ argument 254 container_of(_attr, struct lm3533_device_attribute, dev_attr) 355 #define to_dev_attr(_attr) \ argument 356 container_of(_attr, struct device_attribute, attr)
|
/linux/kernel/ |
A D | ksysfs.c | 24 static struct kobj_attribute _name##_attr = __ATTR_RO(_name) 27 static struct kobj_attribute _name##_attr = \
|
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()
|
A D | padata.c | 839 #define attr2pentry(_attr) \ argument 840 container_of(_attr, struct padata_sysfs_entry, attr) 901 static struct padata_sysfs_entry _name##_attr = \ 904 static struct padata_sysfs_entry _name##_attr = \
|
/linux/drivers/firmware/ |
A D | dmi-id.c | 38 static struct dmi_device_attribute sys_dmi_##_name##_attr = \ 184 sys_dmi_attributes[i++] = &sys_dmi_##_name##_attr.dev_attr.attr;
|
A D | qemu_fw_cfg.c | 400 #define FW_CFG_SYSFS_ATTR(_attr) \ argument 401 struct fw_cfg_sysfs_attribute fw_cfg_sysfs_attr_##_attr = { \ 402 .attr = { .name = __stringify(_attr), .mode = S_IRUSR }, \ 403 .show = fw_cfg_sysfs_show_##_attr, \
|
/linux/drivers/firmware/efi/ |
A D | esrt.c | 93 struct attribute *_attr, char *buf) in esre_attr_show() argument 96 struct esre_attribute *attr = to_attr(_attr); in esre_attr_show()
|
/linux/mm/ |
A D | cma_sysfs.c | 15 static struct kobj_attribute _name##_attr = __ATTR_RO(_name)
|
/linux/Documentation/translations/zh_CN/filesystems/ |
A D | sysfs.txt | 157 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr)
|
/linux/Documentation/translations/zh_TW/filesystems/ |
A D | sysfs.txt | 160 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr)
|
/linux/drivers/net/wireless/ath/carl9170/ |
A D | debug.c | 169 _attr, _dstate) \ argument 174 .attr = _attr, \ 184 #define DEBUGFS_DECLARE_FILE(name, _read, _write, _read_bufsize, _attr) \ argument 186 _attr, CARL9170_STARTED) \
|
/linux/drivers/thermal/intel/ |
A D | intel_menlow.c | 295 #define to_intel_menlow_attr(_attr) \ argument 296 container_of(_attr, struct intel_menlow_attribute, attr)
|
/linux/drivers/base/ |
A D | bus.c | 27 #define to_bus_attr(_attr) container_of(_attr, struct bus_attribute, attr) argument 33 #define to_drv_attr(_attr) container_of(_attr, struct driver_attribute, attr) argument
|
A D | class.c | 23 #define to_class_attr(_attr) container_of(_attr, struct class_attribute, attr) argument
|
/linux/include/scsi/ |
A D | libsas.h | 76 #define to_dev_attr(_attr) container_of(_attr, struct domain_dev_attribute,\ argument
|
/linux/drivers/xen/ |
A D | sys-hypervisor.c | 25 static struct hyp_sysfs_attr _name##_attr = __ATTR_RO(_name) 28 static struct hyp_sysfs_attr _name##_attr = \
|