Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/cryptodev.h
Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | |||||
#define CIOCGSESSION _IOWR('c', 101, struct session_op) | #define CIOCGSESSION _IOWR('c', 101, struct session_op) | ||||
#define CIOCFSESSION _IOW('c', 102, uint32_t) | #define CIOCFSESSION _IOW('c', 102, uint32_t) | ||||
#define CIOCCRYPT _IOWR('c', 103, struct crypt_op) | #define CIOCCRYPT _IOWR('c', 103, struct crypt_op) | ||||
#define CIOCGSESSION2 _IOWR('c', 106, struct session2_op) | #define CIOCGSESSION2 _IOWR('c', 106, struct session2_op) | ||||
#define CIOCFINDDEV _IOWR('c', 108, struct crypt_find_op) | #define CIOCFINDDEV _IOWR('c', 108, struct crypt_find_op) | ||||
#define CIOCCRYPTAEAD _IOWR('c', 109, struct crypt_aead) | #define CIOCCRYPTAEAD _IOWR('c', 109, struct crypt_aead) | ||||
struct cryptotstat { | |||||
struct timespec acc; /* total accumulated time */ | |||||
struct timespec min; /* min time */ | |||||
struct timespec max; /* max time */ | |||||
uint32_t count; /* number of observations */ | |||||
}; | |||||
struct cryptostats { | struct cryptostats { | ||||
uint64_t cs_ops; /* symmetric crypto ops submitted */ | uint64_t cs_ops; /* symmetric crypto ops submitted */ | ||||
uint64_t cs_errs; /* symmetric crypto ops that failed */ | uint64_t cs_errs; /* symmetric crypto ops that failed */ | ||||
uint64_t cs_kops; /* asymetric/key ops submitted */ | uint64_t cs_kops; /* asymetric/key ops submitted */ | ||||
uint64_t cs_kerrs; /* asymetric/key ops that failed */ | uint64_t cs_kerrs; /* asymetric/key ops that failed */ | ||||
uint64_t cs_intrs; /* crypto swi thread activations */ | uint64_t cs_intrs; /* crypto swi thread activations */ | ||||
uint64_t cs_rets; /* crypto return thread activations */ | uint64_t cs_rets; /* crypto return thread activations */ | ||||
uint64_t cs_blocks; /* symmetric op driver block */ | uint64_t cs_blocks; /* symmetric op driver block */ | ||||
uint64_t cs_kblocks; /* symmetric op driver block */ | uint64_t cs_kblocks; /* symmetric op driver block */ | ||||
uint32_t cs_drops; /* crypto ops dropped due to congestion */ | |||||
struct cryptotstat cs_invoke; /* crypto_dipsatch -> crypto_invoke */ | |||||
struct cryptotstat cs_done; /* crypto_invoke -> crypto_done */ | |||||
struct cryptotstat cs_cb; /* crypto_done -> callback */ | |||||
struct cryptotstat cs_finis; /* callback -> callback return */ | |||||
markj: These fields were removed a while ago. The right solution is to remove references to these… | |||||
}; | }; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
/* | /* | ||||
* Return values for cryptodev_probesession methods. | * Return values for cryptodev_probesession methods. | ||||
*/ | */ | ||||
#define CRYPTODEV_PROBE_HARDWARE (-100) | #define CRYPTODEV_PROBE_HARDWARE (-100) | ||||
▲ Show 20 Lines • Show All 416 Lines • Show Last 20 Lines |
These fields were removed a while ago. The right solution is to remove references to these fields from userspace utilities, not to re-add them to the kernel.