Lines Matching refs:list

78 	HLIST_HEAD(list);  in crypto_destroy_instance_workfn()
81 hlist_for_each_entry_safe(inst, n, &tmpl->dead, list) { in crypto_destroy_instance_workfn()
84 hlist_del(&inst->list); in crypto_destroy_instance_workfn()
85 hlist_add_head(&inst->list, &list); in crypto_destroy_instance_workfn()
89 hlist_for_each_entry_safe(inst, n, &list, list) in crypto_destroy_instance_workfn()
120 spawn = list_first_entry_or_null(stack, struct crypto_spawn, list); in crypto_more_spawns()
124 n = list_prev_entry(spawn, list); in crypto_more_spawns()
125 list_move(&spawn->list, secondary_spawns); in crypto_more_spawns()
127 if (list_is_last(&n->list, stack)) in crypto_more_spawns()
130 n = list_next_entry(n, list); in crypto_more_spawns()
138 struct list_head *list) in crypto_remove_instance() argument
151 hlist_del(&inst->list); in crypto_remove_instance()
152 hlist_add_head(&inst->list, &tmpl->dead); in crypto_remove_instance()
165 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, in crypto_remove_spawns() argument
176 list_for_each_entry_safe(spawn, n, spawns, list) { in crypto_remove_spawns()
180 list_move(&spawn->list, &top); in crypto_remove_spawns()
194 list); in crypto_remove_spawns()
197 list_move(&spawn->list, &stack); in crypto_remove_spawns()
236 list_for_each_entry_safe(spawn, n, &secondary_spawns, list) { in crypto_remove_spawns()
238 list_move(&spawn->list, &spawn->alg->cra_users); in crypto_remove_spawns()
240 crypto_remove_instance(spawn->inst, list); in crypto_remove_spawns()
362 LIST_HEAD(list); in crypto_alg_tested()
395 crypto_alg_finish_registration(alg, &list); in crypto_alg_tested()
404 crypto_remove_final(&list); in crypto_alg_tested()
408 void crypto_remove_final(struct list_head *list) in crypto_remove_final() argument
413 list_for_each_entry_safe(alg, n, list, cra_list) { in crypto_remove_final()
476 static int crypto_remove_alg(struct crypto_alg *alg, struct list_head *list) in crypto_remove_alg() argument
484 crypto_remove_spawns(alg, list, NULL); in crypto_remove_alg()
492 LIST_HEAD(list); in crypto_unregister_alg()
495 ret = crypto_remove_alg(alg, &list); in crypto_unregister_alg()
503 list_add(&alg->cra_list, &list); in crypto_unregister_alg()
504 crypto_remove_final(&list); in crypto_unregister_alg()
548 list_for_each_entry(q, &crypto_template_list, list) { in crypto_register_template()
553 list_add(&tmpl->list, &crypto_template_list); in crypto_register_template()
583 struct hlist_head *list; in crypto_unregister_template() local
588 BUG_ON(list_empty(&tmpl->list)); in crypto_unregister_template()
589 list_del_init(&tmpl->list); in crypto_unregister_template()
591 list = &tmpl->instances; in crypto_unregister_template()
592 hlist_for_each_entry(inst, list, list) { in crypto_unregister_template()
600 hlist_for_each_entry_safe(inst, n, list, list) { in crypto_unregister_template()
624 list_for_each_entry(q, &crypto_template_list, list) { in __crypto_lookup_template()
690 hlist_add_head(&inst->list, &tmpl->instances); in crypto_register_instance()
710 LIST_HEAD(list); in crypto_unregister_instance()
714 crypto_remove_spawns(&inst->alg, &list, NULL); in crypto_unregister_instance()
715 crypto_remove_instance(inst, &list); in crypto_unregister_instance()
719 crypto_remove_final(&list); in crypto_unregister_instance()
743 list_add(&spawn->list, &alg->cra_users); in crypto_grab_spawn()
766 list_del(&spawn->list); in crypto_drop_spawn()
943 INIT_LIST_HEAD(&queue->list); in crypto_init_queue()
944 queue->backlog = &queue->list; in crypto_init_queue()
961 if (queue->backlog == &queue->list) in crypto_enqueue_request()
962 queue->backlog = &request->list; in crypto_enqueue_request()
966 list_add_tail(&request->list, &queue->list); in crypto_enqueue_request()
980 list_add(&request->list, &queue->list); in crypto_enqueue_request_head()
993 if (queue->backlog != &queue->list) in crypto_dequeue_request()
996 request = queue->list.next; in crypto_dequeue_request()
999 return list_entry(request, struct crypto_async_request, list); in crypto_dequeue_request()