Lines Matching refs:se_tpg
83 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid()
84 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid()
89 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid()
119 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun()
120 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_count_all_by_lun()
133 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun()
145 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id()
146 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_find_by_id()
156 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id()
163 struct se_portal_group *se_tpg = &tpg->se_tpg; in sbp_get_lun_from_tpg() local
167 hlist_for_each_entry_rcu(se_lun, &se_tpg->tpg_lun_hlist, link) { in sbp_get_lun_from_tpg()
199 sess->se_sess = target_setup_session(&tpg->se_tpg, 128, in sbp_session_create()
1671 static int sbp_check_true(struct se_portal_group *se_tpg) in sbp_check_true() argument
1676 static char *sbp_get_fabric_wwn(struct se_portal_group *se_tpg) in sbp_get_fabric_wwn() argument
1678 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_fabric_wwn()
1684 static u16 sbp_get_tag(struct se_portal_group *se_tpg) in sbp_get_tag() argument
1686 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_tag()
1798 num_luns = sbp_count_se_tpg_luns(&tport->tpg->se_tpg); in sbp_update_unit_directory()
1849 hlist_for_each_entry_rcu(lun, &tport->tpg->se_tpg.tpg_lun_hlist, link) { in sbp_update_unit_directory()
1933 struct se_portal_group *se_tpg, in sbp_post_link_lun() argument
1936 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_post_link_lun()
1942 struct se_portal_group *se_tpg, in sbp_pre_unlink_lun() argument
1945 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_pre_unlink_lun()
1949 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) in sbp_pre_unlink_lun()
1998 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg()
2002 return &tpg->se_tpg; in sbp_make_tpg()
2012 static void sbp_drop_tpg(struct se_portal_group *se_tpg) in sbp_drop_tpg() argument
2014 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_drop_tpg()
2017 core_tpg_deregister(se_tpg); in sbp_drop_tpg()
2066 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_directory_id_show() local
2067 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_directory_id_show()
2079 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_directory_id_store() local
2080 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_directory_id_store()
2103 static int sbp_enable_tpg(struct se_portal_group *se_tpg, bool enable) in sbp_enable_tpg() argument
2105 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_enable_tpg()
2110 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) { in sbp_enable_tpg()
2116 spin_lock_bh(&se_tpg->session_lock); in sbp_enable_tpg()
2117 if (!list_empty(&se_tpg->tpg_sess_list)) { in sbp_enable_tpg()
2118 spin_unlock_bh(&se_tpg->session_lock); in sbp_enable_tpg()
2121 spin_unlock_bh(&se_tpg->session_lock); in sbp_enable_tpg()
2145 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_mgt_orb_timeout_show() local
2146 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_mgt_orb_timeout_show()
2154 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_mgt_orb_timeout_store() local
2155 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_mgt_orb_timeout_store()
2180 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_reconnect_timeout_show() local
2181 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_reconnect_timeout_show()
2189 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_reconnect_timeout_store() local
2190 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_reconnect_timeout_store()
2215 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_logins_per_lun_show() local
2216 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_logins_per_lun_show()
2224 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_logins_per_lun_store() local
2225 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_logins_per_lun_store()