/block/ |
D | blk-sysfs.c | 18 struct attribute attr; member 352 .attr = {.name = "nr_requests", .mode = S_IRUGO | S_IWUSR }, 358 .attr = {.name = "read_ahead_kb", .mode = S_IRUGO | S_IWUSR }, 364 .attr = {.name = "max_sectors_kb", .mode = S_IRUGO | S_IWUSR }, 370 .attr = {.name = "max_hw_sectors_kb", .mode = S_IRUGO }, 375 .attr = {.name = "max_segments", .mode = S_IRUGO }, 380 .attr = {.name = "max_integrity_segments", .mode = S_IRUGO }, 385 .attr = {.name = "max_segment_size", .mode = S_IRUGO }, 390 .attr = {.name = "scheduler", .mode = S_IRUGO | S_IWUSR }, 396 .attr = {.name = "hw_sector_size", .mode = S_IRUGO }, [all …]
|
D | blk-mq-sysfs.c | 21 struct attribute attr; member 27 struct attribute attr; member 32 static ssize_t blk_mq_sysfs_show(struct kobject *kobj, struct attribute *attr, in blk_mq_sysfs_show() argument 40 entry = container_of(attr, struct blk_mq_ctx_sysfs_entry, attr); in blk_mq_sysfs_show() 55 static ssize_t blk_mq_sysfs_store(struct kobject *kobj, struct attribute *attr, in blk_mq_sysfs_store() argument 63 entry = container_of(attr, struct blk_mq_ctx_sysfs_entry, attr); in blk_mq_sysfs_store() 79 struct attribute *attr, char *page) in blk_mq_hw_sysfs_show() argument 86 entry = container_of(attr, struct blk_mq_hw_ctx_sysfs_entry, attr); in blk_mq_hw_sysfs_show() 102 struct attribute *attr, const char *page, in blk_mq_hw_sysfs_store() argument 110 entry = container_of(attr, struct blk_mq_hw_ctx_sysfs_entry, attr); in blk_mq_hw_sysfs_store() [all …]
|
D | blk-integrity.c | 240 struct attribute attr; member 245 static ssize_t integrity_attr_show(struct kobject *kobj, struct attribute *attr, in integrity_attr_show() argument 251 container_of(attr, struct integrity_sysfs_entry, attr); in integrity_attr_show() 257 struct attribute *attr, const char *page, in integrity_attr_store() argument 263 container_of(attr, struct integrity_sysfs_entry, attr); in integrity_attr_store() 336 .attr = { .name = "format", .mode = S_IRUGO }, 341 .attr = { .name = "tag_size", .mode = S_IRUGO }, 346 .attr = { .name = "protection_interval_bytes", .mode = S_IRUGO }, 351 .attr = { .name = "read_verify", .mode = S_IRUGO | S_IWUSR }, 357 .attr = { .name = "write_generate", .mode = S_IRUGO | S_IWUSR }, [all …]
|
D | partition-generic.c | 68 struct device_attribute *attr, char *buf) in part_partition_show() argument 76 struct device_attribute *attr, char *buf) in part_start_show() argument 84 struct device_attribute *attr, char *buf) in part_size_show() argument 91 struct device_attribute *attr, char *buf) in part_ro_show() argument 98 struct device_attribute *attr, char *buf) in part_alignment_offset_show() argument 105 struct device_attribute *attr, char *buf) in part_discard_alignment_show() argument 112 struct device_attribute *attr, char *buf) in part_stat_show() argument 139 struct device_attribute *attr, char *buf) in part_inflight_show() argument 149 struct device_attribute *attr, char *buf) in part_fail_show() argument 157 struct device_attribute *attr, in part_fail_store() argument [all …]
|
D | genhd.c | 927 struct device_attribute *attr, char *buf) in disk_range_show() argument 935 struct device_attribute *attr, char *buf) in disk_ext_range_show() argument 943 struct device_attribute *attr, char *buf) in disk_removable_show() argument 952 struct device_attribute *attr, char *buf) in disk_ro_show() argument 960 struct device_attribute *attr, char *buf) in disk_capability_show() argument 968 struct device_attribute *attr, in disk_alignment_offset_show() argument 977 struct device_attribute *attr, in disk_discard_alignment_show() argument 1007 &dev_attr_range.attr, 1008 &dev_attr_ext_range.attr, 1009 &dev_attr_removable.attr, [all …]
|
D | elevator.c | 745 #define to_elv(atr) container_of((atr), struct elv_fs_entry, attr) 748 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument 750 struct elv_fs_entry *entry = to_elv(attr); in elv_attr_show() 765 elv_attr_store(struct kobject *kobj, struct attribute *attr, in elv_attr_store() argument 768 struct elv_fs_entry *entry = to_elv(attr); in elv_attr_store() 799 struct elv_fs_entry *attr = e->type->elevator_attrs; in elv_register_queue() local 800 if (attr) { in elv_register_queue() 801 while (attr->attr.name) { in elv_register_queue() 802 if (sysfs_create_file(&e->kobj, &attr->attr)) in elv_register_queue() 804 attr++; in elv_register_queue()
|
D | blk-timeout.c | 40 ssize_t part_timeout_show(struct device *dev, struct device_attribute *attr, in part_timeout_show() argument 49 ssize_t part_timeout_store(struct device *dev, struct device_attribute *attr, in part_timeout_store() argument
|