• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/octeon-sdk/

Lines Matching refs:port

78  * PKO port iterator
94 * Get INT for a port
170 int cvmx_pko_get_base_queue(int port)
175 cvmx_helper_cfg_ipd2pko_port_base(port));
178 return cvmx_pko_get_base_queue_per_core(port, 0);
185 * For a given PKO port number, return the base output queue
186 * for the port.
188 * @param pko_port PKO port number
197 * For a given PKO port number, return the number of output queues
198 * for the port.
200 * @param pko_port PKO port number
208 int cvmx_pko_get_num_queues(int port)
213 cvmx_helper_cfg_ipd2pko_port_base(port));
217 if (port < 16)
219 else if (port < 32)
221 else if (port < 36)
223 else if (port < 40)
225 else if (port < 42)
227 else if (port < 44)
229 else if (port < 46)
257 int core, port;
261 cvmx_dprintf("port");
262 for(port = 0; port < pko_output_ports; port++)
263 cvmx_dprintf("%3d ", port);
269 for(port = 0; port < pko_output_ports; port++)
271 cvmx_pko_get_base_queue_per_core(port, core));
280 * Configure queues for an internal port.
282 * @param pko_port PKO internal port number
752 config.s.port = CVMX_PKO_MEM_QUEUE_PTRS_ILLEGAL_PID;
772 * Configure a output port and the associated queues for use.
774 * @param port Port to configure.
775 * @param base_queue First queue number to associate with this port.
776 * @param num_queues Number of queues to associate with this port
788 cvmx_pko_status_t cvmx_pko_config_port(uint64_t port, uint64_t base_queue,
801 if ((port >= CVMX_PKO_NUM_OUTPUT_PORTS) &&
802 (port != CVMX_PKO_MEM_QUEUE_PTRS_ILLEGAL_PID))
804 cvmx_dprintf("ERROR: cvmx_pko_config_port: Invalid port %llu\n",
805 (unsigned long long)port);
816 if (port != CVMX_PKO_MEM_QUEUE_PTRS_ILLEGAL_PID)
882 config.s.port = port;
914 if (port != CVMX_PKO_MEM_QUEUE_PTRS_ILLEGAL_PID)
962 * Rate limit a PKO port to a max packets/sec. This function is only
965 * @param port Port to rate limit
972 int cvmx_pko_rate_limit_packets(int port, int packets_s, int burst)
978 pko_mem_port_rate0.s.pid = port;
985 pko_mem_port_rate1.s.pid = port;
995 * Rate limit a PKO port to a max bits/sec. This function is only
998 * @param port Port to rate limit
1005 int cvmx_pko_rate_limit_bits(int port, uint64_t bits_s, int burst)
1013 pko_mem_port_rate0.s.pid = port;
1022 pko_mem_port_rate1.s.pid = port;