Lines Matching refs:ipd_port

62 int cvmx_helper_board_get_mii_address(int ipd_port)  in cvmx_helper_board_get_mii_address()  argument
73 if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
74 return ipd_port - 16; in cvmx_helper_board_get_mii_address()
87 if (ipd_port == 0) in cvmx_helper_board_get_mii_address()
89 else if (ipd_port == 1) in cvmx_helper_board_get_mii_address()
95 if ((ipd_port >= 0) && (ipd_port < 4)) in cvmx_helper_board_get_mii_address()
96 return ipd_port; in cvmx_helper_board_get_mii_address()
97 else if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
98 return ipd_port - 16 + 4; in cvmx_helper_board_get_mii_address()
108 if ((ipd_port >= CVMX_HELPER_BOARD_MGMT_IPD_PORT) && in cvmx_helper_board_get_mii_address()
109 (ipd_port < (CVMX_HELPER_BOARD_MGMT_IPD_PORT + 2))) in cvmx_helper_board_get_mii_address()
110 return ipd_port - CVMX_HELPER_BOARD_MGMT_IPD_PORT; in cvmx_helper_board_get_mii_address()
115 if ((ipd_port >= 0) && (ipd_port < 4)) in cvmx_helper_board_get_mii_address()
116 return ipd_port + 2; in cvmx_helper_board_get_mii_address()
123 if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT) in cvmx_helper_board_get_mii_address()
129 if ((ipd_port >= 0) && (ipd_port < 4)) in cvmx_helper_board_get_mii_address()
130 return ipd_port + 1; in cvmx_helper_board_get_mii_address()
134 if (ipd_port == 2) in cvmx_helper_board_get_mii_address()
140 if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
141 return ipd_port - 16 + 1; in cvmx_helper_board_get_mii_address()
148 if (ipd_port >= 0 && ipd_port <= 3) in cvmx_helper_board_get_mii_address()
149 return (ipd_port + 0x1f) & 0x1f; in cvmx_helper_board_get_mii_address()
153 if (ipd_port >= 0 && ipd_port <= 1) in cvmx_helper_board_get_mii_address()
154 return ipd_port + 1; in cvmx_helper_board_get_mii_address()
165 if (ipd_port >= 0 && ipd_port <= 3) in cvmx_helper_board_get_mii_address()
166 return ipd_port; in cvmx_helper_board_get_mii_address()
167 else if (ipd_port >= 16 && ipd_port <= 19) in cvmx_helper_board_get_mii_address()
168 return ipd_port - 16 + 4; in cvmx_helper_board_get_mii_address()
172 if (ipd_port >= 0 && ipd_port <= 2) in cvmx_helper_board_get_mii_address()
173 return 7 - ipd_port; in cvmx_helper_board_get_mii_address()
177 if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT) in cvmx_helper_board_get_mii_address()
209 cvmx_helper_link_info_t __cvmx_helper_board_link_get(int ipd_port) in __cvmx_helper_board_link_get() argument
232 if (ipd_port == 1) { in __cvmx_helper_board_link_get()
242 if (ipd_port == 1) { in __cvmx_helper_board_link_get()
251 if (ipd_port == 2) { in __cvmx_helper_board_link_get()
276 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_board_link_get()
277 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_board_link_get()