Lines Matching refs:die
56 int uncore_die_to_segment(int die) in uncore_die_to_segment() argument
62 (die != uncore_pcibus_to_dieid(bus))) in uncore_die_to_segment()
928 int die; in uncore_free_boxes() local
930 for (die = 0; die < uncore_max_dies(); die++) in uncore_free_boxes()
931 kfree(pmu->boxes[die]); in uncore_free_boxes()
1045 static int uncore_pci_get_dev_die_info(struct pci_dev *pdev, int *die) in uncore_pci_get_dev_die_info() argument
1047 *die = uncore_pcibus_to_dieid(pdev->bus); in uncore_pci_get_dev_die_info()
1048 if (*die < 0) in uncore_pci_get_dev_die_info()
1060 int i, die; in uncore_pci_find_dev_pmu_from_types() local
1064 for (die = 0; die < __uncore_max_dies; die++) { in uncore_pci_find_dev_pmu_from_types()
1066 if (!type->box_ctls[die]) in uncore_pci_find_dev_pmu_from_types()
1068 box_ctl = type->box_ctls[die] + type->pci_offsets[i]; in uncore_pci_find_dev_pmu_from_types()
1124 int die) in uncore_pci_pmu_register() argument
1129 if (WARN_ON_ONCE(pmu->boxes[die] != NULL)) in uncore_pci_pmu_register()
1142 box->dieid = die; in uncore_pci_pmu_register()
1147 pmu->boxes[die] = box; in uncore_pci_pmu_register()
1154 pmu->boxes[die] = NULL; in uncore_pci_pmu_register()
1168 int die, ret; in uncore_pci_probe() local
1170 ret = uncore_pci_get_dev_die_info(pdev, &die); in uncore_pci_probe()
1177 uncore_extra_pci_dev[die].dev[idx] = pdev; in uncore_pci_probe()
1203 ret = uncore_pci_pmu_register(pdev, type, pmu, die); in uncore_pci_probe()
1205 pci_set_drvdata(pdev, pmu->boxes[die]); in uncore_pci_probe()
1215 static void uncore_pci_pmu_unregister(struct intel_uncore_pmu *pmu, int die) in uncore_pci_pmu_unregister() argument
1217 struct intel_uncore_box *box = pmu->boxes[die]; in uncore_pci_pmu_unregister()
1219 pmu->boxes[die] = NULL; in uncore_pci_pmu_unregister()
1230 int i, die; in uncore_pci_remove() local
1232 if (uncore_pci_get_dev_die_info(pdev, &die)) in uncore_pci_remove()
1238 if (uncore_extra_pci_dev[die].dev[i] == pdev) { in uncore_pci_remove()
1239 uncore_extra_pci_dev[die].dev[i] = NULL; in uncore_pci_remove()
1251 uncore_pci_pmu_unregister(pmu, die); in uncore_pci_remove()
1261 int die; in uncore_bus_notify() local
1271 if (uncore_pci_get_dev_die_info(pdev, &die)) in uncore_bus_notify()
1274 uncore_pci_pmu_unregister(pmu, die); in uncore_bus_notify()
1298 int die; in uncore_pci_sub_driver_init() local
1318 if (uncore_pci_get_dev_die_info(pci_sub_dev, &die)) in uncore_pci_sub_driver_init()
1322 die)) in uncore_pci_sub_driver_init()
1353 int i, die; in uncore_pci_pmus_register() local
1357 for (die = 0; die < __uncore_max_dies; die++) { in uncore_pci_pmus_register()
1359 if (!type->box_ctls[die]) in uncore_pci_pmus_register()
1361 box_ctl = type->box_ctls[die] + type->pci_offsets[i]; in uncore_pci_pmus_register()
1369 uncore_pci_pmu_register(pdev, type, pmu, die); in uncore_pci_pmus_register()
1440 int i, die; in uncore_change_type_ctx() local
1442 die = topology_logical_die_id(old_cpu < 0 ? new_cpu : old_cpu); in uncore_change_type_ctx()
1444 box = pmu->boxes[die]; in uncore_change_type_ctx()
1492 int die, target; in uncore_event_cpu_offline() local
1512 die = topology_logical_die_id(cpu); in uncore_event_cpu_offline()
1513 uncore_box_unref(uncore_msr_uncores, die); in uncore_event_cpu_offline()
1514 uncore_box_unref(uncore_mmio_uncores, die); in uncore_event_cpu_offline()
1519 unsigned int die, unsigned int cpu) in allocate_boxes() argument
1532 if (pmu->boxes[die]) in allocate_boxes()
1538 box->dieid = die; in allocate_boxes()
1545 box->pmu->boxes[die] = box; in allocate_boxes()
1583 int die, target, msr_ret, mmio_ret; in uncore_event_cpu_online() local
1585 die = topology_logical_die_id(cpu); in uncore_event_cpu_online()
1586 msr_ret = uncore_box_ref(uncore_msr_uncores, die, cpu); in uncore_event_cpu_online()
1587 mmio_ret = uncore_box_ref(uncore_mmio_uncores, die, cpu); in uncore_event_cpu_online()