Lines Matching refs:list
91 spawn = list_first_entry(stack, struct crypto_spawn, list); in crypto_more_spawns()
92 n = list_entry(spawn->list.next, struct crypto_spawn, list); in crypto_more_spawns()
94 if (spawn->alg && &n->list != stack && !n->alg) in crypto_more_spawns()
95 n->alg = (n->list.next == stack) ? alg : in crypto_more_spawns()
96 &list_entry(n->list.next, struct crypto_spawn, in crypto_more_spawns()
97 list)->inst->alg; in crypto_more_spawns()
99 list_move(&spawn->list, secondary_spawns); in crypto_more_spawns()
101 return &n->list == stack ? top : &n->inst->alg.cra_users; in crypto_more_spawns()
105 struct list_head *list) in crypto_remove_instance() argument
113 if (hlist_unhashed(&inst->list)) in crypto_remove_instance()
120 list_move(&inst->alg.cra_list, list); in crypto_remove_instance()
121 hlist_del(&inst->list); in crypto_remove_instance()
127 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, in crypto_remove_spawns() argument
138 list_for_each_entry_safe(spawn, n, spawns, list) { in crypto_remove_spawns()
142 list_move(&spawn->list, &top); in crypto_remove_spawns()
151 list); in crypto_remove_spawns()
156 list_move(&spawn->list, &stack); in crypto_remove_spawns()
167 list_for_each_entry_safe(spawn, n, &secondary_spawns, list) { in crypto_remove_spawns()
169 list_move(&spawn->list, &spawn->alg->cra_users); in crypto_remove_spawns()
171 crypto_remove_instance(spawn->inst, list); in crypto_remove_spawns()
243 LIST_HEAD(list); in crypto_alg_tested()
304 crypto_remove_spawns(q, &list, alg); in crypto_alg_tested()
313 crypto_remove_final(&list); in crypto_alg_tested()
317 void crypto_remove_final(struct list_head *list) in crypto_remove_final() argument
322 list_for_each_entry_safe(alg, n, list, cra_list) { in crypto_remove_final()
368 static int crypto_remove_alg(struct crypto_alg *alg, struct list_head *list) in crypto_remove_alg() argument
377 crypto_remove_spawns(alg, list, NULL); in crypto_remove_alg()
385 LIST_HEAD(list); in crypto_unregister_alg()
388 ret = crypto_remove_alg(alg, &list); in crypto_unregister_alg()
398 crypto_remove_final(&list); in crypto_unregister_alg()
447 list_for_each_entry(q, &crypto_template_list, list) { in crypto_register_template()
452 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
465 struct hlist_head *list; in crypto_unregister_template() local
470 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
471 list_del_init(&tmpl->list); in crypto_unregister_template()
473 list = &tmpl->instances; in crypto_unregister_template()
474 hlist_for_each_entry(inst, list, list) { in crypto_unregister_template()
484 hlist_for_each_entry_safe(inst, n, list, list) { in crypto_unregister_template()
497 list_for_each_entry(q, &crypto_template_list, list) { in __crypto_lookup_template()
540 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
565 LIST_HEAD(list); in crypto_unregister_instance()
569 crypto_remove_spawns(&inst->alg, &list, NULL); in crypto_unregister_instance()
570 crypto_remove_instance(inst, &list); in crypto_unregister_instance()
574 crypto_remove_final(&list); in crypto_unregister_instance()
590 list_add(&spawn->list, &alg->cra_users); in crypto_init_spawn()
623 list_del(&spawn->list); in crypto_drop_spawn()
853 INIT_LIST_HEAD(&queue->list); in crypto_init_queue()
854 queue->backlog = &queue->list; in crypto_init_queue()
869 if (queue->backlog == &queue->list) in crypto_enqueue_request()
870 queue->backlog = &request->list; in crypto_enqueue_request()
874 list_add_tail(&request->list, &queue->list); in crypto_enqueue_request()
890 if (queue->backlog != &queue->list) in __crypto_dequeue_request()
893 request = queue->list.next; in __crypto_dequeue_request()
896 return (char *)list_entry(request, struct crypto_async_request, list) - in __crypto_dequeue_request()
911 list_for_each_entry(req, &queue->list, list) { in crypto_tfm_in_queue()