• Home
  • Raw
  • Download

Lines Matching refs:spawn

94 	struct crypto_spawn *spawn, *n;  in crypto_more_spawns()  local
96 spawn = list_first_entry_or_null(stack, struct crypto_spawn, list); in crypto_more_spawns()
97 if (!spawn) 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()
107 if (!spawn->dead) in crypto_more_spawns()
143 struct crypto_spawn *spawn, *n; in crypto_remove_spawns() local
150 list_for_each_entry_safe(spawn, n, spawns, list) { in crypto_remove_spawns()
151 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask) in crypto_remove_spawns()
154 list_move(&spawn->list, &top); in crypto_remove_spawns()
167 spawn = list_first_entry(spawns, struct crypto_spawn, in crypto_remove_spawns()
169 inst = spawn->inst; in crypto_remove_spawns()
171 list_move(&spawn->list, &stack); in crypto_remove_spawns()
172 spawn->dead = !spawn->registered || &inst->alg != nalg; in crypto_remove_spawns()
174 if (!spawn->registered) in crypto_remove_spawns()
210 list_for_each_entry_safe(spawn, n, &secondary_spawns, list) { in crypto_remove_spawns()
211 if (!spawn->dead) in crypto_remove_spawns()
212 list_move(&spawn->list, &spawn->alg->cra_users); in crypto_remove_spawns()
213 else if (spawn->registered) in crypto_remove_spawns()
214 crypto_remove_instance(spawn->inst, list); in crypto_remove_spawns()
630 struct crypto_spawn *spawn; in crypto_register_instance() local
644 for (spawn = inst->spawns; spawn;) { in crypto_register_instance()
647 if (spawn->dead) in crypto_register_instance()
650 next = spawn->next; in crypto_register_instance()
651 spawn->inst = inst; in crypto_register_instance()
652 spawn->registered = true; in crypto_register_instance()
654 crypto_mod_put(spawn->alg); in crypto_register_instance()
656 spawn = next; in crypto_register_instance()
695 int crypto_grab_spawn(struct crypto_spawn *spawn, struct crypto_instance *inst, in crypto_grab_spawn() argument
708 alg = crypto_find_alg(name, spawn->frontend, type, mask); in crypto_grab_spawn()
714 list_add(&spawn->list, &alg->cra_users); in crypto_grab_spawn()
715 spawn->alg = alg; in crypto_grab_spawn()
716 spawn->mask = mask; in crypto_grab_spawn()
717 spawn->next = inst->spawns; in crypto_grab_spawn()
718 inst->spawns = spawn; in crypto_grab_spawn()
730 void crypto_drop_spawn(struct crypto_spawn *spawn) in crypto_drop_spawn() argument
732 if (!spawn->alg) /* not yet initialized? */ in crypto_drop_spawn()
736 if (!spawn->dead) in crypto_drop_spawn()
737 list_del(&spawn->list); in crypto_drop_spawn()
740 if (!spawn->registered) in crypto_drop_spawn()
741 crypto_mod_put(spawn->alg); in crypto_drop_spawn()
745 static struct crypto_alg *crypto_spawn_alg(struct crypto_spawn *spawn) in crypto_spawn_alg() argument
752 if (!spawn->dead) { in crypto_spawn_alg()
753 alg = spawn->alg; in crypto_spawn_alg()
770 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type, in crypto_spawn_tfm() argument
776 alg = crypto_spawn_alg(spawn); in crypto_spawn_tfm()
796 void *crypto_spawn_tfm2(struct crypto_spawn *spawn) in crypto_spawn_tfm2() argument
801 alg = crypto_spawn_alg(spawn); in crypto_spawn_tfm2()
805 tfm = crypto_create_tfm(alg, spawn->frontend); in crypto_spawn_tfm2()