Home
last modified time | relevance | path

Searched refs:nmp (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/sys/fs/nfsclient/
H A Dnfs_clvfsops.c117 static void nfs_decode_args(struct mount *mp, struct nfsmount *nmp,
196 newnfs_iosize(struct nfsmount *nmp) in newnfs_iosize() argument
202 if (nmp->nm_flag & NFSMNT_NFSV4) { in newnfs_iosize()
204 } else if (nmp->nm_flag & NFSMNT_NFSV3) { in newnfs_iosize()
205 if (nmp->nm_sotype == SOCK_DGRAM) in newnfs_iosize()
214 if (NFSHASRDMA(nmp) && nmp->nm_sockreq.nr_client != NULL) { in newnfs_iosize()
215 CLNT_CONTROL(nmp->nm_sockreq.nr_client, CLGET_RDMAMAX_IO, in newnfs_iosize()
221 if (nmp->nm_rsize > maxio || nmp in newnfs_iosize()
307 struct nfsmount *nmp = VFSTONFS(mp); nfs_statfs() local
420 ncl_fsinfo(struct nfsmount * nmp,struct vnode * vp,struct ucred * cred,struct thread * td) ncl_fsinfo() argument
626 nfs_decode_args(struct mount * mp,struct nfsmount * nmp,struct nfs_args * argp,const char * hostname,struct ucred * cred,struct thread * td) nfs_decode_args() argument
1297 struct nfsmount *nmp = VFSTONFS(mp); nfs_mount() local
1613 struct nfsmount *nmp; mountnfs() local
1969 struct nfsmount *nmp; nfs_unmount() local
2074 struct nfsmount *nmp; nfs_root() local
2164 struct nfsmount *nmp = VFSTONFS(mp); nfs_sysctl() local
2234 struct nfsmount *nmp = VFSTONFS(mp); nfs_purge() local
2247 struct nfsmount *nmp; nfs_getnlminfo() local
2271 nfscl_printopt(struct nfsmount * nmp,int testval,char * opt,char ** buf,size_t * blen) nfscl_printopt() argument
2288 nfscl_printoptval(struct nfsmount * nmp,int optval,char * opt,char ** buf,size_t * blen) nfscl_printoptval() argument
2306 nfscl_retopts(struct nfsmount * nmp,char * buffer,size_t buflen) nfscl_retopts() argument
[all...]
H A Dnfs_clnfsiod.c246 struct nfsmount *nmp; in nfssvc_iod() local
256 while (((nmp = ncl_iodmount[myiod]) == NULL) in nfssvc_iod()
257 || !TAILQ_FIRST(&nmp->nm_bufq)) { in nfssvc_iod()
260 if (nmp) in nfssvc_iod()
261 nmp->nm_bufqiods--; in nfssvc_iod()
272 nmp = ncl_iodmount[myiod]; in nfssvc_iod()
278 if (nmp && TAILQ_FIRST(&nmp->nm_bufq)) in nfssvc_iod()
285 while ((bp = TAILQ_FIRST(&nmp->nm_bufq)) != NULL) { in nfssvc_iod()
287 TAILQ_REMOVE(&nmp in nfssvc_iod()
[all...]
H A Dnfs_clport.c127 struct nfsmount *nmp; in nfscl_nget() local
129 nmp = VFSTONFS(mntp); in nfscl_nget()
137 if ((nmp->nm_privflag & NFSMNTP_FAKEROOTFH) != 0 && in nfscl_nget()
138 nmp->nm_fhsize > 0 && nmp->nm_fhsize == nfhp->nfh_len && in nfscl_nget()
139 !NFSBCMP(nmp->nm_fh, nfhp->nfh_fh, nmp->nm_fhsize)) { in nfscl_nget()
181 if ((nmp->nm_flag & NFSMNT_NFSV4) && np->n_v4 != NULL && in nfscl_nget()
247 (nfhp->nfh_len == nmp->nm_fhsize && in nfscl_nget()
248 !bcmp(nfhp->nfh_fh, nmp->nm_fh, nfhp->nfh_len))) { in nfscl_nget()
261 if (NFSHASNFSV4(nmp) && !NFSHASNFSV4N(nmp)) { in nfscl_nget()
377 nfscl_warn_fileid(struct nfsmount *nmp, struct nfsvattr *oldnap, in nfscl_warn_fileid() argument
[all …]
H A Dnfs_clbio.c124 struct nfsmount *nmp; in ncl_getpages() local
133 nmp = VFSTONFS(vp->v_mount); in ncl_getpages()
152 mtx_lock(&nmp->nm_mtx); in ncl_getpages()
153 if ((nmp->nm_flag & NFSMNT_NFSV3) != 0 && in ncl_getpages()
154 (nmp->nm_state & NFSSTA_GOTFSINFO) == 0) { in ncl_getpages()
155 mtx_unlock(&nmp->nm_mtx); in ncl_getpages()
157 (void)ncl_fsinfo(nmp, vp, cred, td); in ncl_getpages()
159 mtx_unlock(&nmp->nm_mtx); in ncl_getpages()
273 struct nfsmount *nmp; in ncl_putpages() local
285 nmp in ncl_putpages()
438 struct nfsmount *nmp = VFSTONFS(vp->v_mount); ncl_bioread() local
769 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfs_directio_write() local
839 struct nfsmount *nmp = VFSTONFS(vp->v_mount); ncl_write() local
1294 struct nfsmount *nmp; nfs_getcacheblk() local
1327 struct nfsmount *nmp = VFSTONFS(vp->v_mount); ncl_vinvalbuf() local
1403 ncl_asyncio(struct nfsmount * nmp,struct buf * bp,struct ucred * cred,struct thread * td) ncl_asyncio() argument
1555 struct nfsmount *nmp; ncl_doio() local
[all...]
H A Dnfs_clrpcops.c318 struct nfsmount *nmp; in nfsrpc_accessrpc() local
323 nmp = VFSTONFS(vp->v_mount); in nfsrpc_accessrpc()
325 if ((nmp->nm_privflag & NFSMNTP_FAKEROOTFH) != 0 && in nfsrpc_accessrpc()
326 nmp->nm_fhsize == 0) { in nfsrpc_accessrpc()
328 error = nfsrpc_getdirpath(nmp, NFSMNT_DIRPATH(nmp), cred, p); in nfsrpc_accessrpc()
389 struct nfsmount *nmp = VFSTONFS(vp->v_mount); in nfsrpc_open() local
403 if (NFSHASNFSV4N(nmp)) { in nfsrpc_open()
404 if (!NFSHASPNFS(nmp) && nfscl_enablecallb != 0 && in nfsrpc_open()
425 if (nmp in nfsrpc_open()
552 nfsrpc_openrpc(struct nfsmount * nmp,vnode_t vp,u_int8_t * nfhp,int fhlen,u_int8_t * newfhp,int newfhlen,u_int32_t mode,struct nfsclopen * op,u_int8_t * name,int namelen,struct nfscldeleg ** dpp,int reclaim,u_int32_t delegtype,struct ucred * cred,NFSPROC_T * p,int syscred,int recursed) nfsrpc_openrpc() argument
823 nfsrpc_doclose(struct nfsmount * nmp,struct nfsclopen * op,NFSPROC_T * p,bool loop_on_delayed,bool freeop) nfsrpc_doclose() argument
931 nfsrpc_closerpc(struct nfsrv_descript * nd,struct nfsmount * nmp,struct nfsclopen * op,struct ucred * cred,NFSPROC_T * p,int syscred) nfsrpc_closerpc() argument
978 struct nfsmount *nmp; nfsrpc_openconfirm() local
1016 nfsrpc_setclient(struct nfsmount * nmp,struct nfsclclient * clp,int reclaim,bool * retokp,struct ucred * cred,NFSPROC_T * p) nfsrpc_setclient() argument
1241 struct nfsmount *nmp; nfsrpc_getattr() local
1274 nfsrpc_getattrnovp(struct nfsmount * nmp,u_int8_t * fhp,int fhlen,int syscred,struct ucred * cred,NFSPROC_T * p,struct nfsvattr * nap,u_int64_t * xidp,uint32_t * leasep) nfsrpc_getattrnovp() argument
1320 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_setattr() local
1451 struct nfsmount *nmp; nfsrpc_lookup() local
1698 struct nfsmount *nmp; nfsrpc_readlink() local
1758 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_read() local
1829 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_readrpc() local
1960 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_write() local
2042 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_writerpc() local
2299 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_deallocate() local
2496 struct nfsmount *nmp = VFSTONFS(dvp->v_mount); nfsrpc_create() local
2622 struct nfsmount *nmp; nfsrpc_createv4() local
2883 struct nfsmount *nmp; nfsrpc_remove() local
3011 struct nfsmount *nmp; nfsrpc_rename() local
3297 struct nfsmount *nmp; nfsrpc_symlink() local
3361 struct nfsmount *nmp; nfsrpc_mkdir() local
3522 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_readdir() local
4004 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_readdirplus() local
4584 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_commit() local
4635 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_advlock() local
4803 struct nfsmount *nmp; nfsrpc_lockt() local
4870 nfsrpc_locku(struct nfsrv_descript * nd,struct nfsmount * nmp,struct nfscllockowner * lp,u_int64_t off,u_int64_t len,u_int32_t type,struct ucred * cred,NFSPROC_T * p,int syscred) nfsrpc_locku() argument
4920 nfsrpc_lock(struct nfsrv_descript * nd,struct nfsmount * nmp,vnode_t vp,u_int8_t * nfhp,int fhlen,struct nfscllockowner * lp,int newone,int reclaim,u_int64_t off,u_int64_t len,short type,struct ucred * cred,NFSPROC_T * p,int syscred) nfsrpc_lock() argument
5018 struct nfsmount *nmp; nfsrpc_statfs() local
5111 struct nfsmount *nmp; nfsrpc_pathconf() local
5230 struct nfsmount *nmp; nfsrpc_renew() local
5278 nfsrpc_rellockown(struct nfsmount * nmp,struct nfscllockowner * lp,uint8_t * fh,int fhlen,struct ucred * cred,NFSPROC_T * p) nfsrpc_rellockown() argument
5317 nfsrpc_getdirpath(struct nfsmount * nmp,u_char * dirpath,struct ucred * cred,NFSPROC_T * p) nfsrpc_getdirpath() argument
5399 nfsrpc_delegreturn(struct nfscldeleg * dp,struct ucred * cred,struct nfsmount * nmp,NFSPROC_T * p,int syscred) nfsrpc_delegreturn() argument
5437 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_getacl() local
5485 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_setacl() local
5514 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_setaclrpc() local
5542 nfsrpc_exchangeid(struct nfsmount * nmp,struct nfsclclient * clp,struct nfssockreq * nrp,int minorvers,uint32_t exchflags,struct nfsclds ** dspp,struct ucred * cred,NFSPROC_T * p) nfsrpc_exchangeid() argument
5632 nfsrpc_createsession(struct nfsmount * nmp,struct nfsclsession * sep,struct nfssockreq * nrp,struct nfsclds * dsp,uint32_t sequenceid,int mds,struct ucred * cred,NFSPROC_T * p) nfsrpc_createsession() argument
5781 nfsrpc_destroyclient(struct nfsmount * nmp,struct nfsclclient * clp,struct ucred * cred,NFSPROC_T * p) nfsrpc_destroyclient() argument
5810 nfsrpc_layoutget(struct nfsmount * nmp,uint8_t * fhp,int fhlen,int iomode,uint64_t offset,uint64_t len,uint64_t minlen,int layouttype,int layoutlen,nfsv4stateid_t * stateidp,int * retonclosep,struct nfsclflayouthead * flhp,struct ucred * cred,NFSPROC_T * p) nfsrpc_layoutget() argument
5841 nfsrpc_getdeviceinfo(struct nfsmount * nmp,uint8_t * deviceid,int layouttype,uint32_t * notifybitsp,struct nfscldevinfo ** ndip,struct ucred * cred,NFSPROC_T * p) nfsrpc_getdeviceinfo() argument
6076 nfsrpc_layoutcommit(struct nfsmount * nmp,uint8_t * fh,int fhlen,int reclaim,uint64_t off,uint64_t len,uint64_t lastbyte,nfsv4stateid_t * stateidp,int layouttype,struct ucred * cred,NFSPROC_T * p) nfsrpc_layoutcommit() argument
6125 nfsrpc_layoutreturn(struct nfsmount * nmp,uint8_t * fh,int fhlen,int reclaim,int layouttype,uint32_t iomode,int layoutreturn,uint64_t offset,uint64_t len,nfsv4stateid_t * stateidp,struct ucred * cred,NFSPROC_T * p,uint32_t stat,uint32_t op,char * devid) nfsrpc_layoutreturn() argument
6213 nfsrpc_layouterror(struct nfsmount * nmp,uint8_t * fh,int fhlen,uint64_t offset,uint64_t len,nfsv4stateid_t * stateidp,struct ucred * cred,NFSPROC_T * p,uint32_t stat,uint32_t op,char * devid) nfsrpc_layouterror() argument
6253 nfsrpc_getlayout(struct nfsmount * nmp,vnode_t vp,struct nfsfh * nfhp,int iomode,uint32_t rw,uint32_t * notifybitsp,nfsv4stateid_t * stateidp,uint64_t off,struct nfscllayout ** lypp,struct ucred * cred,NFSPROC_T * p) nfsrpc_getlayout() argument
6322 nfsrpc_fillsa(struct nfsmount * nmp,struct sockaddr_in * sin,struct sockaddr_in6 * sin6,sa_family_t af,int vers,int minorvers,struct nfsclds ** dspp,NFSPROC_T * p) nfsrpc_fillsa() argument
6563 nfsrpc_reclaimcomplete(struct nfsmount * nmp,struct ucred * cred,NFSPROC_T * p) nfsrpc_reclaimcomplete() argument
6611 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfscl_doiods() local
7264 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_readds() local
7338 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_writeds() local
7479 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_writedsmir() local
7663 nfscl_getsameserver(struct nfsmount * nmp,struct nfsclds * newdsp,struct nfsclds ** retdspp,uint32_t * sequencep) nfscl_getsameserver() argument
7711 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_commitds() local
7867 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_adviseds() local
7974 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_allocate() local
8119 nfsrv_parselayoutget(struct nfsmount * nmp,struct nfsrv_descript * nd,nfsv4stateid_t * stateidp,int * retonclosep,struct nfsclflayouthead * flhp) nfsrv_parselayoutget() argument
8444 nfsrpc_getopenlayout(struct nfsmount * nmp,vnode_t vp,u_int8_t * nfhp,int fhlen,uint8_t * newfhp,int newfhlen,uint32_t mode,struct nfsclopen * op,uint8_t * name,int namelen,struct nfscldeleg ** dpp,struct ucred * cred,NFSPROC_T * p) nfsrpc_getopenlayout() argument
8517 nfsrpc_openlayoutrpc(struct nfsmount * nmp,vnode_t vp,u_int8_t * nfhp,int fhlen,uint8_t * newfhp,int newfhlen,uint32_t mode,struct nfsclopen * op,uint8_t * name,int namelen,struct nfscldeleg ** dpp,nfsv4stateid_t * stateidp,int usecurstateid,int layouttype,int layoutlen,int * retonclosep,struct nfsclflayouthead * flhp,int * laystatp,struct ucred * cred,NFSPROC_T * p) nfsrpc_openlayoutrpc() argument
8721 struct nfsmount *nmp; nfsrpc_createlayout() local
8987 struct nfsmount *nmp; nfsrpc_getcreatelayout() local
9025 nfsrpc_layoutgetres(struct nfsmount * nmp,vnode_t vp,uint8_t * newfhp,int newfhlen,nfsv4stateid_t * stateidp,int retonclose,uint32_t * notifybit,struct nfscllayout ** lypp,struct nfsclflayouthead * flhp,int layouttype,int laystat,int * islockedp,struct ucred * cred,NFSPROC_T * p) nfsrpc_layoutgetres() argument
9134 struct nfsmount *nmp = VFSTONFS(invp->v_mount); nfsrpc_copy_file_range() local
9208 struct nfsmount *nmp; nfsrpc_copyrpc() local
9371 struct nfsmount *nmp = VFSTONFS(invp->v_mount); nfsrpc_clone() local
9443 struct nfsmount *nmp; nfsrpc_clonerpc() local
9562 struct nfsmount *nmp = VFSTONFS(vp->v_mount); nfsrpc_seek() local
10061 nfsrpc_openattr(struct nfsmount * nmp,struct vnode * vp,uint8_t * fhp,int fhlen,bool createit,struct ucred * cred,NFSPROC_T * p,struct nfsvattr * nap,struct nfsfh ** nfhpp,int * attrflagp) nfsrpc_openattr() argument
10112 struct nfsmount *nmp; nfscl_statfs() local
[all...]
H A Dnfs_clvnops.c324 * nmp->nm_mtx : Protects the fields in the nfsmount.
328 nmp->nm_mtx
795 struct nfsmount *nmp; in nfs_close()
799 nmp = VFSTONFS(vp->v_mount); in nfs_close()
853 if (!NFSHASNFSV4N(nmp) || in nfs_close()
854 (nmp->nm_flag & NFSMNT_NOCTO) == 0 || in nfs_close()
897 if (nmp->nm_negnametimeo == 0) { in nfs_close()
914 (nmp->nm_flag & NFSMNT_NOCTO) == 0) { in nfs_close()
960 struct nfsmount *nmp; in nfs_getattr()
962 nmp in nfs_getattr()
794 struct nfsmount *nmp; nfs_close() local
959 struct nfsmount *nmp; nfs_getattr() local
1023 struct nfsmount *nmp; nfs_setattr() local
1220 struct nfsmount *nmp; nfs_lookup() local
1655 struct nfsmount *nmp; ncl_readrpc() local
1686 struct nfsmount *nmp; ncl_writerpc() local
1824 struct nfsmount *nmp; nfs_create() local
1977 struct nfsmount *nmp; nfs_remove() local
2077 struct nfsmount *nmp; nfs_removerpc() local
2133 struct nfsmount *nmp; nfs_rename() local
2287 struct nfsmount *nmp; nfs_renamerpc() local
2686 struct nfsmount *nmp = VFSTONFS(vp->v_mount); ncl_readdirrpc() local
2750 struct nfsmount *nmp = VFSTONFS(vp->v_mount); ncl_readdirplusrpc() local
2986 struct nfsmount *nmp = VFSTONFS(vp->v_mount); ncl_commit() local
3096 struct nfsmount *nmp = VFSTONFS(vp->v_mount); ncl_flush() local
3436 struct nfsmount *nmp; nfs_advlock() local
3782 struct nfsmount *nmp; nfs_advise() local
3828 struct nfsmount *nmp; nfs_allocate() local
3902 struct nfsmount *nmp; nfs_deallocate() local
4004 struct nfsmount *nmp; nfs_copy_file_range() local
4332 struct nfsmount *nmp; nfs_ioctl() local
4403 struct nfsmount *nmp; nfs_getextattr() local
4461 struct nfsmount *nmp; nfs_setextattr() local
4518 struct nfsmount *nmp; nfs_listextattr() local
4591 struct nfsmount *nmp; nfs_deleteextattr() local
4643 struct nfsmount *nmp; nfs_pathconf() local
[all...]
H A Dnfs_clstate.c437 struct nfsmount *nmp; in nfscl_deleg() local
441 nmp = VFSTONFS(mp); in nfscl_deleg()
449 NFSLOCKMNT(nmp); in nfscl_deleg()
450 nmp->nm_privflag |= NFSMNTP_DELEGISSUED; in nfscl_deleg()
451 NFSUNLOCKMNT(nmp); in nfscl_deleg()
523 nfscl_trydelegreturn(tdp, cred, nmp, p); in nfscl_deleg()
561 struct nfsmount *nmp; in nfscl_getstateid() local
581 nmp = VFSTONFS(vp->v_mount); in nfscl_getstateid()
589 if (NFSHASNFSV4N(nmp) && NFSHASONEOPENOWN(nmp) && fords == 0) { in nfscl_getstateid()
590 NFSLOCKMNT(nmp); in nfscl_getstateid()
[all …]
H A Dnfs_clsubs.c178 struct nfsmount *nmp; in ncl_getattrcache() local
185 nmp = VFSTONFS(vp->v_mount); in ncl_getattrcache()
197 if ((np->n_flag & NMODIFIED) || timeo < nmp->nm_acdirmin) in ncl_getattrcache()
198 timeo = nmp->nm_acdirmin; in ncl_getattrcache()
199 else if (timeo > nmp->nm_acdirmax) in ncl_getattrcache()
200 timeo = nmp->nm_acdirmax; in ncl_getattrcache()
202 if ((np->n_flag & NMODIFIED) || timeo < nmp->nm_acregmin) in ncl_getattrcache()
203 timeo = nmp->nm_acregmin; in ncl_getattrcache()
204 else if (timeo > nmp->nm_acregmax) in ncl_getattrcache()
205 timeo = nmp->nm_acregmax; in ncl_getattrcache()
[all …]
H A Dnfs_clnode.c104 struct nfsmount *nmp; in ncl_nget() local
107 nmp = VFSTONFS(mntp); in ncl_nget()
156 if (fhsize == NFSX_FHMAX + 1 || (fhsize == nmp->nm_fhsize && in ncl_nget()
157 !bcmp(fhp, nmp->nm_fh, fhsize))) { in ncl_nget()
242 struct nfsmount *nmp; in ncl_inactive() local
247 nmp = VFSTONFS(vp->v_mount); in ncl_inactive()
259 if ((nmp->nm_flag & NFSMNT_NOCTO) == 0 || !NFSHASNFSV4N(nmp) || in ncl_inactive()
/freebsd/sys/fs/nfs/
H A Dnfs_commonkrpc.c254 newnfs_connect(struct nfsmount *nmp, struct nfssockreq *nrp, in newnfs_connect() argument
294 if (nmp != NULL && NFSHASRDMA(nmp)) in newnfs_connect()
301 if (nmp != NULL && NFSHASRDMA(nmp)) in newnfs_connect()
310 if (nmp == NULL || !NFSHASRDMA(nmp)) { in newnfs_connect()
334 if (nmp != NULL && nrp->nr_sotype == SOCK_STREAM && in newnfs_connect()
353 if (nmp != NULL) { in newnfs_connect()
364 if (nmp != NULL) { in newnfs_connect()
374 if (error != 0 && nmp != NULL && in newnfs_connect()
387 if (nmp != NULL && !NFSHASRDMA(nmp)) { in newnfs_connect()
388 if ((nmp->nm_flag & NFSMNT_INT)) in newnfs_connect()
[all …]
H A Dnfs_commonsubs.c358 nfscl_reqstart(struct nfsrv_descript *nd, int procnum, struct nfsmount *nmp, in nfscl_reqstart() argument
381 if (NFSHASNFSV4(nmp)) { in nfscl_reqstart()
383 if (nmp->nm_minorvers == 1) in nfscl_reqstart()
385 else if (nmp->nm_minorvers == 2) in nfscl_reqstart()
387 } else if (NFSHASNFSV3(nmp)) in nfscl_reqstart()
457 sep = nfsmnt_mdssession(nmp); in nfscl_reqstart()
464 nfsv4_setsequence(nmp, nd, sep, in nfscl_reqstart()
467 nfsv4_setsequence(nmp, nd, sep, in nfscl_reqstart()
473 (void)nfsm_fhtom(nmp, nd, nfhp, fhlen, 0); in nfscl_reqstart()
998 nfsm_fhtom(struct nfsmount *nmp, struct nfsrv_descript *nd, u_int8_t *fhp, in nfsm_fhtom() argument
[all …]
H A Dnfsport.h1201 nfsmnt_mdssession(struct nfsmount *nmp) in nfsmnt_mdssession()
1206 mtx_lock(&nmp->nm_mtx); in nfsmnt_mdssession()
1207 if (TAILQ_FIRST(&nmp->nm_sess) != NULL) in nfsmnt_mdssession()
1208 tsep = NFSMNT_MDSSESSION(nmp); in nfsmnt_mdssession()
1209 mtx_unlock(&nmp->nm_mtx); in nfsmnt_mdssession()
1200 nfsmnt_mdssession(struct nfsmount * nmp) nfsmnt_mdssession() argument
/freebsd/stand/efi/libefi/
H A Defichar.c135 utf8_to_ucs2(const char *name, efi_char **nmp, size_t *len) in utf8_to_ucs2() argument
141 int freeit = *nmp == NULL; in utf8_to_ucs2()
144 if (*nmp == NULL) in utf8_to_ucs2()
145 *nmp = EFICHAR_MALLOC(sz); in utf8_to_ucs2()
146 if (*nmp == NULL) in utf8_to_ucs2()
148 nm = *nmp; in utf8_to_ucs2()
194 *nmp = NULL; in utf8_to_ucs2()
205 *nmp = NULL; in utf8_to_ucs2()
/freebsd/contrib/ntp/libparse/
H A Dparsesolaris.c644 register mblk_t *nmp; in parserput() local
683 nmp = (mblk_t *)NULL; in parserput()
684 if (canputnext(parse->parse_queue) && (nmp = allocb(sizeof(parsetime_t), BPRI_MED))) in parserput()
686 bcopy((caddr_t)&parse->parse_io.parse_dtime, (caddr_t)nmp->b_rptr, sizeof(parsetime_t)); in parserput()
687 nmp->b_wptr += sizeof(parsetime_t); in parserput()
688 putnext(parse->parse_queue, nmp); in parserput()
691 if (nmp) freemsg(nmp); in parserput()
704 nmp = (mblk_t *)NULL; in parserput()
705 if (canputnext(parse->parse_queue) && (nmp = allocb(sizeof(parsetime_t), BPRI_MED))) in parserput()
707 bcopy((caddr_t)&parse->parse_io.parse_dtime, (caddr_t)nmp->b_rptr, sizeof(parsetime_t)); in parserput()
[all …]
H A Dparsestreams.c799 register mblk_t *nmp; in parserput() local
836 nmp = (mblk_t *)NULL; in parserput()
837 if (canput(parse->parse_queue->q_next) && (nmp = allocb(sizeof(parsetime_t), BPRI_MED))) in parserput()
839 bcopy((caddr_t)&parse->parse_io.parse_dtime, (caddr_t)nmp->b_rptr, sizeof(parsetime_t)); in parserput()
840 nmp->b_wptr += sizeof(parsetime_t); in parserput()
841 putnext(parse->parse_queue, nmp); in parserput()
844 if (nmp) freemsg(nmp); in parserput()
857 nmp = (mblk_t *)NULL; in parserput()
858 if (canput(parse->parse_queue->q_next) && (nmp = allocb(sizeof(parsetime_t), BPRI_MED))) in parserput()
860 bcopy((caddr_t)&parse->parse_io.parse_dtime, (caddr_t)nmp->b_rptr, sizeof(parsetime_t)); in parserput()
[all …]
/freebsd/sys/nlm/
H A Dnlm_advlock.c131 struct nfsmount *nmp = nf->nf_nmp; in nlm_down() local
133 if (nmp == NULL) in nlm_down()
135 mtx_lock(&nmp->nm_mtx); in nlm_down()
136 if (!(nmp->nm_state & NFSSTA_LOCKTIMEO)) { in nlm_down()
137 nmp->nm_state |= NFSSTA_LOCKTIMEO; in nlm_down()
138 mtx_unlock(&nmp->nm_mtx); in nlm_down()
139 vfs_event_signal(&nmp->nm_mountp->mnt_stat.f_fsid, in nlm_down()
142 mtx_unlock(&nmp->nm_mtx); in nlm_down()
146 nlm_msg(td, nmp->nm_mountp->mnt_stat.f_mntfromname, msg, error); in nlm_down()
153 struct nfsmount *nmp = nf->nf_nmp; in nlm_up() local
[all …]
/freebsd/lib/libmp/
H A Dmpasbn.c231 _mdiv(const char *msg, const MINT *nmp, const MINT *dmp, MINT *qmp, MINT *rmp, in _mdiv() argument
242 BN_ERRCHECK(msg, BN_div(q, r, nmp->bn, dmp->bn, c)); in _mdiv()
250 mp_mdiv(const MINT *nmp, const MINT *dmp, MINT *qmp, MINT *rmp) in mp_mdiv() argument
257 _mdiv("mdiv", nmp, dmp, qmp, rmp, c); in mp_mdiv()
368 mp_msqrt(const MINT *nmp, MINT *xmp, MINT *rmp) in mp_msqrt() argument
387 _mdiv("msqrt", nmp, x, z1, z2, c); in mp_msqrt()
394 _msub("msqrt", nmp, z1, z2); in mp_msqrt()
564 _sdiv(const char *msg, const MINT *nmp, short d, MINT *qmp, short *ro, in _sdiv() argument
579 BN_ERRCHECK(msg, BN_div(q, r, nmp->bn, dmp->bn, c)); in _sdiv()
595 mp_sdiv(const MINT *nmp, short d, MINT *qmp, short *ro) in mp_sdiv() argument
[all …]
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdport.c5208 struct nfsmount *nmp; in nfsrv_dscreate() local
5243 nmp = VFSTONFS(nvp->v_mount); in nfsrv_dscreate()
5245 != 0 || nmp->nm_nam->sa_len > sizeof( in nfsrv_dscreate()
5251 nmp->nm_nam->sa_len, np->n_fhp->nfh_len); in nfsrv_dscreate()
5270 NFSBCOPY(nmp->nm_nam, &pf->dsf_sin, in nfsrv_dscreate()
5271 nmp->nm_nam->sa_len); in nfsrv_dscreate()
5317 struct nfsmount *nmp; in nfsrv_pnfscreate() local
5517 nmp = VFSTONFS(dvp[failpos]->v_mount); in nfsrv_pnfscreate()
5518 NFSLOCKMNT(nmp); in nfsrv_pnfscreate()
5519 if ((nmp->nm_privflag & (NFSMNTP_FORCEDISM | in nfsrv_pnfscreate()
[all …]
H A Dnfs_nfsdstate.c246 static struct nfsdevice *nfsrv_findmirroredds(struct nfsmount *nmp);
7662 struct nfsmount *nmp; in nfsrv_deldsserver()
7679 nmp = NULL; in nfsrv_deldsserver()
7685 nmp = VFSTONFS(mp); in nfsrv_deldsserver()
7686 NFSLOCKMNT(nmp); in nfsrv_deldsserver()
7687 if ((nmp->nm_privflag & (NFSMNTP_FORCEDISM | in nfsrv_deldsserver()
7689 nmp->nm_privflag |= NFSMNTP_CANCELRPCS; in nfsrv_deldsserver()
7690 NFSUNLOCKMNT(nmp); in nfsrv_deldsserver()
7692 NFSUNLOCKMNT(nmp); in nfsrv_deldsserver()
7693 nmp in nfsrv_deldsserver()
7661 struct nfsmount *nmp; nfsrv_deldsserver() local
7724 nfsrv_deldsnmp(int op,struct nfsmount * nmp,NFSPROC_T * p) nfsrv_deldsnmp() argument
7755 struct nfsmount *nmp; nfsrv_delds() local
8467 struct nfsmount *nmp, *curnmp; nfsrv_mdscopymr() local
8663 nfsrv_findmirroredds(struct nfsmount * nmp) nfsrv_findmirroredds() argument
[all...]
/freebsd/sys/dev/qlxge/
H A Dqls_glbl.h49 extern int qls_get_mbuf(qla_host_t *ha, qla_rx_buf_t *rxb, struct mbuf *nmp);
/freebsd/sys/dev/qlxgb/
H A Dqla_glbl.h56 extern int qla_get_mbuf(qla_host_t *ha, qla_rx_buf_t *rxb, struct mbuf *nmp,
/freebsd/sys/kern/
H A Dkern_linker.c1694 struct mod_metadata *mp, *nmp; in linker_preload() local
1764 nmp = *nmdp; in linker_preload()
1765 if (nmp->md_type != MDT_VERSION) in linker_preload()
1767 nmodname = nmp->md_cval; in linker_preload()
2360 struct mod_metadata *mp, *nmp; in linker_load_dependencies() local
2400 nmp = *nmdp; in linker_load_dependencies()
2401 if (nmp->md_type != MDT_VERSION) in linker_load_dependencies()
2403 nmodname = nmp->md_cval; in linker_load_dependencies()
H A Dvfs_syscalls.c136 struct mount *mp, *nmp; in kern_sync() local
140 for (mp = TAILQ_FIRST(&mountlist); mp != NULL; mp = nmp) { in kern_sync()
142 nmp = TAILQ_NEXT(mp, mnt_list); in kern_sync()
154 nmp = TAILQ_NEXT(mp, mnt_list); in kern_sync()
423 struct mount *mp, *nmp; in kern_getfsstat() local
468 for (mp = TAILQ_FIRST(&mountlist); mp != NULL; mp = nmp) { in kern_getfsstat()
470 nmp = TAILQ_NEXT(mp, mnt_list); in kern_getfsstat()
475 nmp = TAILQ_NEXT(mp, mnt_list); in kern_getfsstat()
480 nmp = TAILQ_NEXT(mp, mnt_list); in kern_getfsstat()
498 for (mp = TAILQ_FIRST(&mountlist); mp != NULL; mp = nmp) { in kern_getfsstat()
[all...]
/freebsd/sys/dev/qlxgbe/
H A Dql_glbl.h49 extern int ql_get_mbuf(qla_host_t *ha, qla_rx_buf_t *rxb, struct mbuf *nmp);
/freebsd/sys/nfsclient/
H A Dnfs.h273 int nfs_iosize(struct nfsmount *nmp);

12