Lines Matching refs:list
96 spawn = list_first_entry_or_null(stack, struct crypto_spawn, list); in crypto_more_spawns()
100 n = list_prev_entry(spawn, list); in crypto_more_spawns()
101 list_move(&spawn->list, secondary_spawns); in crypto_more_spawns()
103 if (list_is_last(&n->list, stack)) in crypto_more_spawns()
106 n = list_next_entry(n, list); in crypto_more_spawns()
114 struct list_head *list) in crypto_remove_instance() argument
126 list_move(&inst->alg.cra_list, list); in crypto_remove_instance()
127 hlist_del(&inst->list); in crypto_remove_instance()
139 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, in crypto_remove_spawns() argument
150 list_for_each_entry_safe(spawn, n, spawns, list) { in crypto_remove_spawns()
154 list_move(&spawn->list, &top); in crypto_remove_spawns()
168 list); in crypto_remove_spawns()
171 list_move(&spawn->list, &stack); in crypto_remove_spawns()
210 list_for_each_entry_safe(spawn, n, &secondary_spawns, list) { in crypto_remove_spawns()
212 list_move(&spawn->list, &spawn->alg->cra_users); in crypto_remove_spawns()
214 crypto_remove_instance(spawn->inst, list); in crypto_remove_spawns()
289 LIST_HEAD(list); in crypto_alg_tested()
368 crypto_remove_spawns(q, &list, alg); in crypto_alg_tested()
377 crypto_remove_final(&list); in crypto_alg_tested()
381 void crypto_remove_final(struct list_head *list) in crypto_remove_final() argument
386 list_for_each_entry_safe(alg, n, list, cra_list) { in crypto_remove_final()
435 static int crypto_remove_alg(struct crypto_alg *alg, struct list_head *list) in crypto_remove_alg() argument
443 crypto_remove_spawns(alg, list, NULL); in crypto_remove_alg()
451 LIST_HEAD(list); in crypto_unregister_alg()
454 ret = crypto_remove_alg(alg, &list); in crypto_unregister_alg()
466 crypto_remove_final(&list); in crypto_unregister_alg()
508 list_for_each_entry(q, &crypto_template_list, list) { in crypto_register_template()
513 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
543 struct hlist_head *list; in crypto_unregister_template() local
548 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
549 list_del_init(&tmpl->list); in crypto_unregister_template()
551 list = &tmpl->instances; in crypto_unregister_template()
552 hlist_for_each_entry(inst, list, list) { in crypto_unregister_template()
560 hlist_for_each_entry_safe(inst, n, list, list) { in crypto_unregister_template()
582 list_for_each_entry(q, &crypto_template_list, list) { in __crypto_lookup_template()
639 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
659 LIST_HEAD(list); in crypto_unregister_instance()
663 crypto_remove_spawns(&inst->alg, &list, NULL); in crypto_unregister_instance()
664 crypto_remove_instance(inst, &list); in crypto_unregister_instance()
668 crypto_remove_final(&list); in crypto_unregister_instance()
691 list_add(&spawn->list, &alg->cra_users); in crypto_grab_spawn()
714 list_del(&spawn->list); in crypto_drop_spawn()
909 INIT_LIST_HEAD(&queue->list); in crypto_init_queue()
910 queue->backlog = &queue->list; in crypto_init_queue()
927 if (queue->backlog == &queue->list) in crypto_enqueue_request()
928 queue->backlog = &request->list; in crypto_enqueue_request()
932 list_add_tail(&request->list, &queue->list); in crypto_enqueue_request()
943 list_add(&request->list, &queue->list); in crypto_enqueue_request_head()
956 if (queue->backlog != &queue->list) in crypto_dequeue_request()
959 request = queue->list.next; in crypto_dequeue_request()
962 return list_entry(request, struct crypto_async_request, list); in crypto_dequeue_request()