Lines Matching refs:port
37 static int is_device_disabled(enum fm_port port) in is_device_disabled() argument
42 return port_to_devdisr[port] & devdisr2; in is_device_disabled()
45 void fman_disable_port(enum fm_port port) in fman_disable_port() argument
49 setbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_disable_port()
52 void fman_enable_port(enum fm_port port) in fman_enable_port() argument
56 clrbits_be32(&gur->devdisr2, port_to_devdisr[port]); in fman_enable_port()
59 phy_interface_t fman_port_enet_if(enum fm_port port) in fman_port_enet_if() argument
64 if (is_device_disabled(port)) in fman_port_enet_if()
67 if ((port == FM1_10GEC1 || port == FM1_10GEC2) && in fman_port_enet_if()
74 if ((port == FM1_DTSEC9 || port == FM1_DTSEC10) && in fman_port_enet_if()
79 if ((port == FM2_10GEC1 || port == FM2_10GEC2) && in fman_port_enet_if()
94 if ((port == FM2_DTSEC5) && ((rcwsr13 & FSL_CORENET_RCWSR13_EC1) == in fman_port_enet_if()
98 if ((port == FM1_DTSEC5) && ((rcwsr13 & FSL_CORENET_RCWSR13_EC2) == in fman_port_enet_if()
102 if ((port == FM2_DTSEC6) && ((rcwsr13 & FSL_CORENET_RCWSR13_EC2) == in fman_port_enet_if()
105 switch (port) { in fman_port_enet_if()
114 if (is_serdes_configured(SGMII_FM1_DTSEC1 + port - FM1_DTSEC1)) in fman_port_enet_if()
125 if (is_serdes_configured(SGMII_FM2_DTSEC1 + port - FM2_DTSEC1)) in fman_port_enet_if()
133 switch (port) { in fman_port_enet_if()