Lines Matching defs:rv
211 int i, rv, locked;
302 rv = page_lock(&page_array[i], SE_EXCL, NULL, P_NO_RECLAIM);
303 ASSERT(rv == 1);
314 rv = page_lock(&page_array[i], SE_EXCL, NULL, P_NO_RECLAIM);
315 ASSERT(rv == 1);
381 long rv;
388 rv = 0;
397 rv = balloon_alloc_pages(credit, mfn_frames);
399 if (rv < 0) {
403 for (i = 0; i < rv; i++) {
414 cnt = balloon_init_new_pages(&mfn_frames[i], rv - i);
417 if (i < rv) {
420 ASSERT(i == rv);
460 * Variable review: at this point, rv contains the number of pages
467 if (cnt < rv) {
479 cmn_err(CE_WARN, "Could only assign %d of %ld pages", cnt, rv);
482 (void) balloon_free_pages(rv - cnt, &mfn_frames[i], NULL, NULL);
484 rv = cnt;
488 page_unresv(rv - (meta_pg_end - meta_pg_start));
489 return (rv);
501 long rv;
575 rv = balloon_free_pages(debit, mfn_frames, NULL, NULL);
577 if (rv < 0) {
579 "failed - up to %lu pages lost (error = %ld)", debit, rv);
580 rv = 0;
581 } else if (rv != debit) {
583 "hypervisor call", rv);
589 return (rv);
606 int rv;
609 rv = xenbus_scanf(0, "memory", "target", "%lu", &new_target_kb);
610 if (rv != 0) {
663 spgcnt_t rv;
669 rv = 0;
689 rv = -balloon_dec_reservation(
695 rv = balloon_inc_reservation(
700 if (rv == 0) {
707 bln_stats.bln_current_pages += rv;
789 long rv;
797 rv = HYPERVISOR_memory_op(XENMEM_increase_reservation, &memres);
798 if (rv > 0)
799 atomic_add_long((ulong_t *)&bln_stats.bln_hv_pages, -rv);
800 return (rv);