Lines Matching refs:hwc
197 static inline unsigned int amd_get_event_code(struct hw_perf_event *hwc) in amd_get_event_code() argument
199 return ((hwc->config >> 24) & 0x0f00) | (hwc->config & 0x00ff); in amd_get_event_code()
202 static inline int amd_is_nb_event(struct hw_perf_event *hwc) in amd_is_nb_event() argument
204 return (hwc->config & 0xe0) == 0xe0; in amd_is_nb_event()
295 struct hw_perf_event *hwc = &event->hw; in __amd_get_nb_event_constraints() local
317 if (new == -1 || hwc->idx == idx) in __amd_get_nb_event_constraints()
545 struct hw_perf_event *hwc = &event->hw; in amd_get_event_constraints_f15h() local
546 unsigned int event_code = amd_get_event_code(hwc); in amd_get_event_constraints_f15h()
552 if (!(hwc->config & 0x0000F000ULL)) in amd_get_event_constraints_f15h()
554 if (!(hwc->config & 0x00000F00ULL)) in amd_get_event_constraints_f15h()
558 if (hweight_long(hwc->config & ARCH_PERFMON_EVENTSEL_UMASK) <= 1) in amd_get_event_constraints_f15h()
583 if (hweight_long(hwc->config & ARCH_PERFMON_EVENTSEL_UMASK) <= 1) in amd_get_event_constraints_f15h()