Lines Matching full:die

57 int uncore_die_to_segment(int die)  in uncore_die_to_segment()  argument
61 /* Find first pci bus which attributes to specified die. */ in uncore_die_to_segment()
63 (die != uncore_pcibus_to_dieid(bus))) in uncore_die_to_segment()
958 int die; in uncore_free_boxes() local
960 for (die = 0; die < uncore_max_dies(); die++) in uncore_free_boxes()
961 kfree(pmu->boxes[die]); in uncore_free_boxes()
1071 * Get the die information of a PCI device.
1073 * @die: The die id which the device maps to.
1075 static int uncore_pci_get_dev_die_info(struct pci_dev *pdev, int *die) in uncore_pci_get_dev_die_info() argument
1077 *die = uncore_pcibus_to_dieid(pdev->bus); in uncore_pci_get_dev_die_info()
1078 if (*die < 0) in uncore_pci_get_dev_die_info()
1146 * @die: The die id which the device maps to.
1151 int die) in uncore_pci_pmu_register() argument
1156 if (WARN_ON_ONCE(pmu->boxes[die] != NULL)) in uncore_pci_pmu_register()
1169 box->dieid = die; in uncore_pci_pmu_register()
1174 pmu->boxes[die] = box; in uncore_pci_pmu_register()
1181 pmu->boxes[die] = NULL; in uncore_pci_pmu_register()
1195 int die, ret; in uncore_pci_probe() local
1197 ret = uncore_pci_get_dev_die_info(pdev, &die); in uncore_pci_probe()
1204 uncore_extra_pci_dev[die].dev[idx] = pdev; in uncore_pci_probe()
1230 ret = uncore_pci_pmu_register(pdev, type, pmu, die); in uncore_pci_probe()
1232 pci_set_drvdata(pdev, pmu->boxes[die]); in uncore_pci_probe()
1240 * @die: The die id which the device maps to.
1242 static void uncore_pci_pmu_unregister(struct intel_uncore_pmu *pmu, int die) in uncore_pci_pmu_unregister() argument
1244 struct intel_uncore_box *box = pmu->boxes[die]; in uncore_pci_pmu_unregister()
1246 pmu->boxes[die] = NULL; in uncore_pci_pmu_unregister()
1257 int i, die; in uncore_pci_remove() local
1259 if (uncore_pci_get_dev_die_info(pdev, &die)) in uncore_pci_remove()
1265 if (uncore_extra_pci_dev[die].dev[i] == pdev) { in uncore_pci_remove()
1266 uncore_extra_pci_dev[die].dev[i] = NULL; in uncore_pci_remove()
1278 uncore_pci_pmu_unregister(pmu, die); in uncore_pci_remove()
1288 int die; in uncore_bus_notify() local
1298 if (uncore_pci_get_dev_die_info(pdev, &die)) in uncore_bus_notify()
1301 uncore_pci_pmu_unregister(pmu, die); in uncore_bus_notify()
1325 int die; in uncore_pci_sub_driver_init() local
1345 if (uncore_pci_get_dev_die_info(pci_sub_dev, &die)) in uncore_pci_sub_driver_init()
1349 die)) in uncore_pci_sub_driver_init()
1394 uncore_pci_pmu_register(pdev, type, pmu, unit->die); in uncore_pci_pmus_register()
1460 int die, unsigned int pmu_idx) in uncore_die_has_box() argument
1465 if (intel_uncore_find_discovery_unit_id(type->boxes, die, pmu_idx) < 0) in uncore_die_has_box()
1476 int i, die; in uncore_change_type_ctx() local
1478 die = topology_logical_die_id(old_cpu < 0 ? new_cpu : old_cpu); in uncore_change_type_ctx()
1480 box = pmu->boxes[die]; in uncore_change_type_ctx()
1486 if (uncore_die_has_box(type, die, pmu->pmu_idx)) { in uncore_change_type_ctx()
1499 if (!uncore_die_has_box(type, die, pmu->pmu_idx)) in uncore_change_type_ctx()
1535 int die, target; in uncore_event_cpu_offline() local
1555 die = topology_logical_die_id(cpu); in uncore_event_cpu_offline()
1556 uncore_box_unref(uncore_msr_uncores, die); in uncore_event_cpu_offline()
1557 uncore_box_unref(uncore_mmio_uncores, die); in uncore_event_cpu_offline()
1562 unsigned int die, unsigned int cpu) in allocate_boxes() argument
1575 if (pmu->boxes[die]) in allocate_boxes()
1581 box->dieid = die; in allocate_boxes()
1588 box->pmu->boxes[die] = box; in allocate_boxes()
1626 int die, target, msr_ret, mmio_ret; in uncore_event_cpu_online() local
1628 die = topology_logical_die_id(cpu); in uncore_event_cpu_online()
1629 msr_ret = uncore_box_ref(uncore_msr_uncores, die, cpu); in uncore_event_cpu_online()
1630 mmio_ret = uncore_box_ref(uncore_mmio_uncores, die, cpu); in uncore_event_cpu_online()