Lines Matching refs:fd
458 int fd;
474 if ((fd = open(bank_spec, ((fdp != NULL) ? O_RDWR : O_RDONLY), 0)) ==
492 ret = ioctl(fd, AC_MEM_STAT, &cmd);
498 (void) close(fd);
503 *fdp = fd;
505 (void) close(fd);
588 int fd, ret, ret_errno;
600 ret = ap_stat(bank_spec, &fd, &bk, &stat, errstring);
609 (void) close(fd);
621 (void) close(fd);
628 (void) close(fd);
634 (void) close(fd);
641 ret = ioctl(fd, AC_MEM_CONFIGURE, &cmd);
644 (void) close(fd);
664 int fd, ret, ret_errno;
690 ret = ap_stat(bank_spec, &fd, &bk, &stat, errstring);
698 (void) close(fd);
705 ret = ioctl(fd, AC_MEM_UNCONFIGURE, &cmd);
708 (void) close(fd);
769 int fd, ret, ret_errno;
776 ret = ap_stat(ap_id, &fd, &bk, &stat, errstring);
789 ret = ioctl(fd, AC_MEM_EXERCISE, &cmd);
792 (void) close(fd);
809 int fd,
827 ret = ioctl(fd, AC_MEM_TEST_START, &cmd);
863 ret = ioctl(fd, AC_MEM_TEST_STOP, &cmd);
876 ret = ioctl(fd, AC_MEM_TEST_START, &cmd);
889 handle.fd = fd;
951 ret = ioctl(fd, AC_MEM_TEST_STOP, &cmd);
973 int fd, ret, ret_errno;
978 fd = handle->fd;
990 ret = ioctl(fd, AC_MEM_TEST_WRITE, &cmd);
1010 int fd, ret, ret_errno;
1016 fd = handle->fd;
1029 ret = ioctl(fd, AC_MEM_TEST_READ, &cmd);
1097 int fd, ret;
1200 ret = ap_stat(ap_id, &fd, &bk, &stat, errstring);
1208 (void) close(fd);
1212 ret = mtest_run(fd, test_fun, &bk,
1216 (void) close(fd);
1446 get_version(int fd)
1453 ret = ioctl(fd, AC_MEM_ADMIN_VER, &ver);