/linux/drivers/net/phy/ |
H 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() 34 struct phy_link_topology *topo = dev->link_topo; in phy_link_topo_add_phy() local 38 if (!topo) { in phy_link_topo_add_phy() 43 topo = dev->link_topo; in phy_link_topo_add_phy() 70 ret = xa_insert(&topo->phys, phy->phyindex, pdn, GFP_KERNEL); in phy_link_topo_add_phy() [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_query.c | 36 struct drm_i915_query_topology_info topo; in fill_topology_info() local 50 total_length = sizeof(topo) + slice_length + subslice_length + in fill_topology_info() 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() 61 topo.max_eus_per_subslice = sseu->max_eus_per_subslice; in fill_topology_info() 63 topo.subslice_offset = slice_length; in fill_topology_info() 64 topo.subslice_stride = ss_stride; in fill_topology_info() 65 topo.eu_offset = slice_length + subslice_length; in fill_topology_info() [all …]
|
/linux/arch/s390/pci/ |
H A D | pci_bus.c | 241 static struct zpci_bus *zpci_bus_get(int topo, bool topo_is_tid) in zpci_bus_get() argument 249 if (topo_is_tid == zbus->topo_is_tid && topo == zbus->topo) { in zpci_bus_get() 260 static struct zpci_bus *zpci_bus_alloc(int topo, bool topo_is_tid) in zpci_bus_alloc() argument 268 zbus->topo = topo; in zpci_bus_alloc() 349 int topo, rc = -EBADF; in zpci_bus_device_register() local 357 topo = topo_is_tid ? zdev->tid : zdev->pchid; in zpci_bus_device_register() 358 zbus = zpci_bus_get(topo, topo_is_tid); in zpci_bus_device_register() 369 zbus = zpci_bus_alloc(topo, topo_is_tid); in zpci_bus_device_register()
|
/linux/arch/x86/kernel/cpu/ |
H A D | cacheinfo.c | 673 c->topo.llc_id = die_id; in cacheinfo_amd_init_llc_id() 679 c->topo.llc_id = c->topo.apicid >> 3; in cacheinfo_amd_init_llc_id() 695 c->topo.llc_id = c->topo.apicid >> bits; in cacheinfo_amd_init_llc_id() 713 c->topo.llc_id = c->topo.apicid >> 3; in cacheinfo_hygon_init_llc_id() 777 l2_id = c->topo.apicid & ~((1 << index_msb) - 1); in init_intel_cacheinfo() 783 l3_id = c->topo.apicid & ~((1 << index_msb) - 1); in init_intel_cacheinfo() 857 c->topo.llc_id = l2_id; in init_intel_cacheinfo() 858 c->topo.l2c_id = l2_id; in init_intel_cacheinfo() 863 c->topo.llc_id = l3_id; in init_intel_cacheinfo() 873 if (c->topo.llc_id == BAD_APICID) in init_intel_cacheinfo() [all …]
|
H 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()
|
H 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()
|
H A D | amd.c | 303 unsigned apicid = c->topo.apicid; in srat_detect_node() 337 int ht_nodeid = c->topo.initial_apicid; in srat_detect_node()
|
/linux/drivers/staging/greybus/ |
H 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/ |
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/drivers/gpu/drm/xe/ |
H A D | xe_query.c | 475 struct drm_xe_query_topology_mask *topo, in copy_mask() argument 478 topo->num_bytes = mask_size; in copy_mask() 480 if (copy_to_user(*ptr, topo, sizeof(*topo))) in copy_mask() 482 *ptr += sizeof(topo); in copy_mask() 496 struct drm_xe_query_topology_mask topo; in query_gt_topology() local 510 topo.gt_id = id; in query_gt_topology() 512 topo.type = DRM_XE_TOPO_DSS_GEOMETRY; in query_gt_topology() 513 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.g_dss_mask, in query_gt_topology() 518 topo.type = DRM_XE_TOPO_DSS_COMPUTE; in query_gt_topology() 519 err = copy_mask(&query_ptr, &topo, gt->fuse_topo.c_dss_mask, in query_gt_topology() [all …]
|
/linux/include/linux/ |
H 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()
|
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() 420 enum ntb_topo topo; member
|
/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() 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()
|
H 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()
|
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() 974 if (ndev->ntb.topo == NTB_TOPO_SEC) in intel_ntb_link_enable() 1003 if (ndev->ntb.topo == NTB_TOPO_SEC) in intel_ntb_link_disable() 1242 if (ndev->ntb.topo == NTB_TOPO_SEC) in xeon_link_is_up() 1552 switch (ndev->ntb.topo) { in xeon_init_ntb() 1612 if (ndev->ntb.topo == NTB_TOPO_B2B_USD) { in xeon_init_ntb() 1724 ndev->ntb.topo = xeon_ppd_topo(ndev, ppd); in xeon_init_dev() 1726 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() 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/net/ethtool/ |
H 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/ |
H 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()
|
/linux/arch/x86/include/asm/ |
H A D | processor.h | 172 struct cpuinfo_topology topo; member 707 return per_cpu(cpu_info.topo.llc_id, cpu); in per_cpu_llc_id() 712 return per_cpu(cpu_info.topo.l2c_id, cpu); in per_cpu_l2c_id()
|
/linux/drivers/ntb/ |
H A D | core.c | 215 switch (ntb->topo) { in ntb_default_port_number() 239 switch (ntb->topo) { in ntb_default_peer_port_number()
|
/linux/arch/x86/kernel/ |
H A D | amd_nb.c | 183 return (mask >> (4 * cpu_data(cpu).topo.core_id)) & 0xf; in amd_get_subcaches() 209 cuid = cpu_data(cpu).topo.core_id; in amd_set_subcaches()
|
/linux/arch/x86/xen/ |
H A D | apic.c | 108 return cpu_data(cpu).topo.apicid; in xen_cpu_present_to_apicid()
|
/linux/drivers/gpu/drm/ |
H A D | drm_displayid_internal.h | 108 u8 topo[3]; member
|
/linux/arch/x86/kernel/cpu/mce/ |
H A D | apei.c | 101 if (cpu_data(cpu).topo.initial_apicid == lapic_id) { in apei_smca_report_x86_error()
|