Lines Matching refs:tmp_pg
214 struct alua_port_group *pg, *tmp_pg; in alua_alloc_pg() local
247 tmp_pg = alua_find_get_pg(pg->device_id_str, pg->device_id_len, in alua_alloc_pg()
249 if (tmp_pg) { in alua_alloc_pg()
252 return tmp_pg; in alua_alloc_pg()
517 struct alua_port_group *tmp_pg; in alua_rtpg() local
666 tmp_pg = alua_find_get_pg(pg->device_id_str, pg->device_id_len, in alua_rtpg()
669 if (tmp_pg) { in alua_rtpg()
670 if (spin_trylock_irqsave(&tmp_pg->lock, flags)) { in alua_rtpg()
671 if ((tmp_pg == pg) || in alua_rtpg()
672 !(tmp_pg->flags & ALUA_PG_RUNNING)) { in alua_rtpg()
675 tmp_pg->state = desc[0] & 0x0f; in alua_rtpg()
676 tmp_pg->pref = desc[0] >> 7; in alua_rtpg()
679 &tmp_pg->dh_list, node) { in alua_rtpg()
686 if (tmp_pg == pg) in alua_rtpg()
687 tmp_pg->valid_states = desc[1]; in alua_rtpg()
688 spin_unlock_irqrestore(&tmp_pg->lock, flags); in alua_rtpg()
690 kref_put(&tmp_pg->kref, release_port_group); in alua_rtpg()