Lines Matching refs:argp
437 nfs_decode_args(struct nfsmount *nmp, struct nfs_args *argp, struct lwp *l) in nfs_decode_args() argument
449 if (argp->sotype == SOCK_STREAM) in nfs_decode_args()
450 argp->flags &= ~NFSMNT_NOCONN; in nfs_decode_args()
455 if ((argp->flags & (NFSMNT_XLATECOOKIE|NFSMNT_NFSV3)) == in nfs_decode_args()
457 argp->flags &= ~NFSMNT_XLATECOOKIE; in nfs_decode_args()
461 && (argp->flags & NFSMNT_RESVPORT); in nfs_decode_args()
464 (argp->flags & NFSMNT_NOCONN)); in nfs_decode_args()
467 nmp->nm_flag = argp->flags; in nfs_decode_args()
470 if ((argp->flags & NFSMNT_TIMEO) && argp->timeo > 0) { in nfs_decode_args()
471 nmp->nm_timeo = (argp->timeo * NFS_HZ + 5) / 10; in nfs_decode_args()
478 if ((argp->flags & NFSMNT_RETRANS) && argp->retrans > 1) { in nfs_decode_args()
479 nmp->nm_retry = argp->retrans; in nfs_decode_args()
485 if (argp->flags & NFSMNT_NFSV3) { in nfs_decode_args()
486 if (argp->sotype == SOCK_DGRAM) in nfs_decode_args()
494 if ((argp->flags & NFSMNT_WSIZE) && argp->wsize > 0) { in nfs_decode_args()
496 nmp->nm_wsize = argp->wsize; in nfs_decode_args()
508 if ((argp->flags & NFSMNT_RSIZE) && argp->rsize > 0) { in nfs_decode_args()
510 nmp->nm_rsize = argp->rsize; in nfs_decode_args()
522 if ((argp->flags & NFSMNT_READDIRSIZE) && argp->readdirsize > 0) { in nfs_decode_args()
523 nmp->nm_readdirsize = argp->readdirsize; in nfs_decode_args()
531 } else if (argp->flags & NFSMNT_RSIZE) in nfs_decode_args()
537 if ((argp->flags & NFSMNT_MAXGRPS) && argp->maxgrouplist >= 0 && in nfs_decode_args()
538 argp->maxgrouplist <= NFS_MAXGRPS) in nfs_decode_args()
539 nmp->nm_numgrps = argp->maxgrouplist; in nfs_decode_args()
540 if ((argp->flags & NFSMNT_READAHEAD) && argp->readahead >= 0 && in nfs_decode_args()
541 argp->readahead <= NFS_MAXRAHEAD) in nfs_decode_args()
542 nmp->nm_readahead = argp->readahead; in nfs_decode_args()
543 if ((argp->flags & NFSMNT_DEADTHRESH) && argp->deadthresh >= 1 && in nfs_decode_args()
544 argp->deadthresh <= NFS_NEVERDEAD) in nfs_decode_args()
545 nmp->nm_deadthresh = argp->deadthresh; in nfs_decode_args()
547 adjsock |= ((nmp->nm_sotype != argp->sotype) || in nfs_decode_args()
548 (nmp->nm_soproto != argp->proto)); in nfs_decode_args()
549 nmp->nm_sotype = argp->sotype; in nfs_decode_args()
550 nmp->nm_soproto = argp->proto; in nfs_decode_args()
683 mountnfs(struct nfs_args *argp, struct mount *mp, struct mbuf *nam, const char *pth, const char *hs… in mountnfs() argument
724 if ((argp->flags & NFSMNT_NFSV3) == 0) in mountnfs()
727 if (argp->fhsize != NFSX_V2FH) { in mountnfs()
753 nmp->nm_sotype = argp->sotype; in mountnfs()
754 nmp->nm_soproto = argp->proto; in mountnfs()
756 nfs_decode_args(nmp, argp, l); in mountnfs()
776 error = nfs_nget(mp, (nfsfh_t *)argp->fh, argp->fhsize, &np); in mountnfs()