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()
281 static ssize_t nvmet_addr_trtype_show(struct config_item *item, in nvmet_addr_trtype_show() argument
284 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trtype_show()
302 static ssize_t nvmet_addr_trtype_store(struct config_item *item, in nvmet_addr_trtype_store() argument
305 struct nvmet_port *port = to_nvmet_port(item); in nvmet_addr_trtype_store()
332 static ssize_t nvmet_ns_device_path_show(struct config_item *item, char *page) in nvmet_ns_device_path_show() argument
334 return sprintf(page, "%s\n", to_nvmet_ns(item)->device_path); in nvmet_ns_device_path_show()
337 static ssize_t nvmet_ns_device_path_store(struct config_item *item, in nvmet_ns_device_path_store() argument
340 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_path_store()
372 static ssize_t nvmet_ns_p2pmem_show(struct config_item *item, char *page) in nvmet_ns_p2pmem_show() argument
374 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_p2pmem_show()
379 static ssize_t nvmet_ns_p2pmem_store(struct config_item *item, in nvmet_ns_p2pmem_store() argument
382 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_p2pmem_store()
413 static ssize_t nvmet_ns_device_uuid_show(struct config_item *item, char *page) in nvmet_ns_device_uuid_show() argument
415 return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->uuid); in nvmet_ns_device_uuid_show()
418 static ssize_t nvmet_ns_device_uuid_store(struct config_item *item, in nvmet_ns_device_uuid_store() argument
421 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_uuid_store()
441 static ssize_t nvmet_ns_device_nguid_show(struct config_item *item, char *page) in nvmet_ns_device_nguid_show() argument
443 return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->nguid); in nvmet_ns_device_nguid_show()
446 static ssize_t nvmet_ns_device_nguid_store(struct config_item *item, in nvmet_ns_device_nguid_store() argument
449 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_device_nguid_store()
487 static ssize_t nvmet_ns_ana_grpid_show(struct config_item *item, char *page) in nvmet_ns_ana_grpid_show() argument
489 return sprintf(page, "%u\n", to_nvmet_ns(item)->anagrpid); in nvmet_ns_ana_grpid_show()
492 static ssize_t nvmet_ns_ana_grpid_store(struct config_item *item, in nvmet_ns_ana_grpid_store() argument
495 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_ana_grpid_store()
520 static ssize_t nvmet_ns_enable_show(struct config_item *item, char *page) in nvmet_ns_enable_show() argument
522 return sprintf(page, "%d\n", to_nvmet_ns(item)->enabled); in nvmet_ns_enable_show()
525 static ssize_t nvmet_ns_enable_store(struct config_item *item, in nvmet_ns_enable_store() argument
528 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_enable_store()
545 static ssize_t nvmet_ns_buffered_io_show(struct config_item *item, char *page) in nvmet_ns_buffered_io_show() argument
547 return sprintf(page, "%d\n", to_nvmet_ns(item)->buffered_io); in nvmet_ns_buffered_io_show()
550 static ssize_t nvmet_ns_buffered_io_store(struct config_item *item, in nvmet_ns_buffered_io_store() argument
553 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_buffered_io_store()
573 static ssize_t nvmet_ns_revalidate_size_store(struct config_item *item, in nvmet_ns_revalidate_size_store() argument
576 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_revalidate_size_store()
612 static void nvmet_ns_release(struct config_item *item) in nvmet_ns_release() argument
614 struct nvmet_ns *ns = to_nvmet_ns(item); in nvmet_ns_release()
671 static ssize_t nvmet_passthru_device_path_show(struct config_item *item, in nvmet_passthru_device_path_show() argument
674 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_device_path_show()
679 static ssize_t nvmet_passthru_device_path_store(struct config_item *item, in nvmet_passthru_device_path_store() argument
682 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_device_path_store()
712 static ssize_t nvmet_passthru_enable_show(struct config_item *item, in nvmet_passthru_enable_show() argument
715 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_enable_show()
720 static ssize_t nvmet_passthru_enable_store(struct config_item *item, in nvmet_passthru_enable_store() argument
723 struct nvmet_subsys *subsys = to_subsys(item->ci_parent); in nvmet_passthru_enable_store()
920 static ssize_t nvmet_subsys_attr_allow_any_host_show(struct config_item *item, in nvmet_subsys_attr_allow_any_host_show() argument
924 to_subsys(item)->allow_any_host); in nvmet_subsys_attr_allow_any_host_show()
927 static ssize_t nvmet_subsys_attr_allow_any_host_store(struct config_item *item, in nvmet_subsys_attr_allow_any_host_store() argument
930 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_allow_any_host_store()
956 static ssize_t nvmet_subsys_attr_version_show(struct config_item *item, in nvmet_subsys_attr_version_show() argument
959 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_version_show()
972 static ssize_t nvmet_subsys_attr_version_store(struct config_item *item, in nvmet_subsys_attr_version_store() argument
975 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_version_store()
995 static ssize_t nvmet_subsys_attr_serial_show(struct config_item *item, in nvmet_subsys_attr_serial_show() argument
998 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_serial_show()
1003 static ssize_t nvmet_subsys_attr_serial_store(struct config_item *item, in nvmet_subsys_attr_serial_store() argument
1012 to_subsys(item)->serial = serial; in nvmet_subsys_attr_serial_store()
1019 static ssize_t nvmet_subsys_attr_cntlid_min_show(struct config_item *item, in nvmet_subsys_attr_cntlid_min_show() argument
1022 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->cntlid_min); in nvmet_subsys_attr_cntlid_min_show()
1025 static ssize_t nvmet_subsys_attr_cntlid_min_store(struct config_item *item, in nvmet_subsys_attr_cntlid_min_store() argument
1037 if (cntlid_min >= to_subsys(item)->cntlid_max) in nvmet_subsys_attr_cntlid_min_store()
1039 to_subsys(item)->cntlid_min = cntlid_min; in nvmet_subsys_attr_cntlid_min_store()
1049 static ssize_t nvmet_subsys_attr_cntlid_max_show(struct config_item *item, in nvmet_subsys_attr_cntlid_max_show() argument
1052 return snprintf(page, PAGE_SIZE, "%u\n", to_subsys(item)->cntlid_max); in nvmet_subsys_attr_cntlid_max_show()
1055 static ssize_t nvmet_subsys_attr_cntlid_max_store(struct config_item *item, in nvmet_subsys_attr_cntlid_max_store() argument
1067 if (cntlid_max <= to_subsys(item)->cntlid_min) in nvmet_subsys_attr_cntlid_max_store()
1069 to_subsys(item)->cntlid_max = cntlid_max; in nvmet_subsys_attr_cntlid_max_store()
1079 static ssize_t nvmet_subsys_attr_model_show(struct config_item *item, in nvmet_subsys_attr_model_show() argument
1082 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_model_show()
1103 static ssize_t nvmet_subsys_attr_model_store(struct config_item *item, in nvmet_subsys_attr_model_store() argument
1106 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_model_store()
1146 static ssize_t nvmet_subsys_attr_pi_enable_show(struct config_item *item, in nvmet_subsys_attr_pi_enable_show() argument
1149 return snprintf(page, PAGE_SIZE, "%d\n", to_subsys(item)->pi_support); in nvmet_subsys_attr_pi_enable_show()
1152 static ssize_t nvmet_subsys_attr_pi_enable_store(struct config_item *item, in nvmet_subsys_attr_pi_enable_store() argument
1155 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_attr_pi_enable_store()
1183 static void nvmet_subsys_release(struct config_item *item) in nvmet_subsys_release() argument
1185 struct nvmet_subsys *subsys = to_subsys(item); in nvmet_subsys_release()
1240 static ssize_t nvmet_referral_enable_show(struct config_item *item, in nvmet_referral_enable_show() argument
1243 return snprintf(page, PAGE_SIZE, "%d\n", to_nvmet_port(item)->enabled); in nvmet_referral_enable_show()
1246 static ssize_t nvmet_referral_enable_store(struct config_item *item, in nvmet_referral_enable_store() argument
1249 struct nvmet_port *parent = to_nvmet_port(item->ci_parent->ci_parent); in nvmet_referral_enable_store()
1250 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_enable_store()
1284 struct config_item *item) in nvmet_referral_notify() argument
1286 struct nvmet_port *parent = to_nvmet_port(item->ci_parent->ci_parent); in nvmet_referral_notify()
1287 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_notify()
1292 static void nvmet_referral_release(struct config_item *item) in nvmet_referral_release() argument
1294 struct nvmet_port *port = to_nvmet_port(item); in nvmet_referral_release()
1342 static ssize_t nvmet_ana_group_ana_state_show(struct config_item *item, in nvmet_ana_group_ana_state_show() argument
1345 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_show()
1357 static ssize_t nvmet_ana_group_ana_state_store(struct config_item *item, in nvmet_ana_group_ana_state_store() argument
1360 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_ana_state_store()
1388 static void nvmet_ana_group_release(struct config_item *item) in nvmet_ana_group_release() argument
1390 struct nvmet_ana_group *grp = to_ana_group(item); in nvmet_ana_group_release()
1461 static void nvmet_port_release(struct config_item *item) in nvmet_port_release() argument
1463 struct nvmet_port *port = to_nvmet_port(item); in nvmet_port_release()
1569 static void nvmet_host_release(struct config_item *item) in nvmet_host_release() argument
1571 struct nvmet_host *host = to_host(item); in nvmet_host_release()