Searched refs:_dev_attr (Results 1 – 10 of 10) sorted by relevance
| /Linux-v6.6/drivers/platform/x86/intel/uncore-frequency/ |
| D | uncore-frequency-common.c | 104 struct uncore_data *data = container_of(attr, struct uncore_data, name##_dev_attr);\ 114 struct uncore_data *data = container_of(attr, struct uncore_data, name##_dev_attr);\ 123 struct uncore_data *data = container_of(attr, struct uncore_data, name##_dev_attr);\ 141 member_name##_dev_attr);\ 152 sysfs_attr_init(&data->_name##_dev_attr.attr); \ 153 data->_name##_dev_attr.show = show_##_name; \ 154 data->_name##_dev_attr.store = store_##_name; \ 155 data->_name##_dev_attr.attr.name = #_name; \ 156 data->_name##_dev_attr.attr.mode = 0644; \ 161 sysfs_attr_init(&data->_name##_dev_attr.attr); \ [all …]
|
| /Linux-v6.6/include/linux/ |
| D | hwmon-sysfs.h | 17 #define to_sensor_dev_attr(_dev_attr) \ argument 18 container_of(_dev_attr, struct sensor_device_attribute, dev_attr) 51 #define to_sensor_dev_attr_2(_dev_attr) \ argument 52 container_of(_dev_attr, struct sensor_device_attribute_2, dev_attr)
|
| /Linux-v6.6/include/linux/iio/ |
| D | sysfs.h | 31 #define to_iio_dev_attr(_dev_attr) \ argument 32 container_of(_dev_attr, struct iio_dev_attr, dev_attr) 49 #define to_iio_const_attr(_dev_attr) \ argument 50 container_of(_dev_attr, struct iio_const_attr, dev_attr)
|
| /Linux-v6.6/drivers/gpu/drm/amd/pm/inc/ |
| D | amdgpu_pm.h | 59 #define to_amdgpu_device_attr(_dev_attr) \ argument 60 container_of(_dev_attr, struct amdgpu_device_attr, dev_attr)
|
| /Linux-v6.6/drivers/iio/health/ |
| D | afe440x.h | 142 #define to_afe440x_attr(_dev_attr) \ argument 143 container_of(_dev_attr, struct afe440x_attr, dev_attr)
|
| /Linux-v6.6/drivers/memory/ |
| D | bt1-l2-ctl.c | 70 #define to_l2_ctl_dev_attr(_dev_attr) \ argument 71 container_of(_dev_attr, struct l2_ctl_device_attribute, dev_attr)
|
| /Linux-v6.6/drivers/firmware/ |
| D | dmi-id.c | 19 #define to_dmi_dev_attr(_dev_attr) \ argument 20 container_of(_dev_attr, struct dmi_device_attribute, dev_attr)
|
| /Linux-v6.6/drivers/soc/aspeed/ |
| D | aspeed-uart-routing.c | 47 #define to_routing_selector(_dev_attr) \ argument 48 container_of(_dev_attr, struct aspeed_uart_routing_selector, dev_attr)
|
| /Linux-v6.6/drivers/counter/ |
| D | counter-sysfs.c | 44 #define to_counter_attribute(_dev_attr) \ argument 45 container_of(_dev_attr, struct counter_attribute, dev_attr)
|
| /Linux-v6.6/drivers/hwmon/pmbus/ |
| D | pmbus_core.c | 2772 #define to_dev_attr(_dev_attr) \ argument 2773 container_of(_dev_attr, struct device_attribute, attr)
|