Lines Matching full:method
66 static unsigned int spectre_v2_install_workaround(unsigned int method) in spectre_v2_install_workaround() argument
74 switch (method) { in spectre_v2_install_workaround()
109 static unsigned int spectre_v2_install_workaround(unsigned int method) in spectre_v2_install_workaround() argument
120 unsigned int state, method = 0; in cpu_v7_spectre_v2_init() local
130 method = SPECTRE_V2_METHOD_BPIALL; in cpu_v7_spectre_v2_init()
136 method = SPECTRE_V2_METHOD_ICIALLU; in cpu_v7_spectre_v2_init()
162 method = SPECTRE_V2_METHOD_HVC; in cpu_v7_spectre_v2_init()
166 method = SPECTRE_V2_METHOD_SMC; in cpu_v7_spectre_v2_init()
176 state = spectre_v2_install_workaround(method); in cpu_v7_spectre_v2_init()
178 spectre_v2_update_state(state, method); in cpu_v7_spectre_v2_init()
184 static const char *spectre_bhb_method_name(int method) in spectre_bhb_method_name() argument
186 switch (method) { in spectre_bhb_method_name()
198 static int spectre_bhb_install_workaround(int method) in spectre_bhb_install_workaround() argument
200 if (spectre_bhb_method != method) { in spectre_bhb_install_workaround()
202 pr_err("CPU%u: Spectre BHB: method disagreement, system vulnerable\n", in spectre_bhb_install_workaround()
208 if (spectre_bhb_update_vectors(method) == SPECTRE_VULNERABLE) in spectre_bhb_install_workaround()
211 spectre_bhb_method = method; in spectre_bhb_install_workaround()
215 smp_processor_id(), spectre_bhb_method_name(method)); in spectre_bhb_install_workaround()
220 static int spectre_bhb_install_workaround(int method) in spectre_bhb_install_workaround() argument
228 unsigned int state, method = 0; in cpu_v7_spectre_bhb_init() local
236 method = SPECTRE_V2_METHOD_LOOP8; in cpu_v7_spectre_bhb_init()
242 method = SPECTRE_V2_METHOD_BPIALL; in cpu_v7_spectre_bhb_init()
251 state = spectre_bhb_install_workaround(method); in cpu_v7_spectre_bhb_init()
253 spectre_v2_update_state(state, method); in cpu_v7_spectre_bhb_init()