Lines Matching defs:interface

73  * Convert a interface mode into a human readable string
132 * @param interface Interface to configure
133 * @param num_ports Number of ports on the interface
137 extern int __cvmx_helper_setup_gmx(int interface, int num_ports);
141 * Get the number of ipd_ports on an interface.
143 * @param interface
145 * @return the number of ipd_ports on the interface and -1 for error.
147 extern int __cvmx_helper_get_num_ipd_ports(int interface);
151 * Get the number of pko_ports on an interface.
153 * @param interface
155 * @return the number of pko_ports on the interface.
157 extern int __cvmx_helper_get_num_pko_ports(int interface);
162 * @param interface
168 extern int __cvmx_helper_set_link_info(int interface, int port,
174 * @param interface
179 extern cvmx_helper_link_info_t __cvmx_helper_get_link_info(int interface,
190 * @param interface
191 * @param num_ipd_ports is the number of ipd_ports on the interface
194 * interface.
198 extern int __cvmx_helper_init_interface(int interface, int num_ipd_ports, int has_fcs, enum cvmx_pko_padding pad);
203 * @param interface
207 extern int __cvmx_helper_get_has_fcs(int interface);
210 extern enum cvmx_pko_padding __cvmx_helper_get_pko_padding(int interface);
214 * interface.
216 * @param interface Interface to use
217 * @param port Port on the interface
221 extern int cvmx_helper_get_ipd_port(int interface, int port);
224 * Returns the PKO port number for a port on the given interface,
227 * @param interface Interface to use
228 * @param port Port on the interface
232 extern int cvmx_helper_get_pko_port(int interface, int port);
236 * interface.
238 * @param interface Interface to use
242 static inline int cvmx_helper_get_first_ipd_port(int interface)
244 return (cvmx_helper_get_ipd_port (interface, 0));
249 * interface.
251 * @param interface Interface to use
255 static inline int cvmx_helper_get_last_ipd_port (int interface)
257 return (cvmx_helper_get_first_ipd_port (interface) +
258 cvmx_helper_ports_on_interface (interface) - 1);
307 * Returns the interface number for an IPD/PKO port number.
316 * Returns the interface index number for an IPD/PKO port
326 * Get port kind for a given port in an interface.
328 * @param interface Interface
329 * @param port index of the port in the interface
333 extern int cvmx_helper_get_pknd(int interface, int port);
336 * Get bpid for a given port in an interface.
338 * @param interface Interface
339 * @param port index of the port in the interface
343 extern int cvmx_helper_get_bpid(int interface, int port);