Lines Matching refs:coreid
35 const int coreid = cvmx_get_core_num(); in mailbox_interrupt() local
39 action = cvmx_read_csr(CVMX_CIU_MBOX_CLRX(coreid)) & 0xffff; in mailbox_interrupt()
42 cvmx_write_csr(CVMX_CIU_MBOX_CLRX(coreid), action); in mailbox_interrupt()
62 int coreid = cpu_logical_map(cpu); in octeon_send_ipi_single() local
67 cvmx_write_csr(CVMX_CIU_MBOX_SETX(coreid), action); in octeon_send_ipi_single()
102 const int coreid = cvmx_get_core_num(); in octeon_smp_setup() local
116 __cpu_number_map[coreid] = 0; in octeon_smp_setup()
117 __cpu_logical_map[0] = coreid; in octeon_smp_setup()
122 if ((id != coreid) && (core_mask & (1 << id))) { in octeon_smp_setup()
254 int coreid = cpu_logical_map(cpu); in octeon_cpu_die() local
266 mask = 1 << coreid; in octeon_cpu_die()
284 pr_info("Reset core %d. Available Coremask = 0x%x \n", coreid, new_mask); in octeon_cpu_die()
286 cvmx_write_csr(CVMX_CIU_PP_RST, 1 << coreid); in octeon_cpu_die()
314 int coreid = cpu_logical_map(cpu); in octeon_update_boot_vector() local
328 labi->avail_coremask &= ~(1 << coreid); in octeon_update_boot_vector()
334 if (!(avail_coremask & (1 << coreid))) { in octeon_update_boot_vector()
336 cvmx_write_csr(CVMX_CIU_PP_RST, 1 << coreid); in octeon_update_boot_vector()
340 boot_vect[coreid].app_start_func_addr = in octeon_update_boot_vector()
342 boot_vect[coreid].code_addr = octeon_bootloader_entry_addr; in octeon_update_boot_vector()
346 cvmx_write_csr(CVMX_CIU_NMI, (1 << coreid) & avail_coremask); in octeon_update_boot_vector()