Home
last modified time | relevance | path

Searched refs:topo (Results 1 – 19 of 19) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/i915/
Di915_query.c17 struct drm_i915_query_topology_info topo; in query_topology_info() local
35 total_length = sizeof(topo) + slice_length + subslice_length + eu_length; in query_topology_info()
43 if (copy_from_user(&topo, u64_to_user_ptr(query_item->data_ptr), in query_topology_info()
44 sizeof(topo))) in query_topology_info()
47 if (topo.flags != 0) in query_topology_info()
54 memset(&topo, 0, sizeof(topo)); in query_topology_info()
55 topo.max_slices = sseu->max_slices; in query_topology_info()
56 topo.max_subslices = sseu->max_subslices; in query_topology_info()
57 topo.max_eus_per_subslice = sseu->max_eus_per_subslice; in query_topology_info()
59 topo.subslice_offset = slice_length; in query_topology_info()
[all …]
/Linux-v4.19/arch/s390/kernel/
Dtopology.c119 struct cpu_topology_s390 *topo; in add_cpus_to_mask() local
131 topo = &cpu_topology[lcpu + i]; in add_cpus_to_mask()
132 topo->drawer_id = drawer->id; in add_cpus_to_mask()
133 topo->book_id = book->id; in add_cpus_to_mask()
134 topo->socket_id = socket->id; in add_cpus_to_mask()
135 topo->core_id = rcore; in add_cpus_to_mask()
136 topo->thread_id = lcpu + i; in add_cpus_to_mask()
137 topo->dedicated = tl_core->d; in add_cpus_to_mask()
250 struct cpu_topology_s390 *topo; in update_cpu_masks() local
254 topo = &cpu_topology[cpu]; in update_cpu_masks()
[all …]
/Linux-v4.19/drivers/staging/greybus/
Daudio_gb.c18 struct gb_audio_topology *topo; in gb_audio_gb_get_topology() local
28 if (size < sizeof(*topo)) in gb_audio_gb_get_topology()
31 topo = kzalloc(size, GFP_KERNEL); in gb_audio_gb_get_topology()
32 if (!topo) in gb_audio_gb_get_topology()
36 topo, size); in gb_audio_gb_get_topology()
38 kfree(topo); in gb_audio_gb_get_topology()
42 *topology = topo; in gb_audio_gb_get_topology()
/Linux-v4.19/tools/power/x86/turbostat/
Dturbostat.c225 topo.nodes_per_pkg * topo.cores_per_node * topo.threads_per_core) + \
226 ((node_no) * topo.cores_per_node * topo.threads_per_core) + \
227 ((core_no) * topo.threads_per_core) + \
232 ((pkg_no) * topo.nodes_per_pkg * topo.cores_per_node) + \
233 ((node_no) * topo.cores_per_node) + \
291 } topo; variable
314 for (pkg_no = 0; pkg_no < topo.num_packages; ++pkg_no) { in for_all_cpus()
315 for (core_no = 0; core_no < topo.cores_per_node; ++core_no) { in for_all_cpus()
316 for (node_no = 0; node_no < topo.nodes_per_pkg; in for_all_cpus()
319 topo.threads_per_core; ++thread_no) { in for_all_cpus()
[all …]
/Linux-v4.19/drivers/media/
Dmedia-device.c239 struct media_v2_topology *topo = arg; in media_device_get_topology() local
251 topo->topology_version = mdev->topology_version; in media_device_get_topology()
255 uentity = media_get_uptr(topo->ptr_entities); in media_device_get_topology()
261 if (i > topo->num_entities) { in media_device_get_topology()
278 topo->num_entities = i; in media_device_get_topology()
279 topo->reserved1 = 0; in media_device_get_topology()
283 uintf = media_get_uptr(topo->ptr_interfaces); in media_device_get_topology()
289 if (i > topo->num_interfaces) { in media_device_get_topology()
314 topo->num_interfaces = i; in media_device_get_topology()
315 topo->reserved2 = 0; in media_device_get_topology()
[all …]
/Linux-v4.19/drivers/ntb/hw/intel/
Dntb_hw_gen3.c187 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()
Dntb_hw_gen1.c151 if (!ntb_topo_is_b2b(ndev->ntb.topo)) in ndev_reset_unsafe_flags()
520 ntb_topo_string(ndev->ntb.topo)); in ndev_ntb_debugfs_read()
652 if (ntb_topo_is_b2b(ndev->ntb.topo)) { in ndev_ntb_debugfs_read()
973 if (ndev->ntb.topo == NTB_TOPO_SEC) in intel_ntb_link_enable()
1002 if (ndev->ntb.topo == NTB_TOPO_SEC) in intel_ntb_link_disable()
1226 if (ndev->ntb.topo == NTB_TOPO_SEC) in xeon_link_is_up()
1536 switch (ndev->ntb.topo) { in xeon_init_ntb()
1596 if (ndev->ntb.topo == NTB_TOPO_B2B_USD) { in xeon_init_ntb()
1708 ndev->ntb.topo = xeon_ppd_topo(ndev, ppd); in xeon_init_dev()
1710 ntb_topo_string(ndev->ntb.topo)); in xeon_init_dev()
[all …]
/Linux-v4.19/include/linux/
Dntb.h86 static inline int ntb_topo_is_b2b(enum ntb_topo topo) in ntb_topo_is_b2b() argument
88 switch ((int)topo) { in ntb_topo_is_b2b()
96 static inline char *ntb_topo_string(enum ntb_topo topo) in ntb_topo_string() argument
98 switch (topo) { in ntb_topo_string()
417 enum ntb_topo topo; member
/Linux-v4.19/drivers/ntb/hw/amd/
Dntb_hw_amd.c262 if (ndev->ntb.topo == NTB_TOPO_SEC) in amd_ntb_link_enable()
283 if (ndev->ntb.topo == NTB_TOPO_SEC) in amd_ntb_link_disable()
737 ntb_topo_string(ndev->ntb.topo)); in ndev_debugfs_read()
836 ndev->ntb.topo = NTB_TOPO_NONE; in ndev_init_struct()
916 switch (ndev->ntb.topo) { in amd_init_ntb()
920 if (ndev->ntb.topo == NTB_TOPO_PRI) { in amd_init_ntb()
965 ndev->ntb.topo = amd_get_topo(ndev); in amd_init_dev()
967 ntb_topo_string(ndev->ntb.topo)); in amd_init_dev()
/Linux-v4.19/drivers/ntb/
Dntb.c209 switch (ntb->topo) { in ntb_default_port_number()
235 switch (ntb->topo) { in ntb_default_peer_port_number()
/Linux-v4.19/include/drm/
Ddrm_displayid.h70 u8 topo[3]; member
/Linux-v4.19/drivers/gpu/drm/
Ddrm_edid.c5078 num_v_tile = (tile->topo[0] & 0xf) | (tile->topo[2] & 0x30); in drm_parse_tiled_block()
5079 num_h_tile = (tile->topo[0] >> 4) | ((tile->topo[2] >> 2) & 0x30); in drm_parse_tiled_block()
5080 tile_v_loc = (tile->topo[1] & 0xf) | ((tile->topo[2] & 0x3) << 4); in drm_parse_tiled_block()
5081 tile_h_loc = (tile->topo[1] >> 4) | (((tile->topo[2] >> 2) & 0x3) << 4); in drm_parse_tiled_block()
/Linux-v4.19/drivers/ntb/hw/mscc/
Dntb_hw_switchtec.c862 sndev->ntb.topo = NTB_TOPO_SWITCH; in switchtec_ntb_init_sndev()
1148 sndev->ntb.topo = NTB_TOPO_CROSSLINK; in switchtec_ntb_init_crosslink()
/Linux-v4.19/drivers/scsi/bfa/
Dbfa_svc.h538 enum bfa_port_topology topo);
/Linux-v4.19/drivers/scsi/qla2xxx/
Dqla_init.c2452 uint16_t loop_id, topo, sw_cap; in qla2x00_isp_firmware() local
2467 &area, &domain, &topo, &sw_cap); in qla2x00_isp_firmware()
4173 uint16_t topo; in qla2x00_configure_hba() local
4186 &loop_id, &al_pa, &area, &domain, &topo, &sw_cap); in qla2x00_configure_hba()
4208 if (topo == 4) { in qla2x00_configure_hba()
4221 switch (topo) { in qla2x00_configure_hba()
4252 "HBA in unknown topology %x, using NL.\n", topo); in qla2x00_configure_hba()
4265 if (!(topo == 2 && ha->flags.n2n_bigger)) in qla2x00_configure_hba()
Dqla_bsg.c2237 uint16_t loop_id, topo, sw_cap; in qla27xx_get_bbcr_data() local
2253 &area, &domain, &topo, &sw_cap); in qla27xx_get_bbcr_data()
/Linux-v4.19/drivers/ntb/hw/idt/
Dntb_hw_idt.c2073 ndev->ntb.topo = NTB_TOPO_SWITCH; in idt_register_device()
/Linux-v4.19/tools/power/pm-graph/
Dsleepgraph.py4130 topo = data.deviceTopology()
4131 detail += ' devtable[%d] = "%s";\n' % (data.testnumber, topo)
/Linux-v4.19/
DCREDITS3275 W: http://topo.math.u-psud.fr/~sands