Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 3 of 3) sorted by relevance

/crypto/
Dscompress.c89 void *mem; in crypto_scomp_alloc_scratches() local
93 mem = vmalloc_node(SCOMP_SCRATCH_SIZE, cpu_to_node(i)); in crypto_scomp_alloc_scratches()
94 if (!mem) in crypto_scomp_alloc_scratches()
96 scratch->src = mem; in crypto_scomp_alloc_scratches()
97 mem = vmalloc_node(SCOMP_SCRATCH_SIZE, cpu_to_node(i)); in crypto_scomp_alloc_scratches()
98 if (!mem) in crypto_scomp_alloc_scratches()
100 scratch->dst = mem; in crypto_scomp_alloc_scratches()
Dapi.c479 char *mem; in crypto_create_tfm_node() local
488 mem = kzalloc_node(total, GFP_KERNEL, node); in crypto_create_tfm_node()
489 if (mem == NULL) in crypto_create_tfm_node()
492 tfm = (struct crypto_tfm *)(mem + tfmsize); in crypto_create_tfm_node()
510 kfree(mem); in crypto_create_tfm_node()
512 mem = ERR_PTR(err); in crypto_create_tfm_node()
514 return mem; in crypto_create_tfm_node()
600 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) in crypto_destroy_tfm() argument
604 if (IS_ERR_OR_NULL(mem)) in crypto_destroy_tfm()
613 kfree_sensitive(mem); in crypto_destroy_tfm()
Djitterentropy.c79 unsigned char *mem; /* Memory access location with size of member
486 if (NULL == ec || NULL == ec->mem) in jent_memaccess()
498 unsigned char *tmpval = ec->mem + ec->memlocation; in jent_memaccess()
688 entropy_collector->mem = jent_zalloc(JENT_MEMORY_SIZE); in jent_entropy_collector_alloc()
689 if (!entropy_collector->mem) { in jent_entropy_collector_alloc()
711 jent_zfree(entropy_collector->mem); in jent_entropy_collector_free()
712 entropy_collector->mem = NULL; in jent_entropy_collector_free()