Lines Matching refs:port

178         uint64_t            port        : 9;    /**< The hardware must have the output port in addition to the output queue */
255 * Configure a output port and the associated queues for use.
257 * @param port Port to configure.
258 * @param base_queue First queue number to associate with this port.
259 * @param num_queues Number of queues t oassociate with this port
265 extern cvmx_pko_status_t cvmx_pko_config_port(uint64_t port, uint64_t base_queue, uint64_t num_queues, const uint64_t priority[]);
274 * WARNING: This function may have to look up the proper PKO port in
275 * the IPD port to PKO port map, and is thus slower than calling
276 * cvmx_pko_doorbell_pkoid() directly if the PKO port identifier is
279 * @param ipd_port The IPD port corresponding the to pko port the packet is for
296 ptr.s.port = pko_port;
310 * and must be called with the same port/queue/use_locking arguments.
331 * @param port Port to send it on, this can be either IPD port or PKO
332 * port.
338 static inline void cvmx_pko_send_packet_prepare(uint64_t port, uint64_t queue, cvmx_pko_lock_t use_locking)
359 * WARNING: This function may have to look up the proper PKO port in
360 * the IPD port to PKO port map, and is thus slower than calling
361 * cvmx_pko_send_packet_finish_pkoid() directly if the PKO port
364 * @param ipd_port The IPD port corresponding the to pko port the packet is for
406 * WARNING: This function may have to look up the proper PKO port in
407 * the IPD port to PKO port map, and is thus slower than calling
408 * cvmx_pko_send_packet_finish3_pkoid() directly if the PKO port
411 * @param ipd_port The IPD port corresponding the to pko port the packet is for
466 * Return the pko output queue associated with a port and a specific core.
470 * @param port Port number
477 static inline int cvmx_pko_get_base_queue_per_core(int port, int core)
493 /* We use two queues per port for SRIO0. Having two queues per
494 port with two ports gives us four queues, one for each mailbox */
498 /* We use two queues per port for SRIO1. Having two queues per
499 port with two ports gives us four queues, one for each mailbox */
503 /* We use two queues per port for SRIO2. Having two queues per
504 port with two ports gives us four queues, one for each mailbox */
507 if (port < CVMX_PKO_MAX_PORTS_INTERFACE0)
508 return port * CVMX_PKO_QUEUES_PER_PORT_INTERFACE0 + core;
509 else if (port >=16 && port < 16 + CVMX_PKO_MAX_PORTS_INTERFACE1)
511 (port-16) * CVMX_PKO_QUEUES_PER_PORT_INTERFACE1 + core;
512 else if ((port >= 32) && (port < 36))
515 (port-32) * CVMX_PKO_QUEUES_PER_PORT_PCI;
516 else if ((port >= 36) && (port < 40))
520 (port-36) * CVMX_PKO_QUEUES_PER_PORT_LOOP;
521 else if ((port >= 40) && (port < 42))
526 (port-40) * CVMX_PKO_QUEUES_PER_PORT_SRIO0;
527 else if ((port >= 42) && (port < 44))
533 (port-42) * CVMX_PKO_QUEUES_PER_PORT_SRIO1;
534 else if ((port >= 44) && (port < 46))
540 (port-44) * CVMX_PKO_QUEUES_PER_PORT_SRIO2;
550 * For a given port number, return the base pko output queue
551 * for the port.
553 * @param port IPD port number
556 extern int cvmx_pko_get_base_queue(int port);
559 * For a given port number, return the number of pko output queues.
561 * @param port IPD port number
564 extern int cvmx_pko_get_num_queues(int port);
569 * Get the status counters for a port.
666 * Rate limit a PKO port to a max packets/sec. This function is only
669 * @param port Port to rate limit
676 extern int cvmx_pko_rate_limit_packets(int port, int packets_s, int burst);
679 * Rate limit a PKO port to a max bits/sec. This function is only
682 * @param port Port to rate limit
689 extern int cvmx_pko_rate_limit_bits(int port, uint64_t bits_s, int burst);
694 * Retrieve the PKO pipe number for a port
707 * For a given PKO port number, return the base output queue
708 * for the port.
710 * @param pko_port PKO port number
716 * For a given PKO port number, return the number of output queues
717 * for the port.
719 * @param pko_port PKO port number
742 ptr.s.port = pko_port;
794 * @param pko_port The PKO port the packet is for