Lines Matching refs:tpg

61 	struct iscsi_portal_group *tpg;  in lio_target_np_driver_store()  local
80 tpg = tpg_np->tpg; in lio_target_np_driver_store()
81 if (iscsit_get_tpg(tpg) < 0) in lio_target_np_driver_store()
94 tpg_np_new = iscsit_tpg_add_network_portal(tpg, in lio_target_np_driver_store()
103 rc = iscsit_tpg_del_network_portal(tpg, tpg_np_new); in lio_target_np_driver_store()
109 iscsit_put_tpg(tpg); in lio_target_np_driver_store()
112 iscsit_put_tpg(tpg); in lio_target_np_driver_store()
159 struct iscsi_portal_group *tpg; in lio_target_call_addnptotpg() local
213 tpg = to_iscsi_tpg(se_tpg); in lio_target_call_addnptotpg()
214 ret = iscsit_get_tpg(tpg); in lio_target_call_addnptotpg()
221 tpg->tpgt, name); in lio_target_call_addnptotpg()
235 tpg_np = iscsit_tpg_add_network_portal(tpg, &sockaddr, NULL, in lio_target_call_addnptotpg()
238 iscsit_put_tpg(tpg); in lio_target_call_addnptotpg()
243 iscsit_put_tpg(tpg); in lio_target_call_addnptotpg()
250 struct iscsi_portal_group *tpg; in lio_target_call_delnpfromtpg() local
256 tpg = tpg_np->tpg; in lio_target_call_delnpfromtpg()
257 ret = iscsit_get_tpg(tpg); in lio_target_call_delnpfromtpg()
261 se_tpg = &tpg->tpg_se_tpg; in lio_target_call_delnpfromtpg()
264 tpg->tpgt, &tpg_np->tpg_np->np_sockaddr); in lio_target_call_delnpfromtpg()
266 ret = iscsit_tpg_del_network_portal(tpg, tpg_np); in lio_target_call_delnpfromtpg()
272 iscsit_put_tpg(tpg); in lio_target_call_delnpfromtpg()
652 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); in lio_target_nacl_cmdsn_depth_store() local
682 if (iscsit_get_tpg(tpg) < 0) in lio_target_nacl_cmdsn_depth_store()
692 iscsit_put_tpg(tpg); in lio_target_nacl_cmdsn_depth_store()
747 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); \
750 if (iscsit_get_tpg(tpg) < 0) \
753 rb = sprintf(page, "%u\n", tpg->tpg_attrib.name); \
754 iscsit_put_tpg(tpg); \
762 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); \
766 if (iscsit_get_tpg(tpg) < 0) \
772 ret = iscsit_ta_##name(tpg, val); \
776 iscsit_put_tpg(tpg); \
779 iscsit_put_tpg(tpg); \
825 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); \
826 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
837 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); \
838 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
884 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); \
885 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
922 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); \
926 if (iscsit_get_tpg(tpg) < 0) \
930 tpg->param_list); \
932 iscsit_put_tpg(tpg); \
937 iscsit_put_tpg(tpg); \
944 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); \
955 if (iscsit_get_tpg(tpg) < 0) { \
960 ret = iscsi_change_param_value(buf, tpg->param_list, 1); \
965 iscsit_put_tpg(tpg); \
969 iscsit_put_tpg(tpg); \
1045 struct iscsi_portal_group *tpg; in lio_target_tiqn_addtpg() local
1067 tpg = iscsit_alloc_portal_group(tiqn, tpgt); in lio_target_tiqn_addtpg()
1068 if (!tpg) in lio_target_tiqn_addtpg()
1071 ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); in lio_target_tiqn_addtpg()
1075 ret = iscsit_tpg_add_portal_group(tiqn, tpg); in lio_target_tiqn_addtpg()
1082 return &tpg->tpg_se_tpg; in lio_target_tiqn_addtpg()
1084 core_tpg_deregister(&tpg->tpg_se_tpg); in lio_target_tiqn_addtpg()
1086 kfree(tpg); in lio_target_tiqn_addtpg()
1093 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); in lio_target_tiqn_enabletpg() local
1096 ret = iscsit_get_tpg(tpg); in lio_target_tiqn_enabletpg()
1101 ret = iscsit_tpg_enable_portal_group(tpg); in lio_target_tiqn_enabletpg()
1108 ret = iscsit_tpg_disable_portal_group(tpg, 1); in lio_target_tiqn_enabletpg()
1113 iscsit_put_tpg(tpg); in lio_target_tiqn_enabletpg()
1116 iscsit_put_tpg(tpg); in lio_target_tiqn_enabletpg()
1122 struct iscsi_portal_group *tpg; in lio_target_tiqn_deltpg() local
1125 tpg = to_iscsi_tpg(se_tpg); in lio_target_tiqn_deltpg()
1126 tiqn = tpg->tpg_tiqn; in lio_target_tiqn_deltpg()
1131 iscsit_tpg_del_portal_group(tiqn, tpg, 1); in lio_target_tiqn_deltpg()
1491 struct se_portal_group *se_tpg = &sess->tpg->tpg_se_tpg; in lio_tpg_close_session()
1525 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); in lio_set_default_node_attributes() local
1528 iscsit_set_default_node_attribues(acl, tpg); in lio_set_default_node_attributes()