Lines Matching refs:cop

697 	if (unlikely(kcop->cop.flags & COP_FLAG_NO_ZC))  in crypto_async_run()
767 struct crypt_op *cop = &kcop->cop; in fill_kcop_from_cop() local
772 ses_ptr = crypto_get_session_by_sid(fcr, cop->ses); in fill_kcop_from_cop()
774 derr(1, "invalid session ID=0x%08X", cop->ses); in fill_kcop_from_cop()
777 kcop->ivlen = cop->iv ? ses_ptr->cdata.ivsize : 0; in fill_kcop_from_cop()
785 if (cop->iv) { in fill_kcop_from_cop()
786 rc = copy_from_user(kcop->iv, cop->iv, kcop->ivlen); in fill_kcop_from_cop()
789 kcop->ivlen, rc, cop->iv); in fill_kcop_from_cop()
803 ret = copy_to_user(kcop->cop.mac, in fill_cop_from_kcop()
808 if (kcop->ivlen && kcop->cop.flags & COP_FLAG_WRITE_IV) { in fill_cop_from_kcop()
809 ret = copy_to_user(kcop->cop.iv, in fill_cop_from_kcop()
820 if (unlikely(copy_from_user(&kcop->cop, arg, sizeof(kcop->cop)))) in kcop_from_user()
837 if (unlikely(copy_to_user(arg, &kcop->cop, sizeof(kcop->cop)))) { in kcop_to_user()
1071 compat_to_crypt_op(struct compat_crypt_op *compat, struct crypt_op *cop) in compat_to_crypt_op() argument
1073 cop->ses = compat->ses; in compat_to_crypt_op()
1074 cop->op = compat->op; in compat_to_crypt_op()
1075 cop->flags = compat->flags; in compat_to_crypt_op()
1076 cop->len = compat->len; in compat_to_crypt_op()
1078 cop->src = compat_ptr(compat->src); in compat_to_crypt_op()
1079 cop->dst = compat_ptr(compat->dst); in compat_to_crypt_op()
1080 cop->mac = compat_ptr(compat->mac); in compat_to_crypt_op()
1081 cop->iv = compat_ptr(compat->iv); in compat_to_crypt_op()
1085 crypt_op_to_compat(struct crypt_op *cop, struct compat_crypt_op *compat) in crypt_op_to_compat() argument
1087 compat->ses = cop->ses; in crypt_op_to_compat()
1088 compat->op = cop->op; in crypt_op_to_compat()
1089 compat->flags = cop->flags; in crypt_op_to_compat()
1090 compat->len = cop->len; in crypt_op_to_compat()
1092 compat->src = ptr_to_compat(cop->src); in crypt_op_to_compat()
1093 compat->dst = ptr_to_compat(cop->dst); in crypt_op_to_compat()
1094 compat->mac = ptr_to_compat(cop->mac); in crypt_op_to_compat()
1095 compat->iv = ptr_to_compat(cop->iv); in crypt_op_to_compat()
1105 compat_to_crypt_op(&compat_cop, &kcop->cop); in compat_kcop_from_user()
1121 crypt_op_to_compat(&kcop->cop, &compat_cop); in compat_kcop_to_user()