Lines Matching refs:wa_
91 struct i915_wa *wa_; in _wa_add() local
121 wa_ = &wal->list[mid]; in _wa_add()
123 if ((wa->clr | wa_->clr) && !(wa->clr & ~wa_->clr)) { in _wa_add()
125 i915_mmio_reg_offset(wa_->reg), in _wa_add()
126 wa_->clr, wa_->set); in _wa_add()
128 wa_->set &= ~wa->clr; in _wa_add()
132 wa_->set |= wa->set; in _wa_add()
133 wa_->clr |= wa->clr; in _wa_add()
134 wa_->read |= wa->read; in _wa_add()
140 wa_ = &wal->list[wal->count++]; in _wa_add()
141 *wa_ = *wa; in _wa_add()
143 while (wa_-- > wal->list) { in _wa_add()
144 GEM_BUG_ON(i915_mmio_reg_offset(wa_[0].reg) == in _wa_add()
145 i915_mmio_reg_offset(wa_[1].reg)); in _wa_add()
146 if (i915_mmio_reg_offset(wa_[1].reg) > in _wa_add()
147 i915_mmio_reg_offset(wa_[0].reg)) in _wa_add()
150 swap(wa_[1], wa_[0]); in _wa_add()