Lines Matching refs:port

117 static int fm_port_to_index(enum fm_port port)  in fm_port_to_index()  argument
122 if (fm_info[i].port == port) in fm_port_to_index()
141 enet_if = fman_port_enet_if(fm_info[i].port); in fman_enet_init()
153 void fm_disable_port(enum fm_port port) in fm_disable_port() argument
155 int i = fm_port_to_index(port); in fm_disable_port()
162 fman_disable_port(port); in fm_disable_port()
166 void fm_enable_port(enum fm_port port) in fm_enable_port() argument
168 int i = fm_port_to_index(port); in fm_enable_port()
174 fman_enable_port(port); in fm_enable_port()
177 void fm_info_set_mdio(enum fm_port port, struct mii_dev *bus) in fm_info_set_mdio() argument
179 int i = fm_port_to_index(port); in fm_info_set_mdio()
187 void fm_info_set_phy_address(enum fm_port port, int address) in fm_info_set_phy_address() argument
189 int i = fm_port_to_index(port); in fm_info_set_phy_address()
203 int fm_info_get_phy_address(enum fm_port port) in fm_info_get_phy_address() argument
205 int i = fm_port_to_index(port); in fm_info_get_phy_address()
217 phy_interface_t fm_info_get_enet_if(enum fm_port port) in fm_info_get_enet_if() argument
219 int i = fm_port_to_index(port); in fm_info_get_enet_if()
232 enum fm_port port, int offset) in __def_board_ft_fman_fixup_port() argument
238 enum fm_port port, int offset)
257 board_ft_fman_fixup_port(blob, prop, paddr, info->port, off); in ft_fixup_port()
269 if (((info->port == FM1_DTSEC9) && (PORT_IS_ENABLED(FM1_10GEC1))) || in ft_fixup_port()
270 ((info->port == FM1_DTSEC10) && (PORT_IS_ENABLED(FM1_10GEC2))) || in ft_fixup_port()
271 ((info->port == FM1_DTSEC1) && (PORT_IS_ENABLED(FM1_10GEC3))) || in ft_fixup_port()
272 ((info->port == FM1_DTSEC2) && (PORT_IS_ENABLED(FM1_10GEC4))) || in ft_fixup_port()
273 ((info->port == FM1_10GEC1) && (PORT_IS_ENABLED(FM1_DTSEC9))) || in ft_fixup_port()
274 ((info->port == FM1_10GEC2) && (PORT_IS_ENABLED(FM1_DTSEC10))) || in ft_fixup_port()
275 ((info->port == FM1_10GEC3) && (PORT_IS_ENABLED(FM1_DTSEC1))) || in ft_fixup_port()
276 ((info->port == FM1_10GEC4) && (PORT_IS_ENABLED(FM1_DTSEC2))) in ft_fixup_port()
279 ((info->port == FM2_DTSEC9) && (PORT_IS_ENABLED(FM2_10GEC1))) || in ft_fixup_port()
280 ((info->port == FM2_DTSEC10) && (PORT_IS_ENABLED(FM2_10GEC2))) || in ft_fixup_port()
281 ((info->port == FM2_10GEC1) && (PORT_IS_ENABLED(FM2_DTSEC9))) || in ft_fixup_port()
282 ((info->port == FM2_10GEC2) && (PORT_IS_ENABLED(FM2_DTSEC10))) in ft_fixup_port()
286 if (((info->port == FM1_DTSEC1) && (PORT_IS_ENABLED(FM1_10GEC1))) || in ft_fixup_port()
287 ((info->port == FM1_DTSEC2) && (PORT_IS_ENABLED(FM1_10GEC2))) || in ft_fixup_port()
288 ((info->port == FM1_DTSEC3) && (PORT_IS_ENABLED(FM1_10GEC3))) || in ft_fixup_port()
289 ((info->port == FM1_DTSEC4) && (PORT_IS_ENABLED(FM1_10GEC4))) || in ft_fixup_port()
290 ((info->port == FM1_10GEC1) && (PORT_IS_ENABLED(FM1_DTSEC1))) || in ft_fixup_port()
291 ((info->port == FM1_10GEC2) && (PORT_IS_ENABLED(FM1_DTSEC2))) || in ft_fixup_port()
292 ((info->port == FM1_10GEC3) && (PORT_IS_ENABLED(FM1_DTSEC3))) || in ft_fixup_port()
293 ((info->port == FM1_10GEC4) && (PORT_IS_ENABLED(FM1_DTSEC4))) in ft_fixup_port()