Lines Matching refs:eventsel
136 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) in reprogram_gp_counter() argument
141 if (eventsel & ARCH_PERFMON_EVENTSEL_PIN_CONTROL) in reprogram_gp_counter()
144 pmc->eventsel = eventsel; in reprogram_gp_counter()
148 if (!(eventsel & ARCH_PERFMON_EVENTSEL_ENABLE) || !pmc_is_enabled(pmc)) in reprogram_gp_counter()
151 event_select = eventsel & ARCH_PERFMON_EVENTSEL_EVENT; in reprogram_gp_counter()
152 unit_mask = (eventsel & ARCH_PERFMON_EVENTSEL_UMASK) >> 8; in reprogram_gp_counter()
154 if (!(eventsel & (ARCH_PERFMON_EVENTSEL_EDGE | in reprogram_gp_counter()
167 config = eventsel & X86_RAW_EVENT_MASK; in reprogram_gp_counter()
170 !(eventsel & ARCH_PERFMON_EVENTSEL_USR), in reprogram_gp_counter()
171 !(eventsel & ARCH_PERFMON_EVENTSEL_OS), in reprogram_gp_counter()
172 eventsel & ARCH_PERFMON_EVENTSEL_INT, in reprogram_gp_counter()
173 (eventsel & HSW_IN_TX), in reprogram_gp_counter()
174 (eventsel & HSW_IN_TX_CHECKPOINTED)); in reprogram_gp_counter()
204 reprogram_gp_counter(pmc, pmc->eventsel); in reprogram_counter()