Lines Matching refs:q

248 	struct crypto_alg *q;  in crypto_alg_finish_registration()  local
250 list_for_each_entry(q, &crypto_alg_list, cra_list) { in crypto_alg_finish_registration()
251 if (q == alg) in crypto_alg_finish_registration()
254 if (crypto_is_moribund(q)) in crypto_alg_finish_registration()
257 if (crypto_is_larval(q)) in crypto_alg_finish_registration()
260 if (strcmp(alg->cra_name, q->cra_name)) in crypto_alg_finish_registration()
263 if (strcmp(alg->cra_driver_name, q->cra_driver_name) && in crypto_alg_finish_registration()
264 q->cra_priority > alg->cra_priority) in crypto_alg_finish_registration()
267 crypto_remove_spawns(q, algs_to_put, alg); in crypto_alg_finish_registration()
303 struct crypto_alg *q; in __crypto_register_alg() local
314 list_for_each_entry(q, &crypto_alg_list, cra_list) { in __crypto_register_alg()
315 if (q == alg) in __crypto_register_alg()
318 if (crypto_is_moribund(q)) in __crypto_register_alg()
321 if (crypto_is_larval(q)) { in __crypto_register_alg()
322 if (!strcmp(alg->cra_driver_name, q->cra_driver_name)) in __crypto_register_alg()
327 if (!strcmp(q->cra_driver_name, alg->cra_name) || in __crypto_register_alg()
328 !strcmp(q->cra_driver_name, alg->cra_driver_name) || in __crypto_register_alg()
329 !strcmp(q->cra_name, alg->cra_driver_name)) in __crypto_register_alg()
361 struct crypto_alg *q; in crypto_alg_tested() local
365 list_for_each_entry(q, &crypto_alg_list, cra_list) { in crypto_alg_tested()
366 if (crypto_is_moribund(q) || !crypto_is_larval(q)) in crypto_alg_tested()
369 test = (struct crypto_larval *)q; in crypto_alg_tested()
371 if (!strcmp(q->cra_driver_name, name)) in crypto_alg_tested()
380 q->cra_flags |= CRYPTO_ALG_DEAD; in crypto_alg_tested()
539 struct crypto_template *q; in crypto_register_template() local
548 list_for_each_entry(q, &crypto_template_list, list) { in crypto_register_template()
549 if (q == tmpl) in crypto_register_template()
621 struct crypto_template *q, *tmpl = NULL; in __crypto_lookup_template() local
624 list_for_each_entry(q, &crypto_template_list, list) { in __crypto_lookup_template()
625 if (strcmp(q->name, name)) in __crypto_lookup_template()
627 if (unlikely(!crypto_tmpl_get(q))) in __crypto_lookup_template()
630 tmpl = q; in __crypto_lookup_template()
1068 struct crypto_alg *q; in crypto_start_tests() local
1072 list_for_each_entry(q, &crypto_alg_list, cra_list) { in crypto_start_tests()
1075 if (!crypto_is_larval(q)) in crypto_start_tests()
1078 l = (void *)q; in crypto_start_tests()