Home
last modified time | relevance | path

Searched refs:padata (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/crypto/
Dpcrypt.c51 static void pcrypt_aead_serial(struct padata_priv *padata) in pcrypt_aead_serial() argument
53 struct pcrypt_request *preq = pcrypt_padata_request(padata); in pcrypt_aead_serial()
56 aead_request_complete(req->base.data, padata->info); in pcrypt_aead_serial()
63 struct padata_priv *padata = pcrypt_request_padata(preq); in pcrypt_aead_done() local
65 padata->info = err; in pcrypt_aead_done()
68 padata_do_serial(padata); in pcrypt_aead_done()
71 static void pcrypt_aead_enc(struct padata_priv *padata) in pcrypt_aead_enc() argument
73 struct pcrypt_request *preq = pcrypt_padata_request(padata); in pcrypt_aead_enc()
76 padata->info = crypto_aead_encrypt(req); in pcrypt_aead_enc()
78 if (padata->info == -EINPROGRESS) in pcrypt_aead_enc()
[all …]
/Linux-v5.4/include/crypto/
Dpcrypt.h17 struct padata_priv padata; member
30 return &req->padata; in pcrypt_request_padata()
34 struct pcrypt_request *pcrypt_padata_request(struct padata_priv *padata) in pcrypt_padata_request() argument
36 return container_of(padata, struct pcrypt_request, padata); in pcrypt_padata_request()
/Linux-v5.4/Documentation/
Dpadata.txt2 The padata parallel execution mechanism
11 those packets. The crypto developers made a point of writing padata in a
14 The first step in using padata is to set up a padata_instance structure for
17 #include <linux/padata.h>
31 To allocate a padata instance with the cpu_possible_mask for both
39 user supplied cpumasks; these are the cpumasks padata actually uses. So
40 it is legal to supply a cpumask to padata that contains offline CPUs.
41 Once an offline CPU in the user supplied cpumask comes online, padata
52 padata cpumask contains no active CPU (flag not set).
53 padata_stop clears the flag and blocks until the padata instance
[all …]
/Linux-v5.4/kernel/
Dpadata.c74 struct padata_priv *padata; in padata_parallel_worker() local
76 padata = list_entry(local_list.next, in padata_parallel_worker()
79 list_del_init(&padata->list); in padata_parallel_worker()
81 padata->parallel(padata); in padata_parallel_worker()
102 struct padata_priv *padata, int *cb_cpu) in padata_do_parallel() argument
139 padata->pd = pd; in padata_do_parallel()
140 padata->cb_cpu = *cb_cpu; in padata_do_parallel()
142 padata->seq_nr = atomic_inc_return(&pd->seq_nr); in padata_do_parallel()
143 target_cpu = padata_cpu_hash(pd, padata->seq_nr); in padata_do_parallel()
144 padata->cpu = target_cpu; in padata_do_parallel()
[all …]
DMakefile109 obj-$(CONFIG_PADATA) += padata.o
/Linux-v5.4/include/linux/
Dpadata.h40 void (*parallel)(struct padata_priv *padata);
41 void (*serial)(struct padata_priv *padata);
160 struct padata_priv *padata, int *cb_cpu);
161 extern void padata_do_serial(struct padata_priv *padata);
/Linux-v5.4/
DMAINTAINERS12254 F: kernel/padata.c
12255 F: include/linux/padata.h
12256 F: Documentation/padata.txt