• Home
  • Raw
  • Download

Lines Matching refs:ret

83 	int ret;  in spu_setup_isolated()  local
91 ret = -ENODEV; in spu_setup_isolated()
114 ret = -EIO; in spu_setup_isolated()
136 ret = 0; in spu_setup_isolated()
143 ret = -EIO; in spu_setup_isolated()
154 ret = -EACCES; in spu_setup_isolated()
162 ret = -EINVAL; in spu_setup_isolated()
172 return ret; in spu_setup_isolated()
178 int ret; in spu_run_init() local
188 ret = spu_activate(ctx, 0); in spu_run_init()
189 if (ret) in spu_run_init()
190 return ret; in spu_run_init()
199 ret = spu_setup_isolated(ctx); in spu_run_init()
200 if (ret) in spu_run_init()
201 return ret; in spu_run_init()
231 ret = spu_activate(ctx, 0); in spu_run_init()
232 if (ret) in spu_run_init()
233 return ret; in spu_run_init()
246 int ret = 0; in spu_run_fini() local
259 ret = -ERESTARTSYS; in spu_run_fini()
261 return ret; in spu_run_fini()
275 int ret; in spu_handle_restartsys() local
286 ret = -ERESTARTSYS; in spu_handle_restartsys()
298 ret = -ERESTARTSYS; in spu_handle_restartsys()
303 ret = 0; in spu_handle_restartsys()
305 return ret; in spu_handle_restartsys()
314 int ret; in spu_process_callback() local
325 ret = 0; in spu_process_callback()
334 ret = spu_handle_restartsys(ctx, &spu_ret, &npc); in spu_process_callback()
337 if (ret == -ERESTARTSYS) in spu_process_callback()
338 return ret; in spu_process_callback()
349 return ret; in spu_process_callback()
354 int ret; in spufs_run_spu() local
363 ret = spu_acquire(ctx); in spufs_run_spu()
364 if (ret) in spufs_run_spu()
371 ret = spu_run_init(ctx, npc); in spufs_run_spu()
372 if (ret) { in spufs_run_spu()
378 ret = spufs_wait(ctx->stop_wq, spu_stopped(ctx, &status)); in spufs_run_spu()
379 if (unlikely(ret)) { in spufs_run_spu()
401 ret = spu_process_callback(ctx); in spufs_run_spu()
402 if (ret) in spufs_run_spu()
406 ret = spufs_handle_class1(ctx); in spufs_run_spu()
407 if (ret) in spufs_run_spu()
410 ret = spufs_handle_class0(ctx); in spufs_run_spu()
411 if (ret) in spufs_run_spu()
415 ret = -ERESTARTSYS; in spufs_run_spu()
416 } while (!ret && !(status & (SPU_STATUS_STOPPED_BY_STOP | in spufs_run_spu()
421 ret = spu_run_fini(ctx, npc, &status); in spufs_run_spu()
428 if ((ret == 0) || in spufs_run_spu()
429 ((ret == -ERESTARTSYS) && in spufs_run_spu()
434 ret = status; in spufs_run_spu()
441 ret = -ERESTARTSYS; in spufs_run_spu()
446 ret = -ERESTARTSYS; in spufs_run_spu()
453 return ret; in spufs_run_spu()