| /linux/drivers/net/phy/ |
| A D | phy_link_topology.c | 16 struct phy_link_topology *topo; in netdev_alloc_phy_link_topology() local 18 topo = kzalloc(sizeof(*topo), GFP_KERNEL); in netdev_alloc_phy_link_topology() 19 if (!topo) in netdev_alloc_phy_link_topology() 22 xa_init_flags(&topo->phys, XA_FLAGS_ALLOC1); in netdev_alloc_phy_link_topology() 23 topo->next_phy_index = 1; in netdev_alloc_phy_link_topology() 25 dev->link_topo = topo; in netdev_alloc_phy_link_topology() 38 if (!topo) { in phy_link_topo_add_phy() 43 topo = dev->link_topo; in phy_link_topo_add_phy() 73 xa_limit_32b, &topo->next_phy_index, in phy_link_topo_add_phy() 93 if (!topo) in phy_link_topo_del_phy() [all …]
|
| /linux/arch/x86/kernel/cpu/ |
| A D | topology_common.c | 98 c->topo = topo_defaults; in parse_topology() 105 c->topo.initial_apicid = ebx.apicid; in parse_topology() 113 c->topo.apicid = c->topo.initial_apicid; in parse_topology() 115 c->topo.apicid = read_apic_id(); in parse_topology() 146 u32 apicid = c->topo.apicid; in topo_set_ids() 148 c->topo.pkg_id = topo_shift_apicid(apicid, TOPO_PKG_DOMAIN); in topo_set_ids() 160 c->topo.amd_node_id = tscan->amd_node_id; in topo_set_ids() 174 if (c->topo.initial_apicid != c->topo.apicid) { in cpu_parse_topology() 176 cpu, c->topo.initial_apicid, c->topo.apicid); in cpu_parse_topology() 179 if (c->topo.apicid != cpuid_to_apicid[cpu]) { in cpu_parse_topology() [all …]
|
| A D | debugfs.c | 19 seq_printf(m, "initial_apicid: %x\n", c->topo.initial_apicid); in cpu_debug_show() 20 seq_printf(m, "apicid: %x\n", c->topo.apicid); in cpu_debug_show() 21 seq_printf(m, "pkg_id: %u\n", c->topo.pkg_id); in cpu_debug_show() 22 seq_printf(m, "die_id: %u\n", c->topo.die_id); in cpu_debug_show() 23 seq_printf(m, "cu_id: %u\n", c->topo.cu_id); in cpu_debug_show() 24 seq_printf(m, "core_id: %u\n", c->topo.core_id); in cpu_debug_show() 25 seq_printf(m, "logical_pkg_id: %u\n", c->topo.logical_pkg_id); in cpu_debug_show() 26 seq_printf(m, "logical_die_id: %u\n", c->topo.logical_die_id); in cpu_debug_show() 27 seq_printf(m, "llc_id: %u\n", c->topo.llc_id); in cpu_debug_show() 28 seq_printf(m, "l2c_id: %u\n", c->topo.l2c_id); in cpu_debug_show() [all …]
|
| A D | topology_amd.c | 83 tscan->c->topo.initial_apicid = leaf.ext_apic_id; in parse_8000_001e() 103 tscan->c->topo.cu_id = leaf.core_id; in parse_8000_001e() 138 tscan->c->topo.llc_id = nid.node_id; in parse_fam10h_node_id() 143 unsigned int apicid = tscan->c->topo.initial_apicid; in legacy_set_llc() 146 if (tscan->c->topo.llc_id == BAD_APICID) in legacy_set_llc() 147 tscan->c->topo.llc_id = apicid >> tscan->dom_shifts[TOPO_CORE_DOMAIN]; in legacy_set_llc() 216 c->topo.core_id %= tscan->dom_ncpus[TOPO_CORE_DOMAIN] / tscan->amd_nodes_per_pkg; in cpu_topology_fixup_amd()
|
| A D | cacheinfo.c | 675 c->topo.llc_id = die_id; in cacheinfo_amd_init_llc_id() 681 c->topo.llc_id = c->topo.apicid >> 3; in cacheinfo_amd_init_llc_id() 697 c->topo.llc_id = c->topo.apicid >> bits; in cacheinfo_amd_init_llc_id() 715 c->topo.llc_id = c->topo.apicid >> 3; in cacheinfo_hygon_init_llc_id() 856 c->topo.llc_id = l2_id; in init_intel_cacheinfo() 857 c->topo.l2c_id = l2_id; in init_intel_cacheinfo() 862 c->topo.llc_id = l3_id; in init_intel_cacheinfo() 872 if (c->topo.llc_id == BAD_APICID) in init_intel_cacheinfo() 873 c->topo.llc_id = c->topo.pkg_id; in init_intel_cacheinfo() 918 apicid = cpu_data(i).topo.apicid; in __cache_amd_cpumap_setup() [all …]
|
| A D | proc.c | 23 seq_printf(m, "physical id\t: %d\n", c->topo.pkg_id); in show_cpuinfo_core() 26 seq_printf(m, "core id\t\t: %d\n", c->topo.core_id); in show_cpuinfo_core() 28 seq_printf(m, "apicid\t\t: %d\n", c->topo.apicid); in show_cpuinfo_core() 29 seq_printf(m, "initial apicid\t: %d\n", c->topo.initial_apicid); in show_cpuinfo_core()
|
| A D | topology_ext.c | 94 tscan->c->topo.initial_apicid = sl.x2apic_id; in topo_subleaf() 95 } else if (tscan->c->topo.initial_apicid != sl.x2apic_id) { in topo_subleaf() 97 leaf, subleaf, tscan->c->topo.initial_apicid, sl.x2apic_id); in topo_subleaf()
|
| A D | hygon.c | 49 unsigned int apicid = c->topo.apicid; in srat_detect_node() 53 node = c->topo.llc_id; in srat_detect_node() 82 int ht_nodeid = c->topo.initial_apicid; in srat_detect_node()
|
| /linux/arch/s390/kernel/ |
| A D | topology.c | 138 topo = &cpu_topology[cpu]; in add_cpus_to_mask() 140 topo->book_id = book->id; in add_cpus_to_mask() 142 topo->core_id = rcore; in add_cpus_to_mask() 143 topo->thread_id = cpu; in add_cpus_to_mask() 261 topo = &cpu_topology[cpu]; in update_cpu_masks() 266 topo->booted_cores = 0; in update_cpu_masks() 269 topo->thread_id = cpu; in update_cpu_masks() 270 topo->core_id = cpu; in update_cpu_masks() 271 topo->socket_id = id; in update_cpu_masks() 272 topo->book_id = id; in update_cpu_masks() [all …]
|
| /linux/arch/x86/kernel/ |
| A D | smpboot.c | 367 if (c->topo.pkg_id == o->topo.pkg_id && in match_smt() 368 c->topo.die_id == o->topo.die_id && in match_smt() 369 c->topo.amd_node_id == o->topo.amd_node_id && in match_smt() 371 if (c->topo.core_id == o->topo.core_id) in match_smt() 376 (c->topo.cu_id == o->topo.cu_id)) in match_smt() 380 } else if (c->topo.pkg_id == o->topo.pkg_id && in match_smt() 381 c->topo.die_id == o->topo.die_id && in match_smt() 382 c->topo.core_id == o->topo.core_id) { in match_smt() 391 if (c->topo.pkg_id != o->topo.pkg_id || c->topo.die_id != o->topo.die_id) in match_die() 395 return c->topo.amd_node_id == o->topo.amd_node_id; in match_die() [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| A D | i915_query.c | 36 struct drm_i915_query_topology_info topo; in fill_topology_info() local 53 ret = copy_query_item(&topo, sizeof(topo), total_length, query_item); in fill_topology_info() 58 memset(&topo, 0, sizeof(topo)); in fill_topology_info() 59 topo.max_slices = sseu->max_slices; in fill_topology_info() 60 topo.max_subslices = sseu->max_subslices; in fill_topology_info() 63 topo.subslice_offset = slice_length; in fill_topology_info() 64 topo.subslice_stride = ss_stride; in fill_topology_info() 66 topo.eu_stride = eu_stride; in fill_topology_info() 69 &topo, sizeof(topo))) in fill_topology_info() 77 sizeof(topo) + slice_length), in fill_topology_info() [all …]
|
| /linux/arch/x86/include/asm/ |
| A D | topology.h | 137 #define topology_logical_package_id(cpu) (cpu_data(cpu).topo.logical_pkg_id) 138 #define topology_physical_package_id(cpu) (cpu_data(cpu).topo.pkg_id) 139 #define topology_logical_die_id(cpu) (cpu_data(cpu).topo.logical_die_id) 140 #define topology_die_id(cpu) (cpu_data(cpu).topo.die_id) 141 #define topology_core_id(cpu) (cpu_data(cpu).topo.core_id) 144 #define topology_amd_node_id(cpu) (cpu_data(cpu).topo.amd_node_id) 182 #define topology_cluster_id(cpu) (cpu_data(cpu).topo.l2c_id)
|
| A D | processor.h | 153 struct cpuinfo_topology topo; member 686 return per_cpu(cpu_info.topo.llc_id, cpu); in per_cpu_llc_id() 691 return per_cpu(cpu_info.topo.l2c_id, cpu); in per_cpu_l2c_id()
|
| /linux/drivers/staging/greybus/ |
| A D | audio_gb.c | 16 struct gb_audio_topology *topo; in gb_audio_gb_get_topology() local 26 if (size < sizeof(*topo)) in gb_audio_gb_get_topology() 29 topo = kzalloc(size, GFP_KERNEL); in gb_audio_gb_get_topology() 30 if (!topo) in gb_audio_gb_get_topology() 34 topo, size); in gb_audio_gb_get_topology() 36 kfree(topo); in gb_audio_gb_get_topology() 40 *topology = topo; in gb_audio_gb_get_topology()
|
| /linux/drivers/media/mc/ |
| A D | mc-device.c | 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() 307 topo->num_interfaces = i; in media_device_get_topology() 308 topo->reserved2 = 0; in media_device_get_topology() 318 if (i > topo->num_pads) { in media_device_get_topology() 335 topo->num_pads = i; in media_device_get_topology() 336 topo->reserved3 = 0; in media_device_get_topology() 350 if (i > topo->num_links) { in media_device_get_topology() 367 topo->num_links = i; in media_device_get_topology() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| A D | xe_query.c | 470 struct drm_xe_query_topology_mask *topo, in copy_mask() argument 473 topo->num_bytes = mask_size; in copy_mask() 475 if (copy_to_user(*ptr, topo, sizeof(*topo))) in copy_mask() 477 *ptr += sizeof(topo); in copy_mask() 491 struct drm_xe_query_topology_mask topo; in query_gt_topology() local 505 topo.gt_id = id; in query_gt_topology() 507 topo.type = DRM_XE_TOPO_DSS_GEOMETRY; in query_gt_topology() 513 topo.type = DRM_XE_TOPO_DSS_COMPUTE; in query_gt_topology() 519 topo.type = DRM_XE_TOPO_L3_BANK; in query_gt_topology() 525 topo.type = gt->fuse_topo.eu_type == XE_GT_EU_TYPE_SIMD16 ? in query_gt_topology() [all …]
|
| /linux/include/linux/ |
| A D | phy_link_topology.h | 49 struct phy_link_topology *topo = dev->link_topo; in phy_link_topo_get_phy() local 52 if (!topo) in phy_link_topo_get_phy() 55 pdn = xa_load(&topo->phys, phyindex); in phy_link_topo_get_phy()
|
| /linux/tools/power/x86/turbostat/ |
| A D | turbostat.c | 1652 topo.nodes_per_pkg * topo.cores_per_node * topo.threads_per_core) + \ 1653 ((node_no) * topo.cores_per_node * topo.threads_per_core) + \ 1659 ((pkg_no) * topo.nodes_per_pkg * topo.cores_per_node) + \ 1870 } topo; variable 5612 topo.allowed_cpus); in re_initialize() 5643 topo.num_cpus++; in count_cpus() 8197 topo.num_cpus = 0; in topology_probe() 8327 topo.num_cores++; in topology_probe() 8338 topo.num_die = topo.max_die_id + 1; in topology_probe() 8377 int num_cores = topo.cores_per_node * topo.nodes_per_pkg * topo.num_packages; in allocate_counters() [all …]
|
| /linux/tools/power/cpupower/bindings/python/ |
| A D | test_raw_pylibcpupower.py | 37 topo = p.cpupower_topology() variable 38 total_cpus = p.get_cpu_topology(topo)
|
| /linux/drivers/ntb/hw/intel/ |
| 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() 240 ndev->ntb.topo = xeon_ppd_topo(ndev, ppd); in gen3_init_dev() 242 ntb_topo_string(ndev->ntb.topo)); in gen3_init_dev() 243 if (ndev->ntb.topo == NTB_TOPO_NONE) in gen3_init_dev() 281 ntb_topo_string(ndev->ntb.topo)); in ndev_ntb3_debugfs_read() 347 if (ntb_topo_is_b2b(ndev->ntb.topo)) { in ndev_ntb3_debugfs_read()
|
| A D | ntb_hw_gen4.c | 141 if (ndev->ntb.topo == NTB_TOPO_B2B_USD) in gen4_init_ntb() 199 ndev->ntb.topo = gen4_ppd_topo(ndev, ppd1); in gen4_init_dev() 201 ndev->ntb.topo = spr_ppd_topo(ndev, ppd1); in gen4_init_dev() 203 ntb_topo_string(ndev->ntb.topo)); in gen4_init_dev() 204 if (ndev->ntb.topo == NTB_TOPO_NONE) in gen4_init_dev() 245 ntb_topo_string(ndev->ntb.topo)); in ndev_ntb4_debugfs_read()
|
| /linux/drivers/ntb/hw/amd/ |
| A D | ntb_hw_amd.c | 206 if (ndev->ntb.topo == NTB_TOPO_SEC) { in amd_ntb_get_link_status() 227 } else if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_ntb_get_link_status() 295 if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_link_is_up() 352 if (ndev->ntb.topo == NTB_TOPO_SEC) in amd_ntb_link_enable() 368 if (ndev->ntb.topo == NTB_TOPO_SEC) in amd_ntb_link_disable() 864 ntb_topo_string(ndev->ntb.topo)); in ndev_debugfs_read() 960 ndev->ntb.topo = NTB_TOPO_NONE; in ndev_init_struct() 1066 switch (ndev->ntb.topo) { in amd_init_ntb() 1070 if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_init_ntb() 1114 ndev->ntb.topo = amd_get_topo(ndev); in amd_init_dev() [all …]
|
| /linux/Documentation/arch/x86/ |
| A D | topology.rst | 62 - cpuinfo_x86.topo.die_id: 66 - cpuinfo_x86.topo.pkg_id: 72 packages within a socket. This value may differ from topo.die_id. 74 - cpuinfo_x86.topo.logical_pkg_id: 86 - cpuinfo_x86.topo.llc_id:
|
| /linux/net/ethtool/ |
| A D | phy.c | 124 struct phy_link_topology *topo = req_base->dev->link_topo; in ethnl_phy_parse_request() local 136 if (!topo) in ethnl_phy_parse_request() 139 req_info->pdn = xa_load(&topo->phys, phydev->phyindex); in ethnl_phy_parse_request()
|
| /linux/arch/x86/kernel/apic/ |
| A D | apic_numachip.c | 149 c->topo.llc_id = node; in fixup_cpu_id() 157 c->topo.pkg_id = node / nodes; in fixup_cpu_id()
|