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()
230 if (tpg->tpg_state != TPG_STATE_FREE) { in iscsit_tpg_add_portal_group()
243 tpg->tpg_state = TPG_STATE_INACTIVE; in iscsit_tpg_add_portal_group()
267 u8 old_state = tpg->tpg_state; in iscsit_tpg_del_portal_group()
270 tpg->tpg_state = TPG_STATE_INACTIVE; in iscsit_tpg_del_portal_group()
277 tpg->tpg_state = old_state; in iscsit_tpg_del_portal_group()
289 tpg->tpg_state = TPG_STATE_FREE; in iscsit_tpg_del_portal_group()
310 if (tpg->tpg_state == TPG_STATE_ACTIVE) { in iscsit_tpg_enable_portal_group()
337 tpg->tpg_state = TPG_STATE_ACTIVE; in iscsit_tpg_enable_portal_group()
355 u8 old_state = tpg->tpg_state; in iscsit_tpg_disable_portal_group()
358 if (tpg->tpg_state == TPG_STATE_INACTIVE) { in iscsit_tpg_disable_portal_group()
364 tpg->tpg_state = TPG_STATE_INACTIVE; in iscsit_tpg_disable_portal_group()
371 tpg->tpg_state = old_state; in iscsit_tpg_disable_portal_group()