Lines Matching defs:cpu
21 // map of cluster/cpu to cpu_id
24 // cpu id to cluster and id within cluster map
31 // per cpu structures, each cpu will point to theirs using the x18 register
43 for (uint cpu = 0; cpu < cpus; cpu++) {
44 // given cluster:cpu, translate to global cpu id
45 arm64_cpu_map[cluster][cpu] = cpu_id;
47 // given global gpu_id, translate to cluster and cpu number within cluster
49 arm64_cpu_cpu_ids[cpu_id] = cpu;
51 // set the per cpu structure's cpu id
61 // do the 'slow' lookup by mpidr to cpu number
65 uint cpu = (mpidr & MPIDR_AFF0_MASK) >> MPIDR_AFF0_SHIFT;
67 return arm64_cpu_map[cluster][cpu];
70 cpu_num_t arch_mpid_to_cpu_num(uint cluster, uint cpu) {
71 return arm64_cpu_map[cluster][cpu];
101 // slow lookup the current cpu id and setup the percpu structure
102 uint cpu = arch_curr_cpu_num_slow();
104 arm64_write_percpu_ptr(&arm64_percpu_array[cpu]);