Lines Matching defs:se_tpg

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