Lines Matching refs:tmp_pg
226 struct alua_port_group *pg, *tmp_pg; in alua_alloc_pg() local
259 tmp_pg = alua_find_get_pg(pg->device_id_str, pg->device_id_len, in alua_alloc_pg()
261 if (tmp_pg) { in alua_alloc_pg()
264 return tmp_pg; in alua_alloc_pg()
521 struct alua_port_group *tmp_pg; in alua_rtpg() local
653 tmp_pg = alua_find_get_pg(pg->device_id_str, pg->device_id_len, in alua_rtpg()
656 if (tmp_pg) { in alua_rtpg()
657 if (spin_trylock_irqsave(&tmp_pg->lock, flags)) { in alua_rtpg()
658 if ((tmp_pg == pg) || in alua_rtpg()
659 !(tmp_pg->flags & ALUA_PG_RUNNING)) { in alua_rtpg()
662 tmp_pg->state = desc[0] & 0x0f; in alua_rtpg()
663 tmp_pg->pref = desc[0] >> 7; in alua_rtpg()
666 &tmp_pg->dh_list, node) { in alua_rtpg()
673 if (tmp_pg == pg) in alua_rtpg()
674 tmp_pg->valid_states = desc[1]; in alua_rtpg()
675 spin_unlock_irqrestore(&tmp_pg->lock, flags); in alua_rtpg()
677 kref_put(&tmp_pg->kref, release_port_group); in alua_rtpg()