Lines Matching refs:port_topology

511 static int ice_map_port_topology_for_sfp(struct ice_port_topology *port_topology,  in ice_map_port_topology_for_sfp()  argument
516 port_topology->pcs_quad_select = 0; in ice_map_port_topology_for_sfp()
517 port_topology->pcs_port = 0; in ice_map_port_topology_for_sfp()
518 port_topology->primary_serdes_lane = 0; in ice_map_port_topology_for_sfp()
521 port_topology->pcs_quad_select = 1; in ice_map_port_topology_for_sfp()
522 port_topology->pcs_port = 0; in ice_map_port_topology_for_sfp()
524 port_topology->primary_serdes_lane = 2; in ice_map_port_topology_for_sfp()
526 port_topology->primary_serdes_lane = 4; in ice_map_port_topology_for_sfp()
529 port_topology->pcs_quad_select = 0; in ice_map_port_topology_for_sfp()
530 port_topology->pcs_port = 1; in ice_map_port_topology_for_sfp()
531 port_topology->primary_serdes_lane = 1; in ice_map_port_topology_for_sfp()
534 port_topology->pcs_quad_select = 1; in ice_map_port_topology_for_sfp()
535 port_topology->pcs_port = 1; in ice_map_port_topology_for_sfp()
537 port_topology->primary_serdes_lane = 3; in ice_map_port_topology_for_sfp()
539 port_topology->primary_serdes_lane = 5; in ice_map_port_topology_for_sfp()
542 port_topology->pcs_quad_select = 0; in ice_map_port_topology_for_sfp()
543 port_topology->pcs_port = 2; in ice_map_port_topology_for_sfp()
544 port_topology->primary_serdes_lane = 2; in ice_map_port_topology_for_sfp()
547 port_topology->pcs_quad_select = 1; in ice_map_port_topology_for_sfp()
548 port_topology->pcs_port = 2; in ice_map_port_topology_for_sfp()
549 port_topology->primary_serdes_lane = 6; in ice_map_port_topology_for_sfp()
552 port_topology->pcs_quad_select = 0; in ice_map_port_topology_for_sfp()
553 port_topology->pcs_port = 3; in ice_map_port_topology_for_sfp()
554 port_topology->primary_serdes_lane = 3; in ice_map_port_topology_for_sfp()
557 port_topology->pcs_quad_select = 1; in ice_map_port_topology_for_sfp()
558 port_topology->pcs_port = 3; in ice_map_port_topology_for_sfp()
559 port_topology->primary_serdes_lane = 7; in ice_map_port_topology_for_sfp()
568 static int ice_map_port_topology_for_qsfp(struct ice_port_topology *port_topology, in ice_map_port_topology_for_qsfp() argument
573 port_topology->pcs_quad_select = 0; in ice_map_port_topology_for_qsfp()
574 port_topology->pcs_port = 0; in ice_map_port_topology_for_qsfp()
575 port_topology->primary_serdes_lane = 0; in ice_map_port_topology_for_qsfp()
578 port_topology->pcs_quad_select = 1; in ice_map_port_topology_for_qsfp()
579 port_topology->pcs_port = 0; in ice_map_port_topology_for_qsfp()
581 port_topology->primary_serdes_lane = 2; in ice_map_port_topology_for_qsfp()
583 port_topology->primary_serdes_lane = 4; in ice_map_port_topology_for_qsfp()
586 port_topology->pcs_quad_select = 0; in ice_map_port_topology_for_qsfp()
587 port_topology->pcs_port = 1; in ice_map_port_topology_for_qsfp()
588 port_topology->primary_serdes_lane = 1; in ice_map_port_topology_for_qsfp()
591 port_topology->pcs_quad_select = 1; in ice_map_port_topology_for_qsfp()
592 port_topology->pcs_port = 1; in ice_map_port_topology_for_qsfp()
594 port_topology->primary_serdes_lane = 3; in ice_map_port_topology_for_qsfp()
596 port_topology->primary_serdes_lane = 5; in ice_map_port_topology_for_qsfp()
599 port_topology->pcs_quad_select = 0; in ice_map_port_topology_for_qsfp()
600 port_topology->pcs_port = 2; in ice_map_port_topology_for_qsfp()
601 port_topology->primary_serdes_lane = 2; in ice_map_port_topology_for_qsfp()
604 port_topology->pcs_quad_select = 1; in ice_map_port_topology_for_qsfp()
605 port_topology->pcs_port = 2; in ice_map_port_topology_for_qsfp()
606 port_topology->primary_serdes_lane = 6; in ice_map_port_topology_for_qsfp()
609 port_topology->pcs_quad_select = 0; in ice_map_port_topology_for_qsfp()
610 port_topology->pcs_port = 3; in ice_map_port_topology_for_qsfp()
611 port_topology->primary_serdes_lane = 3; in ice_map_port_topology_for_qsfp()
614 port_topology->pcs_quad_select = 1; in ice_map_port_topology_for_qsfp()
615 port_topology->pcs_port = 3; in ice_map_port_topology_for_qsfp()
616 port_topology->primary_serdes_lane = 7; in ice_map_port_topology_for_qsfp()
635 struct ice_port_topology *port_topology) in ice_get_port_topology() argument
656 port_topology->serdes_lane_count = 1; in ice_get_port_topology()
657 err = ice_map_port_topology_for_sfp(port_topology, lport, is_muxed); in ice_get_port_topology()
669 port_topology->serdes_lane_count = 4; in ice_get_port_topology()
671 port_topology->serdes_lane_count = 2; in ice_get_port_topology()
673 port_topology->serdes_lane_count = 1; in ice_get_port_topology()
675 err = ice_map_port_topology_for_qsfp(port_topology, lport, is_muxed); in ice_get_port_topology()
779 struct ice_port_topology port_topology = {}; in ice_get_extended_regs() local
794 err = ice_get_port_topology(hw, pi->lport, &port_topology); in ice_get_extended_regs()
797 if (port_topology.serdes_lane_count > 4) in ice_get_extended_regs()
803 for (i = 0; i < port_topology.serdes_lane_count; i++) { in ice_get_extended_regs()
806 serdes_num = port_topology.primary_serdes_lane + i; in ice_get_extended_regs()
4690 struct ice_port_topology port_topology; in ice_get_fec_stats() local
4704 err = ice_get_port_topology(hw, pi->lport, &port_topology); in ice_get_fec_stats()
4712 err = ice_get_port_fec_stats(hw, port_topology.pcs_quad_select, in ice_get_fec_stats()
4713 port_topology.pcs_port, fec_stats); in ice_get_fec_stats()