Lines Matching refs:retval

499 	enum split_status retval;  in region_compare()  local
501 retval = SPL_DISJOINT; in region_compare()
520 retval = SPL_CONTAINED; in region_compare()
522 retval = SPL_LOCK1; in region_compare()
551 retval |= SPL_LOCK1; in region_compare()
558 retval |= SPL_LOCK2; in region_compare()
566 retval = SPL_CONTAINED; in region_compare()
567 return retval; in region_compare()
570 retval = SPL_CONTAINED; in region_compare()
571 return retval; in region_compare()
586 retval |= SPL_LOCK1; in region_compare()
587 return retval; in region_compare()
631 retval |= SPL_LOCK1; in region_compare()
638 retval |= SPL_LOCK2; in region_compare()
643 retval = SPL_CONTAINED; in region_compare()
646 return retval; in region_compare()
655 int retval; in same_netobj() local
657 retval = 0; in same_netobj()
663 retval = !bcmp(n0->n_bytes, n1->n_bytes, n0->n_len); in same_netobj()
664 debuglog("netobj %smatch\n", retval ? "" : "mis"); in same_netobj()
667 return (retval); in same_netobj()
676 int retval; in same_filelock_identity() local
678 retval = 0; in same_filelock_identity()
685 retval = (fl0->client.svid == fl1->client.svid && in same_filelock_identity()
688 debuglog("Exiting checking filelock identity: retval: %d\n",retval); in same_filelock_identity()
690 return (retval); in same_filelock_identity()
771 enum nfslock_status retval; in test_nfslock() local
775 retval = NFS_GRANTED; in test_nfslock()
787 if (retval == NFS_DENIED) in test_nfslock()
831 retval = NFS_GRANTED_DUPLICATE; in test_nfslock()
840 retval = NFS_DENIED; in test_nfslock()
847 return (retval); in test_nfslock()
871 enum nfslock_status retval; in lock_nfslock() local
878 retval = test_nfslock(fl,&dummy_fl); in lock_nfslock()
880 if (retval == NFS_GRANTED || retval == NFS_GRANTED_DUPLICATE) { in lock_nfslock()
888 return (retval); in lock_nfslock()
962 enum nfslock_status retval; in unlock_nfslock() local
971 retval = NFS_DENIED_NOLOCK; in unlock_nfslock()
1017 retval = NFS_GRANTED; in unlock_nfslock()
1022 return retval; in unlock_nfslock()
1177 int retval = 0; in duplicate_block() local
1193 retval = 1; in duplicate_block()
1198 debuglog("Exiting duplicate_block: %s\n", retval ? "already blocked" in duplicate_block()
1200 return retval; in duplicate_block()
1340 enum partialfilelock_status retval; in lock_partialfilelock() local
1346 retval = PFL_DENIED; in lock_partialfilelock()
1374 retval = PFL_GRANTED_DUPLICATE; in lock_partialfilelock()
1376 retval = PFL_GRANTED; in lock_partialfilelock()
1382 retval = PFL_HWRESERR; in lock_partialfilelock()
1386 retval = PFL_HWDENIED; in lock_partialfilelock()
1393 if (retval != PFL_GRANTED && in lock_partialfilelock()
1394 retval != PFL_GRANTED_DUPLICATE) { in lock_partialfilelock()
1401 retval = PFL_NFSDENIED; in lock_partialfilelock()
1404 retval = PFL_NFSRESERR; in lock_partialfilelock()
1408 retval = PFL_NFSDENIED_NOLOCK; in lock_partialfilelock()
1418 if (retval == PFL_NFSDENIED || retval == PFL_HWDENIED) { in lock_partialfilelock()
1421 if (retval == PFL_NFSDENIED) { in lock_partialfilelock()
1424 retval = PFL_NFSBLOCKED; in lock_partialfilelock()
1441 return retval; in lock_partialfilelock()
1457 enum partialfilelock_status retval; in unlock_partialfilelock() local
1467 retval = PFL_DENIED; in unlock_partialfilelock()
1530 retval = PFL_GRANTED; in unlock_partialfilelock()
1535 retval = PFL_HWRESERR; in unlock_partialfilelock()
1541 retval = PFL_HWRESERR; in unlock_partialfilelock()
1547 debuglog("Exiting with status retval: %d\n",retval); in unlock_partialfilelock()
1552 retval = PFL_GRANTED; in unlock_partialfilelock()
1556 retval = PFL_NFSRESERR; in unlock_partialfilelock()
1597 return retval; in unlock_partialfilelock()
1648 enum partialfilelock_status retval; in test_partialfilelock() local
1653 retval = PFL_DENIED; in test_partialfilelock()
1660 retval = (teststatus == NFS_GRANTED) ? in test_partialfilelock()
1667 retval = PFL_NFSDENIED; in test_partialfilelock()
1676 return retval; in test_partialfilelock()
1693 enum nlm_stats retval; in do_test() local
1704 retval = (fl->flags & LOCK_V4) ? nlm4_granted : nlm_granted; in do_test()
1712 retval = (fl->flags & LOCK_V4) ? nlm4_granted : nlm_granted; in do_test()
1719 retval = (fl->flags & LOCK_V4) ? nlm4_denied : nlm_denied; in do_test()
1726 retval = (fl->flags & LOCK_V4) ? nlm4_denied_nolocks : nlm_denied_nolocks; in do_test()
1732 retval = (fl->flags & LOCK_V4) ? nlm4_failed : nlm_denied; in do_test()
1738 return retval; in do_test()
1752 enum nlm_stats retval; in do_lock() local
1762 retval = (fl->flags & LOCK_V4) ? nlm4_granted : nlm_granted; in do_lock()
1767 retval = (fl->flags & LOCK_V4) ? nlm4_granted : nlm_granted; in do_lock()
1773 retval = (fl->flags & LOCK_V4) ? nlm4_denied : nlm_denied; in do_lock()
1779 retval = (fl->flags & LOCK_V4) ? nlm4_blocked : nlm_blocked; in do_lock()
1785 retval = (fl->flags & LOCK_V4) ? nlm4_denied_nolocks : nlm_denied_nolocks; in do_lock()
1790 retval = (fl->flags & LOCK_V4) ? nlm4_failed : nlm_denied; in do_lock()
1796 return retval; in do_lock()
1803 enum nlm_stats retval; in do_unlock() local
1812 retval = (fl->flags & LOCK_V4) ? nlm4_granted : nlm_granted; in do_unlock()
1818 retval = (fl->flags & LOCK_V4) ? nlm4_denied : nlm_denied; in do_unlock()
1823 retval = (fl->flags & LOCK_V4) ? nlm4_granted : nlm_granted; in do_unlock()
1829 retval = (fl->flags & LOCK_V4) ? nlm4_denied_nolocks : nlm_denied_nolocks; in do_unlock()
1834 retval = (fl->flags & LOCK_V4) ? nlm4_failed : nlm_denied; in do_unlock()
1840 return retval; in do_unlock()
1907 enum nlm_stats retval; in getlock() local
1943 retval = do_lock(newfl); in getlock()
1948 switch (retval) in getlock()
1965 return retval; in getlock()
2171 static struct nlm_res retval; in send_granted() local
2234 (xdrproc_t)xdr_nlm_res, &retval, timeo); in send_granted()