Lines Matching +full:max +full:- +full:burst +full:- +full:len
7 * Copyright (c) 2003-2008 Cavium Networks
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
44 * - PKO indexes are no longer stored in the FAU. A large
48 * - The PKO <b>use_locking</b> parameter can now have a global
52 * - PKO 3 word commands are now supported. Use
60 #include <asm/octeon/cvmx-fpa.h>
61 #include <asm/octeon/cvmx-pow.h>
62 #include <asm/octeon/cvmx-cmd-queue.h>
63 #include <asm/octeon/cvmx-pko-defs.h>
136 /* The ID of the device on the non-coherent bus */
148 * The output queue to send the packet to (0-127 are
176 * The size of the reg1 operation - could be 8, 16,
181 * The size of the reg0 operation - could be 8, 16,
192 * non-zero.
197 /* The register, subtract will be done if reg0 is non-zero */
222 * If ipoffp1 is non zero, (ipoffp1-1) is the number
265 /* CSR typedefs have been moved to cvmx-csr-*.h */
305 * allowed to be 1-8. A value of 8 get 8 times the traffic
316 * output hardware that "len" command words have been added
322 * @len: Length of the command in 64 bit words
325 uint64_t len) in cvmx_pko_doorbell() argument
340 cvmx_write_io(ptr.u64, len); in cvmx_pko_doorbell()
353 * - CVMX_PKO_LOCK_NONE
354 * - PKO doesn't do any locking. It is the responsibility
357 * - CVMX_PKO_LOCK_ATOMIC_TAG
358 * - PKO performs an atomic tagswitch to insure exclusive
361 * - CVMX_PKO_LOCK_CMD_QUEUE
362 * - PKO uses the common command queue locks to insure
388 * which these fake values can be used - this is not a in cvmx_pko_send_packet_prepare()
493 * Returns Core-specific output queue
508 CVMX_PKO_QUEUES_PER_PORT_INTERFACE0 + (port - in cvmx_pko_get_base_queue_per_core()
515 CVMX_PKO_QUEUES_PER_PORT_INTERFACE1 + (port - in cvmx_pko_get_base_queue_per_core()
523 4 * CVMX_PKO_QUEUES_PER_PORT_PCI + (port - in cvmx_pko_get_base_queue_per_core()
588 status->packets = pko_mem_count0.s.count; in cvmx_pko_get_port_status()
595 status->octets = pko_mem_count1.s.count; in cvmx_pko_get_port_status()
606 status->doorbell = debug9.cn38xx.doorbell; in cvmx_pko_get_port_status()
612 status->doorbell = debug8.cn50xx.doorbell; in cvmx_pko_get_port_status()
617 * Rate limit a PKO port to a max packets/sec. This function is only
622 * @burst: Maximum number of packets to burst in a row before rate
627 extern int cvmx_pko_rate_limit_packets(int port, int packets_s, int burst);
630 * Rate limit a PKO port to a max bits/sec. This function is only
635 * @burst: Maximum number of bits to burst before rate
640 extern int cvmx_pko_rate_limit_bits(int port, uint64_t bits_s, int burst);