Lines Matching refs:portmode

288 	if (nxgep->mac.portmode == PORT_10G_SERDES &&  in nxge_get_xcvr_type()
294 nxgep->mac.portmode = 0; in nxge_get_xcvr_type()
302 nxgep->mac.portmode = PORT_HSP_MODE; in nxge_get_xcvr_type()
308 nxgep->mac.portmode = PORT_HSP_MODE; in nxge_get_xcvr_type()
314 nxgep->mac.portmode = PORT_HSP_MODE; in nxge_get_xcvr_type()
321 if (nxgep->mac.portmode == PORT_HSP_MODE) { in nxge_get_xcvr_type()
338 nxgep->mac.portmode = PORT_10G_SERDES; in nxge_get_xcvr_type()
345 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_get_xcvr_type()
361 nxgep->mac.portmode = PORT_10G_SERDES; in nxge_get_xcvr_type()
366 nxgep->mac.portmode = PORT_1G_SERDES; in nxge_get_xcvr_type()
370 nxgep->mac.portmode = PORT_1G_COPPER; in nxge_get_xcvr_type()
374 nxgep->mac.portmode = PORT_1G_FIBER; in nxge_get_xcvr_type()
393 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_get_xcvr_type()
409 nxgep->mac.portmode)); in nxge_get_xcvr_type()
446 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_get_xcvr_type()
453 nxgep->mac.portmode = PORT_1G_COPPER; in nxge_get_xcvr_type()
458 nxgep->mac.portmode = PORT_1G_FIBER; in nxge_get_xcvr_type()
468 nxgep->mac.portmode = PORT_10G_SERDES; in nxge_get_xcvr_type()
473 nxgep->mac.portmode = PORT_1G_SERDES; in nxge_get_xcvr_type()
489 nxgep->mac.portmode)); in nxge_get_xcvr_type()
517 nxgep->mac.portmode = PORT_1G_COPPER; in nxge_get_xcvr_type()
520 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_get_xcvr_type()
523 nxgep->mac.portmode = PORT_1G_FIBER; in nxge_get_xcvr_type()
533 nxgep->mac.portmode = PORT_10G_SERDES; in nxge_get_xcvr_type()
536 nxgep->mac.portmode = PORT_1G_SERDES; in nxge_get_xcvr_type()
546 "Got phy type [0x%x] from VPD", nxgep->mac.portmode)); in nxge_get_xcvr_type()
585 switch (nxgep->mac.portmode) { in nxge_setup_xcvr_table()
591 (nxgep->mac.portmode == PORT_1G_FIBER) ? "Fiber" : in nxge_setup_xcvr_table()
603 (nxgep->mac.portmode == PORT_10G_FIBER) ? "Fiber" : in nxge_setup_xcvr_table()
604 ((nxgep->mac.portmode == PORT_10G_COPPER) ? in nxge_setup_xcvr_table()
633 if (nxgep->mac.portmode == 0) { in nxge_setup_xcvr_table()
654 nxgep->mac.portmode = PORT_1G_COPPER; in nxge_setup_xcvr_table()
657 nxgep->mac.portmode = PORT_10G_COPPER; in nxge_setup_xcvr_table()
660 nxgep->mac.portmode = PORT_1G_FIBER; in nxge_setup_xcvr_table()
663 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_setup_xcvr_table()
666 nxgep->mac.portmode = PORT_1G_SERDES; in nxge_setup_xcvr_table()
669 nxgep->mac.portmode = PORT_10G_SERDES; in nxge_setup_xcvr_table()
673 nxgep->mac.portmode = PORT_1G_RGMII_FIBER; in nxge_setup_xcvr_table()
705 switch (nxgep->mac.portmode) { in nxge_setup_xcvr_table()
744 (nxgep->mac.portmode == PORT_1G_COPPER) ? in nxge_setup_xcvr_table()
772 (nxgep->mac.portmode == PORT_1G_FIBER) ? in nxge_setup_xcvr_table()
800 (nxgep->mac.portmode == PORT_10G_FIBER) ? in nxge_setup_xcvr_table()
817 if (nxgep->mac.portmode == PORT_10G_FIBER || in nxge_setup_xcvr_table()
818 nxgep->mac.portmode == PORT_10G_COPPER) { in nxge_setup_xcvr_table()
954 ((nxgep->mac.portmode == PORT_1G_SERDES) || in nxge_mac_init()
955 (nxgep->mac.portmode == PORT_1G_TN1010) || in nxge_mac_init()
956 (nxgep->mac.portmode == PORT_1G_FIBER)) && in nxge_mac_init()
981 nxge_port_mode_t portmode; in nxge_link_init() local
991 portmode = nxgep->mac.portmode; in nxge_link_init()
998 if (nxgep->niu_type == N2_NIU && (portmode != PORT_10G_SERDES) && in nxge_link_init()
999 (portmode != PORT_10G_TN1010) && in nxge_link_init()
1000 (portmode != PORT_1G_TN1010) && in nxge_link_init()
1001 (portmode != PORT_1G_SERDES)) { in nxge_link_init()
1036 nxge_port_mode_t portmode; in nxge_xif_init() local
1046 portmode = nxgep->mac.portmode; in nxge_xif_init()
1051 ((nxgep->mac.portmode == PORT_1G_SERDES) || in nxge_xif_init()
1052 (nxgep->mac.portmode == PORT_1G_TN1010) || in nxge_xif_init()
1053 (nxgep->mac.portmode == PORT_1G_FIBER)) && in nxge_xif_init()
1064 if ((portmode == PORT_10G_FIBER) || in nxge_xif_init()
1065 (portmode == PORT_10G_COPPER) || in nxge_xif_init()
1066 (portmode == PORT_10G_TN1010) || in nxge_xif_init()
1067 (portmode == PORT_HSP_MODE) || in nxge_xif_init()
1068 (portmode == PORT_10G_SERDES)) in nxge_xif_init()
1072 if (portmode == PORT_1G_COPPER) { in nxge_xif_init()
1085 if ((portmode == PORT_10G_FIBER) || in nxge_xif_init()
1086 (portmode == PORT_10G_COPPER) || in nxge_xif_init()
1087 (portmode == PORT_10G_TN1010) || in nxge_xif_init()
1088 (portmode == PORT_1G_TN1010) || in nxge_xif_init()
1089 (portmode == PORT_HSP_MODE) || in nxge_xif_init()
1090 (portmode == PORT_10G_SERDES)) { in nxge_xif_init()
1106 if ((portmode == PORT_10G_FIBER) || in nxge_xif_init()
1107 (portmode == PORT_10G_COPPER) || in nxge_xif_init()
1108 (portmode == PORT_10G_TN1010) || in nxge_xif_init()
1109 (portmode == PORT_HSP_MODE) || in nxge_xif_init()
1110 (portmode == PORT_10G_SERDES)) { in nxge_xif_init()
1122 } else if ((portmode == PORT_1G_FIBER) || in nxge_xif_init()
1123 (portmode == PORT_1G_COPPER) || in nxge_xif_init()
1124 (portmode == PORT_1G_SERDES) || in nxge_xif_init()
1125 (portmode == PORT_1G_TN1010) || in nxge_xif_init()
1126 (portmode == PORT_1G_RGMII_FIBER)) { in nxge_xif_init()
1129 portn, portmode, statsp->mac_stats.link_speed)); in nxge_xif_init()
1142 " for port<%d>", portmode, portn)); in nxge_xif_init()
1152 if ((portmode == PORT_1G_COPPER) || in nxge_xif_init()
1153 (portmode == PORT_1G_RGMII_FIBER)) { in nxge_xif_init()
1190 nxge_port_mode_t portmode; in nxge_pcs_init() local
1198 portmode = nxgep->mac.portmode; in nxge_pcs_init()
1204 if (portmode == PORT_1G_FIBER || in nxge_pcs_init()
1205 portmode == PORT_1G_TN1010 || in nxge_pcs_init()
1206 portmode == PORT_1G_SERDES) { in nxge_pcs_init()
1207 if (portmode == PORT_1G_TN1010) { in nxge_pcs_init()
1232 if (portmode == PORT_1G_TN1010) { in nxge_pcs_init()
1243 } else if (portmode == PORT_10G_FIBER || in nxge_pcs_init()
1244 portmode == PORT_10G_COPPER || in nxge_pcs_init()
1245 portmode == PORT_10G_TN1010 || in nxge_pcs_init()
1246 portmode == PORT_HSP_MODE || in nxge_pcs_init()
1247 portmode == PORT_10G_SERDES) { in nxge_pcs_init()
1282 } else if ((portmode == PORT_1G_COPPER) || in nxge_pcs_init()
1283 (portmode == PORT_1G_RGMII_FIBER)) { in nxge_pcs_init()
1510 if (nxgep->mac.portmode == PORT_1G_TN1010 || in nxge_n2_serdes_init()
1511 nxgep->mac.portmode == PORT_10G_TN1010) { in nxge_n2_serdes_init()
1517 if (nxgep->mac.portmode == PORT_10G_FIBER || in nxge_n2_serdes_init()
1518 nxgep->mac.portmode == PORT_10G_COPPER || in nxge_n2_serdes_init()
1519 nxgep->mac.portmode == PORT_10G_TN1010 || in nxge_n2_serdes_init()
1520 nxgep->mac.portmode == PORT_HSP_MODE || in nxge_n2_serdes_init()
1521 nxgep->mac.portmode == PORT_10G_SERDES) { in nxge_n2_serdes_init()
1571 } else if (nxgep->mac.portmode == PORT_1G_FIBER || in nxge_n2_serdes_init()
1572 nxgep->mac.portmode == PORT_1G_TN1010 || in nxge_n2_serdes_init()
1573 nxgep->mac.portmode == PORT_1G_SERDES) { in nxge_n2_serdes_init()
1737 if (nxgep->mac.portmode == PORT_1G_TN1010 || in nxge_n2_kt_serdes_init()
1738 nxgep->mac.portmode == PORT_10G_TN1010) { in nxge_n2_kt_serdes_init()
1743 if (nxgep->mac.portmode == PORT_10G_FIBER || in nxge_n2_kt_serdes_init()
1744 nxgep->mac.portmode == PORT_10G_COPPER || in nxge_n2_kt_serdes_init()
1745 nxgep->mac.portmode == PORT_10G_TN1010 || in nxge_n2_kt_serdes_init()
1746 nxgep->mac.portmode == PORT_10G_SERDES) { in nxge_n2_kt_serdes_init()
1839 } else if (nxgep->mac.portmode == PORT_1G_FIBER || in nxge_n2_kt_serdes_init()
1840 nxgep->mac.portmode == PORT_1G_TN1010 || in nxge_n2_kt_serdes_init()
1841 nxgep->mac.portmode == PORT_1G_SERDES) { in nxge_n2_kt_serdes_init()
1923 portn, nxgep->mac.portmode)); in nxge_n2_kt_serdes_init()
3634 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_set_nlp2020_param()
3640 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_set_nlp2020_param()
3647 nxgep->mac.portmode = PORT_10G_COPPER; in nxge_set_nlp2020_param()
3655 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_set_nlp2020_param()
3791 if (nxgep->mac.portmode == PORT_10G_SERDES || nxgep->phy_absent) { in nxge_10G_xcvr_init()
3856 if (nxgep->mac.portmode == PORT_1G_SERDES) { in nxge_1G_xcvr_init()
3867 if ((nxgep->mac.portmode == PORT_1G_COPPER) || in nxge_1G_xcvr_init()
3868 (nxgep->mac.portmode == PORT_1G_FIBER)) { in nxge_1G_xcvr_init()
4173 nxge_port_mode_t portmode; in nxge_tx_mac_init() local
4181 portmode = nxgep->mac.portmode; in nxge_tx_mac_init()
4210 if ((portmode == PORT_10G_FIBER) || in nxge_tx_mac_init()
4211 (portmode == PORT_10G_COPPER) || in nxge_tx_mac_init()
4212 (portmode == PORT_10G_TN1010) || in nxge_tx_mac_init()
4213 (portmode == PORT_HSP_MODE) || in nxge_tx_mac_init()
4214 (portmode == PORT_10G_SERDES)) { in nxge_tx_mac_init()
4822 if (nxgep->mac.portmode == PORT_1G_RGMII_FIBER) { in nxge_mii_xcvr_init()
5347 if ((nxgep->mac.portmode == PORT_1G_COPPER) || in nxge_mii_read()
5348 (nxgep->mac.portmode == PORT_1G_RGMII_FIBER)) { in nxge_mii_read()
5352 } else if ((nxgep->mac.portmode == PORT_1G_FIBER) || in nxge_mii_read()
5353 (nxgep->mac.portmode == PORT_1G_SERDES)) { in nxge_mii_read()
5386 if ((nxgep->mac.portmode == PORT_1G_COPPER) || in nxge_mii_write()
5387 (nxgep->mac.portmode == PORT_1G_RGMII_FIBER)) { in nxge_mii_write()
5391 } else if ((nxgep->mac.portmode == PORT_1G_FIBER) || in nxge_mii_write()
5392 (nxgep->mac.portmode == PORT_1G_SERDES)) { in nxge_mii_write()
5540 if (nxgep->mac.portmode == PORT_1G_COPPER && in nxge_mii_check()
5586 if (nxgep->mac.portmode == PORT_1G_COPPER && in nxge_mii_check()
5678 } else if (nxgep->mac.portmode == PORT_1G_RGMII_FIBER) { in nxge_mii_check()
5899 nxge->mac.portmode == PORT_10G_FIBER ? "10g" : "mii", in nxge_check_link_stop()
5943 switch (nxgep->mac.portmode) { in nxge_check_mii_link()
5969 if (nxgep->mac.portmode != PORT_1G_RGMII_FIBER) { in nxge_check_mii_link()
6074 switch (nxgep->mac.portmode) { in nxge_check_10g_link()
6127 nxgep->mac.portmode = PORT_10G_SERDES; in nxge_check_10g_link()
6230 if (nxgep->mac.portmode == PORT_10G_SERDES) { in nxge_check_10g_link()
6304 if ((nxgep->mac.portmode == PORT_10G_FIBER) || in nxge_link_is_up()
6305 (nxgep->mac.portmode == PORT_10G_COPPER) || in nxge_link_is_up()
6306 (nxgep->mac.portmode == PORT_10G_SERDES)) { in nxge_link_is_up()
6323 if (nxgep->mac.portmode == PORT_1G_TN1010 || in nxge_link_is_up()
6324 nxgep->mac.portmode == PORT_10G_TN1010) { in nxge_link_is_up()
6508 if ((nxgep->mac.portmode == PORT_10G_FIBER || in nxge_link_monitor()
6509 nxgep->mac.portmode == PORT_10G_COPPER || in nxge_link_monitor()
6510 nxgep->mac.portmode == PORT_10G_SERDES) && in nxge_link_monitor()
7270 if (nxgep->mac.portmode != PORT_10G_FIBER) { in nxge_check_nlp2020_link()
7271 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_check_nlp2020_link()
7278 if (nxgep->mac.portmode != PORT_10G_FIBER) { in nxge_check_nlp2020_link()
7279 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_check_nlp2020_link()
7288 if (nxgep->mac.portmode != PORT_10G_COPPER) { in nxge_check_nlp2020_link()
7289 nxgep->mac.portmode = PORT_10G_COPPER; in nxge_check_nlp2020_link()
7311 if (nxgep->mac.portmode != PORT_10G_FIBER) { in nxge_check_nlp2020_link()
7312 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_check_nlp2020_link()
8423 nxgep->mac.portmode = PORT_1G_RGMII_FIBER; in nxge_mii_get_link_mode()
8432 mode.value, nxgep->mac.portmode)); in nxge_mii_get_link_mode()
8624 nxgep->mac.portmode = PORT_1G_TN1010; in nxge_set_tn1010_param()
8628 nxgep->mac.portmode = PORT_10G_TN1010; in nxge_set_tn1010_param()