Lines Matching defs:wd_ops
26 struct wd_ops {
37 static struct wd_ops *wd_ops;
177 wd_ops->unreserve();
191 if (!wd_ops)
193 if (!wd_ops->reserve()) {
298 if (!reserve_perfctr_nmi(wd_ops->perfctr))
301 if (!reserve_evntsel_nmi(wd_ops->evntsel)) {
302 release_perfctr_nmi(wd_ops->perfctr);
310 release_evntsel_nmi(wd_ops->evntsel);
311 release_perfctr_nmi(wd_ops->perfctr);
320 static struct wd_ops k7_wd_ops = {
381 static struct wd_ops p6_wd_ops = {
533 static struct wd_ops p4_wd_ops = {
592 wd_ops->checkbit = 1ULL << (eax.split.bit_width - 1);
596 static struct wd_ops intel_arch_wd_ops = {
613 wd_ops = &k7_wd_ops;
617 wd_ops = &intel_arch_wd_ops;
625 wd_ops = &p6_wd_ops;
631 wd_ops = &p4_wd_ops;
644 if (!wd_ops) {
646 if (!wd_ops)
649 if (!wd_ops->reserve()) {
656 if (!(wd_ops->setup(nmi_hz))) {
667 if (wd_ops)
668 wd_ops->stop();
685 if (ctr & wd_ops->checkbit) { /* perfctr still running? */
688 wd_ops->rearm(wd, nmi_hz);
694 return wd_ops != NULL;