Lines Matching refs:se_tpg
100 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid()
101 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid()
106 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid()
136 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun()
137 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_count_all_by_lun()
150 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun()
162 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id()
163 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_find_by_id()
173 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id()
180 struct se_portal_group *se_tpg = &tpg->se_tpg; in sbp_get_lun_from_tpg() local
186 spin_lock(&se_tpg->tpg_lun_lock); in sbp_get_lun_from_tpg()
187 se_lun = se_tpg->tpg_lun_list[lun]; in sbp_get_lun_from_tpg()
192 spin_unlock(&se_tpg->tpg_lun_lock); in sbp_get_lun_from_tpg()
223 se_nacl = core_tpg_check_initiator_node_acl(&tpg->se_tpg, guid_str); in sbp_session_create()
241 transport_register_session(&tpg->se_tpg, se_nacl, sess->se_sess, sess); in sbp_session_create()
1681 static int sbp_check_true(struct se_portal_group *se_tpg) in sbp_check_true() argument
1686 static int sbp_check_false(struct se_portal_group *se_tpg) in sbp_check_false() argument
1696 static char *sbp_get_fabric_wwn(struct se_portal_group *se_tpg) in sbp_get_fabric_wwn() argument
1698 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_fabric_wwn()
1704 static u16 sbp_get_tag(struct se_portal_group *se_tpg) in sbp_get_tag() argument
1706 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_tag()
1710 static u32 sbp_get_default_depth(struct se_portal_group *se_tpg) in sbp_get_default_depth() argument
1715 static struct se_node_acl *sbp_alloc_fabric_acl(struct se_portal_group *se_tpg) in sbp_alloc_fabric_acl() argument
1729 struct se_portal_group *se_tpg, in sbp_release_fabric_acl() argument
1737 static u32 sbp_tpg_get_inst_index(struct se_portal_group *se_tpg) in sbp_tpg_get_inst_index() argument
1865 static u8 sbp_get_fabric_proto_ident(struct se_portal_group *se_tpg) in sbp_get_fabric_proto_ident() argument
1875 struct se_portal_group *se_tpg, in sbp_get_pr_transport_id() argument
1902 struct se_portal_group *se_tpg, in sbp_get_pr_transport_id_len() argument
1922 struct se_portal_group *se_tpg, in sbp_parse_pr_out_transport_id() argument
1973 num_luns = sbp_count_se_tpg_luns(&tport->tpg->se_tpg); in sbp_update_unit_directory()
2023 spin_lock(&tport->tpg->se_tpg.tpg_lun_lock); in sbp_update_unit_directory()
2025 struct se_lun *se_lun = tport->tpg->se_tpg.tpg_lun_list[i]; in sbp_update_unit_directory()
2032 spin_unlock(&tport->tpg->se_tpg.tpg_lun_lock); in sbp_update_unit_directory()
2042 spin_lock(&tport->tpg->se_tpg.tpg_lun_lock); in sbp_update_unit_directory()
2044 spin_unlock(&tport->tpg->se_tpg.tpg_lun_lock); in sbp_update_unit_directory()
2104 struct se_portal_group *se_tpg, in sbp_make_nodeacl() argument
2116 se_nacl_new = sbp_alloc_fabric_acl(se_tpg); in sbp_make_nodeacl()
2124 se_nacl = core_tpg_add_initiator_node_acl(se_tpg, se_nacl_new, in sbp_make_nodeacl()
2127 sbp_release_fabric_acl(se_tpg, se_nacl_new); in sbp_make_nodeacl()
2143 core_tpg_del_initiator_node_acl(se_acl->se_tpg, se_acl, 1); in sbp_drop_nodeacl()
2148 struct se_portal_group *se_tpg, in sbp_post_link_lun() argument
2151 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_post_link_lun()
2157 struct se_portal_group *se_tpg, in sbp_pre_unlink_lun() argument
2160 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_pre_unlink_lun()
2164 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) in sbp_pre_unlink_lun()
2217 ret = core_tpg_register(&sbp_ops, wwn, &tpg->se_tpg, tpg, in sbp_make_tpg()
2222 return &tpg->se_tpg; in sbp_make_tpg()
2232 static void sbp_drop_tpg(struct se_portal_group *se_tpg) in sbp_drop_tpg() argument
2234 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_drop_tpg()
2237 core_tpg_deregister(se_tpg); in sbp_drop_tpg()
2289 struct se_portal_group *se_tpg, in sbp_tpg_show_directory_id() argument
2292 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_show_directory_id()
2302 struct se_portal_group *se_tpg, in sbp_tpg_store_directory_id() argument
2306 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_store_directory_id()
2330 struct se_portal_group *se_tpg, in sbp_tpg_show_enable() argument
2333 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_show_enable()
2339 struct se_portal_group *se_tpg, in sbp_tpg_store_enable() argument
2343 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_store_enable()
2357 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) { in sbp_tpg_store_enable()
2363 spin_lock_bh(&se_tpg->session_lock); in sbp_tpg_store_enable()
2364 if (!list_empty(&se_tpg->tpg_sess_list)) { in sbp_tpg_store_enable()
2365 spin_unlock_bh(&se_tpg->session_lock); in sbp_tpg_store_enable()
2368 spin_unlock_bh(&se_tpg->session_lock); in sbp_tpg_store_enable()
2392 struct se_portal_group *se_tpg, in sbp_tpg_attrib_show_mgt_orb_timeout() argument
2395 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_show_mgt_orb_timeout()
2401 struct se_portal_group *se_tpg, in sbp_tpg_attrib_store_mgt_orb_timeout() argument
2405 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_store_mgt_orb_timeout()
2428 struct se_portal_group *se_tpg, in sbp_tpg_attrib_show_max_reconnect_timeout() argument
2431 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_show_max_reconnect_timeout()
2437 struct se_portal_group *se_tpg, in sbp_tpg_attrib_store_max_reconnect_timeout() argument
2441 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_store_max_reconnect_timeout()
2464 struct se_portal_group *se_tpg, in sbp_tpg_attrib_show_max_logins_per_lun() argument
2467 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_show_max_logins_per_lun()
2473 struct se_portal_group *se_tpg, in sbp_tpg_attrib_store_max_logins_per_lun() argument
2477 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_store_max_logins_per_lun()