Lines Matching full:item

61 static ssize_t nvmet_addr_adrfam_show(struct config_item *item, char *page)  in nvmet_addr_adrfam_show()  argument
63 u8 adrfam = to_nvmet_port(item)->disc_addr.adrfam; in nvmet_addr_adrfam_show()
75 static ssize_t nvmet_addr_adrfam_store(struct config_item *item, in nvmet_addr_adrfam_store() argument
78 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_adrfam_store()
99 static ssize_t nvmet_addr_portid_show(struct config_item *item, in nvmet_addr_portid_show() argument
102 __le16 portid = to_nvmet_port(item)->disc_addr.portid; in nvmet_addr_portid_show()
107 static ssize_t nvmet_addr_portid_store(struct config_item *item, in nvmet_addr_portid_store() argument
110 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_portid_store()
127 static ssize_t nvmet_addr_traddr_show(struct config_item *item, in nvmet_addr_traddr_show() argument
130 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_traddr_show()
135 static ssize_t nvmet_addr_traddr_store(struct config_item *item, in nvmet_addr_traddr_store() argument
138 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_traddr_store()
161 static ssize_t nvmet_addr_treq_show(struct config_item *item, char *page) in nvmet_addr_treq_show() argument
163 u8 treq = to_nvmet_port(item)->disc_addr.treq & in nvmet_addr_treq_show()
176 static ssize_t nvmet_addr_treq_store(struct config_item *item, in nvmet_addr_treq_store() argument
179 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_treq_store()
202 static ssize_t nvmet_addr_trsvcid_show(struct config_item *item, in nvmet_addr_trsvcid_show() argument
205 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trsvcid_show()
210 static ssize_t nvmet_addr_trsvcid_store(struct config_item *item, in nvmet_addr_trsvcid_store() argument
213 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trsvcid_store()
229 static ssize_t nvmet_param_inline_data_size_show(struct config_item *item, in nvmet_param_inline_data_size_show() argument
232 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_inline_data_size_show()
237 static ssize_t nvmet_param_inline_data_size_store(struct config_item *item, in nvmet_param_inline_data_size_store() argument
240 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_inline_data_size_store()
256 static ssize_t nvmet_param_pi_enable_show(struct config_item *item, in nvmet_param_pi_enable_show() argument
259 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_pi_enable_show()
264 static ssize_t nvmet_param_pi_enable_store(struct config_item *item, in nvmet_param_pi_enable_store() argument
267 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_pi_enable_store()
283 static ssize_t nvmet_addr_trtype_show(struct config_item *item, in nvmet_addr_trtype_show() argument
286 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trtype_show()
305 static ssize_t nvmet_addr_trtype_store(struct config_item *item, in nvmet_addr_trtype_store() argument
308 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trtype_store()
335 static ssize_t nvmet_ns_device_path_show(struct config_item *item, char *page) in nvmet_ns_device_path_show() argument
337 return sprintf(page, "%s\n", to_nvmet_ns(item)->device_path); in nvmet_ns_device_path_show()
340 static ssize_t nvmet_ns_device_path_store(struct config_item *item, in nvmet_ns_device_path_store() argument
343 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_path_store()
375 static ssize_t nvmet_ns_p2pmem_show(struct config_item *item, char *page) in nvmet_ns_p2pmem_show() argument
377 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_p2pmem_show()
382 static ssize_t nvmet_ns_p2pmem_store(struct config_item *item, in nvmet_ns_p2pmem_store() argument
385 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_p2pmem_store()
416 static ssize_t nvmet_ns_device_uuid_show(struct config_item *item, char *page) in nvmet_ns_device_uuid_show() argument
418 return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->uuid); in nvmet_ns_device_uuid_show()
421 static ssize_t nvmet_ns_device_uuid_store(struct config_item *item, in nvmet_ns_device_uuid_store() argument
424 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_uuid_store()
444 static ssize_t nvmet_ns_device_nguid_show(struct config_item *item, char *page) in nvmet_ns_device_nguid_show() argument
446 return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->nguid); in nvmet_ns_device_nguid_show()
449 static ssize_t nvmet_ns_device_nguid_store(struct config_item *item, in nvmet_ns_device_nguid_store() argument
452 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_nguid_store()
490 static ssize_t nvmet_ns_ana_grpid_show(struct config_item *item, char *page) in nvmet_ns_ana_grpid_show() argument
492 return sprintf(page, "%u\n", to_nvmet_ns(item)->anagrpid); in nvmet_ns_ana_grpid_show()
495 static ssize_t nvmet_ns_ana_grpid_store(struct config_item *item, in nvmet_ns_ana_grpid_store() argument
498 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_ana_grpid_store()
523 static ssize_t nvmet_ns_enable_show(struct config_item *item, char *page) in nvmet_ns_enable_show() argument
525 return sprintf(page, "%d\n", to_nvmet_ns(item)->enabled); in nvmet_ns_enable_show()
528 static ssize_t nvmet_ns_enable_store(struct config_item *item, in nvmet_ns_enable_store() argument
531 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_enable_store()
548 static ssize_t nvmet_ns_buffered_io_show(struct config_item *item, char *page) in nvmet_ns_buffered_io_show() argument
550 return sprintf(page, "%d\n", to_nvmet_ns(item)->buffered_io); in nvmet_ns_buffered_io_show()
553 static ssize_t nvmet_ns_buffered_io_store(struct config_item *item, in nvmet_ns_buffered_io_store() argument
556 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_buffered_io_store()
576 static ssize_t nvmet_ns_revalidate_size_store(struct config_item *item, in nvmet_ns_revalidate_size_store() argument
579 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_revalidate_size_store()
616 static void nvmet_ns_release(struct config_item *item) in nvmet_ns_release() argument
618 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_release()
675 static ssize_t nvmet_passthru_device_path_show(struct config_item *item, in nvmet_passthru_device_path_show() argument
678 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_device_path_show()
683 static ssize_t nvmet_passthru_device_path_store(struct config_item *item, in nvmet_passthru_device_path_store() argument
686 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_device_path_store()
716 static ssize_t nvmet_passthru_enable_show(struct config_item *item, in nvmet_passthru_enable_show() argument
719 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_enable_show()
724 static ssize_t nvmet_passthru_enable_store(struct config_item *item, in nvmet_passthru_enable_store() argument
727 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_enable_store()
743 static ssize_t nvmet_passthru_admin_timeout_show(struct config_item *item, in nvmet_passthru_admin_timeout_show() argument
746 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->admin_timeout); in nvmet_passthru_admin_timeout_show()
749 static ssize_t nvmet_passthru_admin_timeout_store(struct config_item *item, in nvmet_passthru_admin_timeout_store() argument
752 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_admin_timeout_store()
762 static ssize_t nvmet_passthru_io_timeout_show(struct config_item *item, in nvmet_passthru_io_timeout_show() argument
765 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->io_timeout); in nvmet_passthru_io_timeout_show()
768 static ssize_t nvmet_passthru_io_timeout_store(struct config_item *item, in nvmet_passthru_io_timeout_store() argument
771 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_io_timeout_store()
781 static ssize_t nvmet_passthru_clear_ids_show(struct config_item *item, in nvmet_passthru_clear_ids_show() argument
784 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->clear_ids); in nvmet_passthru_clear_ids_show()
787 static ssize_t nvmet_passthru_clear_ids_store(struct config_item *item, in nvmet_passthru_clear_ids_store() argument
790 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_clear_ids_store()
984 static ssize_t nvmet_subsys_attr_allow_any_host_show(struct config_item *item, in nvmet_subsys_attr_allow_any_host_show() argument
988 to_subsys(item)->allow_any_host); in nvmet_subsys_attr_allow_any_host_show()
991 static ssize_t nvmet_subsys_attr_allow_any_host_store(struct config_item *item, in nvmet_subsys_attr_allow_any_host_store() argument
994 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_allow_any_host_store()
1020 static ssize_t nvmet_subsys_attr_version_show(struct config_item *item, in nvmet_subsys_attr_version_show() argument
1023 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_version_show()
1069 static ssize_t nvmet_subsys_attr_version_store(struct config_item *item, in nvmet_subsys_attr_version_store() argument
1072 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_version_store()
1091 static ssize_t nvmet_subsys_attr_serial_show(struct config_item *item, in nvmet_subsys_attr_serial_show() argument
1094 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_serial_show()
1130 static ssize_t nvmet_subsys_attr_serial_store(struct config_item *item, in nvmet_subsys_attr_serial_store() argument
1133 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_serial_store()
1146 static ssize_t nvmet_subsys_attr_cntlid_min_show(struct config_item *item, in nvmet_subsys_attr_cntlid_min_show() argument
1149 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->cntlid_min); in nvmet_subsys_attr_cntlid_min_show()
1152 static ssize_t nvmet_subsys_attr_cntlid_min_store(struct config_item *item, in nvmet_subsys_attr_cntlid_min_store() argument
1164 if (cntlid_min >= to_subsys(item)->cntlid_max) in nvmet_subsys_attr_cntlid_min_store()
1166 to_subsys(item)->cntlid_min = cntlid_min; in nvmet_subsys_attr_cntlid_min_store()
1176 static ssize_t nvmet_subsys_attr_cntlid_max_show(struct config_item *item, in nvmet_subsys_attr_cntlid_max_show() argument
1179 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->cntlid_max); in nvmet_subsys_attr_cntlid_max_show()
1182 static ssize_t nvmet_subsys_attr_cntlid_max_store(struct config_item *item, in nvmet_subsys_attr_cntlid_max_store() argument
1194 if (cntlid_max <= to_subsys(item)->cntlid_min) in nvmet_subsys_attr_cntlid_max_store()
1196 to_subsys(item)->cntlid_max = cntlid_max; in nvmet_subsys_attr_cntlid_max_store()
1206 static ssize_t nvmet_subsys_attr_model_show(struct config_item *item, in nvmet_subsys_attr_model_show() argument
1209 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_model_show()
1249 static ssize_t nvmet_subsys_attr_model_store(struct config_item *item, in nvmet_subsys_attr_model_store() argument
1252 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_model_store()
1266 static ssize_t nvmet_subsys_attr_pi_enable_show(struct config_item *item, in nvmet_subsys_attr_pi_enable_show() argument
1269 return snprintf(page, PAGE_SIZE, "%d\n", to_subsys(item)->pi_support); in nvmet_subsys_attr_pi_enable_show()
1272 static ssize_t nvmet_subsys_attr_pi_enable_store(struct config_item *item, in nvmet_subsys_attr_pi_enable_store() argument
1275 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_pi_enable_store()
1287 static ssize_t nvmet_subsys_attr_qid_max_show(struct config_item *item, in nvmet_subsys_attr_qid_max_show() argument
1290 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->max_qid); in nvmet_subsys_attr_qid_max_show()
1293 static ssize_t nvmet_subsys_attr_qid_max_store(struct config_item *item, in nvmet_subsys_attr_qid_max_store() argument
1305 to_subsys(item)->max_qid = qid_max; in nvmet_subsys_attr_qid_max_store()
1328 static void nvmet_subsys_release(struct config_item *item) in nvmet_subsys_release() argument
1330 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_release()
1385 static ssize_t nvmet_referral_enable_show(struct config_item *item, in nvmet_referral_enable_show() argument
1388 return snprintf(page, PAGE_SIZE, "%d\n", to_nvmet_port(item)->enabled); in nvmet_referral_enable_show()
1391 static ssize_t nvmet_referral_enable_store(struct config_item *item, in nvmet_referral_enable_store() argument
1394 struct nvmet_port *parent = to_nvmet_port(item->ci_parent->ci_parent); in nvmet_referral_enable_store()
1395 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_enable_store()
1429 struct config_item *item) in nvmet_referral_notify() argument
1431 struct nvmet_port *parent = to_nvmet_port(item->ci_parent->ci_parent); in nvmet_referral_notify()
1432 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_notify()
1437 static void nvmet_referral_release(struct config_item *item) in nvmet_referral_release() argument
1439 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_release()
1487 static ssize_t nvmet_ana_group_ana_state_show(struct config_item *item, in nvmet_ana_group_ana_state_show() argument
1490 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_show()
1502 static ssize_t nvmet_ana_group_ana_state_store(struct config_item *item, in nvmet_ana_group_ana_state_store() argument
1505 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_store()
1533 static void nvmet_ana_group_release(struct config_item *item) in nvmet_ana_group_release() argument
1535 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_release()
1606 static void nvmet_port_release(struct config_item *item) in nvmet_port_release() argument
1608 struct nvmet_port *port = to_nvmet_port(item); in nvmet_port_release()
1717 static ssize_t nvmet_host_dhchap_key_show(struct config_item *item, in nvmet_host_dhchap_key_show() argument
1720 u8 *dhchap_secret = to_host(item)->dhchap_secret; in nvmet_host_dhchap_key_show()
1727 static ssize_t nvmet_host_dhchap_key_store(struct config_item *item, in nvmet_host_dhchap_key_store() argument
1730 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_key_store()
1744 static ssize_t nvmet_host_dhchap_ctrl_key_show(struct config_item *item, in nvmet_host_dhchap_ctrl_key_show() argument
1747 u8 *dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show()
1754 static ssize_t nvmet_host_dhchap_ctrl_key_store(struct config_item *item, in nvmet_host_dhchap_ctrl_key_store() argument
1757 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_ctrl_key_store()
1771 static ssize_t nvmet_host_dhchap_hash_show(struct config_item *item, in nvmet_host_dhchap_hash_show() argument
1774 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_hash_show()
1780 static ssize_t nvmet_host_dhchap_hash_store(struct config_item *item, in nvmet_host_dhchap_hash_store() argument
1783 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_hash_store()
1797 static ssize_t nvmet_host_dhchap_dhgroup_show(struct config_item *item, in nvmet_host_dhchap_dhgroup_show() argument
1800 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_dhgroup_show()
1806 static ssize_t nvmet_host_dhchap_dhgroup_store(struct config_item *item, in nvmet_host_dhchap_dhgroup_store() argument
1809 struct nvmet_host *host = to_host(item); in nvmet_host_dhchap_dhgroup_store()
1836 static void nvmet_host_release(struct config_item *item) in nvmet_host_release() argument
1838 struct nvmet_host *host = to_host(item); in nvmet_host_release()