Home
last modified time | relevance | path

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

/crypto/
Dapi.c462 char *mem; in crypto_create_tfm() local
471 mem = kzalloc(total, GFP_KERNEL); in crypto_create_tfm()
472 if (mem == NULL) in crypto_create_tfm()
475 tfm = (struct crypto_tfm *)(mem + tfmsize); in crypto_create_tfm()
492 kfree(mem); in crypto_create_tfm()
494 mem = ERR_PTR(err); in crypto_create_tfm()
496 return mem; in crypto_create_tfm()
584 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) in crypto_destroy_tfm() argument
588 if (unlikely(!mem)) in crypto_destroy_tfm()
597 kzfree(mem); in crypto_destroy_tfm()
Djitterentropy.c82 unsigned char *mem; /* Memory access location with size of member
269 if (NULL == ec || NULL == ec->mem) in jent_memaccess()
281 tmpval = ec->mem + ec->memlocation; in jent_memaccess()
627 entropy_collector->mem = jent_zalloc(JENT_MEMORY_SIZE); in jent_entropy_collector_alloc()
628 if (!entropy_collector->mem) { in jent_entropy_collector_alloc()
656 jent_zfree(entropy_collector->mem); in jent_entropy_collector_free()
657 entropy_collector->mem = NULL; in jent_entropy_collector_free()