Searched refs:larval (Results 1 - 9 of 9) sorted by relevance
/linux-4.1.27/crypto/ |
H A D | api.c | 54 static inline int crypto_is_test_larval(struct crypto_larval *larval) crypto_is_test_larval() argument 56 return larval->alg.cra_driver_name[0]; crypto_is_test_larval() 101 struct crypto_larval *larval = (void *)alg; crypto_larval_destroy() local 104 if (larval->adult) crypto_larval_destroy() 105 crypto_mod_put(larval->adult); crypto_larval_destroy() 106 kfree(larval); crypto_larval_destroy() 111 struct crypto_larval *larval; crypto_larval_alloc() local 113 larval = kzalloc(sizeof(*larval), GFP_KERNEL); crypto_larval_alloc() 114 if (!larval) crypto_larval_alloc() 117 larval->mask = mask; crypto_larval_alloc() 118 larval->alg.cra_flags = CRYPTO_ALG_LARVAL | type; crypto_larval_alloc() 119 larval->alg.cra_priority = -1; crypto_larval_alloc() 120 larval->alg.cra_destroy = crypto_larval_destroy; crypto_larval_alloc() 122 strlcpy(larval->alg.cra_name, name, CRYPTO_MAX_ALG_NAME); crypto_larval_alloc() 123 init_completion(&larval->completion); crypto_larval_alloc() 125 return larval; crypto_larval_alloc() 133 struct crypto_larval *larval; crypto_larval_add() local 135 larval = crypto_larval_alloc(name, type, mask); crypto_larval_add() 136 if (IS_ERR(larval)) crypto_larval_add() 137 return ERR_CAST(larval); crypto_larval_add() 139 atomic_set(&larval->alg.cra_refcnt, 2); crypto_larval_add() 144 alg = &larval->alg; crypto_larval_add() 149 if (alg != &larval->alg) { crypto_larval_add() 150 kfree(larval); crypto_larval_add() 160 struct crypto_larval *larval = (void *)alg; crypto_larval_kill() local 165 complete_all(&larval->completion); crypto_larval_kill() 172 struct crypto_larval *larval = (void *)alg; crypto_larval_wait() local 176 &larval->completion, 60 * HZ); crypto_larval_wait() 178 alg = larval->adult; crypto_larval_wait() 185 else if (crypto_is_test_larval(larval) && crypto_larval_wait() 190 crypto_mod_put(&larval->alg); crypto_larval_wait() 252 struct crypto_alg *larval; crypto_alg_mod_lookup() local 270 larval = crypto_larval_lookup(name, type, mask); crypto_alg_mod_lookup() 271 if (IS_ERR(larval) || !crypto_is_larval(larval)) crypto_alg_mod_lookup() 272 return larval; crypto_alg_mod_lookup() 274 ok = crypto_probing_notify(CRYPTO_MSG_ALG_REQUEST, larval); crypto_alg_mod_lookup() 277 alg = crypto_larval_wait(larval); crypto_alg_mod_lookup() 279 crypto_mod_put(larval); crypto_alg_mod_lookup() 282 crypto_larval_kill(larval); crypto_alg_mod_lookup()
|
H A D | algboss.c | 50 struct crypto_larval *larval; member in struct:cryptomgr_param 89 complete_all(¶m->larval->completion); cryptomgr_probe() 90 crypto_alg_put(¶m->larval->alg); cryptomgr_probe() 95 static int cryptomgr_schedule_probe(struct crypto_larval *larval) cryptomgr_schedule_probe() argument 99 const char *name = larval->alg.cra_name; cryptomgr_schedule_probe() 183 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; cryptomgr_schedule_probe() 184 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; cryptomgr_schedule_probe() 187 param->otype = larval->alg.cra_flags; cryptomgr_schedule_probe() 188 param->omask = larval->mask; cryptomgr_schedule_probe() 190 crypto_alg_get(&larval->alg); cryptomgr_schedule_probe() 191 param->larval = larval; cryptomgr_schedule_probe() 197 wait_for_completion_interruptible(&larval->completion); cryptomgr_schedule_probe() 202 crypto_alg_put(&larval->alg); cryptomgr_schedule_probe()
|
H A D | algapi.c | 179 struct crypto_larval *larval; __crypto_register_alg() local 210 larval = crypto_larval_alloc(alg->cra_name, __crypto_register_alg() 212 if (IS_ERR(larval)) __crypto_register_alg() 216 larval->adult = crypto_mod_get(alg); __crypto_register_alg() 217 if (!larval->adult) __crypto_register_alg() 220 atomic_set(&larval->alg.cra_refcnt, 1); __crypto_register_alg() 221 memcpy(larval->alg.cra_driver_name, alg->cra_driver_name, __crypto_register_alg() 223 larval->alg.cra_priority = alg->cra_priority; __crypto_register_alg() 226 list_add(&larval->alg.cra_list, &crypto_alg_list); __crypto_register_alg() 229 return larval; __crypto_register_alg() 232 kfree(larval); __crypto_register_alg() 234 larval = ERR_PTR(ret); __crypto_register_alg() 275 struct crypto_larval *larval = (void *)q; crypto_alg_tested() local 280 * by the larval entry q. crypto_alg_tested() 286 if (larval->adult) crypto_alg_tested() 288 if ((q->cra_flags ^ alg->cra_flags) & larval->mask) crypto_alg_tested() 293 larval->adult = alg; crypto_alg_tested() 329 static void crypto_wait_for_test(struct crypto_larval *larval) crypto_wait_for_test() argument 333 err = crypto_probing_notify(CRYPTO_MSG_ALG_REGISTER, larval->adult); crypto_wait_for_test() 337 crypto_alg_tested(larval->alg.cra_driver_name, 0); crypto_wait_for_test() 340 err = wait_for_completion_killable(&larval->completion); crypto_wait_for_test() 344 crypto_larval_kill(&larval->alg); crypto_wait_for_test() 349 struct crypto_larval *larval; crypto_register_alg() local 357 larval = __crypto_register_alg(alg); crypto_register_alg() 360 if (IS_ERR(larval)) crypto_register_alg() 361 return PTR_ERR(larval); crypto_register_alg() 363 crypto_wait_for_test(larval); crypto_register_alg() 521 struct crypto_larval *larval; crypto_register_instance() local 536 larval = __crypto_register_alg(&inst->alg); crypto_register_instance() 537 if (IS_ERR(larval)) crypto_register_instance() 546 err = PTR_ERR(larval); crypto_register_instance() 547 if (IS_ERR(larval)) crypto_register_instance() 550 crypto_wait_for_test(larval); crypto_register_instance()
|
H A D | ablkcipher.c | 544 struct crypto_alg *larval; crypto_givcipher_default() local 548 larval = crypto_larval_lookup(alg->cra_driver_name, crypto_givcipher_default() 552 err = PTR_ERR(larval); crypto_givcipher_default() 553 if (IS_ERR(larval)) crypto_givcipher_default() 557 if (!crypto_is_larval(larval)) crypto_givcipher_default() 606 crypto_larval_kill(larval); crypto_givcipher_default() 608 crypto_mod_put(larval); crypto_givcipher_default()
|
H A D | aead.c | 409 struct crypto_alg *larval; crypto_nivaead_default() local 413 larval = crypto_larval_lookup(alg->cra_driver_name, crypto_nivaead_default() 416 err = PTR_ERR(larval); crypto_nivaead_default() 417 if (IS_ERR(larval)) crypto_nivaead_default() 421 if (!crypto_is_larval(larval)) crypto_nivaead_default() 463 crypto_larval_kill(larval); crypto_nivaead_default() 465 crypto_mod_put(larval); crypto_nivaead_default()
|
H A D | proc.c | 97 seq_printf(m, "type : larval\n"); c_show()
|
H A D | crypto_user.c | 132 strncpy(rl.type, "larval", sizeof(rl.type)); crypto_report_one()
|
/linux-4.1.27/fs/ |
H A D | file.c | 761 * file immediately after grabbing descriptor, mark it larval if 763 * fget() treats larval files as absent. Potentially interesting,
|
/linux-4.1.27/net/netfilter/ |
H A D | nf_conntrack_core.c | 543 /* deletion from this larval template list happens via nf_ct_put() */ nf_conntrack_tmpl_insert()
|
Completed in 247 milliseconds