Lines Matching defs:core
40 * This spinlock is used internally to ensure that only one core is
49 int cvmx_l2c_get_core_way_partition(uint32_t core)
53 /* Validate the core number */
54 if (core >= cvmx_octeon_num_cores())
58 return cvmx_read_csr(CVMX_L2C_WPAR_PPX(core)) & 0xffff;
64 field = (core & 0x3) * 8;
71 switch (core & 0xC) {
84 int cvmx_l2c_set_core_way_partition(uint32_t core, uint32_t mask)
97 /* Validate the core number */
98 if (core >= cvmx_octeon_num_cores())
102 cvmx_write_csr(CVMX_L2C_WPAR_PPX(core), mask);
107 * Use the lower two bits of core to determine the bit offset of the
110 field = (core & 0x3) * 8;
117 switch (core & 0xC) {
369 /* Set this core as debug core */
401 /* Stop being debug core */
580 * Function to read a L2C tag. This code make the current core
581 * the 'debug core' for the L2. This code must only be executed by
582 * 1 core at a time.
595 uint64_t core = cvmx_get_core_num();
603 * For low core count parts, the core number is always small
607 debug_val.s.ppnum = core;
613 * Make sure core is quiet (no prefetches, etc.) before
861 * This should only be called from one core at a time, as this routine
862 * sets the core to the 'debug' core in order to flush the line.