Lines Matching refs:rc

27     int rc;  in libxl__set_vcpuaffinity()  local
33 rc = ERROR_INVAL; in libxl__set_vcpuaffinity()
42 rc = libxl_cpu_bitmap_alloc(ctx, &hard, 0); in libxl__set_vcpuaffinity()
43 if (rc) in libxl__set_vcpuaffinity()
50 rc = libxl_cpu_bitmap_alloc(ctx, &soft, 0); in libxl__set_vcpuaffinity()
51 if (rc) in libxl__set_vcpuaffinity()
63 rc = ERROR_FAIL; in libxl__set_vcpuaffinity()
89 rc = 0; in libxl__set_vcpuaffinity()
94 return rc; in libxl__set_vcpuaffinity()
120 int i, rc = 0; in libxl_set_vcpuaffinity_all() local
125 rc = ERROR_FAIL; in libxl_set_vcpuaffinity_all()
130 return rc; in libxl_set_vcpuaffinity_all()
199 int rc; in sched_credit_domain_get() local
201 rc = xc_sched_credit_domain_get(CTX->xch, domid, &sdom); in sched_credit_domain_get()
202 if (rc != 0) { in sched_credit_domain_get()
220 int rc; in sched_credit_domain_set() local
222 rc = xc_domain_getinfolist(CTX->xch, domid, 1, &domaininfo); in sched_credit_domain_set()
223 if (rc < 0) { in sched_credit_domain_set()
227 if (rc != 1 || domaininfo.domain != domid) in sched_credit_domain_set()
230 rc = xc_sched_credit_domain_get(CTX->xch, domid, &sdom); in sched_credit_domain_set()
231 if (rc != 0) { in sched_credit_domain_set()
256 rc = xc_sched_credit_domain_set(CTX->xch, domid, &sdom); in sched_credit_domain_set()
257 if ( rc < 0 ) { in sched_credit_domain_set()
282 int r, rc; in libxl_sched_credit_params_get() local
288 rc = ERROR_FAIL; in libxl_sched_credit_params_get()
296 rc = 0; in libxl_sched_credit_params_get()
299 return rc; in libxl_sched_credit_params_get()
306 int r, rc; in libxl_sched_credit_params_set() local
313 rc = ERROR_INVAL; in libxl_sched_credit_params_set()
316 rc = sched_ratelimit_check(gc, scinfo->ratelimit_us); in libxl_sched_credit_params_set()
317 if (rc) { in libxl_sched_credit_params_set()
322 rc = ERROR_INVAL; in libxl_sched_credit_params_set()
328 rc = ERROR_INVAL; in libxl_sched_credit_params_set()
339 rc = ERROR_FAIL; in libxl_sched_credit_params_set()
347 rc = 0; in libxl_sched_credit_params_set()
350 return rc; in libxl_sched_credit_params_set()
357 int r, rc; in libxl_sched_credit2_params_get() local
363 rc = ERROR_FAIL; in libxl_sched_credit2_params_get()
369 rc = 0; in libxl_sched_credit2_params_get()
372 return rc; in libxl_sched_credit2_params_get()
379 int r, rc; in libxl_sched_credit2_params_set() local
382 rc = sched_ratelimit_check(gc, scinfo->ratelimit_us); in libxl_sched_credit2_params_set()
383 if (rc) goto out; in libxl_sched_credit2_params_set()
390 rc = ERROR_FAIL; in libxl_sched_credit2_params_set()
396 rc = 0; in libxl_sched_credit2_params_set()
399 return rc; in libxl_sched_credit2_params_set()
406 int rc; in sched_credit2_domain_get() local
408 rc = xc_sched_credit2_domain_get(CTX->xch, domid, &sdom); in sched_credit2_domain_get()
409 if (rc != 0) { in sched_credit2_domain_get()
427 int rc; in sched_credit2_domain_set() local
429 rc = xc_domain_getinfolist(CTX->xch, domid, 1, &info); in sched_credit2_domain_set()
430 if (rc < 0) { in sched_credit2_domain_set()
434 if (rc != 1 || info.domain != domid) in sched_credit2_domain_set()
437 rc = xc_sched_credit2_domain_get(CTX->xch, domid, &sdom); in sched_credit2_domain_set()
438 if (rc != 0) { in sched_credit2_domain_set()
463 rc = xc_sched_credit2_domain_set(CTX->xch, domid, &sdom); in sched_credit2_domain_set()
464 if ( rc < 0 ) { in sched_credit2_domain_set()
474 int rc; in sched_rtds_validate_params() local
478 rc = ERROR_INVAL; in sched_rtds_validate_params()
484 rc = ERROR_INVAL; in sched_rtds_validate_params()
491 rc = ERROR_INVAL; in sched_rtds_validate_params()
494 rc = 0; in sched_rtds_validate_params()
496 return rc; in sched_rtds_validate_params()
504 int i, r, rc; in sched_rtds_vcpu_get() local
511 rc = ERROR_FAIL; in sched_rtds_vcpu_get()
516 rc = ERROR_INVAL; in sched_rtds_vcpu_get()
527 rc = ERROR_INVAL; in sched_rtds_vcpu_get()
537 rc = ERROR_FAIL; in sched_rtds_vcpu_get()
548 rc = 0; in sched_rtds_vcpu_get()
550 return rc; in sched_rtds_vcpu_get()
558 int i, r, rc; in sched_rtds_vcpu_get_all() local
565 rc = ERROR_FAIL; in sched_rtds_vcpu_get_all()
570 rc = ERROR_INVAL; in sched_rtds_vcpu_get_all()
582 rc = ERROR_FAIL; in sched_rtds_vcpu_get_all()
597 rc = 0; in sched_rtds_vcpu_get_all()
599 return rc; in sched_rtds_vcpu_get_all()
606 int r, rc; in sched_rtds_vcpu_set() local
615 rc = ERROR_FAIL; in sched_rtds_vcpu_set()
621 rc = ERROR_INVAL; in sched_rtds_vcpu_set()
629 rc = ERROR_INVAL; in sched_rtds_vcpu_set()
632 rc = sched_rtds_validate_params(gc, scinfo->vcpus[i].period, in sched_rtds_vcpu_set()
634 if (rc) { in sched_rtds_vcpu_set()
635 rc = ERROR_INVAL; in sched_rtds_vcpu_set()
654 rc = ERROR_FAIL; in sched_rtds_vcpu_set()
657 rc = 0; in sched_rtds_vcpu_set()
659 return rc; in sched_rtds_vcpu_set()
666 int r, rc; in sched_rtds_vcpu_set_all() local
676 rc = ERROR_FAIL; in sched_rtds_vcpu_set_all()
682 rc = ERROR_INVAL; in sched_rtds_vcpu_set_all()
687 rc = ERROR_INVAL; in sched_rtds_vcpu_set_all()
706 rc = ERROR_FAIL; in sched_rtds_vcpu_set_all()
709 rc = 0; in sched_rtds_vcpu_set_all()
711 return rc; in sched_rtds_vcpu_set_all()
718 int rc; in sched_rtds_domain_get() local
720 rc = xc_sched_rtds_domain_get(CTX->xch, domid, &sdom); in sched_rtds_domain_get()
721 if (rc != 0) { in sched_rtds_domain_get()
739 int rc; in sched_rtds_domain_set() local
741 rc = xc_sched_rtds_domain_get(CTX->xch, domid, &sdom); in sched_rtds_domain_set()
742 if (rc != 0) { in sched_rtds_domain_set()
758 rc = xc_sched_rtds_domain_set(CTX->xch, domid, &sdom); in sched_rtds_domain_set()
759 if (rc < 0) { in sched_rtds_domain_set()
812 int rc; in libxl_vcpu_sched_params_set() local
820 rc = ERROR_FEATURE_REMOVED; in libxl_vcpu_sched_params_set()
827 rc = ERROR_INVAL; in libxl_vcpu_sched_params_set()
830 rc = sched_rtds_vcpu_set(gc, domid, scinfo); in libxl_vcpu_sched_params_set()
834 rc = ERROR_INVAL; in libxl_vcpu_sched_params_set()
839 return rc; in libxl_vcpu_sched_params_set()
847 int rc; in libxl_vcpu_sched_params_set_all() local
855 rc = ERROR_FEATURE_REMOVED; in libxl_vcpu_sched_params_set_all()
862 rc = ERROR_INVAL; in libxl_vcpu_sched_params_set_all()
865 rc = sched_rtds_vcpu_set_all(gc, domid, scinfo); in libxl_vcpu_sched_params_set_all()
869 rc = ERROR_INVAL; in libxl_vcpu_sched_params_set_all()
874 return rc; in libxl_vcpu_sched_params_set_all()
918 int rc; in libxl_vcpu_sched_params_get() local
925 rc = ERROR_FEATURE_REMOVED; in libxl_vcpu_sched_params_get()
932 rc = ERROR_INVAL; in libxl_vcpu_sched_params_get()
935 rc = sched_rtds_vcpu_get(gc, domid, scinfo); in libxl_vcpu_sched_params_get()
939 rc = ERROR_INVAL; in libxl_vcpu_sched_params_get()
944 return rc; in libxl_vcpu_sched_params_get()
951 int rc; in libxl_vcpu_sched_params_get_all() local
958 rc = ERROR_FEATURE_REMOVED; in libxl_vcpu_sched_params_get_all()
965 rc = ERROR_INVAL; in libxl_vcpu_sched_params_get_all()
968 rc = sched_rtds_vcpu_get_all(gc, domid, scinfo); in libxl_vcpu_sched_params_get_all()
972 rc = ERROR_INVAL; in libxl_vcpu_sched_params_get_all()
977 return rc; in libxl_vcpu_sched_params_get_all()