Lines Matching refs:er
181 struct intel_uncore_extra_reg *er; in uncore_get_constraint() local
196 er = &box->shared_regs[reg1->idx]; in uncore_get_constraint()
197 raw_spin_lock_irqsave(&er->lock, flags); in uncore_get_constraint()
198 if (!atomic_read(&er->ref) || in uncore_get_constraint()
199 (er->config1 == reg1->config && er->config2 == reg2->config)) { in uncore_get_constraint()
200 atomic_inc(&er->ref); in uncore_get_constraint()
201 er->config1 = reg1->config; in uncore_get_constraint()
202 er->config2 = reg2->config; in uncore_get_constraint()
205 raw_spin_unlock_irqrestore(&er->lock, flags); in uncore_get_constraint()
218 struct intel_uncore_extra_reg *er; in uncore_put_constraint() local
232 er = &box->shared_regs[reg1->idx]; in uncore_put_constraint()
233 atomic_dec(&er->ref); in uncore_put_constraint()
239 struct intel_uncore_extra_reg *er; in uncore_shared_reg_config() local
243 er = &box->shared_regs[idx]; in uncore_shared_reg_config()
245 raw_spin_lock_irqsave(&er->lock, flags); in uncore_shared_reg_config()
246 config = er->config; in uncore_shared_reg_config()
247 raw_spin_unlock_irqrestore(&er->lock, flags); in uncore_shared_reg_config()