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()
276 static ssize_t nvmet_param_max_queue_size_show(struct config_item *item, in nvmet_param_max_queue_size_show() argument
279 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_max_queue_size_show()
284 static ssize_t nvmet_param_max_queue_size_store(struct config_item *item, in nvmet_param_max_queue_size_store() argument
287 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_max_queue_size_store()
303 static ssize_t nvmet_param_pi_enable_show(struct config_item *item, in nvmet_param_pi_enable_show() argument
306 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_pi_enable_show()
311 static ssize_t nvmet_param_pi_enable_store(struct config_item *item, in nvmet_param_pi_enable_store() argument
314 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_pi_enable_store()
330 static ssize_t nvmet_addr_trtype_show(struct config_item *item, in nvmet_addr_trtype_show() argument
333 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trtype_show()
357 static ssize_t nvmet_addr_trtype_store(struct config_item *item, in nvmet_addr_trtype_store() argument
360 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trtype_store()
396 static ssize_t nvmet_addr_tsas_show(struct config_item *item, in nvmet_addr_tsas_show() argument
399 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_tsas_show()
438 static ssize_t nvmet_addr_tsas_store(struct config_item *item, in nvmet_addr_tsas_store() argument
441 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_tsas_store()
496 static ssize_t nvmet_ns_device_path_show(struct config_item *item, char *page) in nvmet_ns_device_path_show() argument
498 return sprintf(page, "%s\n", to_nvmet_ns(item)->device_path); in nvmet_ns_device_path_show()
501 static ssize_t nvmet_ns_device_path_store(struct config_item *item, in nvmet_ns_device_path_store() argument
504 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_path_store()
536 static ssize_t nvmet_ns_p2pmem_show(struct config_item *item, char *page) in nvmet_ns_p2pmem_show() argument
538 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_p2pmem_show()
543 static ssize_t nvmet_ns_p2pmem_store(struct config_item *item, in nvmet_ns_p2pmem_store() argument
546 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_p2pmem_store()
577 static ssize_t nvmet_ns_device_uuid_show(struct config_item *item, char *page) in nvmet_ns_device_uuid_show() argument
579 return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->uuid); in nvmet_ns_device_uuid_show()
582 static ssize_t nvmet_ns_device_uuid_store(struct config_item *item, in nvmet_ns_device_uuid_store() argument
585 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_uuid_store()
605 static ssize_t nvmet_ns_device_nguid_show(struct config_item *item, char *page) in nvmet_ns_device_nguid_show() argument
607 return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->nguid); in nvmet_ns_device_nguid_show()
610 static ssize_t nvmet_ns_device_nguid_store(struct config_item *item, in nvmet_ns_device_nguid_store() argument
613 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_nguid_store()
651 static ssize_t nvmet_ns_ana_grpid_show(struct config_item *item, char *page) in nvmet_ns_ana_grpid_show() argument
653 return sprintf(page, "%u\n", to_nvmet_ns(item)->anagrpid); in nvmet_ns_ana_grpid_show()
656 static ssize_t nvmet_ns_ana_grpid_store(struct config_item *item, in nvmet_ns_ana_grpid_store() argument
659 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_ana_grpid_store()
685 static ssize_t nvmet_ns_enable_show(struct config_item *item, char *page) in nvmet_ns_enable_show() argument
687 return sprintf(page, "%d\n", to_nvmet_ns(item)->enabled); in nvmet_ns_enable_show()
690 static ssize_t nvmet_ns_enable_store(struct config_item *item, in nvmet_ns_enable_store() argument
693 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_enable_store()
718 static ssize_t nvmet_ns_buffered_io_show(struct config_item *item, char *page) in nvmet_ns_buffered_io_show() argument
720 return sprintf(page, "%d\n", to_nvmet_ns(item)->buffered_io); in nvmet_ns_buffered_io_show()
723 static ssize_t nvmet_ns_buffered_io_store(struct config_item *item, in nvmet_ns_buffered_io_store() argument
726 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_buffered_io_store()
746 static ssize_t nvmet_ns_revalidate_size_store(struct config_item *item, in nvmet_ns_revalidate_size_store() argument
749 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_revalidate_size_store()
798 static void nvmet_ns_release(struct config_item *item) in nvmet_ns_release() argument
800 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_release()
857 static ssize_t nvmet_passthru_device_path_show(struct config_item *item, in nvmet_passthru_device_path_show() argument
860 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_device_path_show()
865 static ssize_t nvmet_passthru_device_path_store(struct config_item *item, in nvmet_passthru_device_path_store() argument
868 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_device_path_store()
898 static ssize_t nvmet_passthru_enable_show(struct config_item *item, in nvmet_passthru_enable_show() argument
901 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_enable_show()
906 static ssize_t nvmet_passthru_enable_store(struct config_item *item, in nvmet_passthru_enable_store() argument
909 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_enable_store()
925 static ssize_t nvmet_passthru_admin_timeout_show(struct config_item *item, in nvmet_passthru_admin_timeout_show() argument
928 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->admin_timeout); in nvmet_passthru_admin_timeout_show()
931 static ssize_t nvmet_passthru_admin_timeout_store(struct config_item *item, in nvmet_passthru_admin_timeout_store() argument
934 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_admin_timeout_store()
944 static ssize_t nvmet_passthru_io_timeout_show(struct config_item *item, in nvmet_passthru_io_timeout_show() argument
947 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->io_timeout); in nvmet_passthru_io_timeout_show()
950 static ssize_t nvmet_passthru_io_timeout_store(struct config_item *item, in nvmet_passthru_io_timeout_store() argument
953 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_io_timeout_store()
963 static ssize_t nvmet_passthru_clear_ids_show(struct config_item *item, in nvmet_passthru_clear_ids_show() argument
966 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->clear_ids); in nvmet_passthru_clear_ids_show()
969 static ssize_t nvmet_passthru_clear_ids_store(struct config_item *item, in nvmet_passthru_clear_ids_store() argument
972 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_clear_ids_store()
1166 static ssize_t nvmet_subsys_attr_allow_any_host_show(struct config_item *item, in nvmet_subsys_attr_allow_any_host_show() argument
1170 to_subsys(item)->allow_any_host); in nvmet_subsys_attr_allow_any_host_show()
1173 static ssize_t nvmet_subsys_attr_allow_any_host_store(struct config_item *item, in nvmet_subsys_attr_allow_any_host_store() argument
1176 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_allow_any_host_store()
1202 static ssize_t nvmet_subsys_attr_version_show(struct config_item *item, in nvmet_subsys_attr_version_show() argument
1205 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_version_show()
1251 static ssize_t nvmet_subsys_attr_version_store(struct config_item *item, in nvmet_subsys_attr_version_store() argument
1254 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_version_store()
1273 static ssize_t nvmet_subsys_attr_serial_show(struct config_item *item, in nvmet_subsys_attr_serial_show() argument
1276 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_serial_show()
1312 static ssize_t nvmet_subsys_attr_serial_store(struct config_item *item, in nvmet_subsys_attr_serial_store() argument
1315 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_serial_store()
1328 static ssize_t nvmet_subsys_attr_cntlid_min_show(struct config_item *item, in nvmet_subsys_attr_cntlid_min_show() argument
1331 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->cntlid_min); in nvmet_subsys_attr_cntlid_min_show()
1334 static ssize_t nvmet_subsys_attr_cntlid_min_store(struct config_item *item, in nvmet_subsys_attr_cntlid_min_store() argument
1346 if (cntlid_min > to_subsys(item)->cntlid_max) in nvmet_subsys_attr_cntlid_min_store()
1348 to_subsys(item)->cntlid_min = cntlid_min; in nvmet_subsys_attr_cntlid_min_store()
1358 static ssize_t nvmet_subsys_attr_cntlid_max_show(struct config_item *item, in nvmet_subsys_attr_cntlid_max_show() argument
1361 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->cntlid_max); in nvmet_subsys_attr_cntlid_max_show()
1364 static ssize_t nvmet_subsys_attr_cntlid_max_store(struct config_item *item, in nvmet_subsys_attr_cntlid_max_store() argument
1376 if (cntlid_max < to_subsys(item)->cntlid_min) in nvmet_subsys_attr_cntlid_max_store()
1378 to_subsys(item)->cntlid_max = cntlid_max; in nvmet_subsys_attr_cntlid_max_store()
1388 static ssize_t nvmet_subsys_attr_model_show(struct config_item *item, in nvmet_subsys_attr_model_show() argument
1391 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_model_show()
1431 static ssize_t nvmet_subsys_attr_model_store(struct config_item *item, in nvmet_subsys_attr_model_store() argument
1434 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_model_store()
1447 static ssize_t nvmet_subsys_attr_ieee_oui_show(struct config_item *item, in nvmet_subsys_attr_ieee_oui_show() argument
1450 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_ieee_oui_show()
1479 static ssize_t nvmet_subsys_attr_ieee_oui_store(struct config_item *item, in nvmet_subsys_attr_ieee_oui_store() argument
1482 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_ieee_oui_store()
1495 static ssize_t nvmet_subsys_attr_firmware_show(struct config_item *item, in nvmet_subsys_attr_firmware_show() argument
1498 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_firmware_show()
1541 static ssize_t nvmet_subsys_attr_firmware_store(struct config_item *item, in nvmet_subsys_attr_firmware_store() argument
1544 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_firmware_store()
1558 static ssize_t nvmet_subsys_attr_pi_enable_show(struct config_item *item, in nvmet_subsys_attr_pi_enable_show() argument
1561 return snprintf(page, PAGE_SIZE, "%d\n", to_subsys(item)->pi_support); in nvmet_subsys_attr_pi_enable_show()
1564 static ssize_t nvmet_subsys_attr_pi_enable_store(struct config_item *item, in nvmet_subsys_attr_pi_enable_store() argument
1567 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_pi_enable_store()
1579 static ssize_t nvmet_subsys_attr_qid_max_show(struct config_item *item, in nvmet_subsys_attr_qid_max_show() argument
1582 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->max_qid); in nvmet_subsys_attr_qid_max_show()
1585 static ssize_t nvmet_subsys_attr_qid_max_store(struct config_item *item, in nvmet_subsys_attr_qid_max_store() argument
1588 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_qid_max_store()
1629 static void nvmet_subsys_release(struct config_item *item) in nvmet_subsys_release() argument
1631 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_release()
1691 static ssize_t nvmet_referral_enable_show(struct config_item *item, in nvmet_referral_enable_show() argument
1694 return snprintf(page, PAGE_SIZE, "%d\n", to_nvmet_port(item)->enabled); in nvmet_referral_enable_show()
1697 static ssize_t nvmet_referral_enable_store(struct config_item *item, in nvmet_referral_enable_store() argument
1700 struct nvmet_port *parent = to_nvmet_port(item->ci_parent->ci_parent); in nvmet_referral_enable_store()
1701 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_enable_store()
1735 struct config_item *item) in nvmet_referral_notify() argument
1737 struct nvmet_port *parent = to_nvmet_port(item->ci_parent->ci_parent); in nvmet_referral_notify()
1738 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_notify()
1743 static void nvmet_referral_release(struct config_item *item) in nvmet_referral_release() argument
1745 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_release()
1793 static ssize_t nvmet_ana_group_ana_state_show(struct config_item *item, in nvmet_ana_group_ana_state_show() argument
1796 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_show()
1808 static ssize_t nvmet_ana_group_ana_state_store(struct config_item *item, in nvmet_ana_group_ana_state_store() argument
1811 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_store()
1839 static void nvmet_ana_group_release(struct config_item *item) in nvmet_ana_group_release() argument
1841 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_release()
1913 static void nvmet_port_release(struct config_item *item) in nvmet_port_release() argument
1915 struct nvmet_port *port = to_nvmet_port(item); in nvmet_port_release()
2036 static ssize_t nvmet_host_dhchap_key_show(struct config_item *item, in nvmet_host_dhchap_key_show() argument
2043 dhchap_secret = to_host(item)->dhchap_secret; in nvmet_host_dhchap_key_show()
2052 static ssize_t nvmet_host_dhchap_key_store(struct config_item *item, in nvmet_host_dhchap_key_store() argument
2055 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_key_store()
2069 static ssize_t nvmet_host_dhchap_ctrl_key_show(struct config_item *item, in nvmet_host_dhchap_ctrl_key_show() argument
2072 u8 *dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show()
2076 dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show()
2085 static ssize_t nvmet_host_dhchap_ctrl_key_store(struct config_item *item, in nvmet_host_dhchap_ctrl_key_store() argument
2088 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_ctrl_key_store()
2102 static ssize_t nvmet_host_dhchap_hash_show(struct config_item *item, in nvmet_host_dhchap_hash_show() argument
2105 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_hash_show()
2111 static ssize_t nvmet_host_dhchap_hash_store(struct config_item *item, in nvmet_host_dhchap_hash_store() argument
2114 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_hash_store()
2128 static ssize_t nvmet_host_dhchap_dhgroup_show(struct config_item *item, in nvmet_host_dhchap_dhgroup_show() argument
2131 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_dhgroup_show()
2137 static ssize_t nvmet_host_dhchap_dhgroup_store(struct config_item *item, in nvmet_host_dhchap_dhgroup_store() argument
2140 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_dhgroup_store()
2167 static void nvmet_host_release(struct config_item *item) in nvmet_host_release() argument
2169 struct nvmet_host *host = to_host(item); in nvmet_host_release()
2220 static ssize_t nvmet_root_discovery_nqn_show(struct config_item *item, in nvmet_root_discovery_nqn_show() argument
2226 static ssize_t nvmet_root_discovery_nqn_store(struct config_item *item, in nvmet_root_discovery_nqn_store() argument
2238 struct config_item *item = in nvmet_root_discovery_nqn_store() local
2241 if (!strncmp(config_item_name(item), page, len)) { in nvmet_root_discovery_nqn_store()
2242 pr_err("duplicate NQN %s\n", config_item_name(item)); in nvmet_root_discovery_nqn_store()