Lines Matching refs:er
166 struct intel_uncore_extra_reg *er; in uncore_get_constraint() local
181 er = &box->shared_regs[reg1->idx]; in uncore_get_constraint()
182 raw_spin_lock_irqsave(&er->lock, flags); in uncore_get_constraint()
183 if (!atomic_read(&er->ref) || in uncore_get_constraint()
184 (er->config1 == reg1->config && er->config2 == reg2->config)) { in uncore_get_constraint()
185 atomic_inc(&er->ref); in uncore_get_constraint()
186 er->config1 = reg1->config; in uncore_get_constraint()
187 er->config2 = reg2->config; in uncore_get_constraint()
190 raw_spin_unlock_irqrestore(&er->lock, flags); in uncore_get_constraint()
203 struct intel_uncore_extra_reg *er; in uncore_put_constraint() local
217 er = &box->shared_regs[reg1->idx]; in uncore_put_constraint()
218 atomic_dec(&er->ref); in uncore_put_constraint()
224 struct intel_uncore_extra_reg *er; in uncore_shared_reg_config() local
228 er = &box->shared_regs[idx]; in uncore_shared_reg_config()
230 raw_spin_lock_irqsave(&er->lock, flags); in uncore_shared_reg_config()
231 config = er->config; in uncore_shared_reg_config()
232 raw_spin_unlock_irqrestore(&er->lock, flags); in uncore_shared_reg_config()