Lines Matching refs:tmp_pg
213 struct alua_port_group *pg, *tmp_pg; in alua_alloc_pg() local
246 tmp_pg = alua_find_get_pg(pg->device_id_str, pg->device_id_len, in alua_alloc_pg()
248 if (tmp_pg) { in alua_alloc_pg()
251 return tmp_pg; in alua_alloc_pg()
508 struct alua_port_group *tmp_pg; in alua_rtpg() local
647 tmp_pg = alua_find_get_pg(pg->device_id_str, pg->device_id_len, in alua_rtpg()
650 if (tmp_pg) { in alua_rtpg()
651 if (spin_trylock_irqsave(&tmp_pg->lock, flags)) { in alua_rtpg()
652 if ((tmp_pg == pg) || in alua_rtpg()
653 !(tmp_pg->flags & ALUA_PG_RUNNING)) { in alua_rtpg()
656 tmp_pg->state = desc[0] & 0x0f; in alua_rtpg()
657 tmp_pg->pref = desc[0] >> 7; in alua_rtpg()
660 &tmp_pg->dh_list, node) { in alua_rtpg()
667 if (tmp_pg == pg) in alua_rtpg()
668 tmp_pg->valid_states = desc[1]; in alua_rtpg()
669 spin_unlock_irqrestore(&tmp_pg->lock, flags); in alua_rtpg()
671 kref_put(&tmp_pg->kref, release_port_group); in alua_rtpg()