Home
last modified time | relevance | path

Searched refs:to_dev_attr (Results 1 – 11 of 11) sorted by relevance

/linux/Documentation/translations/zh_CN/filesystems/
H A Dsysfs.txt157 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr)
162 struct device_attribute *dev_attr = to_dev_attr(attr);
/linux/Documentation/translations/zh_TW/filesystems/
H A Dsysfs.txt160 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr)
165 struct device_attribute *dev_attr = to_dev_attr(attr);
/linux/drivers/mfd/
H A Dlm3533-core.c353 #define to_dev_attr(_attr) \ macro
361 struct device_attribute *dattr = to_dev_attr(attr); in lm3533_attr_is_visible()
/linux/Documentation/filesystems/
H A Dsysfs.rst175 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr)
180 struct device_attribute *dev_attr = to_dev_attr(attr);
/linux/drivers/hwmon/
H A Dhwmon.c59 #define to_dev_attr(a) container_of(a, struct device_attribute, attr) macro
121 struct device_attribute *dattr = to_dev_attr(attrs[i]); in hwmon_free_attrs()
/linux/include/scsi/
H A Dlibsas.h66 #define to_dev_attr(_attr) container_of(_attr, struct domain_dev_attribute,\ macro
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ucode.c787 #define to_dev_attr(x) container_of(x, struct device_attribute, attr) macro
792 struct device_attribute *dev_attr = to_dev_attr(attr); in amdgpu_ucode_sys_visible()
/linux/drivers/most/
H A Dcore.c329 #define to_dev_attr(a) container_of(a, struct device_attribute, attr) macro
333 struct device_attribute *dev_attr = to_dev_attr(attr); in channel_attr_is_visible()
/linux/drivers/iio/
H A Dindustrialio-buffer.c1473 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr) macro
1478 struct device_attribute *dattr = to_dev_attr(attr); in iio_buffer_wrap_attr()
/linux/drivers/hwmon/pmbus/
H A Dpmbus_core.c2861 #define to_dev_attr(_dev_attr) \ macro
2869 struct device_attribute *da = to_dev_attr(data->group.attrs[i]); in pmbus_notify()
/linux/drivers/platform/x86/
H A Dthinkpad_acpi.c6273 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr) macro
6278 struct device_attribute *dev_attr = to_dev_attr(attr); in thermal_attr_is_visible()