Lines Matching refs:tpg_state
36 tpg->tpg_state = TPG_STATE_FREE; in iscsit_alloc_portal_group()
93 tpg->tpg_state = TPG_STATE_ACTIVE; in iscsit_load_discovery_tpg()
135 if (tpg->tpg_state != TPG_STATE_ACTIVE) { in iscsit_get_tpg_from_np()
229 if (tpg->tpg_state != TPG_STATE_FREE) { in iscsit_tpg_add_portal_group()
242 tpg->tpg_state = TPG_STATE_INACTIVE; in iscsit_tpg_add_portal_group()
266 u8 old_state = tpg->tpg_state; in iscsit_tpg_del_portal_group()
269 tpg->tpg_state = TPG_STATE_INACTIVE; in iscsit_tpg_del_portal_group()
276 tpg->tpg_state = old_state; in iscsit_tpg_del_portal_group()
288 tpg->tpg_state = TPG_STATE_FREE; in iscsit_tpg_del_portal_group()
309 if (tpg->tpg_state == TPG_STATE_ACTIVE) { in iscsit_tpg_enable_portal_group()
336 tpg->tpg_state = TPG_STATE_ACTIVE; in iscsit_tpg_enable_portal_group()
354 u8 old_state = tpg->tpg_state; in iscsit_tpg_disable_portal_group()
357 if (tpg->tpg_state == TPG_STATE_INACTIVE) { in iscsit_tpg_disable_portal_group()
363 tpg->tpg_state = TPG_STATE_INACTIVE; in iscsit_tpg_disable_portal_group()
370 tpg->tpg_state = old_state; in iscsit_tpg_disable_portal_group()