Lines Matching refs:FAIL_IF
20 FAIL_IF(devfd < 0); in open_close()
21 FAIL_IF(close(devfd) != 0); in open_close()
36 FAIL_IF(devfd < 0); in get_splpar()
37 FAIL_IF(ioctl(devfd, PAPR_SYSPARM_IOC_GET, &sp) != 0); in get_splpar()
38 FAIL_IF(sp.length == 0); in get_splpar()
39 FAIL_IF(sp.length > sizeof(sp.data)); in get_splpar()
40 FAIL_IF(close(devfd) != 0); in get_splpar()
55 FAIL_IF(devfd < 0); in get_bad_parameter()
58 FAIL_IF(ioctl(devfd, PAPR_SYSPARM_IOC_GET, &sp) != -1); in get_bad_parameter()
59 FAIL_IF(errno != EOPNOTSUPP); in get_bad_parameter()
62 FAIL_IF(sp.length != 0); in get_bad_parameter()
64 FAIL_IF(sp.data[i] != 0); in get_bad_parameter()
66 FAIL_IF(close(devfd) != 0); in get_bad_parameter()
78 FAIL_IF(devfd < 0); in check_efault_common()
81 FAIL_IF(ioctl(devfd, cmd, NULL) != -1); in check_efault_common()
82 FAIL_IF(errno != EFAULT); in check_efault_common()
84 FAIL_IF(close(devfd) != 0); in check_efault_common()
109 FAIL_IF(devfd < 0); in set_hmc0()
112 FAIL_IF(ioctl(devfd, PAPR_SYSPARM_IOC_SET, &sp) != -1); in set_hmc0()
114 FAIL_IF(errno != EPERM); in set_hmc0()
116 FAIL_IF(close(devfd) != 0); in set_hmc0()
131 FAIL_IF(devfd < 0); in set_with_ro_fd()
134 FAIL_IF(ioctl(devfd, PAPR_SYSPARM_IOC_SET, &sp) != -1); in set_with_ro_fd()
141 FAIL_IF(errno != EBADF); in set_with_ro_fd()
143 FAIL_IF(close(devfd) != 0); in set_with_ro_fd()