Home
last modified time | relevance | path

Searched refs:linear_id (Results 1 – 23 of 23) sorted by relevance

/rk3399_ARM-atf/bl32/tsp/
H A Dtsp_main.c37 uint32_t linear_id = plat_my_core_pos(); in tsp_main() local
46 tsp_stats[linear_id].smc_count++; in tsp_main()
47 tsp_stats[linear_id].eret_count++; in tsp_main()
48 tsp_stats[linear_id].cpu_on_count++; in tsp_main()
52 tsp_stats[linear_id].smc_count, in tsp_main()
53 tsp_stats[linear_id].eret_count, in tsp_main()
54 tsp_stats[linear_id].cpu_on_count); in tsp_main()
67 uint32_t linear_id = plat_my_core_pos(); in tsp_cpu_on_main() local
73 tsp_stats[linear_id].smc_count++; in tsp_cpu_on_main()
74 tsp_stats[linear_id].eret_count++; in tsp_cpu_on_main()
[all …]
H A Dtsp_interrupt.c32 uint32_t linear_id = plat_my_core_pos(); in tsp_update_sync_sel1_intr_stats() local
34 tsp_stats[linear_id].sync_sel1_intr_count++; in tsp_update_sync_sel1_intr_stats()
36 tsp_stats[linear_id].sync_sel1_intr_ret_count++; in tsp_update_sync_sel1_intr_stats()
43 tsp_stats[linear_id].sync_sel1_intr_count, in tsp_update_sync_sel1_intr_stats()
44 tsp_stats[linear_id].sync_sel1_intr_ret_count); in tsp_update_sync_sel1_intr_stats()
54 uint32_t linear_id = plat_my_core_pos(); in tsp_handle_preemption() local
56 tsp_stats[linear_id].preempt_intr_count++; in tsp_handle_preemption()
58 read_mpidr(), tsp_stats[linear_id].preempt_intr_count); in tsp_handle_preemption()
71 uint32_t linear_id = plat_my_core_pos(), id; in tsp_common_int_handler() local
109 tsp_stats[linear_id].sel1_intr_count++; in tsp_common_int_handler()
[all …]
H A Dtsp_timer.c74 uint32_t linear_id = plat_my_core_pos(); in tsp_generic_timer_save() local
76 pcpu_timer_context[linear_id].cval = read_cntps_cval_el1(); in tsp_generic_timer_save()
77 pcpu_timer_context[linear_id].ctl = read_cntps_ctl_el1(); in tsp_generic_timer_save()
78 flush_dcache_range((uint64_t) &pcpu_timer_context[linear_id], in tsp_generic_timer_save()
79 sizeof(pcpu_timer_context[linear_id])); in tsp_generic_timer_save()
87 uint32_t linear_id = plat_my_core_pos(); in tsp_generic_timer_restore() local
89 write_cntps_cval_el1(pcpu_timer_context[linear_id].cval); in tsp_generic_timer_restore()
90 write_cntps_ctl_el1(pcpu_timer_context[linear_id].ctl); in tsp_generic_timer_restore()
H A Dtsp_common.c43 uint32_t linear_id; in set_smc_args() local
50 linear_id = plat_my_core_pos(); in set_smc_args()
51 pcpu_smc_args = &tsp_smc_args[linear_id]; in set_smc_args()
93 uint32_t linear_id = plat_my_core_pos(); in tsp_system_off_main() local
96 tsp_stats[linear_id].smc_count++; in tsp_system_off_main()
97 tsp_stats[linear_id].eret_count++; in tsp_system_off_main()
101 tsp_stats[linear_id].smc_count, in tsp_system_off_main()
102 tsp_stats[linear_id].eret_count); in tsp_system_off_main()
121 uint32_t linear_id = plat_my_core_pos(); in tsp_system_reset_main() local
124 tsp_stats[linear_id].smc_count++; in tsp_system_reset_main()
[all …]
H A Dtsp_ffa_main.c289 uint32_t linear_id = plat_my_core_pos(); in tsp_cpu_off_main() local
299 tsp_stats[linear_id].smc_count++; in tsp_cpu_off_main()
300 tsp_stats[linear_id].eret_count++; in tsp_cpu_off_main()
301 tsp_stats[linear_id].cpu_off_count++; in tsp_cpu_off_main()
306 tsp_stats[linear_id].smc_count, in tsp_cpu_off_main()
307 tsp_stats[linear_id].eret_count, in tsp_cpu_off_main()
308 tsp_stats[linear_id].cpu_off_count); in tsp_cpu_off_main()
327 uint32_t linear_id = plat_my_core_pos(); in tsp_cpu_suspend_main() local
337 tsp_stats[linear_id].smc_count++; in tsp_cpu_suspend_main()
338 tsp_stats[linear_id].eret_count++; in tsp_cpu_suspend_main()
[all …]
/rk3399_ARM-atf/services/std_svc/spm/el3_spmc/
H A Dspmc_pm.c45 unsigned int linear_id = plat_my_core_pos(); in spmc_cpu_on_finish_handler() local
76 WARN("%s: No secondary ep on core%u\n", __func__, linear_id); in spmc_cpu_on_finish_handler()
101 INFO("SP (0x%x) init start on core%u.\n", sp->sp_id, linear_id); in spmc_cpu_on_finish_handler()
105 ERROR("%s failed (%lu) on CPU%u\n", __func__, rc, linear_id); in spmc_cpu_on_finish_handler()
111 VERBOSE("CPU %u on!\n", linear_id); in spmc_cpu_on_finish_handler()
122 unsigned int linear_id = plat_my_core_pos(); in spmc_send_pm_msg() local
155 ERROR("%s failed (%lu) on CPU%u.\n", __func__, rc, linear_id); in spmc_send_pm_msg()
207 unsigned int linear_id = plat_my_core_pos(); in spmc_cpu_suspend_finish_handler() local
226 ERROR("%s failed (%d) on CPU%u\n", __func__, rc, linear_id); in spmc_cpu_suspend_finish_handler()
231 VERBOSE("CPU %u resumed!\n", linear_id); in spmc_cpu_suspend_finish_handler()
[all …]
H A Dspmc_main.c2686 uint32_t linear_id = plat_my_core_pos(); in spmc_sp_interrupt_handler() local
2697 linear_id); in spmc_sp_interrupt_handler()
2707 linear_id, RT_STATE_WAITING, ec->rt_state); in spmc_sp_interrupt_handler()
2715 VERBOSE("SP (0x%x) interrupt start on core%u.\n", sp->sp_id, linear_id); in spmc_sp_interrupt_handler()
/rk3399_ARM-atf/plat/mediatek/mt8173/drivers/spm/
H A Dspm_hotplug.c238 unsigned long linear_id; in spm_hotplug_on() local
240 linear_id = ((mpidr & MPIDR_CLUSTER_MASK) >> 6) | in spm_hotplug_on()
252 PCM_HOTPLUG_VALID_MASK | (1 << linear_id), in spm_hotplug_on()
253 1 << (linear_id + PCM_HOTPLUG_VALID_SHIFT)); in spm_hotplug_on()
259 unsigned long linear_id; in spm_hotplug_off() local
261 linear_id = ((mpidr & MPIDR_CLUSTER_MASK) >> 6) | in spm_hotplug_off()
272 (1 << linear_id) | in spm_hotplug_off()
273 (1 << (linear_id + PCM_HOTPLUG_VALID_SHIFT))); in spm_hotplug_off()
H A Dspm_mcdi.c493 unsigned long linear_id; in spm_mcdi_finish_for_on_state() local
495 linear_id = ((mpidr & MPIDR_CLUSTER_MASK) >> 6) | in spm_mcdi_finish_for_on_state()
501 mmio_write_32(SPM_PCM_SW_INT_CLEAR, (0x1 << linear_id)); in spm_mcdi_finish_for_on_state()
/rk3399_ARM-atf/services/spd/tspd/
H A Dtspd_pm.c33 uint32_t linear_id = plat_my_core_pos(); in tspd_cpu_off_handler() local
34 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_cpu_off_handler()
72 uint32_t linear_id = plat_my_core_pos(); in tspd_cpu_suspend_handler() local
73 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_cpu_suspend_handler()
112 uint32_t linear_id = plat_my_core_pos(); in tspd_cpu_on_finish_handler() local
113 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_cpu_on_finish_handler()
157 uint32_t linear_id = plat_my_core_pos(); in tspd_cpu_suspend_finish_handler() local
158 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_cpu_suspend_finish_handler()
201 uint32_t linear_id = plat_my_core_pos(); in tspd_system_off() local
202 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_system_off()
[all …]
H A Dtspd_main.c113 uint32_t linear_id; in tspd_sel1_interrupt_handler() local
117 linear_id = plat_my_core_pos(); in tspd_sel1_interrupt_handler()
118 tsp_ctx = &tspd_sp_context[linear_id]; in tspd_sel1_interrupt_handler()
250 uint32_t linear_id; in tspd_setup() local
252 linear_id = plat_my_core_pos(); in tspd_setup()
283 &tspd_sp_context[linear_id]); in tspd_setup()
308 uint32_t linear_id = plat_my_core_pos(); in tspd_init() local
309 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_init()
351 uint32_t linear_id = plat_my_core_pos(), ns; in tspd_smc_handler() local
352 tsp_context_t *tsp_ctx = &tspd_sp_context[linear_id]; in tspd_smc_handler()
/rk3399_ARM-atf/services/spd/opteed/
H A Dopteed_pm.c32 uint32_t linear_id = plat_my_core_pos(); in opteed_cpu_off_handler() local
33 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_cpu_off_handler()
69 uint32_t linear_id = plat_my_core_pos(); in opteed_cpu_suspend_handler() local
70 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_cpu_suspend_handler()
106 uint32_t linear_id = plat_my_core_pos(); in opteed_cpu_on_finish_handler() local
107 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_cpu_on_finish_handler()
143 uint32_t linear_id = plat_my_core_pos(); in opteed_cpu_suspend_finish_handler() local
144 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_cpu_suspend_finish_handler()
189 uint32_t linear_id = plat_my_core_pos(); in opteed_system_off() local
190 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_system_off()
[all …]
H A Dopteed_main.c89 uint32_t linear_id; in opteed_sel1_interrupt_handler() local
109 linear_id = plat_my_core_pos(); in opteed_sel1_interrupt_handler()
110 optee_ctx = &opteed_sp_context[linear_id]; in opteed_sel1_interrupt_handler()
163 uint32_t linear_id; in opteed_setup()
172 linear_id = plat_my_core_pos(); in opteed_setup()
237 arg3, &opteed_sp_context[linear_id]); in opteed_setup()
262 uint32_t linear_id = plat_my_core_pos(); in opteed_init_with_entry_point() local
263 optee_context_t *optee_ctx = &opteed_sp_context[linear_id]; in opteed_init_with_entry_point()
480 uint32_t linear_id = plat_my_core_pos(); in opteed_handle_smc_load() local
587 &opteed_sp_context[linear_id]); in opteed_handle_smc_load()
[all …]
/rk3399_ARM-atf/services/std_svc/spmd/
H A Dspmd_pm.c67 unsigned int linear_id = plat_my_core_pos(); in spmd_cpu_on_finish_handler() local
77 spmd_setup_context(linear_id); in spmd_cpu_on_finish_handler()
104 linear_id); in spmd_cpu_on_finish_handler()
111 VERBOSE("CPU %u on!\n", linear_id); in spmd_cpu_on_finish_handler()
120 unsigned int linear_id = plat_my_core_pos(); in spmd_cpu_off_handler() local
150 ERROR("%s failed (%" PRIu64 ") on CPU%u\n", __func__, rc, linear_id); in spmd_cpu_off_handler()
193 VERBOSE("CPU %u off!\n", linear_id); in spmd_cpu_off_handler()
/rk3399_ARM-atf/services/std_svc/rmmd/trp/
H A Dtrp_helpers.c34 uint32_t linear_id; in set_smc_args() local
41 linear_id = plat_my_core_pos(); in set_smc_args()
42 pcpu_smc_args = &trp_smc_args[linear_id]; in set_smc_args()
/rk3399_ARM-atf/plat/renesas/rcar_gen5/
H A Dplat_pm.c36 int linear_id = plat_core_pos_by_mpidr(mpidr); in rcar_program_mailbox() local
38 if (linear_id < 0) { in rcar_program_mailbox()
42 rcar_mboxes[linear_id].value = address; in rcar_program_mailbox()
43 range = (uintptr_t)(&rcar_mboxes[linear_id]); in rcar_program_mailbox()
/rk3399_ARM-atf/services/std_svc/rmmd/
H A Drmmd_main.c150 unsigned int linear_id = plat_my_core_pos(); in rmmd_setup() local
213 rmm_ep_info->args.arg0 = linear_id; in rmmd_setup()
333 uint32_t linear_id = plat_my_core_pos(); in rmmd_cpu_on_finish_handler() local
341 linear_id); in rmmd_cpu_on_finish_handler()
351 local_rmm_ep_info.args.arg0 = linear_id; in rmmd_cpu_on_finish_handler()
362 ERROR("RMM init failed on CPU%d: %ld\n", linear_id, rc); in rmmd_cpu_on_finish_handler()
/rk3399_ARM-atf/plat/renesas/rcar_gen4/
H A Dplat_pm.c35 const int linear_id = plat_core_pos_by_mpidr(mpidr); in rcar_program_mailbox() local
36 void *mbox_addr = (void *)MBOX_BASE + (CACHE_WRITEBACK_GRANULE * linear_id); in rcar_program_mailbox()
39 if (linear_id < 0) { in rcar_program_mailbox()
/rk3399_ARM-atf/include/services/
H A Dspm_mm_partition.h27 uint32_t linear_id; member
/rk3399_ARM-atf/plat/renesas/common/
H A Dplat_pm.c51 uint64_t linear_id = plat_core_pos_by_mpidr(mpidr); in rcar_program_mailbox() local
54 rcar_mboxes[linear_id].value = address; in rcar_program_mailbox()
55 range = (unsigned long)&rcar_mboxes[linear_id]; in rcar_program_mailbox()
/rk3399_ARM-atf/plat/mediatek/mt8173/drivers/mtcmos/
H A Dmtcmos.c105 static void mtcmos_ctrl_little_off(unsigned int linear_id) in mtcmos_ctrl_little_off() argument
111 switch (linear_id) { in mtcmos_ctrl_little_off()
/rk3399_ARM-atf/plat/qemu/common/
H A Dqemu_spm.c74 tmp->linear_id = 0; in qemu_initialize_mp_info()
/rk3399_ARM-atf/services/std_svc/spm/spm_mm/
H A Dspm_mm_setup.c386 sp_mp_info[index].linear_id = plat_core_pos_by_mpidr(mpidr); in spm_sp_setup()
387 if (plat_my_core_pos() == sp_mp_info[index].linear_id) in spm_sp_setup()