• Home
  • Raw
  • Download

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 int sbp_check_false(struct se_portal_group *se_tpg) in sbp_check_false() argument
1681 static char *sbp_get_fabric_wwn(struct se_portal_group *se_tpg) in sbp_get_fabric_wwn() argument
1683 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_fabric_wwn()
1689 static u16 sbp_get_tag(struct se_portal_group *se_tpg) in sbp_get_tag() argument
1691 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_tag()
1695 static u32 sbp_tpg_get_inst_index(struct se_portal_group *se_tpg) in sbp_tpg_get_inst_index() argument
1823 num_luns = sbp_count_se_tpg_luns(&tport->tpg->se_tpg); in sbp_update_unit_directory()
1874 hlist_for_each_entry_rcu(lun, &tport->tpg->se_tpg.tpg_lun_hlist, link) { in sbp_update_unit_directory()
1958 struct se_portal_group *se_tpg, in sbp_post_link_lun() argument
1961 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_post_link_lun()
1967 struct se_portal_group *se_tpg, in sbp_pre_unlink_lun() argument
1970 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_pre_unlink_lun()
1974 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) in sbp_pre_unlink_lun()
2023 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg()
2027 return &tpg->se_tpg; in sbp_make_tpg()
2037 static void sbp_drop_tpg(struct se_portal_group *se_tpg) in sbp_drop_tpg() argument
2039 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_drop_tpg()
2042 core_tpg_deregister(se_tpg); in sbp_drop_tpg()
2091 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_directory_id_show() local
2092 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_directory_id_show()
2104 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_directory_id_store() local
2105 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_directory_id_store()
2130 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_enable_show() local
2131 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_enable_show()
2139 struct se_portal_group *se_tpg = to_tpg(item); in sbp_tpg_enable_store() local
2140 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_enable_store()
2154 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) { in sbp_tpg_enable_store()
2160 spin_lock_bh(&se_tpg->session_lock); in sbp_tpg_enable_store()
2161 if (!list_empty(&se_tpg->tpg_sess_list)) { in sbp_tpg_enable_store()
2162 spin_unlock_bh(&se_tpg->session_lock); in sbp_tpg_enable_store()
2165 spin_unlock_bh(&se_tpg->session_lock); in sbp_tpg_enable_store()
2191 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_mgt_orb_timeout_show() local
2192 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_mgt_orb_timeout_show()
2200 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_mgt_orb_timeout_store() local
2201 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_mgt_orb_timeout_store()
2226 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_reconnect_timeout_show() local
2227 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_reconnect_timeout_show()
2235 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_reconnect_timeout_store() local
2236 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_reconnect_timeout_store()
2261 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_logins_per_lun_show() local
2262 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_logins_per_lun_show()
2270 struct se_portal_group *se_tpg = attrib_to_tpg(item); in sbp_tpg_attrib_max_logins_per_lun_store() local
2271 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_max_logins_per_lun_store()