/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | topology.c | 118 struct cpu_topology_s390 *topo; in add_cpus_to_mask() local 130 topo = &cpu_topology[lcpu + i]; in add_cpus_to_mask() 131 topo->drawer_id = drawer->id; in add_cpus_to_mask() 132 topo->book_id = book->id; in add_cpus_to_mask() 133 topo->socket_id = socket->id; in add_cpus_to_mask() 134 topo->core_id = rcore; in add_cpus_to_mask() 135 topo->thread_id = lcpu + i; in add_cpus_to_mask() 136 topo->dedicated = tl_core->d; in add_cpus_to_mask() 248 struct cpu_topology_s390 *topo, *topo_package, *topo_sibling; in update_cpu_masks() local 252 topo in update_cpu_masks() [all...] |
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | topology.c | 123 struct cpu_topology_s390 *topo; in add_cpus_to_mask() local 136 topo = &cpu_topology[cpu]; in add_cpus_to_mask() 137 topo->drawer_id = drawer->id; in add_cpus_to_mask() 138 topo->book_id = book->id; in add_cpus_to_mask() 139 topo->socket_id = socket->id; in add_cpus_to_mask() 140 topo->core_id = rcore; in add_cpus_to_mask() 141 topo->thread_id = cpu; in add_cpus_to_mask() 142 topo->dedicated = tl_core->d; in add_cpus_to_mask() 254 struct cpu_topology_s390 *topo, *topo_package, *topo_sibling; in update_cpu_masks() local 258 topo in update_cpu_masks() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
H A D | i915_query.c | 35 struct drm_i915_query_topology_info topo; in query_topology_info() local 50 total_length = sizeof(topo) + slice_length + subslice_length + in query_topology_info() 53 ret = copy_query_item(&topo, sizeof(topo), total_length, in query_topology_info() 58 if (topo.flags != 0) in query_topology_info() 61 memset(&topo, 0, sizeof(topo)); in query_topology_info() 62 topo.max_slices = sseu->max_slices; in query_topology_info() 63 topo.max_subslices = sseu->max_subslices; in query_topology_info() 64 topo in query_topology_info() [all...] |
/kernel/linux/linux-6.6/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 in fill_topology_info() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/tools/power/x86/turbostat/ |
H A D | turbostat.c | 410 topo.nodes_per_pkg * topo.cores_per_node * topo.threads_per_core) + \ 411 ((node_no) * topo.cores_per_node * topo.threads_per_core) + \ 412 ((core_no) * topo.threads_per_core) + \ 417 ((pkg_no) * topo.nodes_per_pkg * topo.cores_per_node) + \ 418 ((node_no) * topo.cores_per_node) + \ 571 } topo; variable [all...] |
/kernel/linux/linux-5.10/tools/power/x86/turbostat/ |
H A D | turbostat.c | 232 topo.nodes_per_pkg * topo.cores_per_node * topo.threads_per_core) + \ 233 ((node_no) * topo.cores_per_node * topo.threads_per_core) + \ 234 ((core_no) * topo.threads_per_core) + \ 239 ((pkg_no) * topo.nodes_per_pkg * topo.cores_per_node) + \ 240 ((node_no) * topo.cores_per_node) + \ 411 } topo; variable [all...] |
/kernel/linux/linux-5.10/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 in media_device_get_topology() [all...] |
/kernel/linux/linux-6.6/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 in media_device_get_topology() [all...] |
/kernel/linux/linux-5.10/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() 241 dev_dbg(&pdev->dev, "ppd %#x topo %s\n", 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() 197 ndev->ntb.topo = gen4_ppd_topo(ndev, ppd1); in gen4_init_dev() 199 ndev->ntb.topo = spr_ppd_topo(ndev, ppd1); in gen4_init_dev() 200 dev_dbg(&pdev->dev, "ppd %#x topo %s\n", ppd1, in gen4_init_dev() 201 ntb_topo_string(ndev->ntb.topo)); in gen4_init_dev() 202 if (ndev->ntb.topo == NTB_TOPO_NONE) in gen4_init_dev() 243 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() 1725 dev_dbg(&pdev->dev, "ppd %#x topo in xeon_init_dev() [all...] |
/kernel/linux/linux-6.6/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() 241 dev_dbg(&pdev->dev, "ppd %#x topo %s\n", 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() 202 dev_dbg(&pdev->dev, "ppd %#x topo %s\n", 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() 1725 dev_dbg(&pdev->dev, "ppd %#x topo in xeon_init_dev() [all...] |
/kernel/linux/linux-5.10/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() 963 ndev->ntb.topo = NTB_TOPO_NONE; in ndev_init_struct() 1069 switch (ndev->ntb.topo) { in amd_init_ntb() 1073 if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_init_ntb() 1117 ndev->ntb.topo in amd_init_dev() [all...] |
/kernel/linux/linux-6.6/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 in amd_init_dev() [all...] |
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-record.c | 3738 struct cpu_topology *topo; in record__init_thread_core_masks() local 3740 topo = cpu_topology__new(); in record__init_thread_core_masks() 3741 if (!topo) { in record__init_thread_core_masks() 3746 ret = record__init_thread_masks_spec(rec, cpus, topo->core_cpus_list, in record__init_thread_core_masks() 3747 topo->core_cpus_list, topo->core_cpus_lists); in record__init_thread_core_masks() 3748 cpu_topology__delete(topo); in record__init_thread_core_masks() 3756 struct cpu_topology *topo; in record__init_thread_package_masks() local 3758 topo = cpu_topology__new(); in record__init_thread_package_masks() 3759 if (!topo) { in record__init_thread_package_masks() 3776 struct numa_topology *topo; record__init_thread_numa_masks() local [all...] |
/kernel/linux/linux-5.10/drivers/ntb/ |
H A D | core.c | 209 switch (ntb->topo) { in ntb_default_port_number() 233 switch (ntb->topo) { in ntb_default_peer_port_number()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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() 412 * @topo: Detected topology of the ntb. 420 enum ntb_topo topo; member
|
/kernel/linux/linux-6.6/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() 412 * @topo: Detected topology of the ntb. 420 enum ntb_topo topo; member
|
/kernel/linux/linux-5.10/include/drm/ |
H A D | drm_displayid.h | 71 u8 topo[3]; member
|
/kernel/linux/linux-6.6/include/drm/ |
H A D | drm_displayid.h | 108 u8 topo[3]; member
|