Lines Matching refs:err
88 int err = 0; in sanitycheck() local
96 err = -ENOMEM; in sanitycheck()
103 return err; in sanitycheck()
123 int err = 0; in fence_chains_init() local
133 err = -ENOMEM; in fence_chains_init()
141 err = -ENOMEM; in fence_chains_init()
149 err = -ENOMEM; in fence_chains_init()
167 return err; in fence_chains_init()
189 int err; in find_seqno() local
192 err = fence_chains_init(&fc, 64, seqno_inc); in find_seqno()
193 if (err) in find_seqno()
194 return err; in find_seqno()
197 err = dma_fence_chain_find_seqno(&fence, 0); in find_seqno()
199 if (err) { in find_seqno()
200 pr_err("Reported %d for find_seqno(0)!\n", err); in find_seqno()
201 goto err; in find_seqno()
206 err = dma_fence_chain_find_seqno(&fence, i + 1); in find_seqno()
208 if (err) { in find_seqno()
210 err, fc.chain_length + 1, i + 1); in find_seqno()
211 goto err; in find_seqno()
216 err = -EINVAL; in find_seqno()
217 goto err; in find_seqno()
221 err = dma_fence_chain_find_seqno(&fence, i + 1); in find_seqno()
223 if (err) { in find_seqno()
225 goto err; in find_seqno()
229 err = -EINVAL; in find_seqno()
230 goto err; in find_seqno()
234 err = dma_fence_chain_find_seqno(&fence, i + 2); in find_seqno()
236 if (!err) { in find_seqno()
239 err = -EINVAL; in find_seqno()
240 goto err; in find_seqno()
244 err = dma_fence_chain_find_seqno(&fence, i); in find_seqno()
246 if (err) { in find_seqno()
248 goto err; in find_seqno()
253 err = -EINVAL; in find_seqno()
254 goto err; in find_seqno()
258 err: in find_seqno()
260 return err; in find_seqno()
267 int err; in find_signaled() local
269 err = fence_chains_init(&fc, 2, seqno_inc); in find_signaled()
270 if (err) in find_signaled()
271 return err; in find_signaled()
276 err = dma_fence_chain_find_seqno(&fence, 1); in find_signaled()
278 if (err) { in find_signaled()
279 pr_err("Reported %d for find_seqno()!\n", err); in find_signaled()
280 goto err; in find_signaled()
288 err = dma_fence_chain_find_seqno(&fence, 1); in find_signaled()
290 if (err) in find_signaled()
291 pr_err("Reported %d for finding self!\n", err); in find_signaled()
293 err = -EINVAL; in find_signaled()
296 err: in find_signaled()
298 return err; in find_signaled()
305 int err; in find_out_of_order() local
307 err = fence_chains_init(&fc, 3, seqno_inc); in find_out_of_order()
308 if (err) in find_out_of_order()
309 return err; in find_out_of_order()
314 err = dma_fence_chain_find_seqno(&fence, 2); in find_out_of_order()
316 if (err) { in find_out_of_order()
317 pr_err("Reported %d for find_seqno()!\n", err); in find_out_of_order()
318 goto err; in find_out_of_order()
332 err = -EINVAL; in find_out_of_order()
335 err: in find_out_of_order()
337 return err; in find_out_of_order()
349 int err; in find_gap() local
352 err = fence_chains_init(&fc, 64, seqno_inc2); in find_gap()
353 if (err) in find_gap()
354 return err; in find_gap()
358 err = dma_fence_chain_find_seqno(&fence, 2 * i + 1); in find_gap()
360 if (err) { in find_gap()
362 err, fc.chain_length + 1, 2 * i + 1); in find_gap()
363 goto err; in find_gap()
370 err = -EINVAL; in find_gap()
371 goto err; in find_gap()
375 err = dma_fence_chain_find_seqno(&fence, 2 * i + 2); in find_gap()
377 if (err) { in find_gap()
379 goto err; in find_gap()
383 err = -EINVAL; in find_gap()
384 goto err; in find_gap()
388 err: in find_gap()
390 return err; in find_gap()
401 int err = 0; in __find_race() local
409 err = dma_fence_chain_find_seqno(&fence, seqno); in __find_race()
410 if (err) { in __find_race()
424 err = dma_fence_chain_find_seqno(&fence, seqno); in __find_race()
425 if (err) { in __find_race()
443 return err; in __find_race()
452 int err; in find_race() local
455 err = fence_chains_init(&data.fc, CHAIN_SZ, seqno_inc); in find_race()
456 if (err) in find_race()
457 return err; in find_race()
461 err = -ENOMEM; in find_race()
462 goto err; in find_race()
484 if (ret && !err) in find_race()
485 err = ret; in find_race()
496 err: in find_race()
498 return err; in find_race()
504 int err; in signal_forward() local
507 err = fence_chains_init(&fc, 64, seqno_inc); in signal_forward()
508 if (err) in signal_forward()
509 return err; in signal_forward()
516 err = -EINVAL; in signal_forward()
517 goto err; in signal_forward()
523 err = -EINVAL; in signal_forward()
524 goto err; in signal_forward()
528 err: in signal_forward()
530 return err; in signal_forward()
536 int err; in signal_backward() local
539 err = fence_chains_init(&fc, 64, seqno_inc); in signal_backward()
540 if (err) in signal_backward()
541 return err; in signal_backward()
548 err = -EINVAL; in signal_backward()
549 goto err; in signal_backward()
556 err = -EINVAL; in signal_backward()
557 goto err; in signal_backward()
561 err: in signal_backward()
563 return err; in signal_backward()
580 int err; in wait_forward() local
583 err = fence_chains_init(&fc, CHAIN_SZ, seqno_inc); in wait_forward()
584 if (err) in wait_forward()
585 return err; in wait_forward()
589 err = PTR_ERR(tsk); in wait_forward()
590 goto err; in wait_forward()
598 err = kthread_stop(tsk); in wait_forward()
601 err: in wait_forward()
603 return err; in wait_forward()
610 int err; in wait_backward() local
613 err = fence_chains_init(&fc, CHAIN_SZ, seqno_inc); in wait_backward()
614 if (err) in wait_backward()
615 return err; in wait_backward()
619 err = PTR_ERR(tsk); in wait_backward()
620 goto err; in wait_backward()
628 err = kthread_stop(tsk); in wait_backward()
631 err: in wait_backward()
633 return err; in wait_backward()
656 int err; in wait_random() local
659 err = fence_chains_init(&fc, CHAIN_SZ, seqno_inc); in wait_random()
660 if (err) in wait_random()
661 return err; in wait_random()
667 err = PTR_ERR(tsk); in wait_random()
668 goto err; in wait_random()
676 err = kthread_stop(tsk); in wait_random()
679 err: in wait_random()
681 return err; in wait_random()