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()
1674 static int sbp_check_true(struct se_portal_group *se_tpg) in sbp_check_true() argument
1679 static int sbp_check_false(struct se_portal_group *se_tpg) in sbp_check_false() argument
1684 static char *sbp_get_fabric_wwn(struct se_portal_group *se_tpg) in sbp_get_fabric_wwn() argument
1686 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_fabric_wwn()
1692 static u16 sbp_get_tag(struct se_portal_group *se_tpg) in sbp_get_tag() argument
1694 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_tag()
1698 static u32 sbp_tpg_get_inst_index(struct se_portal_group *se_tpg) in sbp_tpg_get_inst_index() argument
1826 num_luns = sbp_count_se_tpg_luns(&tport->tpg->se_tpg); in sbp_update_unit_directory()
1877 hlist_for_each_entry_rcu(lun, &tport->tpg->se_tpg.tpg_lun_hlist, link) { in sbp_update_unit_directory()
1961 struct se_portal_group *se_tpg, in sbp_post_link_lun() argument
1964 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_post_link_lun()
1970 struct se_portal_group *se_tpg, in sbp_pre_unlink_lun() argument
1973 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_pre_unlink_lun()
1977 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) in sbp_pre_unlink_lun()
2026 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg()
2030 return &tpg->se_tpg; in sbp_make_tpg()
2040 static void sbp_drop_tpg(struct se_portal_group *se_tpg) in sbp_drop_tpg() argument
2042 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_drop_tpg()
2045 core_tpg_deregister(se_tpg); in sbp_drop_tpg()
2094 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_directory_id_show() local
2095 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_directory_id_show()
2107 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_directory_id_store() local
2108 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_directory_id_store()
2133 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_enable_show() local
2134 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_enable_show()
2142 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_enable_store() local
2143 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_enable_store()
2157 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) { in sbp_tpg_enable_store()
2163 spin_lock_bh(&se_tpg->session_lock); in sbp_tpg_enable_store()
2164 if (!list_empty(&se_tpg->tpg_sess_list)) { in sbp_tpg_enable_store()
2165 spin_unlock_bh(&se_tpg->session_lock); in sbp_tpg_enable_store()
2168 spin_unlock_bh(&se_tpg->session_lock); in sbp_tpg_enable_store()
2194 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_mgt_orb_timeout_show() local
2195 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_mgt_orb_timeout_show()
2203 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_mgt_orb_timeout_store() local
2204 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_mgt_orb_timeout_store()
2229 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_reconnect_timeout_show() local
2230 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_reconnect_timeout_show()
2238 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_reconnect_timeout_store() local
2239 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_reconnect_timeout_store()
2264 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_logins_per_lun_show() local
2265 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_logins_per_lun_show()
2273 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_logins_per_lun_store() local
2274 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_logins_per_lun_store()