Home | History | Annotate | Download | only in engine

Lines Matching refs:d_fd

74 	int d_fd;
373 if (state->d_fd < 0)
400 if (ioctl(state->d_fd, CIOCCRYPT, &cryp) == -1) {
434 state->d_fd = -1;
440 if ((state->d_fd = get_dev_crypto()) < 0)
447 if (ioctl(state->d_fd, CIOCGSESSION, sess) == -1) {
448 put_dev_crypto(state->d_fd);
449 state->d_fd = -1;
466 if (state->d_fd < 0)
480 if (ioctl(state->d_fd, CIOCFSESSION, &sess->ses) == -1) {
485 put_dev_crypto(state->d_fd);
486 state->d_fd = -1;
688 if ((state->d_fd = get_dev_crypto()) < 0) {
697 if (ioctl(state->d_fd, CIOCGSESSION, sess) < 0) {
698 put_dev_crypto(state->d_fd);
699 state->d_fd = -1;
714 if (!data || state->d_fd < 0) {
746 if (ioctl(state->d_fd, CIOCCRYPT, &cryp) < 0) {
762 if (!md || state->d_fd < 0) {
776 if (ioctl(state->d_fd, CIOCCRYPT, &cryp) < 0) {
799 if (state->d_fd < 0) {
810 if (ioctl(state->d_fd, CIOCFSESSION, &sess->ses) < 0) {
816 put_dev_crypto(state->d_fd);
817 state->d_fd = -1;
842 dstate->d_fd = get_dev_crypto();
844 if (ioctl(dstate->d_fd, CIOCGSESSION, sess) < 0) {
845 put_dev_crypto(dstate->d_fd);
846 dstate->d_fd = -1;