• Home
  • Raw
  • Download

Lines Matching refs:list

92 	spawn = list_first_entry_or_null(stack, struct crypto_spawn, list);  in crypto_more_spawns()
96 n = list_next_entry(spawn, list); in crypto_more_spawns()
98 if (spawn->alg && &n->list != stack && !n->alg) in crypto_more_spawns()
99 n->alg = (n->list.next == stack) ? alg : in crypto_more_spawns()
100 &list_next_entry(n, list)->inst->alg; in crypto_more_spawns()
102 list_move(&spawn->list, secondary_spawns); in crypto_more_spawns()
104 return &n->list == stack ? top : &n->inst->alg.cra_users; in crypto_more_spawns()
108 struct list_head *list) in crypto_remove_instance() argument
116 if (hlist_unhashed(&inst->list)) in crypto_remove_instance()
122 list_move(&inst->alg.cra_list, list); in crypto_remove_instance()
123 hlist_del(&inst->list); in crypto_remove_instance()
129 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, in crypto_remove_spawns() argument
140 list_for_each_entry_safe(spawn, n, spawns, list) { in crypto_remove_spawns()
144 list_move(&spawn->list, &top); in crypto_remove_spawns()
153 list); in crypto_remove_spawns()
158 list_move(&spawn->list, &stack); in crypto_remove_spawns()
181 list_for_each_entry_safe(spawn, n, &secondary_spawns, list) { in crypto_remove_spawns()
183 list_move(&spawn->list, &spawn->alg->cra_users); in crypto_remove_spawns()
185 crypto_remove_instance(spawn->inst, list); in crypto_remove_spawns()
259 LIST_HEAD(list); in crypto_alg_tested()
320 crypto_remove_spawns(q, &list, alg); in crypto_alg_tested()
329 crypto_remove_final(&list); in crypto_alg_tested()
333 void crypto_remove_final(struct list_head *list) in crypto_remove_final() argument
338 list_for_each_entry_safe(alg, n, list, cra_list) { in crypto_remove_final()
387 static int crypto_remove_alg(struct crypto_alg *alg, struct list_head *list) in crypto_remove_alg() argument
395 crypto_remove_spawns(alg, list, NULL); in crypto_remove_alg()
403 LIST_HEAD(list); in crypto_unregister_alg()
406 ret = crypto_remove_alg(alg, &list); in crypto_unregister_alg()
416 crypto_remove_final(&list); in crypto_unregister_alg()
465 list_for_each_entry(q, &crypto_template_list, list) { in crypto_register_template()
470 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
500 struct hlist_head *list; in crypto_unregister_template() local
505 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
506 list_del_init(&tmpl->list); in crypto_unregister_template()
508 list = &tmpl->instances; in crypto_unregister_template()
509 hlist_for_each_entry(inst, list, list) { in crypto_unregister_template()
517 hlist_for_each_entry_safe(inst, n, list, list) { in crypto_unregister_template()
539 list_for_each_entry(q, &crypto_template_list, list) { in __crypto_lookup_template()
579 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
599 LIST_HEAD(list); in crypto_unregister_instance()
603 crypto_remove_spawns(&inst->alg, &list, NULL); in crypto_unregister_instance()
604 crypto_remove_instance(inst, &list); in crypto_unregister_instance()
608 crypto_remove_final(&list); in crypto_unregister_instance()
627 list_add(&spawn->list, &alg->cra_users); in crypto_init_spawn()
676 list_del(&spawn->list); in crypto_drop_spawn()
887 INIT_LIST_HEAD(&queue->list); in crypto_init_queue()
888 queue->backlog = &queue->list; in crypto_init_queue()
905 if (queue->backlog == &queue->list) in crypto_enqueue_request()
906 queue->backlog = &request->list; in crypto_enqueue_request()
910 list_add_tail(&request->list, &queue->list); in crypto_enqueue_request()
926 if (queue->backlog != &queue->list) in crypto_dequeue_request()
929 request = queue->list.next; in crypto_dequeue_request()
932 return list_entry(request, struct crypto_async_request, list); in crypto_dequeue_request()