Searched refs:mem (Results 1 – 3 of 3) sorted by relevance
89 void *mem; in crypto_scomp_alloc_scratches() local93 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()
440 char *mem; in crypto_create_tfm_node() local449 mem = kzalloc_node(total, GFP_KERNEL, node); in crypto_create_tfm_node()450 if (mem == NULL) in crypto_create_tfm_node()453 tfm = (struct crypto_tfm *)(mem + tfmsize); in crypto_create_tfm_node()471 kfree(mem); in crypto_create_tfm_node()473 mem = ERR_PTR(err); in crypto_create_tfm_node()475 return mem; in crypto_create_tfm_node()561 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) in crypto_destroy_tfm() argument565 if (IS_ERR_OR_NULL(mem)) in crypto_destroy_tfm()574 kfree_sensitive(mem); in crypto_destroy_tfm()
79 unsigned char *mem; /* Memory access location with size of member486 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()