Lines Matching refs:if_mode
13 static int phy_mode(enum dpmac_eth_if eth_if, phy_interface_t *if_mode) in phy_mode() argument
15 *if_mode = PHY_INTERFACE_MODE_NA; in phy_mode()
19 *if_mode = PHY_INTERFACE_MODE_RGMII; in phy_mode()
22 *if_mode = PHY_INTERFACE_MODE_USXGMII; in phy_mode()
25 *if_mode = PHY_INTERFACE_MODE_QSGMII; in phy_mode()
28 *if_mode = PHY_INTERFACE_MODE_SGMII; in phy_mode()
31 *if_mode = PHY_INTERFACE_MODE_10GBASER; in phy_mode()
79 phy_interface_t if_mode; in dpaa2_mac_get_if_mode() local
86 err = phy_mode(attr.eth_if, &if_mode); in dpaa2_mac_get_if_mode()
88 return if_mode; in dpaa2_mac_get_if_mode()
103 (mac->if_mode == PHY_INTERFACE_MODE_SGMII || in dpaa2_mac_phy_mode_mismatch()
104 mac->if_mode == PHY_INTERFACE_MODE_1000BASEX)) in dpaa2_mac_phy_mode_mismatch()
106 return interface != mac->if_mode; in dpaa2_mac_phy_mode_mismatch()
115 return (interface != mac->if_mode); in dpaa2_mac_phy_mode_mismatch()
317 mac->if_mode = err; in dpaa2_mac_connect()
324 (mac->if_mode == PHY_INTERFACE_MODE_RGMII_ID || in dpaa2_mac_connect()
325 mac->if_mode == PHY_INTERFACE_MODE_RGMII_RXID || in dpaa2_mac_connect()
326 mac->if_mode == PHY_INTERFACE_MODE_RGMII_TXID)) { in dpaa2_mac_connect()
343 dpmac_node, mac->if_mode, in dpaa2_mac_connect()