Lines Matching defs:ipd_port
59 * @ipd_port: Octeon IPD port to get the MII address for.
63 int cvmx_helper_board_get_mii_address(int ipd_port)
74 if ((ipd_port >= 16) && (ipd_port < 20))
75 return ipd_port - 16;
88 if (ipd_port == 0)
90 else if (ipd_port == 1)
96 if ((ipd_port >= 0) && (ipd_port < 4))
97 return ipd_port;
98 else if ((ipd_port >= 16) && (ipd_port < 20))
99 return ipd_port - 16 + 4;
109 if ((ipd_port >= CVMX_HELPER_BOARD_MGMT_IPD_PORT) &&
110 (ipd_port < (CVMX_HELPER_BOARD_MGMT_IPD_PORT + 2)))
111 return ipd_port - CVMX_HELPER_BOARD_MGMT_IPD_PORT;
116 if ((ipd_port >= 0) && (ipd_port < 4))
117 return ipd_port + 2;
124 if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT)
130 if ((ipd_port >= 0) && (ipd_port < 4))
131 return ipd_port + 1;
135 if (ipd_port == 2)
141 if ((ipd_port >= 16) && (ipd_port < 20))
142 return ipd_port - 16 + 1;
149 if (ipd_port >= 0 && ipd_port <= 3)
150 return (ipd_port + 0x1f) & 0x1f;
154 if (ipd_port >= 0 && ipd_port <= 1)
155 return ipd_port + 1;
166 if (ipd_port >= 0 && ipd_port <= 3)
167 return ipd_port;
168 else if (ipd_port >= 16 && ipd_port <= 19)
169 return ipd_port - 16 + 4;
173 if (ipd_port >= 0 && ipd_port <= 2)
174 return 7 - ipd_port;
178 if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT)
204 * @ipd_port: IPD input port associated with the port we want to get link
210 union cvmx_helper_link_info __cvmx_helper_board_link_get(int ipd_port)
239 int interface = cvmx_helper_get_interface_num(ipd_port);
240 int index = cvmx_helper_get_interface_index_num(ipd_port);