Searched refs:cryptodev_fd (Results 1 – 1 of 1) sorted by relevance
| /OK3568_Linux_fs/external/security/librkcrypto/src/ |
| H A D | rkcrypto_core.c | 73 static int cryptodev_fd = -1; variable 80 if (cryptodev_fd < 0) {\ 311 res = xioctl(cryptodev_fd, CIOCGSESSION, sess); in rk_create_session() 322 xioctl(cryptodev_fd, CIOCFSESSION, &sess->ses); in rk_create_session() 334 res = xioctl(cryptodev_fd, CIOCFSESSION, &handle); in rk_destroy_session() 399 if (cryptodev_fd < 0) { in rk_crypto_init() 405 cryptodev_fd = open("/dev/crypto", O_RDWR, 0); in rk_crypto_init() 406 if (cryptodev_fd < 0) { in rk_crypto_init() 412 if (fcntl(cryptodev_fd, F_SETFD, 1) == -1) { in rk_crypto_init() 422 if (cryptodev_fd >= 0) in rk_crypto_init() [all …]
|