Searched refs:pcrypt (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/crypto/
H A Dpcrypt.c2 * pcrypt - Parallel crypto wrapper.
31 #include <crypto/pcrypt.h>
74 struct padata_pcrypt *pcrypt) pcrypt_do_parallel()
82 cpumask = rcu_dereference_bh(pcrypt->cb_cpumask); pcrypt_do_parallel()
99 return padata_do_parallel(pcrypt->pinst, padata, cpu); pcrypt_do_parallel()
261 "pcrypt(%s)", alg->cra_driver_name) >= CRYPTO_MAX_ALG_NAME) pcrypt_init_instance()
363 struct padata_pcrypt *pcrypt; pcrypt_cpumask_change_notify() local
370 pcrypt = container_of(self, struct padata_pcrypt, nblock); pcrypt_cpumask_change_notify()
379 old_mask = pcrypt->cb_cpumask; pcrypt_cpumask_change_notify()
382 rcu_assign_pointer(pcrypt->cb_cpumask, new_mask); pcrypt_cpumask_change_notify()
402 static int pcrypt_init_padata(struct padata_pcrypt *pcrypt, pcrypt_init_padata() argument
410 pcrypt->wq = alloc_workqueue("%s", WQ_MEM_RECLAIM | WQ_CPU_INTENSIVE, pcrypt_init_padata()
412 if (!pcrypt->wq) pcrypt_init_padata()
415 pcrypt->pinst = padata_alloc_possible(pcrypt->wq); pcrypt_init_padata()
416 if (!pcrypt->pinst) pcrypt_init_padata()
428 rcu_assign_pointer(pcrypt->cb_cpumask, mask); pcrypt_init_padata()
430 pcrypt->nblock.notifier_call = pcrypt_cpumask_change_notify; pcrypt_init_padata()
431 ret = padata_register_cpumask_notifier(pcrypt->pinst, &pcrypt->nblock); pcrypt_init_padata()
435 ret = pcrypt_sysfs_add(pcrypt->pinst, name); pcrypt_init_padata()
444 padata_unregister_cpumask_notifier(pcrypt->pinst, &pcrypt->nblock); pcrypt_init_padata()
449 padata_free(pcrypt->pinst); pcrypt_init_padata()
451 destroy_workqueue(pcrypt->wq); pcrypt_init_padata()
458 static void pcrypt_fini_padata(struct padata_pcrypt *pcrypt) pcrypt_fini_padata() argument
460 free_cpumask_var(pcrypt->cb_cpumask->mask); pcrypt_fini_padata()
461 kfree(pcrypt->cb_cpumask); pcrypt_fini_padata()
463 padata_stop(pcrypt->pinst); pcrypt_fini_padata()
464 padata_unregister_cpumask_notifier(pcrypt->pinst, &pcrypt->nblock); pcrypt_fini_padata()
465 destroy_workqueue(pcrypt->wq); pcrypt_fini_padata()
466 padata_free(pcrypt->pinst); pcrypt_fini_padata()
470 .name = "pcrypt",
480 pcrypt_kset = kset_create_and_add("pcrypt", NULL, kernel_kobj); pcrypt_init()
520 MODULE_ALIAS_CRYPTO("pcrypt");
73 pcrypt_do_parallel(struct padata_priv *padata, unsigned int *cb_cpu, struct padata_pcrypt *pcrypt) pcrypt_do_parallel() argument
H A DMakefile77 obj-$(CONFIG_CRYPTO_PCRYPT) += pcrypt.o
/linux-4.4.14/include/crypto/
H A Dpcrypt.h2 * pcrypt - Parallel crypto engine.

Completed in 72 milliseconds