Lines Matching refs:attr

14 				struct device_attribute *attr, const char *buf,  in nvme_sysfs_reset()  argument
28 struct device_attribute *attr, const char *buf, in nvme_sysfs_rescan() argument
39 struct device_attribute *attr, char *buf) in nvme_adm_passthru_err_log_enabled_show() argument
48 struct device_attribute *attr, const char *buf, size_t count) in nvme_adm_passthru_err_log_enabled_store() argument
73 struct device_attribute *attr, char *buf) in nvme_io_passthru_err_log_enabled_show() argument
81 struct device_attribute *attr, const char *buf, size_t count) in nvme_io_passthru_err_log_enabled_store() argument
103 static ssize_t wwid_show(struct device *dev, struct device_attribute *attr, in wwid_show() argument
134 static ssize_t nguid_show(struct device *dev, struct device_attribute *attr, in nguid_show() argument
141 static ssize_t uuid_show(struct device *dev, struct device_attribute *attr, in uuid_show() argument
158 static ssize_t eui_show(struct device *dev, struct device_attribute *attr, in eui_show() argument
165 static ssize_t nsid_show(struct device *dev, struct device_attribute *attr, in nsid_show() argument
172 static ssize_t csi_show(struct device *dev, struct device_attribute *attr, in csi_show() argument
180 struct device_attribute *attr, char *buf) in metadata_bytes_show() argument
231 static ssize_t nuse_show(struct device *dev, struct device_attribute *attr, in nuse_show() argument
250 &dev_attr_wwid.attr,
251 &dev_attr_uuid.attr,
252 &dev_attr_nguid.attr,
253 &dev_attr_eui.attr,
254 &dev_attr_csi.attr,
255 &dev_attr_nsid.attr,
256 &dev_attr_metadata_bytes.attr,
257 &dev_attr_nuse.attr,
259 &dev_attr_ana_grpid.attr,
260 &dev_attr_ana_state.attr,
261 &dev_attr_queue_depth.attr,
262 &dev_attr_numa_nodes.attr,
263 &dev_attr_delayed_removal_secs.attr,
265 &dev_attr_io_passthru_err_log_enabled.attr,
275 if (a == &dev_attr_uuid.attr) { in nvme_ns_attrs_are_visible()
280 if (a == &dev_attr_nguid.attr) { in nvme_ns_attrs_are_visible()
284 if (a == &dev_attr_eui.attr) { in nvme_ns_attrs_are_visible()
289 if (a == &dev_attr_ana_grpid.attr || a == &dev_attr_ana_state.attr) { in nvme_ns_attrs_are_visible()
296 if (a == &dev_attr_queue_depth.attr || a == &dev_attr_numa_nodes.attr) { in nvme_ns_attrs_are_visible()
300 if (a == &dev_attr_delayed_removal_secs.attr) { in nvme_ns_attrs_are_visible()
340 struct attribute *attr, int n) in multipath_sysfs_attr_visible() argument
364 struct device_attribute *attr, char *buf) \
378 struct device_attribute *attr, char *buf) \
392 struct device_attribute *attr, const char *buf, in nvme_sysfs_delete() argument
400 if (device_remove_file_self(dev, attr)) in nvme_sysfs_delete()
407 struct device_attribute *attr, in nvme_sysfs_show_transport() argument
417 struct device_attribute *attr, in nvme_sysfs_show_state() argument
441 struct device_attribute *attr, in nvme_sysfs_show_subsysnqn() argument
451 struct device_attribute *attr, in nvme_sysfs_show_hostnqn() argument
461 struct device_attribute *attr, in nvme_sysfs_show_hostid() argument
471 struct device_attribute *attr, in nvme_sysfs_show_address() argument
481 struct device_attribute *attr, char *buf) in nvme_ctrl_loss_tmo_show() argument
493 struct device_attribute *attr, const char *buf, size_t count) in nvme_ctrl_loss_tmo_store() argument
514 struct device_attribute *attr, char *buf) in nvme_ctrl_reconnect_delay_show() argument
524 struct device_attribute *attr, const char *buf, size_t count) in nvme_ctrl_reconnect_delay_store() argument
541 struct device_attribute *attr, char *buf) in nvme_ctrl_fast_io_fail_tmo_show() argument
551 struct device_attribute *attr, const char *buf, size_t count) in nvme_ctrl_fast_io_fail_tmo_store() argument
571 struct device_attribute *attr, char *buf) in cntrltype_show() argument
588 struct device_attribute *attr, char *buf) in dctype_show() argument
606 struct device_attribute *attr, char *buf) in nvme_ctrl_dhchap_secret_show() argument
617 struct device_attribute *attr, const char *buf, size_t count) in nvme_ctrl_dhchap_secret_store() argument
664 struct device_attribute *attr, char *buf) in nvme_ctrl_dhchap_ctrl_secret_show() argument
675 struct device_attribute *attr, const char *buf, size_t count) in nvme_ctrl_dhchap_ctrl_secret_store() argument
723 &dev_attr_reset_controller.attr,
724 &dev_attr_rescan_controller.attr,
725 &dev_attr_model.attr,
726 &dev_attr_serial.attr,
727 &dev_attr_firmware_rev.attr,
728 &dev_attr_cntlid.attr,
729 &dev_attr_delete_controller.attr,
730 &dev_attr_transport.attr,
731 &dev_attr_subsysnqn.attr,
732 &dev_attr_address.attr,
733 &dev_attr_state.attr,
734 &dev_attr_numa_node.attr,
735 &dev_attr_queue_count.attr,
736 &dev_attr_sqsize.attr,
737 &dev_attr_hostnqn.attr,
738 &dev_attr_hostid.attr,
739 &dev_attr_ctrl_loss_tmo.attr,
740 &dev_attr_reconnect_delay.attr,
741 &dev_attr_fast_io_fail_tmo.attr,
742 &dev_attr_kato.attr,
743 &dev_attr_cntrltype.attr,
744 &dev_attr_dctype.attr,
746 &dev_attr_dhchap_secret.attr,
747 &dev_attr_dhchap_ctrl_secret.attr,
749 &dev_attr_adm_passthru_err_log_enabled.attr,
759 if (a == &dev_attr_delete_controller.attr && !ctrl->ops->delete_ctrl) in nvme_dev_attrs_are_visible()
761 if (a == &dev_attr_address.attr && !ctrl->ops->get_address) in nvme_dev_attrs_are_visible()
763 if (a == &dev_attr_hostnqn.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
765 if (a == &dev_attr_hostid.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
767 if (a == &dev_attr_ctrl_loss_tmo.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
769 if (a == &dev_attr_reconnect_delay.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
771 if (a == &dev_attr_fast_io_fail_tmo.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
774 if (a == &dev_attr_dhchap_secret.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
776 if (a == &dev_attr_dhchap_ctrl_secret.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
791 struct device_attribute *attr, char *buf) in tls_key_show() argument
802 struct device_attribute *attr, char *buf) in tls_configured_key_show() argument
812 struct device_attribute *attr, char *buf) in tls_keyring_show() argument
822 &dev_attr_tls_key.attr,
823 &dev_attr_tls_configured_key.attr,
824 &dev_attr_tls_keyring.attr,
837 if (a == &dev_attr_tls_key.attr && in nvme_tls_attrs_are_visible()
840 if (a == &dev_attr_tls_configured_key.attr && in nvme_tls_attrs_are_visible()
843 if (a == &dev_attr_tls_keyring.attr && in nvme_tls_attrs_are_visible()
869 struct device_attribute *attr, in nvme_subsys_show_nqn() argument
880 struct device_attribute *attr, in nvme_subsys_show_type() argument
899 struct device_attribute *attr, char *buf) \
913 &subsys_attr_model.attr,
914 &subsys_attr_serial.attr,
915 &subsys_attr_firmware_rev.attr,
916 &subsys_attr_subsysnqn.attr,
917 &subsys_attr_subsystype.attr,
919 &subsys_attr_iopolicy.attr,