Lines Matching refs: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
119 unsigned int state, method = 0; in cpu_v7_spectre_v2_init() local
129 method = SPECTRE_V2_METHOD_BPIALL; in cpu_v7_spectre_v2_init()
135 method = SPECTRE_V2_METHOD_ICIALLU; in cpu_v7_spectre_v2_init()
161 method = SPECTRE_V2_METHOD_HVC; in cpu_v7_spectre_v2_init()
165 method = SPECTRE_V2_METHOD_SMC; in cpu_v7_spectre_v2_init()
175 state = spectre_v2_install_workaround(method); in cpu_v7_spectre_v2_init()
177 spectre_v2_update_state(state, method); in cpu_v7_spectre_v2_init()
183 static const char *spectre_bhb_method_name(int method) in spectre_bhb_method_name() argument
185 switch (method) { in spectre_bhb_method_name()
197 static int spectre_bhb_install_workaround(int method) in spectre_bhb_install_workaround() argument
199 if (spectre_bhb_method != method) { in spectre_bhb_install_workaround()
207 if (spectre_bhb_update_vectors(method) == SPECTRE_VULNERABLE) in spectre_bhb_install_workaround()
210 spectre_bhb_method = method; in spectre_bhb_install_workaround()
213 smp_processor_id(), spectre_bhb_method_name(method)); in spectre_bhb_install_workaround()
219 static int spectre_bhb_install_workaround(int method) in spectre_bhb_install_workaround() argument
227 unsigned int state, method = 0; in cpu_v7_spectre_bhb_init() local
235 method = SPECTRE_V2_METHOD_LOOP8; in cpu_v7_spectre_bhb_init()
241 method = SPECTRE_V2_METHOD_BPIALL; in cpu_v7_spectre_bhb_init()
250 state = spectre_bhb_install_workaround(method); in cpu_v7_spectre_bhb_init()
252 spectre_v2_update_state(state, method); in cpu_v7_spectre_bhb_init()