Lines Matching +full:8 +full:- +full:way

7  * Copyright (c) 2003-2017 Cavium, Inc.
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
36 #include <asm/octeon/cvmx-l2c.h>
37 #include <asm/octeon/cvmx-spinlock.h>
43 * NOTE: This only protects calls from within a single application -
55 return -1; in cvmx_l2c_get_core_way_partition()
64 field = (core & 0x3) * 8; in cvmx_l2c_get_core_way_partition()
89 valid_mask = (0x1 << cvmx_l2c_get_num_assoc()) - 1; in cvmx_l2c_set_core_way_partition()
95 return -1; in cvmx_l2c_set_core_way_partition()
99 return -1; in cvmx_l2c_set_core_way_partition()
110 field = (core & 0x3) * 8; in cvmx_l2c_set_core_way_partition()
146 valid_mask = (0x1 << cvmx_l2c_get_num_assoc()) - 1; in cvmx_l2c_set_hw_way_partition()
151 return -1; in cvmx_l2c_set_hw_way_partition()
309 len -= CVMX_CACHE_LINE_SIZE; in fault_in()
321 uint64_t way; in cvmx_l2c_lock_line() local
327 for (way = 0; way < assoc; way++) { in cvmx_l2c_lock_line()
328 CVMX_CACHE_LTGL2I(index | (way << shift), 0); in cvmx_l2c_lock_line()
337 if (way >= assoc) { in cvmx_l2c_lock_line()
339 return -1; in cvmx_l2c_lock_line()
345 return -1; in cvmx_l2c_lock_line()
347 return way; in cvmx_l2c_lock_line()
380 int alias_shift = CVMX_L2C_IDX_ADDR_SHIFT + 2 * CVMX_L2_SET_BITS - 1; in cvmx_l2c_lock_line()
381 uint64_t addr_tmp = addr ^ (addr & ((1 << alias_shift) - 1)) >> CVMX_L2_SET_BITS; in cvmx_l2c_lock_line()
426 len -= CVMX_CACHE_LINE_SIZE; in cvmx_l2c_lock_mem_region()
469 …tag_addr = ((address >> CVMX_L2C_TAG_ADDR_ALIAS_SHIFT) & ((1 << CVMX_L2C_TAG_ADDR_ALIAS_SHIFT) - 1… in cvmx_l2c_unlock_line()
493 …tag_addr = ((address >> CVMX_L2C_TAG_ADDR_ALIAS_SHIFT) & ((1 << CVMX_L2C_TAG_ADDR_ALIAS_SHIFT) - 1… in cvmx_l2c_unlock_line()
516 len -= CVMX_CACHE_LINE_SIZE; in cvmx_l2c_unlock_mem_region()
584 * @assoc: Association (way) of the tag to dump
781 l2_set_bits = 8; /* 256 sets */ in cvmx_l2c_get_set_bits()
807 l2_assoc = 8; in cvmx_l2c_get_num_assoc()
815 l2_assoc = 8; in cvmx_l2c_get_num_assoc()
830 * 0 0 16-way 2MB cache in cvmx_l2c_get_num_assoc()
831 * 0 1 12-way 1.5MB cache in cvmx_l2c_get_num_assoc()
832 * 1 0 8-way 1MB cache in cvmx_l2c_get_num_assoc()
833 * 1 1 4-way 512KB cache in cvmx_l2c_get_num_assoc()
839 l2_assoc = 8; in cvmx_l2c_get_num_assoc()
864 * @assoc: Association (or way) to flush
884 * Bits<20:17> select the way of the cache block involved in in cvmx_l2c_flush_line()