Lines Matching defs:padata
38 * equal to serial cpumask of corresponding padata instance,
39 * so it is updated when padata notifies us about serial
72 static int pcrypt_do_parallel(struct padata_priv *padata, unsigned int *cb_cpu,
98 return padata_do_parallel(pcrypt->pinst, padata, cpu);
117 static void pcrypt_aead_serial(struct padata_priv *padata)
119 struct pcrypt_request *preq = pcrypt_padata_request(padata);
122 aead_request_complete(req->base.data, padata->info);
125 static void pcrypt_aead_giv_serial(struct padata_priv *padata)
127 struct pcrypt_request *preq = pcrypt_padata_request(padata);
130 aead_request_complete(req->areq.base.data, padata->info);
137 struct padata_priv *padata = pcrypt_request_padata(preq);
139 padata->info = err;
142 padata_do_serial(padata);
145 static void pcrypt_aead_enc(struct padata_priv *padata)
147 struct pcrypt_request *preq = pcrypt_padata_request(padata);
150 padata->info = crypto_aead_encrypt(req);
152 if (padata->info == -EINPROGRESS)
155 padata_do_serial(padata);
163 struct padata_priv *padata = pcrypt_request_padata(preq);
168 memset(padata, 0, sizeof(struct padata_priv));
170 padata->parallel = pcrypt_aead_enc;
171 padata->serial = pcrypt_aead_serial;
180 err = pcrypt_do_parallel(padata, &ctx->cb_cpu, &pencrypt);
187 static void pcrypt_aead_dec(struct padata_priv *padata)
189 struct pcrypt_request *preq = pcrypt_padata_request(padata);
192 padata->info = crypto_aead_decrypt(req);
194 if (padata->info == -EINPROGRESS)
197 padata_do_serial(padata);
205 struct padata_priv *padata = pcrypt_request_padata(preq);
210 memset(padata, 0, sizeof(struct padata_priv));
212 padata->parallel = pcrypt_aead_dec;
213 padata->serial = pcrypt_aead_serial;
222 err = pcrypt_do_parallel(padata, &ctx->cb_cpu, &pdecrypt);
229 static void pcrypt_aead_givenc(struct padata_priv *padata)
231 struct pcrypt_request *preq = pcrypt_padata_request(padata);
234 padata->info = crypto_aead_givencrypt(req);
236 if (padata->info == -EINPROGRESS)
239 padata_do_serial(padata);
248 struct padata_priv *padata = pcrypt_request_padata(preq);
253 memset(padata, 0, sizeof(struct padata_priv));
255 padata->parallel = pcrypt_aead_givenc;
256 padata->serial = pcrypt_aead_giv_serial;
266 err = pcrypt_do_parallel(padata, &ctx->cb_cpu, &pencrypt);