Lines Matching +full:odd +full:- +full:numbered

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()
190 * Set the size of the PKO command buffers to an odd number of 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()
248 * always enable big endian for 3-word command. Does nothing in cvmx_pko_enable()
249 * for 2-word. in cvmx_pko_enable()
316 * allowed to be 0-8. A value of 8 get 8 times the traffic
322 * contiguous starting at the base_queue, and lower numbered
323 * queues have higher priority than higher numbered queues.
334 int static_priority_base = -1; in cvmx_pko_config_port()
335 int static_priority_end = -1; in cvmx_pko_config_port()
362 if (static_priority_base == -1 in cvmx_pko_config_port()
367 if (static_priority_base != -1 in cvmx_pko_config_port()
368 && static_priority_end == -1 in cvmx_pko_config_port()
371 static_priority_end = queue - 1; in cvmx_pko_config_port()
372 else if (static_priority_base != -1 in cvmx_pko_config_port()
373 && static_priority_end == -1 in cvmx_pko_config_port()
374 && queue == num_queues - 1) in cvmx_pko_config_port()
383 if (static_priority_end != -1 in cvmx_pko_config_port()
410 * are either both -1, or are valid start/end queue in cvmx_pko_config_port()
430 config.s.tail = queue == (num_queues - 1); in cvmx_pko_config_port()
495 - in cvmx_pko_config_port()
538 * Show map of ports -> queues for different cores.
581 cvmx_sysinfo_get()->cpu_clock_hz / packets_s / 16; in cvmx_pko_rate_limit_packets()
610 uint64_t clock_rate = cvmx_sysinfo_get()->cpu_clock_hz; in cvmx_pko_rate_limit_bits()