Searched defs:mpidr (Results 1 - 23 of 23) sorted by relevance

/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/gic/
H A Dgic_v3.c35 uintptr_t gicv3_get_rdist(uintptr_t gicr_base, uint64_t mpidr) argument
44 cpu_aff = ((mpidr >> MPIDR_AFF0_SHIFT) & MPIDR_AFFLVL_MASK) <<
46 cpu_aff |= ((mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK) <<
48 cpu_aff |= ((mpidr >> MPIDR_AFF2_SHIFT) & MPIDR_AFFLVL_MASK) <<
50 cpu_aff |= ((mpidr >> MPIDR_AFF3_SHIFT) & MPIDR_AFFLVL_MASK) <<
64 * mpidr, addr);
78 ERROR("GICv3 - Did not find RDIST for CPU with MPIDR 0x%lx\n", mpidr);
/device/linaro/bootloader/arm-trusted-firmware/plat/hikey/
H A Dplat_topology.c35 unsigned int plat_get_aff_count(unsigned int aff_lvl, unsigned long mpidr) argument
47 unsigned int plat_get_aff_state(unsigned int aff_lvl, unsigned long mpidr) argument
H A Dplat_pm.c64 int32_t hikey_affinst_on(uint64_t mpidr, argument
71 cluster = (mpidr & MPIDR_CLUSTER_MASK) >> MPIDR_AFF1_SHIFT;
72 cpu = mpidr & MPIDR_CPU_MASK;
74 VERBOSE("#%s, mpidr:%llx, afflvl:%x, state:%x\n", __func__, mpidr, afflvl, state);
97 unsigned int mpidr = read_mpidr_el1(); local
100 cluster = (mpidr & MPIDR_CLUSTER_MASK) >> MPIDR_AFF1_SHIFT;
101 cpu = mpidr & MPIDR_CPU_MASK;
109 cci_disable_cluster_coherency(mpidr);
128 unsigned int mpidr local
170 unsigned long mpidr; local
[all...]
/device/linaro/bootloader/arm-trusted-firmware/plat/juno/
H A Dplat_topology.c34 unsigned int plat_get_aff_count(unsigned int aff_lvl, unsigned long mpidr) argument
43 return mpidr & 0x100 ? 4 : 2; /* 4 cpus in cluster 1, 2 in cluster 0 */
46 unsigned int plat_get_aff_state(unsigned int aff_lvl, unsigned long mpidr) argument
H A Dscpi.c117 void scpi_set_css_power_state(unsigned mpidr, scpi_power_state_t cpu_state, argument
120 uint32_t state = mpidr & 0x0f; /* CPU ID */
121 state |= (mpidr & 0xf00) >> 4; /* Cluster ID */
H A Dplat_pm.c48 static void juno_program_mailbox(uint64_t mpidr, uint64_t address) argument
53 linear_id = platform_get_core_pos(mpidr);
114 * level and mpidr determine the affinity instance.
116 int32_t juno_affinst_on(uint64_t mpidr, argument
131 juno_program_mailbox(mpidr, sec_entrypoint);
133 scpi_set_css_power_state(mpidr, scpi_power_on, scpi_power_on,
141 * being turned off earlier. The level and mpidr determine the affinity
148 unsigned long mpidr; local
154 /* Get the mpidr for this cpu */
155 mpidr
[all...]
/device/linaro/bootloader/arm-trusted-firmware/bl32/tsp/
H A Dtsp_interrupt.c52 uint64_t mpidr = read_mpidr(); local
53 uint32_t linear_id = platform_get_core_pos(mpidr);
62 mpidr, elr_el3);
64 mpidr,
80 uint64_t mpidr = read_mpidr(); local
81 uint32_t linear_id = platform_get_core_pos(mpidr), id;
108 mpidr, id);
110 mpidr, tsp_stats[linear_id].fiq_count);
118 uint64_t mpidr = read_mpidr(); local
119 uint32_t linear_id = platform_get_core_pos(mpidr);
[all...]
H A Dtsp_main.c81 uint64_t mpidr = read_mpidr(); local
89 linear_id = platform_get_core_pos(mpidr);
116 uint64_t mpidr = read_mpidr(); local
117 uint32_t linear_id = platform_get_core_pos(mpidr);
132 INFO("TSP: cpu 0x%x: %d smcs, %d erets %d cpu on requests\n", mpidr,
148 uint64_t mpidr = read_mpidr(); local
149 uint32_t linear_id = platform_get_core_pos(mpidr);
161 INFO("TSP: cpu 0x%x turned on\n", mpidr);
162 INFO("TSP: cpu 0x%x: %d smcs, %d erets %d cpu on requests\n", mpidr,
185 uint64_t mpidr local
228 uint64_t mpidr = read_mpidr(); local
271 uint64_t mpidr = read_mpidr(); local
310 uint64_t mpidr = read_mpidr(); local
343 uint64_t mpidr = read_mpidr(); local
380 uint64_t mpidr = read_mpidr(); local
[all...]
/device/linaro/bootloader/arm-trusted-firmware/drivers/arm/cci400/
H A Dcci400.c67 static inline unsigned long get_slave_iface_base(unsigned long mpidr) argument
76 (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK;
84 void cci_enable_cluster_coherency(unsigned long mpidr) argument
88 mmio_write_32(get_slave_iface_base(mpidr) + SNOOP_CTRL_REG,
96 void cci_disable_cluster_coherency(unsigned long mpidr) argument
100 mmio_write_32(get_slave_iface_base(mpidr) + SNOOP_CTRL_REG,
/device/linaro/bootloader/arm-trusted-firmware/plat/fvp/drivers/pwrc/
H A Dfvp_pwrc.c48 unsigned int fvp_pwrc_get_cpu_wkr(unsigned long mpidr) argument
50 return PSYSR_WK(fvp_pwrc_read_psysr(mpidr));
53 unsigned int fvp_pwrc_read_psysr(unsigned long mpidr) argument
57 mmio_write_32(PWRC_BASE + PSYSR_OFF, (unsigned int) mpidr);
63 void fvp_pwrc_write_pponr(unsigned long mpidr) argument
66 mmio_write_32(PWRC_BASE + PPONR_OFF, (unsigned int) mpidr);
70 void fvp_pwrc_write_ppoffr(unsigned long mpidr) argument
73 mmio_write_32(PWRC_BASE + PPOFFR_OFF, (unsigned int) mpidr);
77 void fvp_pwrc_set_wen(unsigned long mpidr) argument
81 (unsigned int) (PWKUPR_WEN | mpidr));
85 fvp_pwrc_clr_wen(unsigned long mpidr) argument
93 fvp_pwrc_write_pcoffr(unsigned long mpidr) argument
[all...]
/device/linaro/bootloader/arm-trusted-firmware/services/spd/opteed/
H A Dopteed_pm.c54 uint64_t mpidr = read_mpidr(); local
55 uint32_t linear_id = platform_get_core_pos(mpidr);
83 * resident cpu (mpidr format) if it is a UP/UP migratable OPTEE.
88 uint64_t mpidr = read_mpidr(); local
89 uint32_t linear_id = platform_get_core_pos(mpidr);
119 uint64_t mpidr = read_mpidr(); local
120 uint32_t linear_id = platform_get_core_pos(mpidr);
132 cm_init_context(mpidr, &optee_on_entrypoint);
156 uint64_t mpidr = read_mpidr(); local
157 uint32_t linear_id = platform_get_core_pos(mpidr);
196 uint64_t mpidr = read_mpidr(); local
217 uint64_t mpidr = read_mpidr(); local
[all...]
H A Dopteed_main.c101 uint64_t mpidr; local
113 mpidr = read_mpidr();
120 linear_id = platform_get_core_pos(mpidr);
154 uint64_t mpidr = read_mpidr(); local
164 linear_id = platform_get_core_pos(mpidr);
308 uint64_t mpidr = read_mpidr(); local
309 uint32_t linear_id = platform_get_core_pos(mpidr);
321 cm_init_context(mpidr, optee_entry_point);
352 unsigned long mpidr = read_mpidr(); local
353 uint32_t linear_id = platform_get_core_pos(mpidr);
[all...]
H A Dopteed_private.h81 * tree to determine this in the future to avoid assumptions about mpidr
144 * 'mpidr' - mpidr to associate a context with a cpu
151 uint64_t mpidr; member in struct:optee_context
/device/linaro/bootloader/arm-trusted-firmware/services/spd/tspd/
H A Dtspd_pm.c55 uint64_t mpidr = read_mpidr(); local
56 uint32_t linear_id = platform_get_core_pos(mpidr);
84 * resident cpu (mpidr format) if it is a UP/UP migratable TSP.
89 uint64_t mpidr = read_mpidr(); local
90 uint32_t linear_id = platform_get_core_pos(mpidr);
120 uint64_t mpidr = read_mpidr(); local
121 uint32_t linear_id = platform_get_core_pos(mpidr);
134 cm_init_context(mpidr, &tsp_on_entrypoint);
166 uint64_t mpidr = read_mpidr(); local
167 uint32_t linear_id = platform_get_core_pos(mpidr);
206 uint64_t mpidr = read_mpidr(); local
227 uint64_t mpidr = read_mpidr(); local
[all...]
H A Dtspd_main.c104 uint64_t mpidr; local
116 mpidr = read_mpidr();
123 linear_id = platform_get_core_pos(mpidr);
200 uint64_t mpidr = read_mpidr(); local
203 linear_id = platform_get_core_pos(mpidr);
259 uint64_t mpidr = read_mpidr(); local
260 uint32_t linear_id = platform_get_core_pos(mpidr);
272 cm_init_context(mpidr, tsp_entry_point);
303 unsigned long mpidr = read_mpidr(); local
304 uint32_t linear_id = platform_get_core_pos(mpidr), n
[all...]
H A Dtspd_private.h99 * tree to determine this in the future to avoid assumptions about mpidr
191 * 'mpidr' - mpidr to associate a context with a cpu
206 uint64_t mpidr; member in struct:tsp_context
/device/linaro/bootloader/arm-trusted-firmware/services/std_svc/psci/
H A Dpsci_private.h81 unsigned long mpidr; member in struct:aff_map_node
147 int psci_spd_migrate_info(uint64_t *mpidr);
150 int psci_get_aff_map_nodes(unsigned long mpidr,
H A Dpsci_afflvl_suspend.c87 * This function gets the state id of the cpu specified by the 'mpidr' parameter
91 int psci_get_suspend_stateid_by_mpidr(unsigned long mpidr) argument
95 power_state = get_cpu_data_by_mpidr(mpidr,
268 * each affinity instance in the mpidr. If this function does
269 * not return successfully then either the mpidr or the affinity
306 * corresponding to the mpidr in the range of affinity levels
H A Dpsci_setup.c68 * in the mpidr. The first one uses binary search to find the node corresponding
69 * to the mpidr (key) at a particular affinity level. The second routine decides
98 if (psci_aff_map[mid].mpidr > key)
100 else if (psci_aff_map[mid].mpidr < key)
106 aff_map_node_t *psci_get_aff_map_node(unsigned long mpidr, int aff_lvl) argument
113 /* Right shift the mpidr to the required affinity level */
114 mpidr = mpidr_mask_lower_afflvls(mpidr, aff_lvl);
116 rc = psci_aff_map_get_idx(mpidr,
127 * affinity levels in an mpidr
131 psci_get_aff_map_nodes(unsigned long mpidr, int start_afflvl, int end_afflvl, aff_map_node_t *mpidr_nodes[]) argument
182 psci_init_aff_map_node(unsigned long mpidr, int level, unsigned int idx) argument
254 psci_init_aff_map(unsigned long mpidr, unsigned int affmap_idx, int cur_afflvl, int tgt_afflvl) argument
316 unsigned long mpidr = read_mpidr(); local
[all...]
H A Dpsci_common.c51 * corresponds to an affinity instance e.g. cluster, cpu within an mpidr
66 * topology tree for an mpidr. It iterates through the nodes to find the highest
95 unsigned long mpidr = read_mpidr_el1() & MPIDR_AFFINITY_MASK; local
106 if (psci_aff_map[i].mpidr == mpidr) {
210 * mpidr.
212 unsigned long mpidr_set_aff_inst(unsigned long mpidr, argument
227 mpidr &= ~(MPIDR_AFFLVL_MASK << aff_shift);
228 mpidr |= aff_inst << aff_shift;
230 return mpidr;
312 psci_validate_mpidr(unsigned long mpidr, int level) argument
611 psci_spd_migrate_info(uint64_t *mpidr) argument
[all...]
/device/linaro/bootloader/arm-trusted-firmware/plat/fvp/
H A Dfvp_pm.c51 static void fvp_program_mailbox(uint64_t mpidr, uint64_t address) argument
56 linear_id = platform_get_core_pos(mpidr);
82 uint64_t mpidr = read_mpidr_el1(); local
86 cci_disable_cluster_coherency(mpidr);
89 fvp_pwrc_write_pcoffr(mpidr);
134 * level and mpidr determine the affinity instance.
136 int fvp_affinst_on(unsigned long mpidr, argument
159 psysr = fvp_pwrc_read_psysr(mpidr);
162 fvp_program_mailbox(mpidr, sec_entrypoint);
163 fvp_pwrc_write_pponr(mpidr);
213 unsigned long mpidr; local
246 unsigned long mpidr; local
[all...]
H A Dfvp_topology.c70 * are present at a particular level for a given mpidr e.g. consider a dual
78 unsigned long mpidr)
92 parent_aff_id = (mpidr >> MPIDR_AFF3_SHIFT) & MPIDR_AFFLVL_MASK;
102 parent_aff_id = (mpidr >> MPIDR_AFF2_SHIFT) & MPIDR_AFFLVL_MASK;
115 parent_aff_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK;
141 * The mpidrs of the cluster would range from 0x0-0x3. The mpidr of the single
148 unsigned long mpidr)
151 idx = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK;
169 idx += (mpidr >> MPIDR_AFF0_SHIFT) & MPIDR_AFFLVL_MASK;
196 unsigned long mpidr; local
77 plat_get_aff_count(unsigned int aff_lvl, unsigned long mpidr) argument
147 plat_get_aff_state(unsigned int aff_lvl, unsigned long mpidr) argument
[all...]
/device/linaro/bootloader/arm-trusted-firmware/bl31/
H A Dcontext_mgmt.c72 void *cm_get_context_by_mpidr(uint64_t mpidr, uint32_t security_state) argument
76 return get_cpu_data_by_mpidr(mpidr, cpu_context[security_state]);
83 void cm_set_context_by_mpidr(uint64_t mpidr, void *context, uint32_t security_state) argument
87 set_cpu_data_by_mpidr(mpidr, cpu_context[security_state], context);
132 void cm_init_context(uint64_t mpidr, const entry_point_info_t *ep) argument
142 ctx = cm_get_context_by_mpidr(mpidr, security_state);

Completed in 177 milliseconds