Home
last modified time | relevance | path

Searched refs:cpu_select (Results 1 – 5 of 5) sorted by relevance

/u-boot/cmd/x86/
A Dmtrr.c30 static int do_mtrr_list(int reg_count, int cpu_select) in do_mtrr_list() argument
39 ret = mp_run_on_cpus(cpu_select, read_mtrrs, &info); in do_mtrr_list()
91 ret = mtrr_set(cpu_select, reg, base, mask); in do_mtrr_set()
103 int cpu_select; in do_mtrr() local
107 cpu_select = MP_SELECT_BSP; in do_mtrr()
113 cpu_select = MP_SELECT_ALL; in do_mtrr()
115 cpu_select = simple_strtol(cpustr, NULL, 16); in do_mtrr()
139 i = mp_first_cpu(cpu_select); in do_mtrr()
145 for (; i >= 0; i = mp_next_cpu(cpu_select, i)) { in do_mtrr()
160 ret = mtrr_set_valid(cpu_select, reg, true); in do_mtrr()
[all …]
/u-boot/arch/x86/include/asm/
A Dmp.h125 int mp_run_on_cpus(int cpu_select, mp_run_func func, void *arg);
146 int mp_first_cpu(int cpu_select);
161 int mp_next_cpu(int cpu_select, int prev_cpu);
163 static inline int mp_run_on_cpus(int cpu_select, mp_run_func func, void *arg) in mp_run_on_cpus() argument
178 static inline int mp_first_cpu(int cpu_select) in mp_first_cpu() argument
181 return cpu_select == MP_SELECT_APS ? -EFBIG : MP_SELECT_BSP; in mp_first_cpu()
184 static inline int mp_next_cpu(int cpu_select, int prev_cpu) in mp_next_cpu() argument
A Dmtrr.h170 int mtrr_set_valid(int cpu_select, int reg, bool valid);
181 int mtrr_set(int cpu_select, int reg, u64 base, u64 mask);
/u-boot/arch/x86/cpu/
A Dmp_init.c728 .logical_cpu_number = cpu_select, in mp_run_on_cpus()
737 if (cpu_select == MP_SELECT_ALL || cpu_select == MP_SELECT_BSP || in mp_run_on_cpus()
738 cpu_select == ret) { in mp_run_on_cpus()
746 if (cpu_select == MP_SELECT_BSP || !cpu_select) in mp_run_on_cpus()
775 int mp_first_cpu(int cpu_select) in mp_first_cpu() argument
785 if (cpu_select == MP_SELECT_ALL) in mp_first_cpu()
793 if (cpu_select == MP_SELECT_BSP) in mp_first_cpu()
801 if (cpu_select < 0 || cpu_select >= num_cpus) in mp_first_cpu()
807 int mp_next_cpu(int cpu_select, int prev_cpu) in mp_next_cpu() argument
816 cpu_select >= 0) in mp_next_cpu()
[all …]
A Dmtrr.c284 static int mtrr_start_op(int cpu_select, struct mtrr_oper *oper) in mtrr_start_op() argument
290 ret = mp_run_on_cpus(cpu_select, mtrr_do_oper, oper); in mtrr_start_op()
298 int mtrr_set_valid(int cpu_select, int reg, bool valid) in mtrr_set_valid() argument
306 return mtrr_start_op(cpu_select, &oper); in mtrr_set_valid()
309 int mtrr_set(int cpu_select, int reg, u64 base, u64 mask) in mtrr_set() argument
318 return mtrr_start_op(cpu_select, &oper); in mtrr_set()

Completed in 8 milliseconds