Lines Matching refs:ipd_port

63 int cvmx_helper_board_get_mii_address(int ipd_port)  in cvmx_helper_board_get_mii_address()  argument
74 if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
75 return ipd_port - 16; in cvmx_helper_board_get_mii_address()
88 if (ipd_port == 0) in cvmx_helper_board_get_mii_address()
90 else if (ipd_port == 1) in cvmx_helper_board_get_mii_address()
96 if ((ipd_port >= 0) && (ipd_port < 4)) in cvmx_helper_board_get_mii_address()
97 return ipd_port; in cvmx_helper_board_get_mii_address()
98 else if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
99 return ipd_port - 16 + 4; in cvmx_helper_board_get_mii_address()
109 if ((ipd_port >= CVMX_HELPER_BOARD_MGMT_IPD_PORT) && in cvmx_helper_board_get_mii_address()
110 (ipd_port < (CVMX_HELPER_BOARD_MGMT_IPD_PORT + 2))) in cvmx_helper_board_get_mii_address()
111 return ipd_port - CVMX_HELPER_BOARD_MGMT_IPD_PORT; in cvmx_helper_board_get_mii_address()
116 if ((ipd_port >= 0) && (ipd_port < 4)) in cvmx_helper_board_get_mii_address()
117 return ipd_port + 2; in cvmx_helper_board_get_mii_address()
124 if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT) in cvmx_helper_board_get_mii_address()
130 if ((ipd_port >= 0) && (ipd_port < 4)) in cvmx_helper_board_get_mii_address()
131 return ipd_port + 1; in cvmx_helper_board_get_mii_address()
135 if (ipd_port == 2) in cvmx_helper_board_get_mii_address()
141 if ((ipd_port >= 16) && (ipd_port < 20)) in cvmx_helper_board_get_mii_address()
142 return ipd_port - 16 + 1; in cvmx_helper_board_get_mii_address()
149 if (ipd_port >= 0 && ipd_port <= 3) in cvmx_helper_board_get_mii_address()
150 return (ipd_port + 0x1f) & 0x1f; in cvmx_helper_board_get_mii_address()
154 if (ipd_port >= 0 && ipd_port <= 1) in cvmx_helper_board_get_mii_address()
155 return ipd_port + 1; in cvmx_helper_board_get_mii_address()
166 if (ipd_port >= 0 && ipd_port <= 3) in cvmx_helper_board_get_mii_address()
167 return ipd_port; in cvmx_helper_board_get_mii_address()
168 else if (ipd_port >= 16 && ipd_port <= 19) in cvmx_helper_board_get_mii_address()
169 return ipd_port - 16 + 4; in cvmx_helper_board_get_mii_address()
173 if (ipd_port >= 0 && ipd_port <= 2) in cvmx_helper_board_get_mii_address()
174 return 7 - ipd_port; in cvmx_helper_board_get_mii_address()
178 if (ipd_port == CVMX_HELPER_BOARD_MGMT_IPD_PORT) in cvmx_helper_board_get_mii_address()
210 union cvmx_helper_link_info __cvmx_helper_board_link_get(int ipd_port) in __cvmx_helper_board_link_get() argument
239 int interface = cvmx_helper_get_interface_num(ipd_port); in __cvmx_helper_board_link_get()
240 int index = cvmx_helper_get_interface_index_num(ipd_port); in __cvmx_helper_board_link_get()