Home
last modified time | relevance | path

Searched refs:nth_state (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c90 struct fail_nth_state *nth_state) in fail_nth_first() argument
95 nth_state->proc_fd = open(buf, O_RDWR); in fail_nth_first()
96 ASSERT_NE(-1, nth_state->proc_fd); in fail_nth_first()
100 struct fail_nth_state *nth_state, in fail_nth_next() argument
113 ASSERT_GT(400, nth_state->iteration); in fail_nth_next()
114 if (nth_state->iteration != 0) { in fail_nth_next()
130 res2 = pwrite(nth_state->proc_fd, disable_nth, in fail_nth_next()
150 nth_state->iteration++; in fail_nth_next()
160 struct fail_nth_state *nth_state) in __fail_nth_enable() argument
165 if (!nth_state->iteration) in __fail_nth_enable()
[all …]