Home
last modified time | relevance | path

Searched refs:_attr (Results 1 – 25 of 28) sorted by relevance

12

/drivers/scsi/qla2xxx/
Dqla_dfs.c52 #define DEFINE_QLA_DFS_RPORT_RW_ATTR(_attr_id, _attr) \ argument
53 static int qla_dfs_rport_##_attr##_get(void *data, u64 *val) \
58 static int qla_dfs_rport_##_attr##_set(void *data, u64 val) \
63 DEFINE_DEBUGFS_ATTRIBUTE(qla_dfs_rport_##_attr##_fops, \
64 qla_dfs_rport_##_attr##_get, \
65 qla_dfs_rport_##_attr##_set, "%llu\n")
73 #define DEFINE_QLA_DFS_RPORT_FIELD_GET(_attr, _get_val) \ argument
74 static int qla_dfs_rport_field_##_attr##_get(void *data, u64 *val) \
80 DEFINE_DEBUGFS_ATTRIBUTE(qla_dfs_rport_field_##_attr##_fops, \
81 qla_dfs_rport_field_##_attr##_get, \
[all …]
/drivers/powercap/
Dpowercap_sys.c18 #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
60 static ssize_t show_constraint_##_attr(struct device *dev, \
[all …]
/drivers/vfio/mdev/
Dmdev_private.h19 #define to_mdev_type_attr(_attr) \ argument
20 container_of(_attr, struct mdev_type_attribute, attr)
/drivers/input/mouse/
Dtrackpoint.c249 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, \
/drivers/usb/core/
Dendpoint.c33 #define to_ep_attribute(_attr) \ argument
34 container_of(_attr, struct ep_attribute, attr)
/drivers/mfd/
Dlm3533-core.c253 #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)
/drivers/firmware/
Ddmi-id.c38 static struct dmi_device_attribute sys_dmi_##_name##_attr = \
184 sys_dmi_attributes[i++] = &sys_dmi_##_name##_attr.dev_attr.attr;
Dqemu_fw_cfg.c399 #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, \
Ddmi-sysfs.c99 struct attribute *_attr, char *buf) in dmi_sysfs_attr_show() argument
102 struct dmi_sysfs_attribute *attr = to_attr(_attr); in dmi_sysfs_attr_show()
Dedd.c101 #define to_edd_attr(_attr) container_of(_attr,struct edd_attribute,attr) argument
/drivers/firmware/efi/
Desrt.c93 struct attribute *_attr, char *buf) in esre_attr_show() argument
96 struct esre_attribute *attr = to_attr(_attr); in esre_attr_show()
/drivers/net/wireless/ath/carl9170/
Ddebug.c169 _attr, _dstate) \ argument
174 .attr = _attr, \
184 #define DEBUGFS_DECLARE_FILE(name, _read, _write, _read_bufsize, _attr) \ argument
186 _attr, CARL9170_STARTED) \
/drivers/thermal/intel/
Dintel_menlow.c295 #define to_intel_menlow_attr(_attr) \ argument
296 container_of(_attr, struct intel_menlow_attribute, attr)
/drivers/base/
Dbus.c27 #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
Dclass.c23 #define to_class_attr(_attr) container_of(_attr, struct class_attribute, attr) argument
/drivers/xen/
Dsys-hypervisor.c25 static struct hyp_sysfs_attr _name##_attr = __ATTR_RO(_name)
28 static struct hyp_sysfs_attr _name##_attr = __ATTR_RW(_name)
/drivers/hid/
Dhid-roccat-lua.c88 static struct bin_attribute lua_ ## thingy ## _attr = { \
/drivers/acpi/
Dacpi_fpdt.c85 static struct kobj_attribute name##_attr = \
/drivers/parisc/
Dpdc_stable.c123 #define to_pdcspath_attribute(_attr) container_of(_attr, struct pdcspath_attribute, attr) argument
/drivers/infiniband/ulp/rtrs/
Drtrs-pri.h407 static struct kobj_attribute stat##_attr = __ATTR_RW(stat)
/drivers/leds/
Dleds-bd2802.c335 static struct device_attribute bd2802_reg##reg_addr##_attr = { \
499 static struct device_attribute bd2802_##attr_name##_attr = { \
/drivers/hwmon/pmbus/
Dpmbus_core.c46 #define to_pmbus_sensor(_attr) \ argument
47 container_of(_attr, struct pmbus_sensor, attribute)
55 #define to_pmbus_boolean(_attr) \ argument
56 container_of(_attr, struct pmbus_boolean, attribute)
63 #define to_pmbus_label(_attr) \ argument
64 container_of(_attr, struct pmbus_label, attribute)
/drivers/infiniband/hw/efa/
Defa_verbs.c1774 #define EFA_CHECK_USER_COMP(_dev, _comp_mask, _attr, _mask, _attr_str) \ argument
1775 (_attr_str = (!(_dev)->dev_attr._attr || ((_comp_mask) & (_mask))) ? \
1776 NULL : #_attr)
/drivers/iio/
Dindustrialio-buffer.c1415 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr) argument
/drivers/hwtracing/ptt/
Dhisi_ptt.c114 static struct dev_ext_attribute hisi_ptt_##_name##_attr = { \

12