Searched refs:ipd_port (Results 1 – 1 of 1) sorted by relevance
46 static inline int INTERFACE(int ipd_port) in INTERFACE() argument48 if (ipd_port < 32) /* Interface 0 or 1 for RGMII,GMII,SPI, etc */ in INTERFACE()49 return ipd_port >> 4; in INTERFACE()50 else if (ipd_port < 36) /* Interface 2 for NPI */ in INTERFACE()52 else if (ipd_port < 40) /* Interface 3 for loopback */ in INTERFACE()54 else if (ipd_port == 40) /* Non existent interface for POW0 */ in INTERFACE()56 panic("Illegal ipd_port %d passed to INTERFACE\n", ipd_port); in INTERFACE()65 static inline int INDEX(int ipd_port) in INDEX() argument67 if (ipd_port < 32) in INDEX()68 return ipd_port & 15; in INDEX()[all …]