Lines Matching full:item
56 static ssize_t nvmet_addr_adrfam_show(struct config_item *item, char *page) in nvmet_addr_adrfam_show() argument
58 u8 adrfam = to_nvmet_port(item)->disc_addr.adrfam; in nvmet_addr_adrfam_show()
69 static ssize_t nvmet_addr_adrfam_store(struct config_item *item, in nvmet_addr_adrfam_store() argument
72 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_adrfam_store()
93 static ssize_t nvmet_addr_portid_show(struct config_item *item, in nvmet_addr_portid_show() argument
96 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_portid_show()
102 static ssize_t nvmet_addr_portid_store(struct config_item *item, in nvmet_addr_portid_store() argument
105 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_portid_store()
122 static ssize_t nvmet_addr_traddr_show(struct config_item *item, in nvmet_addr_traddr_show() argument
125 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_traddr_show()
131 static ssize_t nvmet_addr_traddr_store(struct config_item *item, in nvmet_addr_traddr_store() argument
134 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_traddr_store()
157 static ssize_t nvmet_addr_treq_show(struct config_item *item, char *page) in nvmet_addr_treq_show() argument
159 u8 treq = to_nvmet_port(item)->disc_addr.treq & in nvmet_addr_treq_show()
171 static ssize_t nvmet_addr_treq_store(struct config_item *item, in nvmet_addr_treq_store() argument
174 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_treq_store()
197 static ssize_t nvmet_addr_trsvcid_show(struct config_item *item, in nvmet_addr_trsvcid_show() argument
200 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trsvcid_show()
206 static ssize_t nvmet_addr_trsvcid_store(struct config_item *item, in nvmet_addr_trsvcid_store() argument
209 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trsvcid_store()
225 static ssize_t nvmet_param_inline_data_size_show(struct config_item *item, in nvmet_param_inline_data_size_show() argument
228 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_inline_data_size_show()
233 static ssize_t nvmet_param_inline_data_size_store(struct config_item *item, in nvmet_param_inline_data_size_store() argument
236 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_inline_data_size_store()
252 static ssize_t nvmet_param_pi_enable_show(struct config_item *item, in nvmet_param_pi_enable_show() argument
255 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_pi_enable_show()
260 static ssize_t nvmet_param_pi_enable_store(struct config_item *item, in nvmet_param_pi_enable_store() argument
263 struct nvmet_port *port = to_nvmet_port(item); in nvmet_param_pi_enable_store()
279 static ssize_t nvmet_addr_trtype_show(struct config_item *item, in nvmet_addr_trtype_show() argument
282 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trtype_show()
300 static ssize_t nvmet_addr_trtype_store(struct config_item *item, in nvmet_addr_trtype_store() argument
303 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trtype_store()
330 static ssize_t nvmet_ns_device_path_show(struct config_item *item, char *page) in nvmet_ns_device_path_show() argument
332 return sprintf(page, "%s\n", to_nvmet_ns(item)->device_path); in nvmet_ns_device_path_show()
335 static ssize_t nvmet_ns_device_path_store(struct config_item *item, in nvmet_ns_device_path_store() argument
338 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_path_store()
370 static ssize_t nvmet_ns_p2pmem_show(struct config_item *item, char *page) in nvmet_ns_p2pmem_show() argument
372 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_p2pmem_show()
377 static ssize_t nvmet_ns_p2pmem_store(struct config_item *item, in nvmet_ns_p2pmem_store() argument
380 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_p2pmem_store()
411 static ssize_t nvmet_ns_device_uuid_show(struct config_item *item, char *page) in nvmet_ns_device_uuid_show() argument
413 return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->uuid); in nvmet_ns_device_uuid_show()
416 static ssize_t nvmet_ns_device_uuid_store(struct config_item *item, in nvmet_ns_device_uuid_store() argument
419 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_uuid_store()
439 static ssize_t nvmet_ns_device_nguid_show(struct config_item *item, char *page) in nvmet_ns_device_nguid_show() argument
441 return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->nguid); in nvmet_ns_device_nguid_show()
444 static ssize_t nvmet_ns_device_nguid_store(struct config_item *item, in nvmet_ns_device_nguid_store() argument
447 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_nguid_store()
485 static ssize_t nvmet_ns_ana_grpid_show(struct config_item *item, char *page) in nvmet_ns_ana_grpid_show() argument
487 return sprintf(page, "%u\n", to_nvmet_ns(item)->anagrpid); in nvmet_ns_ana_grpid_show()
490 static ssize_t nvmet_ns_ana_grpid_store(struct config_item *item, in nvmet_ns_ana_grpid_store() argument
493 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_ana_grpid_store()
518 static ssize_t nvmet_ns_enable_show(struct config_item *item, char *page) in nvmet_ns_enable_show() argument
520 return sprintf(page, "%d\n", to_nvmet_ns(item)->enabled); in nvmet_ns_enable_show()
523 static ssize_t nvmet_ns_enable_store(struct config_item *item, in nvmet_ns_enable_store() argument
526 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_enable_store()
543 static ssize_t nvmet_ns_buffered_io_show(struct config_item *item, char *page) in nvmet_ns_buffered_io_show() argument
545 return sprintf(page, "%d\n", to_nvmet_ns(item)->buffered_io); in nvmet_ns_buffered_io_show()
548 static ssize_t nvmet_ns_buffered_io_store(struct config_item *item, in nvmet_ns_buffered_io_store() argument
551 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_buffered_io_store()
571 static ssize_t nvmet_ns_revalidate_size_store(struct config_item *item, in nvmet_ns_revalidate_size_store() argument
574 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_revalidate_size_store()
610 static void nvmet_ns_release(struct config_item *item) in nvmet_ns_release() argument
612 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_release()
669 static ssize_t nvmet_passthru_device_path_show(struct config_item *item, in nvmet_passthru_device_path_show() argument
672 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_device_path_show()
677 static ssize_t nvmet_passthru_device_path_store(struct config_item *item, in nvmet_passthru_device_path_store() argument
680 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_device_path_store()
710 static ssize_t nvmet_passthru_enable_show(struct config_item *item, in nvmet_passthru_enable_show() argument
713 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_enable_show()
718 static ssize_t nvmet_passthru_enable_store(struct config_item *item, in nvmet_passthru_enable_store() argument
721 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_enable_store()
737 static ssize_t nvmet_passthru_admin_timeout_show(struct config_item *item, in nvmet_passthru_admin_timeout_show() argument
740 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->admin_timeout); in nvmet_passthru_admin_timeout_show()
743 static ssize_t nvmet_passthru_admin_timeout_store(struct config_item *item, in nvmet_passthru_admin_timeout_store() argument
746 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_admin_timeout_store()
756 static ssize_t nvmet_passthru_io_timeout_show(struct config_item *item, in nvmet_passthru_io_timeout_show() argument
759 return sprintf(page, "%u\n", to_subsys(item->ci_parent)->io_timeout); in nvmet_passthru_io_timeout_show()
762 static ssize_t nvmet_passthru_io_timeout_store(struct config_item *item, in nvmet_passthru_io_timeout_store() argument
765 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_io_timeout_store()
958 static ssize_t nvmet_subsys_attr_allow_any_host_show(struct config_item *item, in nvmet_subsys_attr_allow_any_host_show() argument
962 to_subsys(item)->allow_any_host); in nvmet_subsys_attr_allow_any_host_show()
965 static ssize_t nvmet_subsys_attr_allow_any_host_store(struct config_item *item, in nvmet_subsys_attr_allow_any_host_store() argument
968 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_allow_any_host_store()
994 static ssize_t nvmet_subsys_attr_version_show(struct config_item *item, in nvmet_subsys_attr_version_show() argument
997 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_version_show()
1043 static ssize_t nvmet_subsys_attr_version_store(struct config_item *item, in nvmet_subsys_attr_version_store() argument
1046 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_version_store()
1065 static ssize_t nvmet_subsys_attr_serial_show(struct config_item *item, in nvmet_subsys_attr_serial_show() argument
1068 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_serial_show()
1104 static ssize_t nvmet_subsys_attr_serial_store(struct config_item *item, in nvmet_subsys_attr_serial_store() argument
1107 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_serial_store()
1120 static ssize_t nvmet_subsys_attr_cntlid_min_show(struct config_item *item, in nvmet_subsys_attr_cntlid_min_show() argument
1123 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->cntlid_min); in nvmet_subsys_attr_cntlid_min_show()
1126 static ssize_t nvmet_subsys_attr_cntlid_min_store(struct config_item *item, in nvmet_subsys_attr_cntlid_min_store() argument
1138 if (cntlid_min >= to_subsys(item)->cntlid_max) in nvmet_subsys_attr_cntlid_min_store()
1140 to_subsys(item)->cntlid_min = cntlid_min; in nvmet_subsys_attr_cntlid_min_store()
1150 static ssize_t nvmet_subsys_attr_cntlid_max_show(struct config_item *item, in nvmet_subsys_attr_cntlid_max_show() argument
1153 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->cntlid_max); in nvmet_subsys_attr_cntlid_max_show()
1156 static ssize_t nvmet_subsys_attr_cntlid_max_store(struct config_item *item, in nvmet_subsys_attr_cntlid_max_store() argument
1168 if (cntlid_max <= to_subsys(item)->cntlid_min) in nvmet_subsys_attr_cntlid_max_store()
1170 to_subsys(item)->cntlid_max = cntlid_max; in nvmet_subsys_attr_cntlid_max_store()
1180 static ssize_t nvmet_subsys_attr_model_show(struct config_item *item, in nvmet_subsys_attr_model_show() argument
1183 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_model_show()
1220 static ssize_t nvmet_subsys_attr_model_store(struct config_item *item, in nvmet_subsys_attr_model_store() argument
1223 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_model_store()
1237 static ssize_t nvmet_subsys_attr_pi_enable_show(struct config_item *item, in nvmet_subsys_attr_pi_enable_show() argument
1240 return snprintf(page, PAGE_SIZE, "%d\n", to_subsys(item)->pi_support); in nvmet_subsys_attr_pi_enable_show()
1243 static ssize_t nvmet_subsys_attr_pi_enable_store(struct config_item *item, in nvmet_subsys_attr_pi_enable_store() argument
1246 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_pi_enable_store()
1274 static void nvmet_subsys_release(struct config_item *item) in nvmet_subsys_release() argument
1276 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_release()
1331 static ssize_t nvmet_referral_enable_show(struct config_item *item, in nvmet_referral_enable_show() argument
1334 return snprintf(page, PAGE_SIZE, "%d\n", to_nvmet_port(item)->enabled); in nvmet_referral_enable_show()
1337 static ssize_t nvmet_referral_enable_store(struct config_item *item, in nvmet_referral_enable_store() argument
1340 struct nvmet_port *parent = to_nvmet_port(item->ci_parent->ci_parent); in nvmet_referral_enable_store()
1341 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_enable_store()
1375 struct config_item *item) in nvmet_referral_notify() argument
1377 struct nvmet_port *parent = to_nvmet_port(item->ci_parent->ci_parent); in nvmet_referral_notify()
1378 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_notify()
1383 static void nvmet_referral_release(struct config_item *item) in nvmet_referral_release() argument
1385 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_release()
1433 static ssize_t nvmet_ana_group_ana_state_show(struct config_item *item, in nvmet_ana_group_ana_state_show() argument
1436 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_show()
1448 static ssize_t nvmet_ana_group_ana_state_store(struct config_item *item, in nvmet_ana_group_ana_state_store() argument
1451 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_store()
1479 static void nvmet_ana_group_release(struct config_item *item) in nvmet_ana_group_release() argument
1481 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_release()
1552 static void nvmet_port_release(struct config_item *item) in nvmet_port_release() argument
1554 struct nvmet_port *port = to_nvmet_port(item); in nvmet_port_release()
1660 static void nvmet_host_release(struct config_item *item) in nvmet_host_release() argument
1662 struct nvmet_host *host = to_host(item); in nvmet_host_release()