Lines Matching refs:tfm_entry
152 struct tipc_tfm * __percpu *tfm_entry; member
409 struct tipc_tfm *tfm_entry, *head, *tmp; in tipc_aead_free() local
414 head = *get_cpu_ptr(aead->tfm_entry); in tipc_aead_free()
415 put_cpu_ptr(aead->tfm_entry); in tipc_aead_free()
416 list_for_each_entry_safe(tfm_entry, tmp, &head->list, list) { in tipc_aead_free()
417 crypto_free_aead(tfm_entry->tfm); in tipc_aead_free()
418 list_del(&tfm_entry->list); in tipc_aead_free()
419 kfree(tfm_entry); in tipc_aead_free()
426 free_percpu(aead->tfm_entry); in tipc_aead_free()
490 struct tipc_tfm **tfm_entry; in tipc_aead_tfm_next() local
493 tfm_entry = get_cpu_ptr(aead->tfm_entry); in tipc_aead_tfm_next()
494 *tfm_entry = list_next_entry(*tfm_entry, list); in tipc_aead_tfm_next()
495 tfm = (*tfm_entry)->tfm; in tipc_aead_tfm_next()
496 put_cpu_ptr(tfm_entry); in tipc_aead_tfm_next()
517 struct tipc_tfm *tfm_entry, *head; in tipc_aead_init() local
535 tmp->tfm_entry = alloc_percpu(struct tipc_tfm *); in tipc_aead_init()
536 if (!tmp->tfm_entry) { in tipc_aead_init()
563 tfm_entry = kmalloc(sizeof(*tfm_entry), GFP_KERNEL); in tipc_aead_init()
564 if (unlikely(!tfm_entry)) { in tipc_aead_init()
569 INIT_LIST_HEAD(&tfm_entry->list); in tipc_aead_init()
570 tfm_entry->tfm = tfm; in tipc_aead_init()
574 head = tfm_entry; in tipc_aead_init()
576 *per_cpu_ptr(tmp->tfm_entry, cpu) = head; in tipc_aead_init()
579 list_add_tail(&tfm_entry->list, &head->list); in tipc_aead_init()
586 free_percpu(tmp->tfm_entry); in tipc_aead_init()
644 aead->tfm_entry = alloc_percpu_gfp(struct tipc_tfm *, GFP_ATOMIC); in tipc_aead_clone()
645 if (unlikely(!aead->tfm_entry)) { in tipc_aead_clone()
651 *per_cpu_ptr(aead->tfm_entry, cpu) = in tipc_aead_clone()
652 *per_cpu_ptr(src->tfm_entry, cpu); in tipc_aead_clone()