Lines Matching refs:cryptofd
2250 int cryptofd; member
2352 if (pwrite64(data->cryptofd, data->buffer,
2484 while ((data.cryptofd = open(crypto_blkdev, O_WRONLY|O_CLOEXEC)) < 0) {
2542 close(data.cryptofd);
2585 if (pwrite64(priv_dat->cryptofd, priv_dat->buffer, CRYPT_INPLACE_BUFSIZE, offset) <= 0) {
2613 data.cryptofd = -1;
2619 if ( (data.cryptofd = open64(crypto_blkdev, O_WRONLY|O_CLOEXEC)) < 0) {
2669 close(data.cryptofd);
2679 int realfd, cryptofd; local
2691 if ( (cryptofd = open(crypto_blkdev, O_WRONLY|O_CLOEXEC)) < 0) {
2717 if (lseek64(cryptofd, i * CRYPT_SECTOR_SIZE, SEEK_SET) < 0) {
2728 if (unix_write(cryptofd, buf, CRYPT_SECTOR_SIZE) <= 0) {
2753 if (unix_write(cryptofd, buf, CRYPT_INPLACE_BUFSIZE) <= 0) {
2776 if (unix_write(cryptofd, buf, CRYPT_SECTOR_SIZE) <= 0) {
2789 close(cryptofd);