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
214 tpg = container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); in lio_target_call_addnptotpg()
215 ret = iscsit_get_tpg(tpg); in lio_target_call_addnptotpg()
222 tpg->tpgt, name); in lio_target_call_addnptotpg()
236 tpg_np = iscsit_tpg_add_network_portal(tpg, &sockaddr, NULL, in lio_target_call_addnptotpg()
239 iscsit_put_tpg(tpg); in lio_target_call_addnptotpg()
244 iscsit_put_tpg(tpg); in lio_target_call_addnptotpg()
251 struct iscsi_portal_group *tpg; in lio_target_call_delnpfromtpg() local
257 tpg = tpg_np->tpg; in lio_target_call_delnpfromtpg()
258 ret = iscsit_get_tpg(tpg); in lio_target_call_delnpfromtpg()
262 se_tpg = &tpg->tpg_se_tpg; in lio_target_call_delnpfromtpg()
265 tpg->tpgt, &tpg_np->tpg_np->np_sockaddr); in lio_target_call_delnpfromtpg()
267 ret = iscsit_tpg_del_network_portal(tpg, tpg_np); in lio_target_call_delnpfromtpg()
273 iscsit_put_tpg(tpg); in lio_target_call_delnpfromtpg()
627 struct iscsi_portal_group *tpg = container_of(se_tpg, in lio_target_nacl_cmdsn_depth_store() local
658 if (iscsit_get_tpg(tpg) < 0) in lio_target_nacl_cmdsn_depth_store()
668 iscsit_put_tpg(tpg); in lio_target_nacl_cmdsn_depth_store()
724 struct iscsi_portal_group *tpg = container_of(se_tpg, \
728 if (iscsit_get_tpg(tpg) < 0) \
731 rb = sprintf(page, "%u\n", tpg->tpg_attrib.name); \
732 iscsit_put_tpg(tpg); \
740 struct iscsi_portal_group *tpg = container_of(se_tpg, \
745 if (iscsit_get_tpg(tpg) < 0) \
751 ret = iscsit_ta_##name(tpg, val); \
755 iscsit_put_tpg(tpg); \
758 iscsit_put_tpg(tpg); \
804 struct iscsi_portal_group *tpg = container_of(se_tpg, \
806 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
817 struct iscsi_portal_group *tpg = container_of(se_tpg, \
819 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
865 struct iscsi_portal_group *tpg = container_of(se_tpg, \
867 struct iscsi_node_auth *auth = &tpg->tpg_demo_auth; \
904 struct iscsi_portal_group *tpg = container_of(se_tpg, \
909 if (iscsit_get_tpg(tpg) < 0) \
913 tpg->param_list); \
915 iscsit_put_tpg(tpg); \
920 iscsit_put_tpg(tpg); \
927 struct iscsi_portal_group *tpg = container_of(se_tpg, \
939 if (iscsit_get_tpg(tpg) < 0) { \
944 ret = iscsi_change_param_value(buf, tpg->param_list, 1); \
949 iscsit_put_tpg(tpg); \
953 iscsit_put_tpg(tpg); \
1012 struct iscsi_portal_group *tpg = container_of(se_tpg, in lio_target_tpg_enable_show() local
1016 spin_lock(&tpg->tpg_state_lock); in lio_target_tpg_enable_show()
1018 (tpg->tpg_state == TPG_STATE_ACTIVE) ? 1 : 0); in lio_target_tpg_enable_show()
1019 spin_unlock(&tpg->tpg_state_lock); in lio_target_tpg_enable_show()
1028 struct iscsi_portal_group *tpg = container_of(se_tpg, in lio_target_tpg_enable_store() local
1041 ret = iscsit_get_tpg(tpg); in lio_target_tpg_enable_store()
1046 ret = iscsit_tpg_enable_portal_group(tpg); in lio_target_tpg_enable_store()
1053 ret = iscsit_tpg_disable_portal_group(tpg, 1); in lio_target_tpg_enable_store()
1058 iscsit_put_tpg(tpg); in lio_target_tpg_enable_store()
1061 iscsit_put_tpg(tpg); in lio_target_tpg_enable_store()
1088 struct iscsi_portal_group *tpg; in lio_target_tiqn_addtpg() local
1110 tpg = iscsit_alloc_portal_group(tiqn, tpgt); in lio_target_tiqn_addtpg()
1111 if (!tpg) in lio_target_tiqn_addtpg()
1114 ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); in lio_target_tiqn_addtpg()
1118 ret = iscsit_tpg_add_portal_group(tiqn, tpg); in lio_target_tiqn_addtpg()
1125 return &tpg->tpg_se_tpg; in lio_target_tiqn_addtpg()
1127 core_tpg_deregister(&tpg->tpg_se_tpg); in lio_target_tiqn_addtpg()
1129 kfree(tpg); in lio_target_tiqn_addtpg()
1135 struct iscsi_portal_group *tpg; in lio_target_tiqn_deltpg() local
1138 tpg = container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); in lio_target_tiqn_deltpg()
1139 tiqn = tpg->tpg_tiqn; in lio_target_tiqn_deltpg()
1144 iscsit_tpg_del_portal_group(tiqn, tpg, 1); in lio_target_tiqn_deltpg()
1473 struct se_portal_group *se_tpg = &sess->tpg->tpg_se_tpg; in lio_tpg_close_session()
1508 struct iscsi_portal_group *tpg = container_of(se_tpg, in lio_set_default_node_attributes() local
1512 iscsit_set_default_node_attribues(acl, tpg); in lio_set_default_node_attributes()