Lines Matching refs:port

145  * out will be received back again on the same port. Externally
148 * @param port IPD port number to loop.
150 void cvmx_helper_rgmii_internal_loopback(int port)
152 int interface = (port >> 4) & 1;
153 int index = port & 0xf;
188 int port;
210 for (port=0; port<num_ports; port++)
218 frm_ctl.u64 = cvmx_read_csr(CVMX_GMXX_RXX_FRM_CTL(port, interface));
220 cvmx_write_csr(CVMX_GMXX_RXX_FRM_CTL(port, interface), frm_ctl.u64);
226 cvmx_write_csr(CVMX_GMXX_TXX_PAUSE_PKT_TIME(port, interface), 20000);
227 cvmx_write_csr(CVMX_GMXX_TXX_PAUSE_PKT_INTERVAL(port, interface), 19000);
233 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(port, interface), 26);
234 cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(port, interface), 26);
243 if (port == 0) {
244 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(port, interface), 4);
246 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(port, interface), 7);
248 cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(port, interface), 0);
257 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(port, interface), 16);
258 cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(port, interface), 16);
262 cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(port, interface), 24);
263 cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(port, interface), 24);
272 for (port=0; port<num_ports; port++)
275 cvmx_helper_link_autoconf(cvmx_helper_get_ipd_port(interface, port));
276 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(port, interface));
278 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(port, interface), gmx_cfg.u64);
286 * Return the link state of an IPD/PKO port as returned by
291 * @param ipd_port IPD/PKO port to query
319 * Configure an IPD/PKO port for the specified link state. This
325 * @param ipd_port IPD/PKO port to configure
385 /* Disable the port before we make any changes */
448 ** MII port is selected by GMX_PRT1_CFG[SPEED].
462 /* Save the new GMX setting without enabling the port */
490 * Configure a port for internal and/or external loopback. Internal loopback
491 * causes packets sent by the port to be received by Octeon. External loopback
494 * @param ipd_port IPD/PKO port to loopback.
513 /* Force port to be disabled */