Lines Matching refs:ipd_port

56 cvmx_helper_link_info_t(*cvmx_override_board_link_get) (int ipd_port) =
75 int cvmx_helper_board_get_mii_address(int ipd_port) in cvmx_helper_board_get_mii_address() argument
86 if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
87 return ipd_port - 16; in cvmx_helper_board_get_mii_address()
100 if (ipd_port == 0) in cvmx_helper_board_get_mii_address()
102 else if (ipd_port == 1) in cvmx_helper_board_get_mii_address()
108 if ((ipd_port >= 0) && (ipd_port < 4)) in cvmx_helper_board_get_mii_address()
109 return ipd_port; in cvmx_helper_board_get_mii_address()
110 else if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
111 return ipd_port - 16 + 4; in cvmx_helper_board_get_mii_address()
121 if ((ipd_port >= CVMX_HELPER_BOARD_MGMT_IPD_PORT) && in cvmx_helper_board_get_mii_address()
122 (ipd_port < (CVMX_HELPER_BOARD_MGMT_IPD_PORT + 2))) in cvmx_helper_board_get_mii_address()
123 return ipd_port - CVMX_HELPER_BOARD_MGMT_IPD_PORT; in cvmx_helper_board_get_mii_address()
128 if ((ipd_port >= 0) && (ipd_port < 4)) in cvmx_helper_board_get_mii_address()
129 return ipd_port + 2; in cvmx_helper_board_get_mii_address()
136 if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT) in cvmx_helper_board_get_mii_address()
142 if ((ipd_port >= 0) && (ipd_port < 4)) in cvmx_helper_board_get_mii_address()
143 return ipd_port + 1; in cvmx_helper_board_get_mii_address()
147 if (ipd_port == 2) in cvmx_helper_board_get_mii_address()
153 if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
154 return ipd_port - 16 + 1; in cvmx_helper_board_get_mii_address()
161 if (ipd_port >= 0 && ipd_port <= 3) in cvmx_helper_board_get_mii_address()
162 return (ipd_port + 0x1f) & 0x1f; in cvmx_helper_board_get_mii_address()
166 if (ipd_port >= 0 && ipd_port <= 1) in cvmx_helper_board_get_mii_address()
167 return ipd_port + 1; in cvmx_helper_board_get_mii_address()
178 if (ipd_port >= 0 && ipd_port <= 3) in cvmx_helper_board_get_mii_address()
179 return ipd_port; in cvmx_helper_board_get_mii_address()
180 else if (ipd_port >= 16 && ipd_port <= 19) in cvmx_helper_board_get_mii_address()
181 return ipd_port - 16 + 4; in cvmx_helper_board_get_mii_address()
211 cvmx_helper_link_info_t __cvmx_helper_board_link_get(int ipd_port) in __cvmx_helper_board_link_get() argument
219 return cvmx_override_board_link_get(ipd_port); in __cvmx_helper_board_link_get()
240 if (ipd_port == 1) { in __cvmx_helper_board_link_get()
250 if (ipd_port == 1) { in __cvmx_helper_board_link_get()
260 if (ipd_port == 2) { in __cvmx_helper_board_link_get()
274 phy_addr = cvmx_helper_board_get_mii_address(ipd_port); in __cvmx_helper_board_link_get()
386 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_board_link_get()
387 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_board_link_get()