Lines Matching refs:list
99 spawn = list_first_entry(stack, struct crypto_spawn, list); in crypto_more_spawns()
100 n = list_entry(spawn->list.next, struct crypto_spawn, list); in crypto_more_spawns()
102 if (spawn->alg && &n->list != stack && !n->alg) in crypto_more_spawns()
103 n->alg = (n->list.next == stack) ? alg : in crypto_more_spawns()
104 &list_entry(n->list.next, struct crypto_spawn, in crypto_more_spawns()
105 list)->inst->alg; in crypto_more_spawns()
107 list_move(&spawn->list, secondary_spawns); in crypto_more_spawns()
109 return &n->list == stack ? top : &n->inst->alg.cra_users; in crypto_more_spawns()
113 struct list_head *list) in crypto_remove_instance() argument
121 if (hlist_unhashed(&inst->list)) in crypto_remove_instance()
128 list_move(&inst->alg.cra_list, list); in crypto_remove_instance()
129 hlist_del(&inst->list); in crypto_remove_instance()
135 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, in crypto_remove_spawns() argument
146 list_for_each_entry_safe(spawn, n, spawns, list) { in crypto_remove_spawns()
150 list_move(&spawn->list, &top); in crypto_remove_spawns()
159 list); in crypto_remove_spawns()
164 list_move(&spawn->list, &stack); in crypto_remove_spawns()
175 list_for_each_entry_safe(spawn, n, &secondary_spawns, list) { in crypto_remove_spawns()
177 list_move(&spawn->list, &spawn->alg->cra_users); in crypto_remove_spawns()
179 crypto_remove_instance(spawn->inst, list); in crypto_remove_spawns()
251 LIST_HEAD(list); in crypto_alg_tested()
312 crypto_remove_spawns(q, &list, alg); in crypto_alg_tested()
321 crypto_remove_final(&list); in crypto_alg_tested()
325 void crypto_remove_final(struct list_head *list) in crypto_remove_final() argument
330 list_for_each_entry_safe(alg, n, list, cra_list) { in crypto_remove_final()
376 static int crypto_remove_alg(struct crypto_alg *alg, struct list_head *list) in crypto_remove_alg() argument
385 crypto_remove_spawns(alg, list, NULL); in crypto_remove_alg()
393 LIST_HEAD(list); in crypto_unregister_alg()
396 ret = crypto_remove_alg(alg, &list); in crypto_unregister_alg()
406 crypto_remove_final(&list); in crypto_unregister_alg()
455 list_for_each_entry(q, &crypto_template_list, list) { in crypto_register_template()
460 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
473 struct hlist_head *list; in crypto_unregister_template() local
478 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
479 list_del_init(&tmpl->list); in crypto_unregister_template()
481 list = &tmpl->instances; in crypto_unregister_template()
482 hlist_for_each_entry(inst, list, list) { in crypto_unregister_template()
492 hlist_for_each_entry_safe(inst, n, list, list) { in crypto_unregister_template()
505 list_for_each_entry(q, &crypto_template_list, list) { in __crypto_lookup_template()
548 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
573 LIST_HEAD(list); in crypto_unregister_instance()
577 crypto_remove_spawns(&inst->alg, &list, NULL); in crypto_unregister_instance()
578 crypto_remove_instance(inst, &list); in crypto_unregister_instance()
582 crypto_remove_final(&list); in crypto_unregister_instance()
598 list_add(&spawn->list, &alg->cra_users); in crypto_init_spawn()
647 list_del(&spawn->list); in crypto_drop_spawn()
877 INIT_LIST_HEAD(&queue->list); in crypto_init_queue()
878 queue->backlog = &queue->list; in crypto_init_queue()
893 if (queue->backlog == &queue->list) in crypto_enqueue_request()
894 queue->backlog = &request->list; in crypto_enqueue_request()
898 list_add_tail(&request->list, &queue->list); in crypto_enqueue_request()
914 if (queue->backlog != &queue->list) in crypto_dequeue_request()
917 request = queue->list.next; in crypto_dequeue_request()
920 return list_entry(request, struct crypto_async_request, list); in crypto_dequeue_request()
928 list_for_each_entry(req, &queue->list, list) { in crypto_tfm_in_queue()