Lines Matching refs:cpu_mfr_info
28 static void __init_or_module riscv_fill_cpu_mfr_info(struct cpu_manufacturer_info_t *cpu_mfr_info) in riscv_fill_cpu_mfr_info() argument
31 cpu_mfr_info->vendor_id = csr_read(CSR_MVENDORID); in riscv_fill_cpu_mfr_info()
32 cpu_mfr_info->arch_id = csr_read(CSR_MARCHID); in riscv_fill_cpu_mfr_info()
33 cpu_mfr_info->imp_id = csr_read(CSR_MIMPID); in riscv_fill_cpu_mfr_info()
35 cpu_mfr_info->vendor_id = sbi_get_mvendorid(); in riscv_fill_cpu_mfr_info()
36 cpu_mfr_info->arch_id = sbi_get_marchid(); in riscv_fill_cpu_mfr_info()
37 cpu_mfr_info->imp_id = sbi_get_mimpid(); in riscv_fill_cpu_mfr_info()
40 switch (cpu_mfr_info->vendor_id) { in riscv_fill_cpu_mfr_info()
43 cpu_mfr_info->patch_func = sifive_errata_patch_func; in riscv_fill_cpu_mfr_info()
48 cpu_mfr_info->patch_func = thead_errata_patch_func; in riscv_fill_cpu_mfr_info()
52 cpu_mfr_info->patch_func = NULL; in riscv_fill_cpu_mfr_info()
65 struct cpu_manufacturer_info_t cpu_mfr_info; in _apply_alternatives() local
67 riscv_fill_cpu_mfr_info(&cpu_mfr_info); in _apply_alternatives()
71 if (!cpu_mfr_info.patch_func) in _apply_alternatives()
74 cpu_mfr_info.patch_func(begin, end, in _apply_alternatives()
75 cpu_mfr_info.arch_id, in _apply_alternatives()
76 cpu_mfr_info.imp_id, in _apply_alternatives()