Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 9 of 9) sorted by relevance

/block/
Dblk-sysfs.c22 struct attribute attr; member
553 .attr = { .name = _name, .mode = 0444 }, \
559 .attr = { .name = _name, .mode = 0644 }, \
610 .attr = {.name = "hw_sector_size", .mode = 0444 },
620 &queue_requests_entry.attr,
621 &queue_ra_entry.attr,
622 &queue_max_hw_sectors_entry.attr,
623 &queue_max_sectors_entry.attr,
624 &queue_max_segments_entry.attr,
625 &queue_max_discard_segments_entry.attr,
[all …]
Dblk-mq-sysfs.c49 struct attribute attr; member
55 struct attribute attr; member
60 static ssize_t blk_mq_sysfs_show(struct kobject *kobj, struct attribute *attr, in blk_mq_sysfs_show() argument
68 entry = container_of(attr, struct blk_mq_ctx_sysfs_entry, attr); in blk_mq_sysfs_show()
81 static ssize_t blk_mq_sysfs_store(struct kobject *kobj, struct attribute *attr, in blk_mq_sysfs_store() argument
89 entry = container_of(attr, struct blk_mq_ctx_sysfs_entry, attr); in blk_mq_sysfs_store()
103 struct attribute *attr, char *page) in blk_mq_hw_sysfs_show() argument
110 entry = container_of(attr, struct blk_mq_hw_ctx_sysfs_entry, attr); in blk_mq_hw_sysfs_show()
124 struct attribute *attr, const char *page, in blk_mq_hw_sysfs_store() argument
132 entry = container_of(attr, struct blk_mq_hw_ctx_sysfs_entry, attr); in blk_mq_hw_sysfs_store()
[all …]
Dblk-integrity.c216 struct attribute attr; member
221 static ssize_t integrity_attr_show(struct kobject *kobj, struct attribute *attr, in integrity_attr_show() argument
227 container_of(attr, struct integrity_sysfs_entry, attr); in integrity_attr_show()
233 struct attribute *attr, const char *page, in integrity_attr_store() argument
239 container_of(attr, struct integrity_sysfs_entry, attr); in integrity_attr_store()
312 .attr = { .name = "format", .mode = 0444 },
317 .attr = { .name = "tag_size", .mode = 0444 },
322 .attr = { .name = "protection_interval_bytes", .mode = 0444 },
327 .attr = { .name = "read_verify", .mode = 0644 },
333 .attr = { .name = "write_generate", .mode = 0644 },
[all …]
Dgenhd.c959 struct device_attribute *attr, in disk_badblocks_show() argument
971 struct device_attribute *attr, in disk_badblocks_store() argument
1238 struct device_attribute *attr, char *buf) in disk_range_show() argument
1246 struct device_attribute *attr, char *buf) in disk_ext_range_show() argument
1254 struct device_attribute *attr, char *buf) in disk_removable_show() argument
1263 struct device_attribute *attr, char *buf) in disk_hidden_show() argument
1272 struct device_attribute *attr, char *buf) in disk_ro_show() argument
1280 struct device_attribute *attr, char *buf) in part_size_show() argument
1289 struct device_attribute *attr, char *buf) in part_stat_show() argument
1332 ssize_t part_inflight_show(struct device *dev, struct device_attribute *attr, in part_inflight_show() argument
[all …]
Dblk-mq-debugfs.c721 const struct blk_mq_debugfs_attr *attr = m->private; in blk_mq_debugfs_show() local
724 return attr->show(data, m); in blk_mq_debugfs_show()
731 const struct blk_mq_debugfs_attr *attr = m->private; in blk_mq_debugfs_write() local
738 if (attr == data || !attr->write) in blk_mq_debugfs_write()
741 return attr->write(data, buf, count, ppos); in blk_mq_debugfs_write()
746 const struct blk_mq_debugfs_attr *attr = inode->i_private; in blk_mq_debugfs_open() local
751 if (attr->seq_ops) { in blk_mq_debugfs_open()
752 ret = seq_open(file, attr->seq_ops); in blk_mq_debugfs_open()
760 if (WARN_ON_ONCE(!attr->show)) in blk_mq_debugfs_open()
768 const struct blk_mq_debugfs_attr *attr = inode->i_private; in blk_mq_debugfs_release() local
[all …]
Delevator.c438 #define to_elv(atr) container_of((atr), struct elv_fs_entry, attr)
441 elv_attr_show(struct kobject *kobj, struct attribute *attr, char *page) in elv_attr_show() argument
443 struct elv_fs_entry *entry = to_elv(attr); in elv_attr_show()
458 elv_attr_store(struct kobject *kobj, struct attribute *attr, in elv_attr_store() argument
461 struct elv_fs_entry *entry = to_elv(attr); in elv_attr_store()
494 struct elv_fs_entry *attr = e->type->elevator_attrs; in elv_register_queue() local
495 if (attr) { in elv_register_queue()
496 while (attr->attr.name) { in elv_register_queue()
497 if (sysfs_create_file(&e->kobj, &attr->attr)) in elv_register_queue()
499 attr++; in elv_register_queue()
Dblk.h222 ssize_t part_size_show(struct device *dev, struct device_attribute *attr,
224 ssize_t part_stat_show(struct device *dev, struct device_attribute *attr,
226 ssize_t part_inflight_show(struct device *dev, struct device_attribute *attr,
228 ssize_t part_fail_show(struct device *dev, struct device_attribute *attr,
230 ssize_t part_fail_store(struct device *dev, struct device_attribute *attr,
Dblk-timeout.c39 ssize_t part_timeout_show(struct device *dev, struct device_attribute *attr, in part_timeout_show() argument
48 ssize_t part_timeout_store(struct device *dev, struct device_attribute *attr, in part_timeout_store() argument
/block/partitions/
Dcore.c176 struct device_attribute *attr, char *buf) in part_partition_show() argument
184 struct device_attribute *attr, char *buf) in part_start_show() argument
192 struct device_attribute *attr, char *buf) in part_ro_show() argument
199 struct device_attribute *attr, char *buf) in part_alignment_offset_show() argument
209 struct device_attribute *attr, char *buf) in part_discard_alignment_show() argument
232 &dev_attr_partition.attr,
233 &dev_attr_start.attr,
234 &dev_attr_size.attr,
235 &dev_attr_ro.attr,
236 &dev_attr_alignment_offset.attr,
[all …]