Lines Matching defs:ctl_fd
24 static int ctl_fd = -1;
30 if (ctl_fd > 0)
33 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR);
34 if (ctl_fd == -1 && errno == ENOENT) {
37 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR);
39 if (ctl_fd == -1)
70 if (ioctl(ctl_fd, CTL_PORT_REQ, &req) != 0)
87 if (ioctl(ctl_fd, CTL_ENABLE_PORT, &entry) != 0)
109 if (ioctl(ctl_fd, CTL_PORT_REQ, &req) != 0)
135 if (ioctl(ctl_fd, CTL_NVMF, &req) != 0)