Lines Matching refs:bit
34 * Handy macros for bit/bitfield definition and manipulations:
36 #define bit(n) (1ULL << (n))
37 #define field(n,m) ((bit((m)+1)-1) & ~(bit(n)-1))
46 #define PERFMON_AVAILABLE bit(7)
47 #define BTS_UNAVAILABLE bit(11)
184 #define PMC_EVTSEL_ALLCORES (bit(15)|bit(14))
185 #define PMC_EVTSEL_THISCORE (bit(14))
186 #define PMC_EVTSEL_ALLAGENTS (bit(14))
188 #define PMC_EVTSEL_PREFETCH_ALL (bit(13)|bit(12))
189 #define PMC_EVTSEL_PREFETCH_HW (bit(12))
191 #define PMC_EVTSEL_MESI_MOD (bit(11))
192 #define PMC_EVTSEL_MESI_EXCL (bit(10))
193 #define PMC_EVTSEL_MESI_SHRD (bit(9))
194 #define PMC_EVTSEL_MESI_INVAL (bit(8))
196 #define PMC_EVTSEL_SNOOP_HITM (bit(11))
197 #define PMC_EVTSEL_SNOOP_HIT (bit(9))
198 #define PMC_EVTSEL_SNOOP_CLEAN (bit(8))
199 #define PMC_EVTSEL_SNOOP_CMP2I (bit(9))
200 #define PMC_EVTSEL_SNOOP_CMP2S (bit(8))
297 #define PMC_ECSR_T0_USR bit(0)
298 #define PMC_ECSR_T0_OS bit(1)
299 #define PMC_ECSR_T1_USR bit(2)
300 #define PMC_ECSR_T1_OS bit(3)
301 #define PMC_ECSR_USR bit(2)
302 #define PMC_ECSR_OS bit(3)
303 #define PMC_ECSR_TAG_ENABLE bit(4)
340 #define PMC_CCCR_ENABLE bit(12)
344 #define PMC_CCCR_COMPARE bit(18)
345 #define PMC_CCCR_COMPLEMENT bit(19)
347 #define PMC_CCCR_EDGE bit(24)
348 #define PMC_CCCR_FORCE_OVF bit(25)
349 #define PMC_CCCR_OVF_PMI bit(26)
351 #define PMC_CCCR_OVF_PMI_T0 bit(26)
352 #define PMC_CCCR_OVF_PMI_T1 bit(27)
354 #define PMC_CCCR_CASCADE bit(30)
355 #define PMC_CCCR_OVF bit(31)