Lines Matching refs:se_tpg
97 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid()
98 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid()
103 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid()
133 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun()
134 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_count_all_by_lun()
147 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun()
159 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id()
160 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_find_by_id()
170 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id()
177 struct se_portal_group *se_tpg = &tpg->se_tpg; in sbp_get_lun_from_tpg() local
181 hlist_for_each_entry_rcu(se_lun, &se_tpg->tpg_lun_hlist, link) { in sbp_get_lun_from_tpg()
220 se_nacl = core_tpg_check_initiator_node_acl(&tpg->se_tpg, guid_str); in sbp_session_create()
238 transport_register_session(&tpg->se_tpg, se_nacl, sess->se_sess, sess); in sbp_session_create()
1679 static int sbp_check_true(struct se_portal_group *se_tpg) in sbp_check_true() argument
1684 static int sbp_check_false(struct se_portal_group *se_tpg) in sbp_check_false() argument
1694 static char *sbp_get_fabric_wwn(struct se_portal_group *se_tpg) in sbp_get_fabric_wwn() argument
1696 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_fabric_wwn()
1702 static u16 sbp_get_tag(struct se_portal_group *se_tpg) in sbp_get_tag() argument
1704 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_tag()
1708 static u32 sbp_tpg_get_inst_index(struct se_portal_group *se_tpg) in sbp_tpg_get_inst_index() argument
1852 num_luns = sbp_count_se_tpg_luns(&tport->tpg->se_tpg); in sbp_update_unit_directory()
1903 hlist_for_each_entry_rcu(lun, &tport->tpg->se_tpg.tpg_lun_hlist, link) { in sbp_update_unit_directory()
1987 struct se_portal_group *se_tpg, in sbp_post_link_lun() argument
1990 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_post_link_lun()
1996 struct se_portal_group *se_tpg, in sbp_pre_unlink_lun() argument
1999 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_pre_unlink_lun()
2003 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) in sbp_pre_unlink_lun()
2056 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg()
2060 return &tpg->se_tpg; in sbp_make_tpg()
2070 static void sbp_drop_tpg(struct se_portal_group *se_tpg) in sbp_drop_tpg() argument
2072 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_drop_tpg()
2075 core_tpg_deregister(se_tpg); in sbp_drop_tpg()
2126 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_directory_id_show() local
2127 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_directory_id_show()
2139 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_directory_id_store() local
2140 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_directory_id_store()
2165 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_enable_show() local
2166 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_enable_show()
2174 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_enable_store() local
2175 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_enable_store()
2189 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) { in sbp_tpg_enable_store()
2195 spin_lock_bh(&se_tpg->session_lock); in sbp_tpg_enable_store()
2196 if (!list_empty(&se_tpg->tpg_sess_list)) { in sbp_tpg_enable_store()
2197 spin_unlock_bh(&se_tpg->session_lock); in sbp_tpg_enable_store()
2200 spin_unlock_bh(&se_tpg->session_lock); in sbp_tpg_enable_store()
2226 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_mgt_orb_timeout_show() local
2227 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_mgt_orb_timeout_show()
2235 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_mgt_orb_timeout_store() local
2236 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_mgt_orb_timeout_store()
2261 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_reconnect_timeout_show() local
2262 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_reconnect_timeout_show()
2270 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_reconnect_timeout_store() local
2271 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_reconnect_timeout_store()
2296 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_logins_per_lun_show() local
2297 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_logins_per_lun_show()
2305 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_logins_per_lun_store() local
2306 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_logins_per_lun_store()