Lines Matching defs:tfm_entry
136 * @tfm_entry: per-cpu pointer to one entry in TFM list
152 struct tipc_tfm * __percpu *tfm_entry;
400 struct tipc_tfm *tfm_entry, *head, *tmp;
405 head = *get_cpu_ptr(aead->tfm_entry);
406 put_cpu_ptr(aead->tfm_entry);
407 list_for_each_entry_safe(tfm_entry, tmp, &head->list, list) {
408 crypto_free_aead(tfm_entry->tfm);
409 list_del(&tfm_entry->list);
410 kfree(tfm_entry);
417 free_percpu(aead->tfm_entry);
481 struct tipc_tfm **tfm_entry;
484 tfm_entry = get_cpu_ptr(aead->tfm_entry);
485 *tfm_entry = list_next_entry(*tfm_entry, list);
486 tfm = (*tfm_entry)->tfm;
487 put_cpu_ptr(tfm_entry);
508 struct tipc_tfm *tfm_entry, *head;
526 tmp->tfm_entry = alloc_percpu(struct tipc_tfm *);
527 if (!tmp->tfm_entry) {
554 tfm_entry = kmalloc_obj(*tfm_entry);
555 if (unlikely(!tfm_entry)) {
560 INIT_LIST_HEAD(&tfm_entry->list);
561 tfm_entry->tfm = tfm;
565 head = tfm_entry;
567 *per_cpu_ptr(tmp->tfm_entry, cpu) = head;
570 list_add_tail(&tfm_entry->list, &head->list);
577 free_percpu(tmp->tfm_entry);
635 aead->tfm_entry = alloc_percpu_gfp(struct tipc_tfm *, GFP_ATOMIC);
636 if (unlikely(!aead->tfm_entry)) {
642 *per_cpu_ptr(aead->tfm_entry, cpu) =
643 *per_cpu_ptr(src->tfm_entry, cpu);