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
604 static ssize_t quirks_show(struct device *dev, struct device_attribute *attr, in quirks_show() argument
628 struct device_attribute *attr, char *buf) in nvme_ctrl_dhchap_secret_show() argument
639 struct device_attribute *attr, const char *buf, size_t count) in nvme_ctrl_dhchap_secret_store() argument
686 struct device_attribute *attr, char *buf) in nvme_ctrl_dhchap_ctrl_secret_show() argument
697 struct device_attribute *attr, const char *buf, size_t count) in nvme_ctrl_dhchap_ctrl_secret_store() argument
745 &dev_attr_reset_controller.attr,
746 &dev_attr_rescan_controller.attr,
747 &dev_attr_model.attr,
748 &dev_attr_serial.attr,
749 &dev_attr_firmware_rev.attr,
750 &dev_attr_cntlid.attr,
751 &dev_attr_delete_controller.attr,
752 &dev_attr_transport.attr,
753 &dev_attr_subsysnqn.attr,
754 &dev_attr_address.attr,
755 &dev_attr_state.attr,
756 &dev_attr_numa_node.attr,
757 &dev_attr_queue_count.attr,
758 &dev_attr_sqsize.attr,
759 &dev_attr_hostnqn.attr,
760 &dev_attr_hostid.attr,
761 &dev_attr_ctrl_loss_tmo.attr,
762 &dev_attr_reconnect_delay.attr,
763 &dev_attr_fast_io_fail_tmo.attr,
764 &dev_attr_kato.attr,
765 &dev_attr_cntrltype.attr,
766 &dev_attr_dctype.attr,
767 &dev_attr_quirks.attr,
769 &dev_attr_dhchap_secret.attr,
770 &dev_attr_dhchap_ctrl_secret.attr,
772 &dev_attr_adm_passthru_err_log_enabled.attr,
782 if (a == &dev_attr_delete_controller.attr && !ctrl->ops->delete_ctrl) in nvme_dev_attrs_are_visible()
784 if (a == &dev_attr_address.attr && !ctrl->ops->get_address) in nvme_dev_attrs_are_visible()
786 if (a == &dev_attr_hostnqn.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
788 if (a == &dev_attr_hostid.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
790 if (a == &dev_attr_ctrl_loss_tmo.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
792 if (a == &dev_attr_reconnect_delay.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
794 if (a == &dev_attr_fast_io_fail_tmo.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
797 if (a == &dev_attr_dhchap_secret.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
799 if (a == &dev_attr_dhchap_ctrl_secret.attr && !ctrl->opts) in nvme_dev_attrs_are_visible()
814 struct device_attribute *attr, char *buf) in tls_key_show() argument
825 struct device_attribute *attr, char *buf) in tls_configured_key_show() argument
834 struct device_attribute *attr, in tls_configured_key_store() argument
877 struct device_attribute *attr, char *buf) in tls_keyring_show() argument
887 struct device_attribute *attr, char *buf) in tls_mode_show() argument
902 &dev_attr_tls_key.attr,
903 &dev_attr_tls_configured_key.attr,
904 &dev_attr_tls_keyring.attr,
905 &dev_attr_tls_mode.attr,
918 if (a == &dev_attr_tls_key.attr && in nvme_tls_attrs_are_visible()
921 if (a == &dev_attr_tls_configured_key.attr && in nvme_tls_attrs_are_visible()
924 if (a == &dev_attr_tls_keyring.attr && in nvme_tls_attrs_are_visible()
927 if (a == &dev_attr_tls_mode.attr && in nvme_tls_attrs_are_visible()
953 struct device_attribute *attr, in nvme_subsys_show_nqn() argument
964 struct device_attribute *attr, in nvme_subsys_show_type() argument
983 struct device_attribute *attr, char *buf) \
997 &subsys_attr_model.attr,
998 &subsys_attr_serial.attr,
999 &subsys_attr_firmware_rev.attr,
1000 &subsys_attr_subsysnqn.attr,
1001 &subsys_attr_subsystype.attr,
1003 &subsys_attr_iopolicy.attr,