Home
last modified time | relevance | path

Searched refs:ipd_port (Results 1 – 1 of 1) sorted by relevance

/drivers/staging/octeon/
Dethernet-util.h46 static inline int INTERFACE(int ipd_port) in INTERFACE() argument
48 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() argument
67 if (ipd_port < 32) in INDEX()
68 return ipd_port & 15; in INDEX()
[all …]