| /linux/arch/s390/kernel/ |
| H A D | topology.c | 126 struct cpu_topology_s390 *topo; in add_cpus_to_mask() local 139 topo = &cpu_topology[cpu]; in add_cpus_to_mask() 140 topo->drawer_id = drawer->id; in add_cpus_to_mask() 141 topo->book_id = book->id; in add_cpus_to_mask() 142 topo->socket_id = socket->id; in add_cpus_to_mask() 143 topo->core_id = rcore; in add_cpus_to_mask() 144 topo->thread_id = cpu; in add_cpus_to_mask() 145 topo->dedicated = tl_core->d; in add_cpus_to_mask() 262 struct cpu_topology_s390 *topo, *topo_package, *topo_sibling; in update_cpu_masks() local 266 topo = &cpu_topology[cpu]; in update_cpu_masks() [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_query.c | 38 struct drm_i915_query_topology_info topo; in fill_topology_info() local 52 total_length = sizeof(topo) + slice_length + subslice_length + in fill_topology_info() 55 ret = copy_query_item(&topo, sizeof(topo), total_length, query_item); in fill_topology_info() 60 memset(&topo, 0, sizeof(topo)); in fill_topology_info() 61 topo.max_slices = sseu->max_slices; in fill_topology_info() 62 topo.max_subslices = sseu->max_subslices; in fill_topology_info() 63 topo.max_eus_per_subslice = sseu->max_eus_per_subslice; in fill_topology_info() 65 topo.subslice_offset = slice_length; in fill_topology_info() 66 topo.subslice_stride = ss_stride; in fill_topology_info() 67 topo.eu_offset = slice_length + subslice_length; in fill_topology_info() [all …]
|
| /linux/drivers/perf/hisilicon/ |
| H A D | hisi_uncore_pmu.c | 484 struct hisi_pmu_topology *topo = &hisi_pmu->topo; in hisi_pmu_cpu_is_associated_pmu() local 487 if (topo->ccl_id == -1) { in hisi_pmu_cpu_is_associated_pmu() 491 return sccl_id == topo->sccl_id; in hisi_pmu_cpu_is_associated_pmu() 496 return sccl_id == topo->sccl_id && ccl_id == topo->ccl_id; in hisi_pmu_cpu_is_associated_pmu() 583 struct hisi_pmu_topology *topo = &hisi_pmu->topo; in hisi_uncore_pmu_init_topology() local 585 topo->sccl_id = -1; in hisi_uncore_pmu_init_topology() 586 topo->ccl_id = -1; in hisi_uncore_pmu_init_topology() 587 topo->index_id = -1; in hisi_uncore_pmu_init_topology() 588 topo->sub_id = -1; in hisi_uncore_pmu_init_topology() 590 if (device_property_read_u32(dev, "hisilicon,scl-id", &topo->sccl_id)) in hisi_uncore_pmu_init_topology() [all …]
|
| H A D | hisi_uncore_ddrc_pmu.c | 240 &ddrc_pmu->topo.index_id)) { in hisi_ddrc_pmu_init_data() 245 if (ddrc_pmu->topo.sccl_id < 0) { in hisi_ddrc_pmu_init_data() 262 if (ddrc_pmu->topo.sub_id < 0) { in hisi_ddrc_pmu_init_data() 394 ddrc_pmu->topo.sccl_id, ddrc_pmu->topo.index_id, in hisi_ddrc_pmu_probe() 395 ddrc_pmu->topo.sub_id); in hisi_ddrc_pmu_probe() 398 "hisi_sccl%d_ddrc%d", ddrc_pmu->topo.sccl_id, in hisi_ddrc_pmu_probe() 399 ddrc_pmu->topo.index_id); in hisi_ddrc_pmu_probe()
|
| H A D | hisi_uncore_noc_pmu.c | 290 if (noc_pmu->topo.scl_id < 0) in hisi_noc_pmu_dev_init() 293 if (noc_pmu->topo.index_id < 0) in hisi_noc_pmu_dev_init() 296 if (noc_pmu->topo.sub_id < 0) in hisi_noc_pmu_dev_init() 365 noc_pmu->topo.scl_id, noc_pmu->topo.index_id, in hisi_noc_pmu_probe() 366 noc_pmu->topo.sub_id); in hisi_noc_pmu_probe()
|
| H A D | hisi_uncore_uc_pmu.c | 371 if (uc_pmu->topo.sccl_id < 0) { in hisi_uc_pmu_init_data() 376 if (uc_pmu->topo.ccl_id < 0) { in hisi_uc_pmu_init_data() 381 if (uc_pmu->topo.sub_id < 0) { in hisi_uc_pmu_init_data() 513 uc_pmu->topo.sccl_id, uc_pmu->topo.ccl_id, in hisi_uc_pmu_probe() 514 uc_pmu->topo.sub_id); in hisi_uc_pmu_probe()
|
| H A D | hisi_uncore_cpa_pmu.c | 185 if (cpa_pmu->topo.sicl_id < 0) { in hisi_cpa_pmu_init_data() 190 if (cpa_pmu->topo.index_id < 0) { in hisi_cpa_pmu_init_data() 290 cpa_pmu->topo.sicl_id, cpa_pmu->topo.index_id); in hisi_cpa_pmu_probe()
|
| H A D | hisi_uncore_hha_pmu.c | 304 if (hha_pmu->topo.sccl_id < 0) { in hisi_hha_pmu_init_data() 313 if (hha_pmu->topo.index_id < 0) { in hisi_hha_pmu_init_data() 321 hha_pmu->topo.index_id = id; in hisi_hha_pmu_init_data() 489 hha_pmu->topo.sccl_id, hha_pmu->topo.index_id); in hisi_hha_pmu_probe()
|
| H A D | hisi_uncore_l3c_pmu.c | 549 if (l3c_pmu->topo.sccl_id < 0) { in hisi_l3c_pmu_init_data() 554 if (l3c_pmu->topo.ccl_id < 0) { in hisi_l3c_pmu_init_data() 839 if (l3c_pmu->topo.sub_id >= 0) in hisi_l3c_pmu_probe() 841 l3c_pmu->topo.sccl_id, l3c_pmu->topo.ccl_id, in hisi_l3c_pmu_probe() 842 l3c_pmu->topo.sub_id); in hisi_l3c_pmu_probe() 845 l3c_pmu->topo.sccl_id, l3c_pmu->topo.ccl_id); in hisi_l3c_pmu_probe()
|
| H A D | hisi_uncore_its_pmu.c | 261 if (pmu->topo.scl_id < 0) in hisi_its_pmu_dev_init() 264 if (pmu->topo.index_id < 0) in hisi_its_pmu_dev_init() 338 pmu->topo.scl_id, pmu->topo.index_id); in hisi_its_pmu_probe()
|
| H A D | hisi_uncore_mn_pmu.c | 295 if (mn_pmu->topo.scl_id < 0) in hisi_mn_pmu_dev_init() 299 if (mn_pmu->topo.index_id < 0) in hisi_mn_pmu_dev_init() 357 mn_pmu->topo.scl_id, mn_pmu->topo.index_id); in hisi_mn_pmu_probe()
|
| H A D | hisi_uncore_pa_pmu.c | 278 if (pa_pmu->topo.sicl_id < 0) { in hisi_pa_pmu_init_data() 283 if (pa_pmu->topo.index_id < 0) { in hisi_pa_pmu_init_data() 466 pa_pmu->topo.sicl_id, pa_pmu->dev_info->name, in hisi_pa_pmu_probe() 467 pa_pmu->topo.index_id); in hisi_pa_pmu_probe()
|
| H A D | hisi_uncore_sllc_pmu.c | 341 if (sllc_pmu->topo.sccl_id < 0) { in hisi_sllc_pmu_init_data() 346 if (sllc_pmu->topo.index_id < 0) { in hisi_sllc_pmu_init_data() 502 sllc_pmu->topo.sccl_id, sllc_pmu->topo.index_id); in hisi_sllc_pmu_probe()
|
| /linux/arch/s390/pci/ |
| H A D | pci_bus.c | 257 static struct zpci_bus *zpci_bus_get(int topo, bool topo_is_tid) in zpci_bus_get() argument 265 if (topo_is_tid == zbus->topo_is_tid && topo == zbus->topo) { in zpci_bus_get() 314 static struct zpci_bus *zpci_bus_alloc(int topo, bool topo_is_tid) in zpci_bus_alloc() argument 322 zbus->topo = topo; in zpci_bus_alloc() 429 int topo, rc = -EBADF; in zpci_bus_device_register() local 437 topo = topo_is_tid ? zdev->tid : zdev->pchid; in zpci_bus_device_register() 438 zbus = zpci_bus_get(topo, topo_is_tid); in zpci_bus_device_register() 449 zbus = zpci_bus_alloc(topo, topo_is_tid); in zpci_bus_device_register()
|
| /linux/drivers/media/mc/ |
| H A D | mc-device.c | 232 struct media_v2_topology *topo = arg; in media_device_get_topology() local 244 topo->topology_version = mdev->topology_version; in media_device_get_topology() 248 uentity = media_get_uptr(topo->ptr_entities); in media_device_get_topology() 254 if (i > topo->num_entities) { in media_device_get_topology() 271 topo->num_entities = i; in media_device_get_topology() 272 topo->reserved1 = 0; in media_device_get_topology() 276 uintf = media_get_uptr(topo->ptr_interfaces); in media_device_get_topology() 282 if (i > topo->num_interfaces) { in media_device_get_topology() 307 topo->num_interfaces = i; in media_device_get_topology() 308 topo->reserved2 = 0; in media_device_get_topology() [all …]
|
| /linux/tools/power/x86/turbostat/ |
| H A D | turbostat.c | 2450 } topo; in cpu_is_not_allowed() 2480 #define GLOBAL_CORE_ID(core_id, pkg_id) (core_id + pkg_id * (topo.max_core_id + 1)) in for_all_cpus() 2510 for (cpu = 0; cpu <= topo.max_cpu_num; ++cpu) { in for_all_cpus() 3408 /* topo columns, print blanks on 1st (average) line */ in format_counters() 4361 if ((mp->format == FORMAT_RAW) && (topo.num_packages == 0)) in sum_counters() 4368 if ((pp->format == FORMAT_RAW) && (topo.num_packages == 0)) 4399 average.threads->tsc /= topo.allowed_cpus; in compute_average() 4400 average.threads->aperf /= topo.allowed_cpus; in compute_average() 4401 average.threads->mperf /= topo.allowed_cpus; in compute_average() 4402 average.threads->instr_count /= topo in compute_average() 2425 } topo; global() variable [all...] |
| /linux/kernel/sched/ext/ |
| H A D | cid.c | 94 kvfree(tbls->topo); in scx_cid_tables_free_rcufn() 117 tbls->topo = kvzalloc_objs(*tbls->topo, npossible); in scx_cid_alloc_tables() 120 !tbls->shard_node || !tbls->shard_ranges || !tbls->topo) { 145 rcu_assign_pointer(scx_cid_topo, tbls->topo); 246 * No NUMA info: skip and let the tail loop assign a no-topo in scx_cid_init() 344 tbls->topo[cid] = (struct scx_cid_topo){ in scx_cid_init() 367 * No-topo section: any possible cpu without a cid - normally just the in scx_cid_init() 396 tbls->topo[cid] = SCX_CID_TOPO_NEG; in scx_cmask_clear() 397 tbls->topo[ci in scx_cmask_clear() 931 struct scx_cid_topo *topo; scx_bpf_cid_topo() local [all...] |
| /linux/tools/power/cpupower/bindings/python/ |
| H A D | test_raw_pylibcpupower.py | 53 topo = p.cpupower_topology() variable 54 total_cpus = p.get_cpu_topology(topo)
|
| /linux/drivers/ntb/hw/intel/ |
| H A D | ntb_hw_gen3.c | 187 switch (ndev->ntb.topo) { in gen3_init_ntb() 194 if (ndev->ntb.topo == NTB_TOPO_B2B_USD) { in gen3_init_ntb() 243 ndev->ntb.topo = xeon_ppd_topo(ndev, ppd); in gen3_init_dev() 245 ntb_topo_string(ndev->ntb.topo)); in gen3_init_dev() 246 if (ndev->ntb.topo == NTB_TOPO_NONE) in gen3_init_dev() 284 ntb_topo_string(ndev->ntb.topo)); in ndev_ntb3_debugfs_read() 350 if (ntb_topo_is_b2b(ndev->ntb.topo)) { in ndev_ntb3_debugfs_read()
|
| H A D | ntb_hw_gen4.c | 151 if (ndev->ntb.topo == NTB_TOPO_B2B_USD) in gen4_init_ntb() 209 ndev->ntb.topo = gen4_ppd_topo(ndev, ppd1); in gen4_init_dev() 211 ndev->ntb.topo = spr_ppd_topo(ndev, ppd1); in gen4_init_dev() 213 ntb_topo_string(ndev->ntb.topo)); in gen4_init_dev() 214 if (ndev->ntb.topo == NTB_TOPO_NONE) in gen4_init_dev() 255 ntb_topo_string(ndev->ntb.topo)); in ndev_ntb4_debugfs_read()
|
| H A D | ntb_hw_gen1.c | 152 if (!ntb_topo_is_b2b(ndev->ntb.topo)) in ndev_reset_unsafe_flags() 519 ntb_topo_string(ndev->ntb.topo)); in ndev_ntb_debugfs_read() 651 if (ntb_topo_is_b2b(ndev->ntb.topo)) { in ndev_ntb_debugfs_read() 975 if (ndev->ntb.topo == NTB_TOPO_SEC) in intel_ntb_link_enable() 1004 if (ndev->ntb.topo == NTB_TOPO_SEC) in intel_ntb_link_disable() 1243 if (ndev->ntb.topo == NTB_TOPO_SEC) in xeon_link_is_up() 1553 switch (ndev->ntb.topo) { in xeon_init_ntb() 1613 if (ndev->ntb.topo == NTB_TOPO_B2B_USD) { in xeon_init_ntb() 1725 ndev->ntb.topo = xeon_ppd_topo(ndev, ppd); in xeon_init_dev() 1727 ntb_topo_string(ndev->ntb.topo)); in xeon_init_dev() [all …]
|
| /linux/drivers/ntb/hw/amd/ |
| H A D | ntb_hw_amd.c | 206 if (ndev->ntb.topo == NTB_TOPO_SEC) { in amd_ntb_get_link_status() 236 } else if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_ntb_get_link_status() 304 if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_link_is_up() 361 if (ndev->ntb.topo == NTB_TOPO_SEC) in amd_ntb_link_enable() 377 if (ndev->ntb.topo == NTB_TOPO_SEC) in amd_ntb_link_disable() 873 ntb_topo_string(ndev->ntb.topo)); in ndev_debugfs_read() 969 ndev->ntb.topo = NTB_TOPO_NONE; in ndev_init_struct() 1075 switch (ndev->ntb.topo) { in amd_init_ntb() 1079 if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_init_ntb() 1123 ndev->ntb.topo = amd_get_topo(ndev); in amd_init_dev() [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | processor.h | 183 struct cpuinfo_topology topo; member 712 return per_cpu(cpu_info.topo.llc_id, cpu); in per_cpu_llc_id() 717 return per_cpu(cpu_info.topo.l2c_id, cpu); in per_cpu_l2c_id() 722 return per_cpu(cpu_info.topo.core_id, cpu); in per_cpu_core_id()
|
| /linux/include/linux/ |
| H A D | ntb.h | 88 static inline int ntb_topo_is_b2b(enum ntb_topo topo) in ntb_topo_is_b2b() argument 90 switch ((int)topo) { in ntb_topo_is_b2b() 98 static inline char *ntb_topo_string(enum ntb_topo topo) in ntb_topo_string() argument 100 switch (topo) { in ntb_topo_string() 424 enum ntb_topo topo; member
|
| /linux/tools/perf/ |
| H A D | builtin-record.c | 3912 struct cpu_topology *topo; in record__init_thread_core_masks() 3914 topo = cpu_topology__new(); in record__init_thread_core_masks() 3915 if (!topo) { in record__init_thread_core_masks() 3920 ret = record__init_thread_masks_spec(rec, cpus, topo->core_cpus_list, in record__init_thread_core_masks() 3921 topo->core_cpus_list, topo->core_cpus_lists); in record__init_thread_core_masks() 3922 cpu_topology__delete(topo); in record__init_thread_core_masks() 3930 struct cpu_topology *topo; in record__init_thread_package_masks() 3932 topo = cpu_topology__new(); in record__init_thread_package_masks() 3933 if (!topo) { in record__init_thread_package_masks() 3910 struct cpu_topology *topo; record__init_thread_core_masks() local 3928 struct cpu_topology *topo; record__init_thread_package_masks() local 3948 struct numa_topology *topo; record__init_thread_numa_masks() local [all...] |