Lines Matching defs:kop
378 struct crypt_kop *kop;
601 kop = &kopc;
602 crypt_kop_from_32(data, kop);
605 kop = (struct crypt_kop *)data;
612 kop->crk_crid =
616 error = cryptodev_key(kop);
620 crypt_kop_to_32(kop, data);
837 cryptodev_key(struct crypt_kop *kop)
843 if (kop->crk_iparams + kop->crk_oparams > CRK_MAXPARAM) {
847 in = kop->crk_iparams;
848 out = kop->crk_oparams;
849 switch (kop->crk_op) {
877 krp->krp_op = kop->crk_op;
878 krp->krp_status = kop->crk_status;
879 krp->krp_iparams = kop->crk_iparams;
880 krp->krp_oparams = kop->crk_oparams;
881 krp->krp_crid = kop->crk_crid;
886 if (kop->crk_param[i].crp_nbits > 65536)
889 krp->krp_param[i].crp_nbits = kop->crk_param[i].crp_nbits;
898 error = copyin(kop->crk_param[i].crp_p, krp->krp_param[i].crp_p, size);
912 kop->crk_crid = krp->krp_crid; /* device that did the work */
922 error = copyout(krp->krp_param[i].crp_p, kop->crk_param[i].crp_p, size);
929 kop->crk_status = krp->krp_status;