Lines Matching defs:uncore

3  * Support Intel uncore PerfMon discovery mechanism.
8 #include "uncore.h"
133 pr_info("Invalid address is detected for uncore type %d box %d, "
134 "Disable the uncore unit.\n",
142 pr_info("A spurious uncore type %d is detected, "
143 "Disable the uncore type.\n",
182 pr_info("Duplicate uncore type %d box ID %d is detected, "
183 "Drop the duplicate uncore unit.\n",
559 struct intel_uncore_type *uncore,
562 uncore->type_id = type->type;
563 uncore->num_boxes = type->num_boxes;
564 uncore->num_counters = type->num_counters;
565 uncore->perf_ctr_bits = type->counter_width;
566 uncore->box_ids = type->ids;
570 uncore->ops = &generic_uncore_msr_ops;
571 uncore->perf_ctr = (unsigned int)type->box_ctrl + type->ctr_offset;
572 uncore->event_ctl = (unsigned int)type->box_ctrl + type->ctl_offset;
573 uncore->box_ctl = (unsigned int)type->box_ctrl;
574 uncore->msr_offsets = type->box_offset;
577 uncore->ops = &generic_uncore_pci_ops;
578 uncore->perf_ctr = (unsigned int)UNCORE_DISCOVERY_PCI_BOX_CTRL(type->box_ctrl) + type->ctr_offset;
579 uncore->event_ctl = (unsigned int)UNCORE_DISCOVERY_PCI_BOX_CTRL(type->box_ctrl) + type->ctl_offset;
580 uncore->box_ctl = (unsigned int)UNCORE_DISCOVERY_PCI_BOX_CTRL(type->box_ctrl);
581 uncore->box_ctls = type->box_ctrl_die;
582 uncore->pci_offsets = type->box_offset;
585 uncore->ops = &generic_uncore_mmio_ops;
586 uncore->perf_ctr = (unsigned int)type->ctr_offset;
587 uncore->event_ctl = (unsigned int)type->ctl_offset;
588 uncore->box_ctl = (unsigned int)type->box_ctrl;
589 uncore->box_ctls = type->box_ctrl_die;
590 uncore->mmio_offsets = type->box_offset;
591 uncore->mmio_map_size = UNCORE_GENERIC_MMIO_SIZE;
605 struct intel_uncore_type *uncore;
619 uncore = kzalloc(sizeof(struct intel_uncore_type), GFP_KERNEL);
620 if (!uncore)
623 uncore->event_mask = GENERIC_PMON_RAW_EVENT_MASK;
624 uncore->format_group = &generic_uncore_format_group;
626 if (!uncore_update_uncore_type(type_id, uncore, type)) {
627 kfree(uncore);
630 uncores[i++] = uncore;