Lines Matching refs:tmp_pg
220 struct alua_port_group *pg, *tmp_pg; in alua_alloc_pg() local
253 tmp_pg = alua_find_get_pg(pg->device_id_str, pg->device_id_len, in alua_alloc_pg()
255 if (tmp_pg) { in alua_alloc_pg()
258 return tmp_pg; in alua_alloc_pg()
525 struct alua_port_group *tmp_pg; in alua_rtpg() local
674 tmp_pg = alua_find_get_pg(pg->device_id_str, pg->device_id_len, in alua_rtpg()
677 if (tmp_pg) { in alua_rtpg()
678 if (spin_trylock_irqsave(&tmp_pg->lock, flags)) { in alua_rtpg()
679 if ((tmp_pg == pg) || in alua_rtpg()
680 !(tmp_pg->flags & ALUA_PG_RUNNING)) { in alua_rtpg()
683 tmp_pg->state = desc[0] & 0x0f; in alua_rtpg()
684 tmp_pg->pref = desc[0] >> 7; in alua_rtpg()
687 &tmp_pg->dh_list, node) { in alua_rtpg()
694 if (tmp_pg == pg) in alua_rtpg()
695 tmp_pg->valid_states = desc[1]; in alua_rtpg()
696 spin_unlock_irqrestore(&tmp_pg->lock, flags); in alua_rtpg()
698 kref_put(&tmp_pg->kref, release_port_group); in alua_rtpg()