Lines Matching full:item
64 static ssize_t nvmet_addr_adrfam_show(struct config_item *item, char *page) in nvmet_addr_adrfam_show() argument
66 u8 adrfam = to_nvmet_port(item)->disc_addr.adrfam; in nvmet_addr_adrfam_show()
78 static ssize_t nvmet_addr_adrfam_store(struct config_item *item, in nvmet_addr_adrfam_store() argument
81 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_adrfam_store()
102 static ssize_t nvmet_addr_portid_show(struct config_item *item, in nvmet_addr_portid_show() argument
105 __le16 portid = to_nvmet_port(item)->disc_addr.portid; in nvmet_addr_portid_show()
110 static ssize_t nvmet_addr_portid_store(struct config_item *item, in nvmet_addr_portid_store() argument
113 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_portid_store()
130 static ssize_t nvmet_addr_traddr_show(struct config_item *item, in nvmet_addr_traddr_show() argument
133 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_traddr_show()
138 static ssize_t nvmet_addr_traddr_store(struct config_item *item, in nvmet_addr_traddr_store() argument
141 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_traddr_store()
169 static ssize_t nvmet_addr_treq_show(struct config_item *item, char *page) in nvmet_addr_treq_show() argument
171 u8 treq = nvmet_port_disc_addr_treq_secure_channel(to_nvmet_port(item)); in nvmet_addr_treq_show()
183 static ssize_t nvmet_addr_treq_store(struct config_item *item, in nvmet_addr_treq_store() argument
186 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_treq_store()
223 static ssize_t nvmet_addr_trsvcid_show(struct config_item *item, in nvmet_addr_trsvcid_show() argument
226 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trsvcid_show()
231 static ssize_t nvmet_addr_trsvcid_store(struct config_item *item, in nvmet_addr_trsvcid_store() argument
234 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trsvcid_store()
250 static ssize_t nvmet_param_inline_data_size_show(struct config_item *item, in nvmet_param_inline_data_size_show() argument
253 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_inline_data_size_show()
258 static ssize_t nvmet_param_inline_data_size_store(struct config_item *item, in nvmet_param_inline_data_size_store() argument
261 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_inline_data_size_store()
277 static ssize_t nvmet_param_pi_enable_show(struct config_item *item, in nvmet_param_pi_enable_show() argument
280 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_pi_enable_show()
285 static ssize_t nvmet_param_pi_enable_store(struct config_item *item, in nvmet_param_pi_enable_store() argument
288 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_pi_enable_store()
304 static ssize_t nvmet_addr_trtype_show(struct config_item *item, in nvmet_addr_trtype_show() argument
307 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trtype_show()
331 static ssize_t nvmet_addr_trtype_store(struct config_item *item, in nvmet_addr_trtype_store() argument
334 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trtype_store()
370 static ssize_t nvmet_addr_tsas_show(struct config_item *item, in nvmet_addr_tsas_show() argument
373 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_tsas_show()
390 static ssize_t nvmet_addr_tsas_store(struct config_item *item, in nvmet_addr_tsas_store() argument
393 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_tsas_store()
449 static ssize_t nvmet_ns_device_path_show(struct config_item *item, char *page) in nvmet_ns_device_path_show() argument
451 return sprintf(page, "%s\n", to_nvmet_ns(item)->device_path); in nvmet_ns_device_path_show()
454 static ssize_t nvmet_ns_device_path_store(struct config_item *item, in nvmet_ns_device_path_store() argument
457 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_path_store()
489 static ssize_t nvmet_ns_p2pmem_show(struct config_item *item, char *page) in nvmet_ns_p2pmem_show() argument
491 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_p2pmem_show()
496 static ssize_t nvmet_ns_p2pmem_store(struct config_item *item, in nvmet_ns_p2pmem_store() argument
499 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_p2pmem_store()
530 static ssize_t nvmet_ns_device_uuid_show(struct config_item *item, char *page) in nvmet_ns_device_uuid_show() argument
532 return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->uuid); in nvmet_ns_device_uuid_show()
535 static ssize_t nvmet_ns_device_uuid_store(struct config_item *item, in nvmet_ns_device_uuid_store() argument
538 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_uuid_store()
558 static ssize_t nvmet_ns_device_nguid_show(struct config_item *item, char *page) in nvmet_ns_device_nguid_show() argument
560 return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->nguid); in nvmet_ns_device_nguid_show()
563 static ssize_t nvmet_ns_device_nguid_store(struct config_item *item, in nvmet_ns_device_nguid_store() argument
566 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_nguid_store()
604 static ssize_t nvmet_ns_ana_grpid_show(struct config_item *item, char *page) in nvmet_ns_ana_grpid_show() argument
606 return sprintf(page, "%u\n", to_nvmet_ns(item)->anagrpid); in nvmet_ns_ana_grpid_show()
609 static ssize_t nvmet_ns_ana_grpid_store(struct config_item *item, in nvmet_ns_ana_grpid_store() argument
612 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_ana_grpid_store()
638 static ssize_t nvmet_ns_enable_show(struct config_item *item, char *page) in nvmet_ns_enable_show() argument
640 return sprintf(page, "%d\n", to_nvmet_ns(item)->enabled); in nvmet_ns_enable_show()
643 static ssize_t nvmet_ns_enable_store(struct config_item *item, in nvmet_ns_enable_store() argument
646 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_enable_store()
663 static ssize_t nvmet_ns_buffered_io_show(struct config_item *item, char *page) in nvmet_ns_buffered_io_show() argument
665 return sprintf(page, "%d\n", to_nvmet_ns(item)->buffered_io); in nvmet_ns_buffered_io_show()
668 static ssize_t nvmet_ns_buffered_io_store(struct config_item *item, in nvmet_ns_buffered_io_store() argument
671 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_buffered_io_store()
691 static ssize_t nvmet_ns_revalidate_size_store(struct config_item *item, in nvmet_ns_revalidate_size_store() argument
694 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_revalidate_size_store()
731 static void nvmet_ns_release(struct config_item *item) in nvmet_ns_release() argument
733 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_release()
790 static ssize_t nvmet_passthru_device_path_show(struct config_item *item, in nvmet_passthru_device_path_show() argument
793 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_device_path_show()
798 static ssize_t nvmet_passthru_device_path_store(struct config_item *item, in nvmet_passthru_device_path_store() argument
801 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_device_path_store()
831 static ssize_t nvmet_passthru_enable_show(struct config_item *item, in nvmet_passthru_enable_show() argument
834 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_enable_show()
839 static ssize_t nvmet_passthru_enable_store(struct config_item *item, in nvmet_passthru_enable_store() argument
842 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_enable_store()
858 static ssize_t nvmet_passthru_admin_timeout_show(struct config_item *item, in nvmet_passthru_admin_timeout_show() argument
861 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->admin_timeout); in nvmet_passthru_admin_timeout_show()
864 static ssize_t nvmet_passthru_admin_timeout_store(struct config_item *item, in nvmet_passthru_admin_timeout_store() argument
867 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_admin_timeout_store()
877 static ssize_t nvmet_passthru_io_timeout_show(struct config_item *item, in nvmet_passthru_io_timeout_show() argument
880 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->io_timeout); in nvmet_passthru_io_timeout_show()
883 static ssize_t nvmet_passthru_io_timeout_store(struct config_item *item, in nvmet_passthru_io_timeout_store() argument
886 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_io_timeout_store()
896 static ssize_t nvmet_passthru_clear_ids_show(struct config_item *item, in nvmet_passthru_clear_ids_show() argument
899 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->clear_ids); in nvmet_passthru_clear_ids_show()
902 static ssize_t nvmet_passthru_clear_ids_store(struct config_item *item, in nvmet_passthru_clear_ids_store() argument
905 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_clear_ids_store()
1099 static ssize_t nvmet_subsys_attr_allow_any_host_show(struct config_item *item, in nvmet_subsys_attr_allow_any_host_show() argument
1103 to_subsys(item)->allow_any_host); in nvmet_subsys_attr_allow_any_host_show()
1106 static ssize_t nvmet_subsys_attr_allow_any_host_store(struct config_item *item, in nvmet_subsys_attr_allow_any_host_store() argument
1109 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_allow_any_host_store()
1135 static ssize_t nvmet_subsys_attr_version_show(struct config_item *item, in nvmet_subsys_attr_version_show() argument
1138 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_version_show()
1184 static ssize_t nvmet_subsys_attr_version_store(struct config_item *item, in nvmet_subsys_attr_version_store() argument
1187 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_version_store()
1206 static ssize_t nvmet_subsys_attr_serial_show(struct config_item *item, in nvmet_subsys_attr_serial_show() argument
1209 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_serial_show()
1245 static ssize_t nvmet_subsys_attr_serial_store(struct config_item *item, in nvmet_subsys_attr_serial_store() argument
1248 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_serial_store()
1261 static ssize_t nvmet_subsys_attr_cntlid_min_show(struct config_item *item, in nvmet_subsys_attr_cntlid_min_show() argument
1264 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->cntlid_min); in nvmet_subsys_attr_cntlid_min_show()
1267 static ssize_t nvmet_subsys_attr_cntlid_min_store(struct config_item *item, in nvmet_subsys_attr_cntlid_min_store() argument
1279 if (cntlid_min > to_subsys(item)->cntlid_max) in nvmet_subsys_attr_cntlid_min_store()
1281 to_subsys(item)->cntlid_min = cntlid_min; in nvmet_subsys_attr_cntlid_min_store()
1291 static ssize_t nvmet_subsys_attr_cntlid_max_show(struct config_item *item, in nvmet_subsys_attr_cntlid_max_show() argument
1294 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->cntlid_max); in nvmet_subsys_attr_cntlid_max_show()
1297 static ssize_t nvmet_subsys_attr_cntlid_max_store(struct config_item *item, in nvmet_subsys_attr_cntlid_max_store() argument
1309 if (cntlid_max < to_subsys(item)->cntlid_min) in nvmet_subsys_attr_cntlid_max_store()
1311 to_subsys(item)->cntlid_max = cntlid_max; in nvmet_subsys_attr_cntlid_max_store()
1321 static ssize_t nvmet_subsys_attr_model_show(struct config_item *item, in nvmet_subsys_attr_model_show() argument
1324 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_model_show()
1364 static ssize_t nvmet_subsys_attr_model_store(struct config_item *item, in nvmet_subsys_attr_model_store() argument
1367 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_model_store()
1380 static ssize_t nvmet_subsys_attr_ieee_oui_show(struct config_item *item, in nvmet_subsys_attr_ieee_oui_show() argument
1383 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_ieee_oui_show()
1412 static ssize_t nvmet_subsys_attr_ieee_oui_store(struct config_item *item, in nvmet_subsys_attr_ieee_oui_store() argument
1415 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_ieee_oui_store()
1428 static ssize_t nvmet_subsys_attr_firmware_show(struct config_item *item, in nvmet_subsys_attr_firmware_show() argument
1431 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_firmware_show()
1474 static ssize_t nvmet_subsys_attr_firmware_store(struct config_item *item, in nvmet_subsys_attr_firmware_store() argument
1477 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_firmware_store()
1491 static ssize_t nvmet_subsys_attr_pi_enable_show(struct config_item *item, in nvmet_subsys_attr_pi_enable_show() argument
1494 return snprintf(page, PAGE_SIZE, "%d\n", to_subsys(item)->pi_support); in nvmet_subsys_attr_pi_enable_show()
1497 static ssize_t nvmet_subsys_attr_pi_enable_store(struct config_item *item, in nvmet_subsys_attr_pi_enable_store() argument
1500 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_pi_enable_store()
1512 static ssize_t nvmet_subsys_attr_qid_max_show(struct config_item *item, in nvmet_subsys_attr_qid_max_show() argument
1515 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->max_qid); in nvmet_subsys_attr_qid_max_show()
1518 static ssize_t nvmet_subsys_attr_qid_max_store(struct config_item *item, in nvmet_subsys_attr_qid_max_store() argument
1521 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_qid_max_store()
1562 static void nvmet_subsys_release(struct config_item *item) in nvmet_subsys_release() argument
1564 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_release()
1619 static ssize_t nvmet_referral_enable_show(struct config_item *item, in nvmet_referral_enable_show() argument
1622 return snprintf(page, PAGE_SIZE, "%d\n", to_nvmet_port(item)->enabled); in nvmet_referral_enable_show()
1625 static ssize_t nvmet_referral_enable_store(struct config_item *item, in nvmet_referral_enable_store() argument
1628 struct nvmet_port *parent = to_nvmet_port(item->ci_parent->ci_parent); in nvmet_referral_enable_store()
1629 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_enable_store()
1663 struct config_item *item) in nvmet_referral_notify() argument
1665 struct nvmet_port *parent = to_nvmet_port(item->ci_parent->ci_parent); in nvmet_referral_notify()
1666 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_notify()
1671 static void nvmet_referral_release(struct config_item *item) in nvmet_referral_release() argument
1673 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_release()
1721 static ssize_t nvmet_ana_group_ana_state_show(struct config_item *item, in nvmet_ana_group_ana_state_show() argument
1724 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_show()
1736 static ssize_t nvmet_ana_group_ana_state_store(struct config_item *item, in nvmet_ana_group_ana_state_store() argument
1739 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_store()
1767 static void nvmet_ana_group_release(struct config_item *item) in nvmet_ana_group_release() argument
1769 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_release()
1841 static void nvmet_port_release(struct config_item *item) in nvmet_port_release() argument
1843 struct nvmet_port *port = to_nvmet_port(item); in nvmet_port_release()
1962 static ssize_t nvmet_host_dhchap_key_show(struct config_item *item, in nvmet_host_dhchap_key_show() argument
1965 u8 *dhchap_secret = to_host(item)->dhchap_secret; in nvmet_host_dhchap_key_show()
1972 static ssize_t nvmet_host_dhchap_key_store(struct config_item *item, in nvmet_host_dhchap_key_store() argument
1975 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_key_store()
1989 static ssize_t nvmet_host_dhchap_ctrl_key_show(struct config_item *item, in nvmet_host_dhchap_ctrl_key_show() argument
1992 u8 *dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show()
1999 static ssize_t nvmet_host_dhchap_ctrl_key_store(struct config_item *item, in nvmet_host_dhchap_ctrl_key_store() argument
2002 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_ctrl_key_store()
2016 static ssize_t nvmet_host_dhchap_hash_show(struct config_item *item, in nvmet_host_dhchap_hash_show() argument
2019 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_hash_show()
2025 static ssize_t nvmet_host_dhchap_hash_store(struct config_item *item, in nvmet_host_dhchap_hash_store() argument
2028 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_hash_store()
2042 static ssize_t nvmet_host_dhchap_dhgroup_show(struct config_item *item, in nvmet_host_dhchap_dhgroup_show() argument
2045 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_dhgroup_show()
2051 static ssize_t nvmet_host_dhchap_dhgroup_store(struct config_item *item, in nvmet_host_dhchap_dhgroup_store() argument
2054 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_dhgroup_store()
2081 static void nvmet_host_release(struct config_item *item) in nvmet_host_release() argument
2083 struct nvmet_host *host = to_host(item); in nvmet_host_release()