Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/cryptosoft.c
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/uio.h> | #include <sys/uio.h> | ||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/rwlock.h> | #include <sys/rwlock.h> | ||||
#include <sys/endian.h> | #include <sys/endian.h> | ||||
#include <sys/limits.h> | #include <sys/limits.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <machine/vmparam.h> | |||||
#include <crypto/sha1.h> | #include <crypto/sha1.h> | ||||
#include <opencrypto/rmd160.h> | #include <opencrypto/rmd160.h> | ||||
#include <opencrypto/cryptodev.h> | #include <opencrypto/cryptodev.h> | ||||
#include <opencrypto/xform.h> | #include <opencrypto/xform.h> | ||||
#include <sys/kobj.h> | #include <sys/kobj.h> | ||||
#include <sys/bus.h> | #include <sys/bus.h> | ||||
▲ Show 20 Lines • Show All 917 Lines • ▼ Show 20 Lines | case CRYPTO_BUF_UIO: { | ||||
adj -= uio->uio_iov[ind].iov_len; | adj -= uio->uio_iov[ind].iov_len; | ||||
uio->uio_iov[ind].iov_len = 0; | uio->uio_iov[ind].iov_len = 0; | ||||
ind--; | ind--; | ||||
uio->uio_iovcnt--; | uio->uio_iovcnt--; | ||||
} | } | ||||
} | } | ||||
break; | break; | ||||
#if PMAP_HAS_DMAP | |||||
case CRYPTO_BUF_VMPAGE: | |||||
adj = crp->crp_payload_length - result; | |||||
crp->crp_buf.cb_vm_page_len -= adj; | |||||
break; | |||||
#endif /* PMAP_HAS_DMAP */ | |||||
default: | default: | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
free(out, M_CRYPTO_DATA); | free(out, M_CRYPTO_DATA); | ||||
return 0; | return 0; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 538 Lines • Show Last 20 Lines |