• Home
  • Raw
  • Download

Lines Matching refs:cfd

52 static int cfd = -1;  variable
87 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) { in clean_devcrypto_session()
228 ret = ioctl(cfd, CIOCGSESSION2, &cipher_ctx->sess); in cipher_init()
230 ret = ioctl(cfd, CIOCGSESSION, &cipher_ctx->sess); in cipher_init()
284 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) { in cipher_do_cipher()
458 if (ioctl(cfd, CIOCGSESSION2, &sess) == 0) { in prepare_cipher_methods()
462 if (ioctl(cfd, CIOCGSESSION2, &sess) < 0) { in prepare_cipher_methods()
469 if (ioctl(cfd, CIOCGSESSION, &sess) < 0) { in prepare_cipher_methods()
507 if (ioctl(cfd, CIOCFINDDEV, &fop) == 0) { in prepare_cipher_methods()
513 if (ioctl(cfd, CIOCGSESSINFO, &siop) < 0) { in prepare_cipher_methods()
526 ioctl(cfd, CIOCFSESSION, &sess.ses); in prepare_cipher_methods()
757 if (ioctl(cfd, CIOCGSESSION, &digest_ctx->sess) < 0) { in digest_init()
776 return ioctl(cfd, CIOCCRYPT, &cryp); in digest_op()
837 if (ioctl(cfd, CIOCCPHASH, &cphash) < 0) { in digest_copy()
915 if (ioctl(cfd, CIOCGSESSION, &sess1) < 0) { in prepare_digest_methods()
923 if (ioctl(cfd, CIOCGSESSINFO, &siop) < 0) { in prepare_digest_methods()
938 if (ioctl(cfd, CIOCGSESSION, &sess2) < 0) { in prepare_digest_methods()
944 if (ioctl(cfd, CIOCCPHASH, &cphash) < 0) { in prepare_digest_methods()
968 ioctl(cfd, CIOCFSESSION, &sess1.ses); in prepare_digest_methods()
970 ioctl(cfd, CIOCFSESSION, &sess2.ses); in prepare_digest_methods()
1225 if (cfd >= 0) in open_devcrypto()
1237 if (ioctl(fd, CRIOGET, &cfd) < 0) { in open_devcrypto()
1240 cfd = -1; in open_devcrypto()
1245 cfd = fd; in open_devcrypto()
1255 if (cfd < 0) in close_devcrypto()
1257 ret = close(cfd); in close_devcrypto()
1258 cfd = -1; in close_devcrypto()