• Home
  • Raw
  • Download

Lines Matching refs:page

39 static ssize_t lio_target_np_driver_show(struct config_item *item, char *page,  in lio_target_np_driver_show()  argument
48 rb = sysfs_emit(page, "1\n"); in lio_target_np_driver_show()
50 rb = sysfs_emit(page, "0\n"); in lio_target_np_driver_show()
56 const char *page, size_t count, enum iscsit_transport_type type, in lio_target_np_driver_store() argument
66 rc = kstrtou32(page, 0, &op); in lio_target_np_driver_store()
116 static ssize_t lio_target_np_iser_show(struct config_item *item, char *page) in lio_target_np_iser_show() argument
118 return lio_target_np_driver_show(item, page, ISCSI_INFINIBAND); in lio_target_np_iser_show()
122 const char *page, size_t count) in lio_target_np_iser_store() argument
124 return lio_target_np_driver_store(item, page, count, in lio_target_np_iser_store()
129 static ssize_t lio_target_np_cxgbit_show(struct config_item *item, char *page) in lio_target_np_cxgbit_show() argument
131 return lio_target_np_driver_show(item, page, ISCSI_CXGBIT); in lio_target_np_cxgbit_show()
135 const char *page, size_t count) in lio_target_np_cxgbit_store() argument
137 return lio_target_np_driver_store(item, page, count, in lio_target_np_cxgbit_store()
281 char *page) \
285 return sysfs_emit(page, "%u\n", nacl->node_attrib.name); \
289 const char *page, size_t count) \
296 ret = kstrtou32(page, 0, &val); \
318 char *page) in iscsi_nacl_attrib_authentication_show() argument
323 return sysfs_emit(page, "%d\n", nacl->node_attrib.authentication); in iscsi_nacl_attrib_authentication_show()
327 const char *page, size_t count) in iscsi_nacl_attrib_authentication_store() argument
334 ret = kstrtos32(page, 0, &val); in iscsi_nacl_attrib_authentication_store()
367 char *page) \
373 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
378 const char *page, \
387 snprintf(auth->name, sizeof(auth->name), "%s", page); \
405 char *page) \
408 return __iscsi_nacl_auth_##name##_show(to_iscsi_nacl(nacl), page); \
411 const char *page, size_t count) \
415 page, count); \
431 char *page) \
438 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \
444 char *page) \
447 return __iscsi_nacl_auth_##name##_show(to_iscsi_nacl(nacl), page); \
469 char *page) \
479 rb = snprintf(page, PAGE_SIZE, \
483 rb = snprintf(page, PAGE_SIZE, "%u\n", \
524 static ssize_t lio_target_nacl_info_show(struct config_item *item, char *page) in lio_target_nacl_info_show() argument
536 rb += sysfs_emit_at(page, rb, "No active iSCSI Session for Initiator" in lio_target_nacl_info_show()
541 rb += sysfs_emit_at(page, rb, "InitiatorName: %s\n", in lio_target_nacl_info_show()
543 rb += sysfs_emit_at(page, rb, "InitiatorAlias: %s\n", in lio_target_nacl_info_show()
546 rb += sysfs_emit_at(page, rb, in lio_target_nacl_info_show()
549 rb += sysfs_emit_at(page, rb, "SessionType: %s\n", in lio_target_nacl_info_show()
552 rb += sysfs_emit_at(page, rb, "Session State: "); in lio_target_nacl_info_show()
555 rb += sysfs_emit_at(page, rb, "TARG_SESS_FREE\n"); in lio_target_nacl_info_show()
558 rb += sysfs_emit_at(page, rb, "TARG_SESS_STATE_ACTIVE\n"); in lio_target_nacl_info_show()
561 rb += sysfs_emit_at(page, rb, "TARG_SESS_STATE_LOGGED_IN\n"); in lio_target_nacl_info_show()
564 rb += sysfs_emit_at(page, rb, "TARG_SESS_STATE_FAILED\n"); in lio_target_nacl_info_show()
567 rb += sysfs_emit_at(page, rb, "TARG_SESS_STATE_IN_CONTINUE\n"); in lio_target_nacl_info_show()
570 rb += sysfs_emit_at(page, rb, "ERROR: Unknown Session" in lio_target_nacl_info_show()
575 rb += sysfs_emit_at(page, rb, "---------------------[iSCSI Session" in lio_target_nacl_info_show()
577 rb += sysfs_emit_at(page, rb, " CmdSN/WR : CmdSN/WC : ExpCmdSN" in lio_target_nacl_info_show()
580 rb += sysfs_emit_at(page, rb, " 0x%08x 0x%08x 0x%08x 0x%08x" in lio_target_nacl_info_show()
586 rb += sysfs_emit_at(page, rb, "----------------------[iSCSI" in lio_target_nacl_info_show()
591 rb += sysfs_emit_at(page, rb, "CID: %hu Connection" in lio_target_nacl_info_show()
595 rb += sysfs_emit_at(page, rb, in lio_target_nacl_info_show()
599 rb += sysfs_emit_at(page, rb, in lio_target_nacl_info_show()
603 rb += sysfs_emit_at(page, rb, in lio_target_nacl_info_show()
607 rb += sysfs_emit_at(page, rb, in lio_target_nacl_info_show()
611 rb += sysfs_emit_at(page, rb, in lio_target_nacl_info_show()
615 rb += sysfs_emit_at(page, rb, in lio_target_nacl_info_show()
619 rb += sysfs_emit_at(page, rb, in lio_target_nacl_info_show()
623 rb += sysfs_emit_at(page, rb, in lio_target_nacl_info_show()
628 rb += sysfs_emit_at(page, rb, " Address %pISc %s", &conn->login_sockaddr, in lio_target_nacl_info_show()
631 rb += sysfs_emit_at(page, rb, " StatSN: 0x%08x\n", in lio_target_nacl_info_show()
642 char *page) in lio_target_nacl_cmdsn_depth_show() argument
644 return sysfs_emit(page, "%u\n", acl_to_nacl(item)->queue_depth); in lio_target_nacl_cmdsn_depth_show()
648 const char *page, size_t count) in lio_target_nacl_cmdsn_depth_store() argument
657 ret = kstrtou32(page, 0, &cmdsn_depth); in lio_target_nacl_cmdsn_depth_store()
696 static ssize_t lio_target_nacl_tag_show(struct config_item *item, char *page) in lio_target_nacl_tag_show() argument
698 return snprintf(page, PAGE_SIZE, "%s", acl_to_nacl(item)->acl_tag); in lio_target_nacl_tag_show()
702 const char *page, size_t count) in lio_target_nacl_tag_store() argument
707 ret = core_tpg_set_initiator_node_tag(se_nacl->se_tpg, se_nacl, page); in lio_target_nacl_tag_store()
744 char *page) \
753 rb = sysfs_emit(page, "%u\n", tpg->tpg_attrib.name); \
759 const char *page, size_t count) \
769 ret = kstrtou32(page, 0, &val); \
821 char *page) \
829 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
833 const char *page, size_t count) \
841 snprintf(auth->name, sizeof(auth->name), "%s", page); \
859 char *page) \
861 return __iscsi_tpg_auth_##name##_show(auth_to_tpg(item), page); \
865 const char *page, size_t count) \
867 return __iscsi_tpg_auth_##name##_store(auth_to_tpg(item), page, count); \
880 char *page) \
888 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \
894 char *page) \
896 return __iscsi_tpg_auth_##name##_show(auth_to_tpg(item), page); \
917 char *page) \
933 rb = snprintf(page, PAGE_SIZE, "%s\n", param->value); \
939 const char *page, size_t count) \
949 len = snprintf(buf, PAGE_SIZE, "%s=%s", __stringify(name), page); \
1024 char *page) in lio_target_tpg_dynamic_sessions_show() argument
1026 return target_show_dynamic_sessions(to_tpg(item), page); in lio_target_tpg_dynamic_sessions_show()
1137 char *page) in lio_target_wwn_lio_version_show() argument
1139 return sysfs_emit(page, "Datera Inc. iSCSI Target %s\n", ISCSIT_VERSION); in lio_target_wwn_lio_version_show()
1145 struct config_item *item, char *page) in lio_target_wwn_cpus_allowed_list_show() argument
1147 return sysfs_emit(page, "%*pbl\n", in lio_target_wwn_cpus_allowed_list_show()
1152 struct config_item *item, const char *page, size_t count) in lio_target_wwn_cpus_allowed_list_store() argument
1161 orig = kstrdup(page, GFP_KERNEL); in lio_target_wwn_cpus_allowed_list_store()
1248 static ssize_t iscsi_disc_##name##_show(struct config_item *item, char *page) \
1251 page); \
1254 const char *page, size_t count) \
1257 page, count); \
1269 static ssize_t iscsi_disc_##name##_show(struct config_item *item, char *page) \
1272 page); \
1280 char *page) in iscsi_disc_enforce_discovery_auth_show() argument
1284 return sysfs_emit(page, "%d\n", discovery_auth->enforce_discovery_auth); in iscsi_disc_enforce_discovery_auth_show()
1288 const char *page, size_t count) in iscsi_disc_enforce_discovery_auth_store() argument
1295 err = kstrtou32(page, 0, &op); in iscsi_disc_enforce_discovery_auth_store()