• Home
  • Raw
  • Download

Lines Matching refs:q

192 	struct crypto_alg *q;  in __crypto_register_alg()  local
206 list_for_each_entry(q, &crypto_alg_list, cra_list) { in __crypto_register_alg()
207 if (q == alg) in __crypto_register_alg()
210 if (crypto_is_moribund(q)) in __crypto_register_alg()
213 if (crypto_is_larval(q)) { in __crypto_register_alg()
214 if (!strcmp(alg->cra_driver_name, q->cra_driver_name)) in __crypto_register_alg()
219 if (!strcmp(q->cra_driver_name, alg->cra_name) || in __crypto_register_alg()
220 !strcmp(q->cra_driver_name, alg->cra_driver_name) || in __crypto_register_alg()
221 !strcmp(q->cra_name, alg->cra_driver_name)) in __crypto_register_alg()
259 struct crypto_alg *q; in crypto_alg_tested() local
264 list_for_each_entry(q, &crypto_alg_list, cra_list) { in crypto_alg_tested()
265 if (crypto_is_moribund(q) || !crypto_is_larval(q)) in crypto_alg_tested()
268 test = (struct crypto_larval *)q; in crypto_alg_tested()
270 if (!strcmp(q->cra_driver_name, name)) in crypto_alg_tested()
278 q->cra_flags |= CRYPTO_ALG_DEAD; in crypto_alg_tested()
287 list_for_each_entry(q, &crypto_alg_list, cra_list) { in crypto_alg_tested()
288 if (crypto_is_moribund(q) || !crypto_is_larval(q)) in crypto_alg_tested()
291 if (strcmp(alg->cra_name, q->cra_name)) in crypto_alg_tested()
294 if (q->cra_priority > alg->cra_priority) { in crypto_alg_tested()
300 list_for_each_entry(q, &crypto_alg_list, cra_list) { in crypto_alg_tested()
301 if (q == alg) in crypto_alg_tested()
304 if (crypto_is_moribund(q)) in crypto_alg_tested()
307 if (crypto_is_larval(q)) { in crypto_alg_tested()
308 struct crypto_larval *larval = (void *)q; in crypto_alg_tested()
315 if (strcmp(alg->cra_name, q->cra_name) && in crypto_alg_tested()
316 strcmp(alg->cra_driver_name, q->cra_name)) in crypto_alg_tested()
321 if ((q->cra_flags ^ alg->cra_flags) & larval->mask) in crypto_alg_tested()
332 if (strcmp(alg->cra_name, q->cra_name)) in crypto_alg_tested()
335 if (strcmp(alg->cra_driver_name, q->cra_driver_name) && in crypto_alg_tested()
336 q->cra_priority > alg->cra_priority) in crypto_alg_tested()
339 crypto_remove_spawns(q, &list, alg); in crypto_alg_tested()
477 struct crypto_template *q; in crypto_register_template() local
484 list_for_each_entry(q, &crypto_template_list, list) { in crypto_register_template()
485 if (q == tmpl) in crypto_register_template()
555 struct crypto_template *q, *tmpl = NULL; in __crypto_lookup_template() local
558 list_for_each_entry(q, &crypto_template_list, list) { in __crypto_lookup_template()
559 if (strcmp(q->name, name)) in __crypto_lookup_template()
561 if (unlikely(!crypto_tmpl_get(q))) in __crypto_lookup_template()
564 tmpl = q; in __crypto_lookup_template()