Lines Matching refs:attr
14 struct device_attribute *attr, const char *buf,
28 struct device_attribute *attr, const char *buf,
48 static ssize_t wwid_show(struct device *dev, struct device_attribute *attr,
79 static ssize_t nguid_show(struct device *dev, struct device_attribute *attr,
86 static ssize_t uuid_show(struct device *dev, struct device_attribute *attr,
103 static ssize_t eui_show(struct device *dev, struct device_attribute *attr,
110 static ssize_t nsid_show(struct device *dev, struct device_attribute *attr,
118 &dev_attr_wwid.attr,
119 &dev_attr_uuid.attr,
120 &dev_attr_nguid.attr,
121 &dev_attr_eui.attr,
122 &dev_attr_nsid.attr,
124 &dev_attr_ana_grpid.attr,
125 &dev_attr_ana_state.attr,
136 if (a == &dev_attr_uuid.attr) {
141 if (a == &dev_attr_nguid.attr) {
145 if (a == &dev_attr_eui.attr) {
150 if (a == &dev_attr_ana_grpid.attr || a == &dev_attr_ana_state.attr) {
151 if (dev_to_disk(dev)->fops != &nvme_bdev_ops) /* per-path attr */
172 struct device_attribute *attr, char *buf) \
186 struct device_attribute *attr, char *buf) \
200 struct device_attribute *attr, const char *buf,
208 if (device_remove_file_self(dev, attr))
215 struct device_attribute *attr,
225 struct device_attribute *attr,
249 struct device_attribute *attr,
259 struct device_attribute *attr,
269 struct device_attribute *attr,
279 struct device_attribute *attr,
289 struct device_attribute *attr, char *buf)
301 struct device_attribute *attr, const char *buf, size_t count)
322 struct device_attribute *attr, char *buf)
332 struct device_attribute *attr, const char *buf, size_t count)
349 struct device_attribute *attr, char *buf)
359 struct device_attribute *attr, const char *buf, size_t count)
379 struct device_attribute *attr, char *buf)
396 struct device_attribute *attr, char *buf)
414 struct device_attribute *attr, char *buf)
425 struct device_attribute *attr, const char *buf, size_t count)
472 struct device_attribute *attr, char *buf)
483 struct device_attribute *attr, const char *buf, size_t count)
531 &dev_attr_reset_controller.attr,
532 &dev_attr_rescan_controller.attr,
533 &dev_attr_model.attr,
534 &dev_attr_serial.attr,
535 &dev_attr_firmware_rev.attr,
536 &dev_attr_cntlid.attr,
537 &dev_attr_delete_controller.attr,
538 &dev_attr_transport.attr,
539 &dev_attr_subsysnqn.attr,
540 &dev_attr_address.attr,
541 &dev_attr_state.attr,
542 &dev_attr_numa_node.attr,
543 &dev_attr_queue_count.attr,
544 &dev_attr_sqsize.attr,
545 &dev_attr_hostnqn.attr,
546 &dev_attr_hostid.attr,
547 &dev_attr_ctrl_loss_tmo.attr,
548 &dev_attr_reconnect_delay.attr,
549 &dev_attr_fast_io_fail_tmo.attr,
550 &dev_attr_kato.attr,
551 &dev_attr_cntrltype.attr,
552 &dev_attr_dctype.attr,
554 &dev_attr_dhchap_secret.attr,
555 &dev_attr_dhchap_ctrl_secret.attr,
566 if (a == &dev_attr_delete_controller.attr && !ctrl->ops->delete_ctrl)
568 if (a == &dev_attr_address.attr && !ctrl->ops->get_address)
570 if (a == &dev_attr_hostnqn.attr && !ctrl->opts)
572 if (a == &dev_attr_hostid.attr && !ctrl->opts)
574 if (a == &dev_attr_ctrl_loss_tmo.attr && !ctrl->opts)
576 if (a == &dev_attr_reconnect_delay.attr && !ctrl->opts)
578 if (a == &dev_attr_fast_io_fail_tmo.attr && !ctrl->opts)
581 if (a == &dev_attr_dhchap_secret.attr && !ctrl->opts)
583 if (a == &dev_attr_dhchap_ctrl_secret.attr && !ctrl->opts)
606 struct device_attribute *attr,
617 struct device_attribute *attr,
636 struct device_attribute *attr, char *buf) \
650 &subsys_attr_model.attr,
651 &subsys_attr_serial.attr,
652 &subsys_attr_firmware_rev.attr,
653 &subsys_attr_subsysnqn.attr,
654 &subsys_attr_subsystype.attr,
656 &subsys_attr_iopolicy.attr,