Lines Matching full:interface

49  * Convert a interface mode into a human readable string
137 int interface; in cvmx_helper_setup_red() local
144 for (interface = 0; interface < 2; interface++) { in cvmx_helper_setup_red()
145 for (port = cvmx_helper_get_first_ipd_port(interface); in cvmx_helper_setup_red()
146 port < cvmx_helper_get_last_ipd_port(interface); port++) in cvmx_helper_setup_red()
175 * @interface: Interface to configure
176 * @num_ports: Number of ports on the interface
180 int __cvmx_helper_setup_gmx(int interface, int num_ports) in __cvmx_helper_setup_gmx() argument
188 /* Tell GMX the number of TX ports on this interface */ in __cvmx_helper_setup_gmx()
189 gmx_tx_prts.u64 = cvmx_read_csr(CVMX_GMXX_TX_PRTS(interface)); in __cvmx_helper_setup_gmx()
191 cvmx_write_csr(CVMX_GMXX_TX_PRTS(interface), gmx_tx_prts.u64); in __cvmx_helper_setup_gmx()
193 /* Tell GMX the number of RX ports on this interface. This only in __cvmx_helper_setup_gmx()
195 if (cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx()
197 || cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx()
199 || cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx()
201 || cvmx_helper_interface_get_mode(interface) == in __cvmx_helper_setup_gmx()
209 gmx_rx_prts.u64 = cvmx_read_csr(CVMX_GMXX_RX_PRTS(interface)); in __cvmx_helper_setup_gmx()
211 cvmx_write_csr(CVMX_GMXX_RX_PRTS(interface), gmx_rx_prts.u64); in __cvmx_helper_setup_gmx()
217 /* Tell PKO the number of ports on this interface */ in __cvmx_helper_setup_gmx()
219 if (interface == 0) { in __cvmx_helper_setup_gmx()
252 gmx_tx_thresh.u64 = cvmx_read_csr(CVMX_GMXX_TXX_THRESH(0, interface)); in __cvmx_helper_setup_gmx()
273 cvmx_write_csr(CVMX_GMXX_TXX_THRESH(index, interface), in __cvmx_helper_setup_gmx()
281 * interface.
283 * @interface: Interface to use
284 * @port: Port on the interface
288 int cvmx_helper_get_ipd_port(int interface, int port) in cvmx_helper_get_ipd_port() argument
290 switch (interface) { in cvmx_helper_get_ipd_port()
309 * Returns the interface number for an IPD/PKO port number.
313 * Returns Interface number
338 * Returns the interface index number for an IPD/PKO port
343 * Returns Interface index number