Lines Matching refs:tiqn
25 struct iscsi_portal_group *iscsit_alloc_portal_group(struct iscsi_tiqn *tiqn, u16 tpgt) in iscsit_alloc_portal_group() argument
37 tpg->tpg_tiqn = tiqn; in iscsit_alloc_portal_group()
124 struct iscsi_tiqn *tiqn, in iscsit_get_tpg_from_np() argument
131 spin_lock(&tiqn->tiqn_tpg_lock); in iscsit_get_tpg_from_np()
132 list_for_each_entry(tpg, &tiqn->tiqn_tpg_list, tpg_list) { in iscsit_get_tpg_from_np()
147 spin_unlock(&tiqn->tiqn_tpg_lock); in iscsit_get_tpg_from_np()
153 spin_unlock(&tiqn->tiqn_tpg_lock); in iscsit_get_tpg_from_np()
228 int iscsit_tpg_add_portal_group(struct iscsi_tiqn *tiqn, struct iscsi_portal_group *tpg) in iscsit_tpg_add_portal_group() argument
246 spin_lock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_add_portal_group()
247 list_add_tail(&tpg->tpg_list, &tiqn->tiqn_tpg_list); in iscsit_tpg_add_portal_group()
248 tiqn->tiqn_ntpgs++; in iscsit_tpg_add_portal_group()
250 tiqn->tiqn, tpg->tpgt); in iscsit_tpg_add_portal_group()
251 spin_unlock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_add_portal_group()
263 struct iscsi_tiqn *tiqn, in iscsit_tpg_del_portal_group() argument
292 spin_lock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_del_portal_group()
293 tiqn->tiqn_ntpgs--; in iscsit_tpg_del_portal_group()
295 spin_unlock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_del_portal_group()
298 tiqn->tiqn, tpg->tpgt); in iscsit_tpg_del_portal_group()
307 struct iscsi_tiqn *tiqn = tpg->tpg_tiqn; in iscsit_tpg_enable_portal_group() local
340 spin_lock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_enable_portal_group()
341 tiqn->tiqn_active_tpgs++; in iscsit_tpg_enable_portal_group()
344 spin_unlock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_enable_portal_group()
354 struct iscsi_tiqn *tiqn; in iscsit_tpg_disable_portal_group() local
379 tiqn = tpg->tpg_tiqn; in iscsit_tpg_disable_portal_group()
380 if (!tiqn || (tpg == iscsit_global->discovery_tpg)) in iscsit_tpg_disable_portal_group()
383 spin_lock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_disable_portal_group()
384 tiqn->tiqn_active_tpgs--; in iscsit_tpg_disable_portal_group()
387 spin_unlock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_disable_portal_group()
424 struct iscsi_tiqn *tiqn, in iscsit_tpg_check_network_portal() argument
433 spin_lock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_check_network_portal()
434 list_for_each_entry(tpg, &tiqn->tiqn_tpg_list, tpg_list) { in iscsit_tpg_check_network_portal()
450 spin_unlock(&tiqn->tiqn_tpg_lock); in iscsit_tpg_check_network_portal()
469 tpg->tpg_tiqn->tiqn); in iscsit_tpg_add_network_portal()
512 tpg->tpg_tiqn->tiqn, &np->np_sockaddr, tpg->tpgt, in iscsit_tpg_add_network_portal()
526 tpg->tpg_tiqn->tiqn, &np->np_sockaddr, tpg->tpgt, in iscsit_tpg_release_np()