Lines Matching defs:crp
128 static int ocf_cb(struct cryptop *crp);
167 ocf_cb(struct cryptop *crp)
169 request_t *r = (request_t *) crp->crp_opaque;
172 if (crp->crp_etype)
173 printk("Error in OCF processing: %d\n", crp->crp_etype);
174 crypto_freereq(crp);
175 crp = NULL;
196 struct cryptop *crp = crypto_getreq(2);
200 if (!crp) {
207 crde = crp->crp_desc;
227 crp->crp_ilen = request_size + 64;
228 crp->crp_flags = 0;
230 crp->crp_flags |= CRYPTO_F_BATCH;
232 crp->crp_flags |= CRYPTO_F_CBIMM;
233 crp->crp_buf = (caddr_t) r->buffer;
234 crp->crp_callback = ocf_cb;
235 crp->crp_sid = ocf_cryptoid;
236 crp->crp_opaque = (caddr_t) r;
237 crypto_dispatch(crp);