/openbmc/entity-manager/test/ |
H A D | test_topology.cpp | 53 Topology topo; in TEST() local 63 Topology topo; in TEST() local 83 Topology topo; in TEST() local 98 Topology topo; in TEST() local 111 Topology topo; in TEST() local 125 Topology topo; in TEST() local 138 Topology topo; in TEST() local 154 Topology topo; in TEST() local 172 Topology topo; in TEST() local 187 Topology topo; variable [all …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | topology.c | 136 topo = &cpu_topology[cpu]; in add_cpus_to_mask() 138 topo->book_id = book->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() 258 topo = &cpu_topology[cpu]; in update_cpu_masks() 263 topo->booted_cores = 0; in update_cpu_masks() 266 topo->thread_id = cpu; in update_cpu_masks() 267 topo->core_id = cpu; in update_cpu_masks() 268 topo->socket_id = id; in update_cpu_masks() 269 topo->book_id = id; in update_cpu_masks() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H 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 …]
|
/openbmc/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()
|
/openbmc/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | 412 topo.nodes_per_pkg * topo.cores_per_node * topo.threads_per_core) + \ 413 ((node_no) * topo.cores_per_node * topo.threads_per_core) + \ 419 ((pkg_no) * topo.nodes_per_pkg * topo.cores_per_node) + \ 574 } topo; variable 3077 topo.max_cpu_num = 0; in set_max_cpu_num() 3092 topo.num_cpus++; in count_cpus() 5879 topo.num_cpus = 0; in topology_probe() 5885 fprintf(outf, "num_cpus %d max_cpu_num %d\n", topo.num_cpus, topo.max_cpu_num); in topology_probe() 5961 topo.num_cores++; in topology_probe() 5970 topo.num_die = topo.max_die_id + 1; in topology_probe() [all …]
|
/openbmc/linux/drivers/media/mc/ |
H 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 …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-smp-parse.c | 732 static unsigned int cpu_topology_get_threads_per_socket(const CpuTopology *topo) in cpu_topology_get_threads_per_socket() argument 735 if (!topo->drawers || !topo->books || !topo->sockets) { in cpu_topology_get_threads_per_socket() 738 return topo->max_cpus / topo->drawers / topo->books / topo->sockets; in cpu_topology_get_threads_per_socket() 743 static unsigned int cpu_topology_get_cores_per_socket(const CpuTopology *topo) in cpu_topology_get_cores_per_socket() argument 746 if (!topo->threads) { in cpu_topology_get_cores_per_socket() 749 return cpu_topology_get_threads_per_socket(topo) / topo->threads; in cpu_topology_get_cores_per_socket() 753 static char *cpu_topology_to_string(const CpuTopology *topo, in cpu_topology_to_string() argument 774 topo->cpus, topo->drawers, topo->books, in cpu_topology_to_string() 775 topo->sockets, topo->dies, topo->clusters, in cpu_topology_to_string() 776 topo->modules, topo->cores, topo->threads, in cpu_topology_to_string() [all …]
|
H A D | meson.build | 24 # all code tested by test-x86-topo is inside topology.h 25 'test-x86-topo': [],
|
/openbmc/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() 1726 ntb_topo_string(ndev->ntb.topo)); in xeon_init_dev() 1727 if (ndev->ntb.topo == NTB_TOPO_NONE) in xeon_init_dev() 1730 if (ndev->ntb.topo != NTB_TOPO_SEC) { in xeon_init_dev() [all …]
|
/openbmc/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 …]
|
/openbmc/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()
|
/openbmc/linux/tools/perf/ |
H A D | builtin-record.c | 3742 struct cpu_topology *topo; in record__init_thread_core_masks() local 3744 topo = cpu_topology__new(); in record__init_thread_core_masks() 3745 if (!topo) { in record__init_thread_core_masks() 3751 topo->core_cpus_list, topo->core_cpus_lists); in record__init_thread_core_masks() 3752 cpu_topology__delete(topo); in record__init_thread_core_masks() 3760 struct cpu_topology *topo; in record__init_thread_package_masks() local 3762 topo = cpu_topology__new(); in record__init_thread_package_masks() 3763 if (!topo) { in record__init_thread_package_masks() 3769 topo->package_cpus_list, topo->package_cpus_lists); in record__init_thread_package_masks() 3770 cpu_topology__delete(topo); in record__init_thread_package_masks() [all …]
|
/openbmc/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() 420 enum ntb_topo topo; member
|
/openbmc/linux/include/drm/ |
H A D | drm_displayid.h | 107 u8 topo[3]; member
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_edid.c | 7278 num_v_tile = (tile->topo[0] & 0xf) | (tile->topo[2] & 0x30); in drm_parse_tiled_block() 7279 num_h_tile = (tile->topo[0] >> 4) | ((tile->topo[2] >> 2) & 0x30); in drm_parse_tiled_block() 7280 tile_v_loc = (tile->topo[1] & 0xf) | ((tile->topo[2] & 0x3) << 4); in drm_parse_tiled_block() 7281 tile_h_loc = (tile->topo[1] >> 4) | (((tile->topo[2] >> 2) & 0x3) << 4); in drm_parse_tiled_block()
|
/openbmc/linux/drivers/ntb/hw/epf/ |
H A D | ntb_hw_epf.c | 542 ndev->ntb.topo = NTB_TOPO_NONE; in ntb_epf_init_struct()
|
/openbmc/linux/drivers/ntb/hw/mscc/ |
H A D | ntb_hw_switchtec.c | 847 sndev->ntb.topo = NTB_TOPO_SWITCH; in switchtec_ntb_init_sndev() 1133 sndev->ntb.topo = NTB_TOPO_CROSSLINK; in switchtec_ntb_init_crosslink()
|
/openbmc/qemu/docs/system/devices/ |
H A D | cxl.rst | 190 | PCI topology | | PCI topology| | PCI topo | | PCI topo |
|
/openbmc/linux/drivers/scsi/bfa/ |
H A D | bfa_svc.h | 530 enum bfa_port_topology topo);
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_init.c | 3082 uint16_t loop_id, topo, sw_cap; in qla2x00_isp_firmware() local 3097 &area, &domain, &topo, &sw_cap); in qla2x00_isp_firmware() 5022 uint16_t topo; in qla2x00_configure_hba() local 5035 &loop_id, &al_pa, &area, &domain, &topo, &sw_cap); in qla2x00_configure_hba() 5057 if (topo == 4) { in qla2x00_configure_hba() 5069 switch (topo) { in qla2x00_configure_hba() 5102 "HBA in unknown topology %x, using NL.\n", topo); in qla2x00_configure_hba() 5117 if (topo != 2) in qla2x00_configure_hba() 5119 } else if (!(topo == 2 && ha->flags.n2n_bigger)) in qla2x00_configure_hba()
|
H A D | qla_bsg.c | 2278 uint16_t loop_id, topo, sw_cap; in qla27xx_get_bbcr_data() local 2294 &area, &domain, &topo, &sw_cap); in qla27xx_get_bbcr_data()
|
/openbmc/linux/drivers/pci/endpoint/functions/ |
H A D | pci-epf-vntb.c | 1272 ndev->ntb.topo = NTB_TOPO_NONE; in pci_vntb_probe()
|
/openbmc/linux/Documentation/translations/it_IT/process/ |
H A D | management-style.rst | 78 dal quale non potrete sfuggire. Un topo messo all'angolo può rivelarsi
|