Lines Matching refs:tpg
135 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_check_for_session_reinstatement() local
137 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_check_for_session_reinstatement()
347 sess->tpg = conn->tpg; in iscsi_login_zero_tsih_s2()
353 sess->tsih = ++sess->tpg->ntsih; in iscsi_login_zero_tsih_s2()
355 sess->tsih = ++sess->tpg->ntsih; in iscsi_login_zero_tsih_s2()
361 conn->tpg->param_list, 1) < 0) { in iscsi_login_zero_tsih_s2()
397 if (iscsi_change_param_sprintf(conn, "TargetPortalGroupTag=%hu", sess->tpg->tpgt)) in iscsi_login_zero_tsih_s2()
489 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_login_non_zero_tsih_s2() local
491 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_login_non_zero_tsih_s2()
538 conn->tpg->param_list, 0) < 0) { in iscsi_login_non_zero_tsih_s2()
555 if (iscsi_change_param_sprintf(conn, "TargetPortalGroupTag=%hu", sess->tpg->tpgt)) in iscsi_login_non_zero_tsih_s2()
695 struct iscsi_portal_group *tpg = sess->tpg; in iscsi_post_login_handler() local
696 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_post_login_handler()
727 &conn->local_sockaddr, tpg->tpgt); in iscsi_post_login_handler()
767 __transport_register_session(&sess->tpg->tpg_se_tpg, in iscsi_post_login_handler()
774 tpg->tpgt); in iscsi_post_login_handler()
784 sess->sid = tpg->sid++; in iscsi_post_login_handler()
786 sess->sid = tpg->sid++; in iscsi_post_login_handler()
790 tpg->nsessions++; in iscsi_post_login_handler()
791 if (tpg->tpg_tiqn) in iscsi_post_login_handler()
792 tpg->tpg_tiqn->tiqn_nsessions++; in iscsi_post_login_handler()
795 " iSCSI Target Portal Group: %hu\n", tpg->nsessions, tpg->tpgt); in iscsi_post_login_handler()
1199 &conn->tpg->tpg_se_tpg; in iscsi_target_login_sess_out()
1246 struct iscsi_portal_group *tpg = NULL; in __iscsi_target_login_thread() local
1376 tpg = conn->tpg; in __iscsi_target_login_thread()
1385 tpg = conn->tpg; in __iscsi_target_login_thread()
1386 if (!tpg) { in __iscsi_target_login_thread()
1419 iscsit_deaccess_np(np, tpg, tpg_np); in __iscsi_target_login_thread()
1422 tpg = NULL; in __iscsi_target_login_thread()
1435 if (tpg) { in __iscsi_target_login_thread()
1436 iscsit_deaccess_np(np, tpg, tpg_np); in __iscsi_target_login_thread()
1437 tpg = NULL; in __iscsi_target_login_thread()