Lines Matching defs:topology

1322  * Chips that support extended topology information require the driver to
1323 * reflect topology information in the opposite direction. This is
1374 struct psp_xgmi_topology_info *topology,
1383 if (!topology || topology->num_nodes > TA_XGMI__MAX_CONNECTED_NODES)
1390 /* Fill in the shared memory with topology information as input */
1396 topology_info_input->nodes[i].node_id = topology->nodes[i].node_id;
1397 topology_info_input->nodes[i].num_hops = topology->nodes[i].num_hops;
1398 topology_info_input->nodes[i].is_sharing_enabled = topology->nodes[i].is_sharing_enabled;
1399 topology_info_input->nodes[i].sdma_engine = topology->nodes[i].sdma_engine;
1402 /* Invoke xgmi ta to get the topology information */
1407 /* Read the output topology information from the shared memory */
1409 topology->num_nodes = xgmi_cmd->xgmi_out_message.get_topology_info.num_nodes;
1410 for (i = 0; i < topology->num_nodes; i++) {
1413 topology->nodes[i].num_hops = topology_info_output->nodes[i].num_hops;
1417 topology->nodes[i].node_id = topology_info_output->nodes[i].node_id;
1418 topology->nodes[i].is_sharing_enabled =
1420 topology->nodes[i].sdma_engine =
1441 for (i = 0; i < topology->num_nodes; i++) {
1443 topology->nodes[i].num_links = get_extended_data ?
1444 topology->nodes[i].num_links +
1446 ((requires_reflection && topology->nodes[i].num_links) ? topology->nodes[i].num_links :
1449 /* reflect the topology information for bi-directionality */
1450 if (requires_reflection && topology->nodes[i].num_hops)
1451 psp_xgmi_reflect_topology_info(psp, topology->nodes[i]);
1460 struct psp_xgmi_topology_info *topology)
1466 if (!topology || topology->num_nodes > TA_XGMI__MAX_CONNECTED_NODES)
1477 topology_info_input->nodes[i].node_id = topology->nodes[i].node_id;
1478 topology_info_input->nodes[i].num_hops = topology->nodes[i].num_hops;
1480 topology_info_input->nodes[i].sdma_engine = topology->nodes[i].sdma_engine;
1483 /* Invoke xgmi ta to set topology information */