Lines Matching refs:attr
141 &driver_attr_new_id.attr,
142 &driver_attr_remove_id.attr,
249 struct device_attribute *attr, char *buf)
258 struct device_attribute *attr, char *buf)
269 struct device_attribute *attr, char *buf)
294 struct device_attribute *attr, char *buf)
308 struct device_attribute *attr, char *buf)
327 struct device_attribute *attr, char *buf)
344 static ssize_t create_store(struct device *dev, struct device_attribute *attr,
505 static ssize_t delete_store(struct device *dev, struct device_attribute *attr,
562 if (a == &dev_attr_available_size.attr
563 || a == &dev_attr_create.attr
564 || a == &dev_attr_seed.attr
565 || a == &dev_attr_delete.attr)
571 &dev_attr_available_size.attr,
572 &dev_attr_region_size.attr,
573 &dev_attr_region_align.attr,
574 &dev_attr_create.attr,
575 &dev_attr_seed.attr,
576 &dev_attr_delete.attr,
577 &dev_attr_id.attr,
702 struct device_attribute *attr, char *buf)
718 struct device_attribute *attr, char *buf)
734 struct device_attribute *attr, char *buf)
750 &dev_attr_start.attr,
751 &dev_attr_end.attr,
752 &dev_attr_page_offset.attr,
905 struct device_attribute *attr, char *buf)
1065 static ssize_t size_store(struct device *dev, struct device_attribute *attr,
1126 static ssize_t mapping_store(struct device *dev, struct device_attribute *attr,
1158 struct device_attribute *attr, char *buf)
1183 static ssize_t align_store(struct device *dev, struct device_attribute *attr,
1230 struct device_attribute *attr, char *buf)
1239 struct device_attribute *attr, char *buf)
1254 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
1266 struct device_attribute *attr, char *buf)
1278 if (a == &dev_attr_target_node.attr && dev_dax_target_node(dev_dax) < 0)
1280 if (a == &dev_attr_numa_node.attr && !IS_ENABLED(CONFIG_NUMA))
1282 if (a == &dev_attr_mapping.attr && is_static(dax_region))
1284 if ((a == &dev_attr_align.attr ||
1285 a == &dev_attr_size.attr) && is_static(dax_region))
1291 &dev_attr_modalias.attr,
1292 &dev_attr_size.attr,
1293 &dev_attr_mapping.attr,
1294 &dev_attr_target_node.attr,
1295 &dev_attr_align.attr,
1296 &dev_attr_resource.attr,
1297 &dev_attr_numa_node.attr,