Lines Matching +full:max +full:- +full:bits +full:- +full:per +full:- +full:word

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
34 #include <asm/octeon/cvmx-config.h>
35 #include <asm/octeon/cvmx-pko.h>
36 #include <asm/octeon/cvmx-helper.h>
64 return -1; in __cvmx_pko_int()
85 config.s.tail = (queue == (num_queues - 1)); in __cvmx_pko_iport_config()
95 (CVMX_FPA_OUTPUT_BUFFER_POOL_SIZE - in __cvmx_pko_iport_config()
191 * 64bit words. This allows the normal two word send to stay in cvmx_pko_initialize_global()
192 * aligned and never span a command word buffer. in cvmx_pko_initialize_global()
196 config.s.size = CVMX_FPA_OUTPUT_BUFFER_POOL_SIZE / 8 - 1; in cvmx_pko_initialize_global()
201 * Chip-specific setup. in cvmx_pko_initialize_global()
214 cvmx_helper_get_last_ipd_port(num_interfaces - 1); in cvmx_pko_initialize_global()
233 * This function does per-core initialization required by the PKO routines.
262 * always enable big endian for 3-word command. Does nothing in cvmx_pko_enable()
263 * for 2-word. in cvmx_pko_enable()
330 * allowed to be 0-8. A value of 8 get 8 times the traffic
348 int static_priority_base = -1; in cvmx_pko_config_port()
349 int static_priority_end = -1; in cvmx_pko_config_port()
376 if (static_priority_base == -1 in cvmx_pko_config_port()
381 if (static_priority_base != -1 in cvmx_pko_config_port()
382 && static_priority_end == -1 in cvmx_pko_config_port()
385 static_priority_end = queue - 1; in cvmx_pko_config_port()
386 else if (static_priority_base != -1 in cvmx_pko_config_port()
387 && static_priority_end == -1 in cvmx_pko_config_port()
388 && queue == num_queues - 1) in cvmx_pko_config_port()
397 if (static_priority_end != -1 in cvmx_pko_config_port()
424 * are either both -1, or are valid start/end queue in cvmx_pko_config_port()
444 config.s.tail = queue == (num_queues - 1); in cvmx_pko_config_port()
456 * to space the bits out evenly so the packet don't in cvmx_pko_config_port()
509 - in cvmx_pko_config_port()
552 * Show map of ports -> queues for different cores.
577 * Rate limit a PKO port to a max packets/sec. This function is only
595 cvmx_sysinfo_get()->cpu_clock_hz / packets_s / 16; in cvmx_pko_rate_limit_packets()
596 /* No cost per word since we are limited by packets/sec, not bits/sec */ in cvmx_pko_rate_limit_packets()
610 * Rate limit a PKO port to a max bits/sec. This function is only
614 * @bits_s: PKO rate limit in bits/sec
615 * @burst: Maximum number of bits to burst before rate
624 uint64_t clock_rate = cvmx_sysinfo_get()->cpu_clock_hz; in cvmx_pko_rate_limit_bits()
632 * per word count. Multiply by 8 to covert to bits and divide in cvmx_pko_rate_limit_bits()
636 /* Each 8 byte word has 64bits */ in cvmx_pko_rate_limit_bits()