Lines Matching refs:port
27 static int is_device_disabled(enum fm_port port) in is_device_disabled() argument
32 return port_to_devdisr[port] & devdisr2; in is_device_disabled()
35 void fman_disable_port(enum fm_port port) in fman_disable_port() argument
40 if (port == FM1_DTSEC1) in fman_disable_port()
43 setbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_disable_port()
46 void fman_enable_port(enum fm_port port) in fman_enable_port() argument
50 clrbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_enable_port()
53 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if() argument
58 if (is_device_disabled(port)) in fman_port_enet_if()
61 if ((port == FM1_10GEC1) && (is_serdes_configured(XAUI_FM1))) in fman_port_enet_if()
64 if ((port == FM2_10GEC1) && (is_serdes_configured(XAUI_FM2))) in fman_port_enet_if()
68 if ((port == FM1_DTSEC5) && ((rcwsr11 & FSL_CORENET_RCWSR11_EC1) == in fman_port_enet_if()
72 if ((port == FM1_DTSEC5) && ((rcwsr11 & FSL_CORENET_RCWSR11_EC1) == in fman_port_enet_if()
76 if ((port == FM2_DTSEC5) && ((rcwsr11 & FSL_CORENET_RCWSR11_EC2) == in fman_port_enet_if()
80 if ((port == FM2_DTSEC5) && ((rcwsr11 & FSL_CORENET_RCWSR11_EC2) == in fman_port_enet_if()
84 switch (port) { in fman_port_enet_if()
90 if (is_serdes_configured(SGMII_FM1_DTSEC1 + port - FM1_DTSEC1)) in fman_port_enet_if()
98 if (is_serdes_configured(SGMII_FM2_DTSEC1 + port - FM2_DTSEC1)) in fman_port_enet_if()