Lines Matching defs:counter
47 /* returns the bit offset of the performance counter register */
110 unsigned int counter;
112 counter = nmi_perfctr_msr_to_bit(msr);
114 if (counter > NMI_MAX_COUNTER_BITS)
117 if (!test_and_set_bit(counter, perfctr_nmi_owner))
125 unsigned int counter;
127 counter = nmi_perfctr_msr_to_bit(msr);
129 if (counter > NMI_MAX_COUNTER_BITS)
132 clear_bit(counter, perfctr_nmi_owner);
138 unsigned int counter;
140 counter = nmi_evntsel_msr_to_bit(msr);
142 if (counter > NMI_MAX_COUNTER_BITS)
145 if (!test_and_set_bit(counter, evntsel_nmi_owner))
153 unsigned int counter;
155 counter = nmi_evntsel_msr_to_bit(msr);
157 if (counter > NMI_MAX_COUNTER_BITS)
160 clear_bit(counter, evntsel_nmi_owner);