Lines Matching refs:wa_
152 struct i915_wa *wa_; in _wa_add() local
182 wa_ = &wal->list[mid]; in _wa_add()
184 if ((wa->clr | wa_->clr) && !(wa->clr & ~wa_->clr)) { in _wa_add()
187 i915_mmio_reg_offset(wa_->reg), in _wa_add()
188 wa_->clr, wa_->set); in _wa_add()
190 wa_->set &= ~wa->clr; in _wa_add()
194 wa_->set |= wa->set; in _wa_add()
195 wa_->clr |= wa->clr; in _wa_add()
196 wa_->read |= wa->read; in _wa_add()
202 wa_ = &wal->list[wal->count++]; in _wa_add()
203 *wa_ = *wa; in _wa_add()
205 while (wa_-- > wal->list) { in _wa_add()
206 GEM_BUG_ON(i915_mmio_reg_offset(wa_[0].reg) == in _wa_add()
207 i915_mmio_reg_offset(wa_[1].reg)); in _wa_add()
208 if (i915_mmio_reg_offset(wa_[1].reg) > in _wa_add()
209 i915_mmio_reg_offset(wa_[0].reg)) in _wa_add()
212 swap(wa_[1], wa_[0]); in _wa_add()