Home
last modified time | relevance | path

Searched refs:mpidr (Results 1 – 25 of 35) sorted by relevance

12

/device/linaro/bootloader/arm-trusted-firmware/plat/fvp/drivers/pwrc/
Dfvp_pwrc.c48 unsigned int fvp_pwrc_get_cpu_wkr(unsigned long mpidr) in fvp_pwrc_get_cpu_wkr() argument
50 return PSYSR_WK(fvp_pwrc_read_psysr(mpidr)); in fvp_pwrc_get_cpu_wkr()
53 unsigned int fvp_pwrc_read_psysr(unsigned long mpidr) in fvp_pwrc_read_psysr() argument
57 mmio_write_32(PWRC_BASE + PSYSR_OFF, (unsigned int) mpidr); in fvp_pwrc_read_psysr()
63 void fvp_pwrc_write_pponr(unsigned long mpidr) in fvp_pwrc_write_pponr() argument
66 mmio_write_32(PWRC_BASE + PPONR_OFF, (unsigned int) mpidr); in fvp_pwrc_write_pponr()
70 void fvp_pwrc_write_ppoffr(unsigned long mpidr) in fvp_pwrc_write_ppoffr() argument
73 mmio_write_32(PWRC_BASE + PPOFFR_OFF, (unsigned int) mpidr); in fvp_pwrc_write_ppoffr()
77 void fvp_pwrc_set_wen(unsigned long mpidr) in fvp_pwrc_set_wen() argument
81 (unsigned int) (PWKUPR_WEN | mpidr)); in fvp_pwrc_set_wen()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/services/std_svc/psci/
Dpsci_setup.c98 if (psci_aff_map[mid].mpidr > key) in psci_aff_map_get_idx()
100 else if (psci_aff_map[mid].mpidr < key) in psci_aff_map_get_idx()
106 aff_map_node_t *psci_get_aff_map_node(unsigned long mpidr, int aff_lvl) in psci_get_aff_map_node() argument
114 mpidr = mpidr_mask_lower_afflvls(mpidr, aff_lvl); in psci_get_aff_map_node()
116 rc = psci_aff_map_get_idx(mpidr, in psci_get_aff_map_node()
131 int psci_get_aff_map_nodes(unsigned long mpidr, in psci_get_aff_map_nodes() argument
150 node = psci_get_aff_map_node(mpidr, level); in psci_get_aff_map_nodes()
182 static void psci_init_aff_map_node(unsigned long mpidr, in psci_init_aff_map_node() argument
188 psci_aff_map[idx].mpidr = mpidr; in psci_init_aff_map_node()
195 state = plat_get_aff_state(level, mpidr); in psci_init_aff_map_node()
[all …]
Dpsci_common.c95 unsigned long mpidr = read_mpidr_el1() & MPIDR_AFFINITY_MASK; in psci_is_last_on_cpu() local
106 if (psci_aff_map[i].mpidr == mpidr) { in psci_is_last_on_cpu()
212 unsigned long mpidr_set_aff_inst(unsigned long mpidr, in mpidr_set_aff_inst() argument
227 mpidr &= ~(MPIDR_AFFLVL_MASK << aff_shift); in mpidr_set_aff_inst()
228 mpidr |= aff_inst << aff_shift; in mpidr_set_aff_inst()
230 return mpidr; in mpidr_set_aff_inst()
312 int psci_validate_mpidr(unsigned long mpidr, int level) in psci_validate_mpidr() argument
316 node = psci_get_aff_map_node(mpidr, level); in psci_validate_mpidr()
611 int psci_spd_migrate_info(uint64_t *mpidr) in psci_spd_migrate_info() argument
618 rc = psci_spd_pm->svc_migrate_info(mpidr); in psci_spd_migrate_info()
[all …]
Dpsci_private.h81 unsigned long mpidr; member
147 int psci_spd_migrate_info(uint64_t *mpidr);
150 int psci_get_aff_map_nodes(unsigned long mpidr,
/device/linaro/bootloader/arm-trusted-firmware/plat/fvp/
Dfvp_pm.c51 static void fvp_program_mailbox(uint64_t mpidr, uint64_t address) in fvp_program_mailbox() argument
56 linear_id = platform_get_core_pos(mpidr); in fvp_program_mailbox()
82 uint64_t mpidr = read_mpidr_el1(); in fvp_cluster_pwrdwn_common() local
86 cci_disable_cluster_coherency(mpidr); in fvp_cluster_pwrdwn_common()
89 fvp_pwrc_write_pcoffr(mpidr); in fvp_cluster_pwrdwn_common()
136 int fvp_affinst_on(unsigned long mpidr, in fvp_affinst_on() argument
159 psysr = fvp_pwrc_read_psysr(mpidr); in fvp_affinst_on()
162 fvp_program_mailbox(mpidr, sec_entrypoint); in fvp_affinst_on()
163 fvp_pwrc_write_pponr(mpidr); in fvp_affinst_on()
213 unsigned long mpidr; in fvp_affinst_suspend() local
[all …]
Dfvp_topology.c78 unsigned long mpidr) in plat_get_aff_count() argument
92 parent_aff_id = (mpidr >> MPIDR_AFF3_SHIFT) & MPIDR_AFFLVL_MASK; in plat_get_aff_count()
102 parent_aff_id = (mpidr >> MPIDR_AFF2_SHIFT) & MPIDR_AFFLVL_MASK; in plat_get_aff_count()
115 parent_aff_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_get_aff_count()
148 unsigned long mpidr) in plat_get_aff_state() argument
151 idx = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_get_aff_state()
169 idx += (mpidr >> MPIDR_AFF0_SHIFT) & MPIDR_AFFLVL_MASK; in plat_get_aff_state()
196 unsigned long mpidr; in fvp_setup_topology() local
207 mpidr = aff1 << MPIDR_AFF1_SHIFT; in fvp_setup_topology()
208 mpidr |= aff0 << MPIDR_AFF0_SHIFT; in fvp_setup_topology()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/bl32/tsp/
Dtsp_interrupt.c52 uint64_t mpidr = read_mpidr(); in tsp_update_sync_fiq_stats() local
53 uint32_t linear_id = platform_get_core_pos(mpidr); in tsp_update_sync_fiq_stats()
62 mpidr, elr_el3); in tsp_update_sync_fiq_stats()
64 mpidr, in tsp_update_sync_fiq_stats()
80 uint64_t mpidr = read_mpidr(); in tsp_fiq_handler() local
81 uint32_t linear_id = platform_get_core_pos(mpidr), id; in tsp_fiq_handler()
108 mpidr, id); in tsp_fiq_handler()
110 mpidr, tsp_stats[linear_id].fiq_count); in tsp_fiq_handler()
118 uint64_t mpidr = read_mpidr(); in tsp_irq_received() local
119 uint32_t linear_id = platform_get_core_pos(mpidr); in tsp_irq_received()
[all …]
Dtsp_main.c81 uint64_t mpidr = read_mpidr(); in set_smc_args() local
89 linear_id = platform_get_core_pos(mpidr); in set_smc_args()
116 uint64_t mpidr = read_mpidr(); in tsp_main() local
117 uint32_t linear_id = platform_get_core_pos(mpidr); in tsp_main()
132 INFO("TSP: cpu 0x%x: %d smcs, %d erets %d cpu on requests\n", mpidr, in tsp_main()
148 uint64_t mpidr = read_mpidr(); in tsp_cpu_on_main() local
149 uint32_t linear_id = platform_get_core_pos(mpidr); in tsp_cpu_on_main()
161 INFO("TSP: cpu 0x%x turned on\n", mpidr); in tsp_cpu_on_main()
162 INFO("TSP: cpu 0x%x: %d smcs, %d erets %d cpu on requests\n", mpidr, in tsp_cpu_on_main()
185 uint64_t mpidr = read_mpidr(); in tsp_cpu_off_main() local
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/hikey/
Dplat_pm.c64 int32_t hikey_affinst_on(uint64_t mpidr, in hikey_affinst_on() argument
71 cluster = (mpidr & MPIDR_CLUSTER_MASK) >> MPIDR_AFF1_SHIFT; in hikey_affinst_on()
72 cpu = mpidr & MPIDR_CPU_MASK; in hikey_affinst_on()
74 VERBOSE("#%s, mpidr:%llx, afflvl:%x, state:%x\n", __func__, mpidr, afflvl, state); in hikey_affinst_on()
97 unsigned int mpidr = read_mpidr_el1(); in hikey_affinst_off() local
100 cluster = (mpidr & MPIDR_CLUSTER_MASK) >> MPIDR_AFF1_SHIFT; in hikey_affinst_off()
101 cpu = mpidr & MPIDR_CPU_MASK; in hikey_affinst_off()
109 cci_disable_cluster_coherency(mpidr); in hikey_affinst_off()
128 unsigned int mpidr = read_mpidr_el1(); in hikey_affinst_suspend() local
131 cluster = (mpidr & MPIDR_CLUSTER_MASK) >> MPIDR_AFF1_SHIFT; in hikey_affinst_suspend()
[all …]
Dplat_topology.c35 unsigned int plat_get_aff_count(unsigned int aff_lvl, unsigned long mpidr) in plat_get_aff_count() argument
47 unsigned int plat_get_aff_state(unsigned int aff_lvl, unsigned long mpidr) in plat_get_aff_state() argument
/device/linaro/bootloader/arm-trusted-firmware/services/spd/opteed/
Dopteed_pm.c54 uint64_t mpidr = read_mpidr(); in opteed_cpu_off_handler() local
55 uint32_t linear_id = platform_get_core_pos(mpidr); in opteed_cpu_off_handler()
88 uint64_t mpidr = read_mpidr(); in opteed_cpu_suspend_handler() local
89 uint32_t linear_id = platform_get_core_pos(mpidr); in opteed_cpu_suspend_handler()
119 uint64_t mpidr = read_mpidr(); in opteed_cpu_on_finish_handler() local
120 uint32_t linear_id = platform_get_core_pos(mpidr); in opteed_cpu_on_finish_handler()
132 cm_init_context(mpidr, &optee_on_entrypoint); in opteed_cpu_on_finish_handler()
156 uint64_t mpidr = read_mpidr(); in opteed_cpu_suspend_finish_handler() local
157 uint32_t linear_id = platform_get_core_pos(mpidr); in opteed_cpu_suspend_finish_handler()
196 uint64_t mpidr = read_mpidr(); in opteed_system_off() local
[all …]
Dopteed_main.c101 uint64_t mpidr; in opteed_sel1_interrupt_handler() local
113 mpidr = read_mpidr(); in opteed_sel1_interrupt_handler()
120 linear_id = platform_get_core_pos(mpidr); in opteed_sel1_interrupt_handler()
154 uint64_t mpidr = read_mpidr(); in opteed_setup() local
164 linear_id = platform_get_core_pos(mpidr); in opteed_setup()
308 uint64_t mpidr = read_mpidr(); in opteed_init() local
309 uint32_t linear_id = platform_get_core_pos(mpidr); in opteed_init()
321 cm_init_context(mpidr, optee_entry_point); in opteed_init()
352 unsigned long mpidr = read_mpidr(); in opteed_smc_handler() local
353 uint32_t linear_id = platform_get_core_pos(mpidr); in opteed_smc_handler()
/device/linaro/bootloader/arm-trusted-firmware/services/spd/tspd/
Dtspd_pm.c55 uint64_t mpidr = read_mpidr(); in tspd_cpu_off_handler() local
56 uint32_t linear_id = platform_get_core_pos(mpidr); in tspd_cpu_off_handler()
89 uint64_t mpidr = read_mpidr(); in tspd_cpu_suspend_handler() local
90 uint32_t linear_id = platform_get_core_pos(mpidr); in tspd_cpu_suspend_handler()
120 uint64_t mpidr = read_mpidr(); in tspd_cpu_on_finish_handler() local
121 uint32_t linear_id = platform_get_core_pos(mpidr); in tspd_cpu_on_finish_handler()
134 cm_init_context(mpidr, &tsp_on_entrypoint); in tspd_cpu_on_finish_handler()
166 uint64_t mpidr = read_mpidr(); in tspd_cpu_suspend_finish_handler() local
167 uint32_t linear_id = platform_get_core_pos(mpidr); in tspd_cpu_suspend_finish_handler()
206 uint64_t mpidr = read_mpidr(); in tspd_system_off() local
[all …]
Dtspd_main.c104 uint64_t mpidr; in tspd_sel1_interrupt_handler() local
116 mpidr = read_mpidr(); in tspd_sel1_interrupt_handler()
123 linear_id = platform_get_core_pos(mpidr); in tspd_sel1_interrupt_handler()
200 uint64_t mpidr = read_mpidr(); in tspd_setup() local
203 linear_id = platform_get_core_pos(mpidr); in tspd_setup()
259 uint64_t mpidr = read_mpidr(); in tspd_init() local
260 uint32_t linear_id = platform_get_core_pos(mpidr); in tspd_init()
272 cm_init_context(mpidr, tsp_entry_point); in tspd_init()
303 unsigned long mpidr = read_mpidr(); in tspd_smc_handler() local
304 uint32_t linear_id = platform_get_core_pos(mpidr), ns; in tspd_smc_handler()
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/gic/
Dgic_v3.c35 uintptr_t gicv3_get_rdist(uintptr_t gicr_base, uint64_t mpidr) in gicv3_get_rdist() argument
44 cpu_aff = ((mpidr >> MPIDR_AFF0_SHIFT) & MPIDR_AFFLVL_MASK) << in gicv3_get_rdist()
46 cpu_aff |= ((mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK) << in gicv3_get_rdist()
48 cpu_aff |= ((mpidr >> MPIDR_AFF2_SHIFT) & MPIDR_AFFLVL_MASK) << in gicv3_get_rdist()
50 cpu_aff |= ((mpidr >> MPIDR_AFF3_SHIFT) & MPIDR_AFFLVL_MASK) << in gicv3_get_rdist()
78 ERROR("GICv3 - Did not find RDIST for CPU with MPIDR 0x%lx\n", mpidr); in gicv3_get_rdist()
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/cci400/
Dcci400.c67 static inline unsigned long get_slave_iface_base(unsigned long mpidr) in get_slave_iface_base() argument
76 (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in get_slave_iface_base()
84 void cci_enable_cluster_coherency(unsigned long mpidr) in cci_enable_cluster_coherency() argument
88 mmio_write_32(get_slave_iface_base(mpidr) + SNOOP_CTRL_REG, in cci_enable_cluster_coherency()
96 void cci_disable_cluster_coherency(unsigned long mpidr) in cci_disable_cluster_coherency() argument
100 mmio_write_32(get_slave_iface_base(mpidr) + SNOOP_CTRL_REG, in cci_disable_cluster_coherency()
/device/linaro/bootloader/arm-trusted-firmware/plat/juno/
Dplat_pm.c48 static void juno_program_mailbox(uint64_t mpidr, uint64_t address) in juno_program_mailbox() argument
53 linear_id = platform_get_core_pos(mpidr); in juno_program_mailbox()
116 int32_t juno_affinst_on(uint64_t mpidr, in juno_affinst_on() argument
131 juno_program_mailbox(mpidr, sec_entrypoint); in juno_affinst_on()
133 scpi_set_css_power_state(mpidr, scpi_power_on, scpi_power_on, in juno_affinst_on()
148 unsigned long mpidr; in juno_affinst_on_finish() local
155 mpidr = read_mpidr_el1(); in juno_affinst_on_finish()
162 cci_enable_cluster_coherency(mpidr); in juno_affinst_on_finish()
172 juno_program_mailbox(mpidr, 0); in juno_affinst_on_finish()
Dplat_topology.c34 unsigned int plat_get_aff_count(unsigned int aff_lvl, unsigned long mpidr) in plat_get_aff_count() argument
43 return mpidr & 0x100 ? 4 : 2; /* 4 cpus in cluster 1, 2 in cluster 0 */ in plat_get_aff_count()
46 unsigned int plat_get_aff_state(unsigned int aff_lvl, unsigned long mpidr) in plat_get_aff_state() argument
Djuno_private.h133 unsigned int platform_get_core_pos(unsigned long mpidr);
154 unsigned long platform_get_stack(unsigned long mpidr);
161 unsigned int plat_get_aff_count(unsigned int aff_lvl, unsigned long mpidr);
162 unsigned int plat_get_aff_state(unsigned int aff_lvl, unsigned long mpidr);
Dscpi.c117 void scpi_set_css_power_state(unsigned mpidr, scpi_power_state_t cpu_state, in scpi_set_css_power_state() argument
120 uint32_t state = mpidr & 0x0f; /* CPU ID */ in scpi_set_css_power_state()
121 state |= (mpidr & 0xf00) >> 4; /* Cluster ID */ in scpi_set_css_power_state()
/device/linaro/bootloader/arm-trusted-firmware/include/bl31/
Dcontext_mgmt.h46 void *cm_get_context_by_mpidr(uint64_t mpidr, uint32_t security_state);
48 void cm_set_context_by_mpidr(uint64_t mpidr,
52 void cm_init_context(uint64_t mpidr, const struct entry_point_info *ep);
/device/linaro/bootloader/arm-trusted-firmware/bl31/
Dcontext_mgmt.c72 void *cm_get_context_by_mpidr(uint64_t mpidr, uint32_t security_state) in cm_get_context_by_mpidr() argument
76 return get_cpu_data_by_mpidr(mpidr, cpu_context[security_state]); in cm_get_context_by_mpidr()
83 void cm_set_context_by_mpidr(uint64_t mpidr, void *context, uint32_t security_state) in cm_set_context_by_mpidr() argument
87 set_cpu_data_by_mpidr(mpidr, cpu_context[security_state], context); in cm_set_context_by_mpidr()
132 void cm_init_context(uint64_t mpidr, const entry_point_info_t *ep) in cm_init_context() argument
142 ctx = cm_get_context_by_mpidr(mpidr, security_state); in cm_init_context()
/device/linaro/bootloader/arm-trusted-firmware/include/drivers/arm/
Dcci400.h86 void cci_enable_cluster_coherency(unsigned long mpidr);
87 void cci_disable_cluster_coherency(unsigned long mpidr);
Dgic_v3.h69 uintptr_t gicv3_get_rdist(uintptr_t gicr_base, uint64_t mpidr);
/device/linaro/bootloader/arm-trusted-firmware/include/plat/common/
Dplatform.h72 unsigned int platform_get_core_pos(unsigned long mpidr);
73 unsigned long platform_get_stack(unsigned long mpidr);

12