Lines Matching refs:port
116 static int fm_port_to_index(enum fm_port port) in fm_port_to_index() argument
121 if (fm_info[i].port == port) in fm_port_to_index()
140 enet_if = fman_port_enet_if(fm_info[i].port); in fman_enet_init()
152 void fm_disable_port(enum fm_port port) in fm_disable_port() argument
154 int i = fm_port_to_index(port); in fm_disable_port()
161 fman_disable_port(port); in fm_disable_port()
165 void fm_enable_port(enum fm_port port) in fm_enable_port() argument
167 int i = fm_port_to_index(port); in fm_enable_port()
173 fman_enable_port(port); in fm_enable_port()
176 void fm_info_set_mdio(enum fm_port port, struct mii_dev *bus) in fm_info_set_mdio() argument
178 int i = fm_port_to_index(port); in fm_info_set_mdio()
186 void fm_info_set_phy_address(enum fm_port port, int address) in fm_info_set_phy_address() argument
188 int i = fm_port_to_index(port); in fm_info_set_phy_address()
202 int fm_info_get_phy_address(enum fm_port port) in fm_info_get_phy_address() argument
204 int i = fm_port_to_index(port); in fm_info_get_phy_address()
216 phy_interface_t fm_info_get_enet_if(enum fm_port port) in fm_info_get_enet_if() argument
218 int i = fm_port_to_index(port); in fm_info_get_enet_if()
231 enum fm_port port, int offset) in __def_board_ft_fman_fixup_port() argument
237 enum fm_port port, int offset)
256 board_ft_fman_fixup_port(blob, prop, paddr, info->port, off); in ft_fixup_port()
268 if (((info->port == FM1_DTSEC9) && (PORT_IS_ENABLED(FM1_10GEC1))) || in ft_fixup_port()
269 ((info->port == FM1_DTSEC10) && (PORT_IS_ENABLED(FM1_10GEC2))) || in ft_fixup_port()
270 ((info->port == FM1_DTSEC1) && (PORT_IS_ENABLED(FM1_10GEC3))) || in ft_fixup_port()
271 ((info->port == FM1_DTSEC2) && (PORT_IS_ENABLED(FM1_10GEC4))) || in ft_fixup_port()
272 ((info->port == FM1_10GEC1) && (PORT_IS_ENABLED(FM1_DTSEC9))) || in ft_fixup_port()
273 ((info->port == FM1_10GEC2) && (PORT_IS_ENABLED(FM1_DTSEC10))) || in ft_fixup_port()
274 ((info->port == FM1_10GEC3) && (PORT_IS_ENABLED(FM1_DTSEC1))) || in ft_fixup_port()
275 ((info->port == FM1_10GEC4) && (PORT_IS_ENABLED(FM1_DTSEC2))) in ft_fixup_port()
278 ((info->port == FM2_DTSEC9) && (PORT_IS_ENABLED(FM2_10GEC1))) || in ft_fixup_port()
279 ((info->port == FM2_DTSEC10) && (PORT_IS_ENABLED(FM2_10GEC2))) || in ft_fixup_port()
280 ((info->port == FM2_10GEC1) && (PORT_IS_ENABLED(FM2_DTSEC9))) || in ft_fixup_port()
281 ((info->port == FM2_10GEC2) && (PORT_IS_ENABLED(FM2_DTSEC10))) in ft_fixup_port()
285 if (((info->port == FM1_DTSEC1) && (PORT_IS_ENABLED(FM1_10GEC1))) || in ft_fixup_port()
286 ((info->port == FM1_DTSEC2) && (PORT_IS_ENABLED(FM1_10GEC2))) || in ft_fixup_port()
287 ((info->port == FM1_DTSEC3) && (PORT_IS_ENABLED(FM1_10GEC3))) || in ft_fixup_port()
288 ((info->port == FM1_DTSEC4) && (PORT_IS_ENABLED(FM1_10GEC4))) || in ft_fixup_port()
289 ((info->port == FM1_10GEC1) && (PORT_IS_ENABLED(FM1_DTSEC1))) || in ft_fixup_port()
290 ((info->port == FM1_10GEC2) && (PORT_IS_ENABLED(FM1_DTSEC2))) || in ft_fixup_port()
291 ((info->port == FM1_10GEC3) && (PORT_IS_ENABLED(FM1_DTSEC3))) || in ft_fixup_port()
292 ((info->port == FM1_10GEC4) && (PORT_IS_ENABLED(FM1_DTSEC4))) in ft_fixup_port()