Lines Matching refs:r

42 	int r;  in sanitycheck()  local
54 r = dma_resv_lock(&resv, NULL); in sanitycheck()
55 if (r) in sanitycheck()
60 return r; in sanitycheck()
68 int r; in test_signaling() local
77 r = dma_resv_lock(&resv, NULL); in test_signaling()
78 if (r) { in test_signaling()
83 r = dma_resv_reserve_fences(&resv, 1); in test_signaling()
84 if (r) { in test_signaling()
92 r = -EINVAL; in test_signaling()
98 r = -EINVAL; in test_signaling()
106 return r; in test_signaling()
115 int r; in test_for_each() local
124 r = dma_resv_lock(&resv, NULL); in test_for_each()
125 if (r) { in test_for_each()
130 r = dma_resv_reserve_fences(&resv, 1); in test_for_each()
131 if (r) { in test_for_each()
138 r = -ENOENT; in test_for_each()
140 if (!r) { in test_for_each()
142 r = -EINVAL; in test_for_each()
147 r = -EINVAL; in test_for_each()
152 r = -EINVAL; in test_for_each()
155 r = 0; in test_for_each()
157 if (r) { in test_for_each()
167 return r; in test_for_each()
176 int r; in test_for_each_unlocked() local
185 r = dma_resv_lock(&resv, NULL); in test_for_each_unlocked()
186 if (r) { in test_for_each_unlocked()
191 r = dma_resv_reserve_fences(&resv, 1); in test_for_each_unlocked()
192 if (r) { in test_for_each_unlocked()
201 r = -ENOENT; in test_for_each_unlocked()
204 if (!r) { in test_for_each_unlocked()
206 r = -EINVAL; in test_for_each_unlocked()
215 r = -EINVAL; in test_for_each_unlocked()
220 r = -EINVAL; in test_for_each_unlocked()
225 if (r == -ENOENT) { in test_for_each_unlocked()
226 r = -EINVAL; in test_for_each_unlocked()
229 } else if (r == -EINVAL) { in test_for_each_unlocked()
230 r = 0; in test_for_each_unlocked()
233 if (r) in test_for_each_unlocked()
241 return r; in test_for_each_unlocked()
249 int r, i; in test_get_fences() local
258 r = dma_resv_lock(&resv, NULL); in test_get_fences()
259 if (r) { in test_get_fences()
264 r = dma_resv_reserve_fences(&resv, 1); in test_get_fences()
265 if (r) { in test_get_fences()
274 r = dma_resv_get_fences(&resv, usage, &i, &fences); in test_get_fences()
275 if (r) { in test_get_fences()
293 return r; in test_get_fences()
306 int r; in dma_resv() local
311 r = subtests(tests, (void *)(unsigned long)usage); in dma_resv()
312 if (r) in dma_resv()
313 return r; in dma_resv()