_attr 202 arch/s390/kernel/ipl.c static struct kobj_attribute sys_##_prefix##_##_name##_attr = \ _attr 209 arch/s390/kernel/ipl.c static struct kobj_attribute sys_##_prefix##_##_name##_attr = \ _attr 224 arch/s390/kernel/ipl.c static struct kobj_attribute sys_##_prefix##_##_name##_attr = \ _attr 239 arch/s390/kernel/ipl.c static struct kobj_attribute sys_##_prefix##_##_name##_attr = \ _attr 26 drivers/base/bus.c #define to_bus_attr(_attr) container_of(_attr, struct bus_attribute, attr) _attr 32 drivers/base/bus.c #define to_drv_attr(_attr) container_of(_attr, struct driver_attribute, attr) _attr 22 drivers/base/class.c #define to_class_attr(_attr) container_of(_attr, struct class_attribute, attr) _attr 958 drivers/base/core.c #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr) _attr 38 drivers/firmware/dmi-id.c static struct dmi_device_attribute sys_dmi_##_name##_attr = \ _attr 175 drivers/firmware/dmi-id.c sys_dmi_attributes[i++] = &sys_dmi_##_name##_attr.dev_attr.attr; _attr 99 drivers/firmware/dmi-sysfs.c struct attribute *_attr, char *buf) _attr 102 drivers/firmware/dmi-sysfs.c struct dmi_sysfs_attribute *attr = to_attr(_attr); _attr 101 drivers/firmware/edd.c #define to_edd_attr(_attr) container_of(_attr,struct edd_attribute,attr) _attr 57 drivers/firmware/efi/efivars.c #define to_efivar_attr(_attr) container_of(_attr, struct efivar_attribute, attr) _attr 93 drivers/firmware/efi/esrt.c struct attribute *_attr, char *buf) _attr 96 drivers/firmware/efi/esrt.c struct esre_attribute *attr = to_attr(_attr); _attr 399 drivers/firmware/qemu_fw_cfg.c #define FW_CFG_SYSFS_ATTR(_attr) \ _attr 400 drivers/firmware/qemu_fw_cfg.c struct fw_cfg_sysfs_attribute fw_cfg_sysfs_attr_##_attr = { \ _attr 401 drivers/firmware/qemu_fw_cfg.c .attr = { .name = __stringify(_attr), .mode = S_IRUSR }, \ _attr 402 drivers/firmware/qemu_fw_cfg.c .show = fw_cfg_sysfs_show_##_attr, \ _attr 88 drivers/hid/hid-roccat-lua.c static struct bin_attribute lua_ ## thingy ## _attr = { \ _attr 59 drivers/hwmon/pmbus/pmbus_core.c #define to_pmbus_sensor(_attr) \ _attr 60 drivers/hwmon/pmbus/pmbus_core.c container_of(_attr, struct pmbus_sensor, attribute) _attr 68 drivers/hwmon/pmbus/pmbus_core.c #define to_pmbus_boolean(_attr) \ _attr 69 drivers/hwmon/pmbus/pmbus_core.c container_of(_attr, struct pmbus_boolean, attribute) _attr 76 drivers/hwmon/pmbus/pmbus_core.c #define to_pmbus_label(_attr) \ _attr 77 drivers/hwmon/pmbus/pmbus_core.c container_of(_attr, struct pmbus_label, attribute) _attr 247 drivers/input/mouse/trackpoint.c struct trackpoint_attr_data *_attr = &trackpoint_attr_##_name; \ _attr 249 drivers/input/mouse/trackpoint.c if ((!_power_on || _tp->_name != _attr->power_on_default) && \ _attr 252 drivers/input/mouse/trackpoint.c if (!_attr->mask) \ _attr 254 drivers/input/mouse/trackpoint.c _attr->command, _tp->_name); \ _attr 257 drivers/input/mouse/trackpoint.c _attr->command, _attr->mask, \ _attr 85 drivers/iommu/iommu.c #define to_iommu_group_attr(_attr) \ _attr 86 drivers/iommu/iommu.c container_of(_attr, struct iommu_group_attribute, attr) _attr 334 drivers/leds/leds-bd2802.c static struct device_attribute bd2802_reg##reg_addr##_attr = { \ _attr 498 drivers/leds/leds-bd2802.c static struct device_attribute bd2802_##attr_name##_attr = { \ _attr 253 drivers/mfd/lm3533-core.c #define to_lm3533_dev_attr(_attr) \ _attr 254 drivers/mfd/lm3533-core.c container_of(_attr, struct lm3533_device_attribute, dev_attr) _attr 355 drivers/mfd/lm3533-core.c #define to_dev_attr(_attr) \ _attr 356 drivers/mfd/lm3533-core.c container_of(_attr, struct device_attribute, attr) _attr 1857 drivers/net/ethernet/ibm/ibmveth.c struct attribute veth_##_name##_attr = { \ _attr 169 drivers/net/wireless/ath/carl9170/debug.c _attr, _dstate) \ _attr 174 drivers/net/wireless/ath/carl9170/debug.c .attr = _attr, \ _attr 184 drivers/net/wireless/ath/carl9170/debug.c #define DEBUGFS_DECLARE_FILE(name, _read, _write, _read_bufsize, _attr) \ _attr 186 drivers/net/wireless/ath/carl9170/debug.c _attr, CARL9170_STARTED) \ _attr 123 drivers/parisc/pdc_stable.c #define to_pdcspath_attribute(_attr) container_of(_attr, struct pdcspath_attribute, attr) _attr 294 drivers/platform/x86/intel_menlow.c #define to_intel_menlow_attr(_attr) \ _attr 295 drivers/platform/x86/intel_menlow.c container_of(_attr, struct intel_menlow_attribute, attr) _attr 18 drivers/powercap/powercap_sys.c #define define_power_zone_show(_attr) \ _attr 19 drivers/powercap/powercap_sys.c static ssize_t _attr##_show(struct device *dev, \ _attr 27 drivers/powercap/powercap_sys.c if (power_zone->ops->get_##_attr) { \ _attr 28 drivers/powercap/powercap_sys.c if (!power_zone->ops->get_##_attr(power_zone, &value)) \ _attr 36 drivers/powercap/powercap_sys.c #define define_power_zone_store(_attr) \ _attr 37 drivers/powercap/powercap_sys.c static ssize_t _attr##_store(struct device *dev,\ _attr 50 drivers/powercap/powercap_sys.c if (power_zone->ops->reset_##_attr) { \ _attr 51 drivers/powercap/powercap_sys.c if (!power_zone->ops->reset_##_attr(power_zone)) \ _attr 59 drivers/powercap/powercap_sys.c #define define_power_zone_constraint_show(_attr) \ _attr 60 drivers/powercap/powercap_sys.c static ssize_t show_constraint_##_attr(struct device *dev, \ _attr 75 drivers/powercap/powercap_sys.c if (pconst && pconst->ops && pconst->ops->get_##_attr) { \ _attr 76 drivers/powercap/powercap_sys.c if (!pconst->ops->get_##_attr(power_zone, id, &value)) \ _attr 84 drivers/powercap/powercap_sys.c #define define_power_zone_constraint_store(_attr) \ _attr 85 drivers/powercap/powercap_sys.c static ssize_t store_constraint_##_attr(struct device *dev,\ _attr 103 drivers/powercap/powercap_sys.c if (pconst && pconst->ops && pconst->ops->set_##_attr) { \ _attr 104 drivers/powercap/powercap_sys.c if (!pconst->ops->set_##_attr(power_zone, id, value)) \ _attr 33 drivers/usb/core/endpoint.c #define to_ep_attribute(_attr) \ _attr 34 drivers/usb/core/endpoint.c container_of(_attr, struct ep_attribute, attr) _attr 49 drivers/vfio/mdev/mdev_private.h #define to_mdev_type_attr(_attr) \ _attr 50 drivers/vfio/mdev/mdev_private.h container_of(_attr, struct mdev_type_attribute, attr) _attr 25 drivers/xen/sys-hypervisor.c static struct hyp_sysfs_attr _name##_attr = __ATTR_RO(_name) _attr 28 drivers/xen/sys-hypervisor.c static struct hyp_sysfs_attr _name##_attr = \ _attr 42 fs/nilfs2/sysfs.c struct nilfs_##name##_attr *a = container_of(attr, \ _attr 43 fs/nilfs2/sysfs.c struct nilfs_##name##_attr, \ _attr 54 fs/nilfs2/sysfs.c struct nilfs_##name##_attr *a = container_of(attr, \ _attr 55 fs/nilfs2/sysfs.c struct nilfs_##name##_attr, \ _attr 54 fs/nilfs2/sysfs.h struct nilfs_##name##_attr { \ _attr 65 fs/nilfs2/sysfs.h struct nilfs_##name##_attr { \ _attr 67 fs/nilfs2/sysfs.h ssize_t (*show)(struct nilfs_##name##_attr *, struct the_nilfs *, \ _attr 69 fs/nilfs2/sysfs.h ssize_t (*store)(struct nilfs_##name##_attr *, struct the_nilfs *, \ _attr 81 fs/nilfs2/sysfs.h struct nilfs_##name##_attr { \ _attr 83 fs/nilfs2/sysfs.h ssize_t (*show)(struct nilfs_##name##_attr *, struct nilfs_root *, \ _attr 85 fs/nilfs2/sysfs.h ssize_t (*store)(struct nilfs_##name##_attr *, struct nilfs_root *, \ _attr 92 fs/nilfs2/sysfs.h static struct nilfs_##type##_attr nilfs_##type##_attr_##name = \ _attr 92 fs/ocfs2/cluster/masklog.c #define to_mlog_attr(_attr) container_of(_attr, struct mlog_attribute, attr) _attr 76 include/scsi/libsas.h #define to_dev_attr(_attr) container_of(_attr, struct domain_dev_attribute,\ _attr 95 kernel/fail_function.c static bool fei_attr_is_valid(struct fei_attr *_attr) _attr 100 kernel/fail_function.c if (attr == _attr) _attr 144 kernel/irq/irqdesc.c static struct kobj_attribute _name##_attr = __ATTR_RO(_name) _attr 24 kernel/ksysfs.c static struct kobj_attribute _name##_attr = __ATTR_RO(_name) _attr 27 kernel/ksysfs.c static struct kobj_attribute _name##_attr = \ _attr 836 kernel/padata.c #define attr2pentry(_attr) \ _attr 837 kernel/padata.c container_of(_attr, struct padata_sysfs_entry, attr) _attr 898 kernel/padata.c static struct padata_sysfs_entry _name##_attr = \ _attr 901 kernel/padata.c static struct padata_sysfs_entry _name##_attr = \ _attr 79 kernel/power/power.h static struct kobj_attribute _name##_attr = { \ _attr 89 kernel/power/power.h static struct kobj_attribute _name##_attr = { \ _attr 2553 mm/hugetlb.c static struct kobj_attribute _name##_attr = __ATTR_RO(_name) _attr 2556 mm/hugetlb.c static struct kobj_attribute _name##_attr = \ _attr 2848 mm/ksm.c static struct kobj_attribute _name##_attr = __ATTR_RO(_name) _attr 2850 mm/ksm.c static struct kobj_attribute _name##_attr = \ _attr 4936 mm/slub.c static struct slab_attribute _name##_attr = \ _attr 4940 mm/slub.c static struct slab_attribute _name##_attr = \ _attr 651 net/core/net-sysfs.c #define to_rx_queue_attr(_attr) \ _attr 652 net/core/net-sysfs.c container_of(_attr, struct rx_queue_attribute, attr) _attr 994 net/core/net-sysfs.c #define to_netdev_queue_attr(_attr) \ _attr 995 net/core/net-sysfs.c container_of(_attr, struct netdev_queue_attribute, attr)