Lines Matching +full:2 +full:nd
15 * 2. Redistributions in binary form must reproduce the above copyright
55 nfsm_uiombuf(struct nfsrv_descript *nd, struct uio *uiop, int siz) in nfsm_uiombuf() argument
70 mp = mp2 = nd->nd_mb; in nfsm_uiombuf()
71 mcp = nd->nd_bpos; in nfsm_uiombuf()
73 KASSERT((nd->nd_flag & ND_EXTPG) != 0 || mcp == in nfsm_uiombuf()
81 if ((nd->nd_flag & ND_EXTPG) != 0) in nfsm_uiombuf()
82 mlen = nd->nd_bextpgsiz; in nfsm_uiombuf()
86 if ((nd->nd_flag & ND_EXTPG) != 0) { in nfsm_uiombuf()
88 nd->nd_maxextsiz, &nd->nd_bextpg); in nfsm_uiombuf()
90 mp->m_epg_pa[nd->nd_bextpg]); in nfsm_uiombuf()
91 nd->nd_bextpgsiz = mlen = PAGE_SIZE; in nfsm_uiombuf()
116 if ((nd->nd_flag & ND_EXTPG) != 0) { in nfsm_uiombuf()
117 nd->nd_bextpgsiz -= xfer; in nfsm_uiombuf()
130 if ((nd->nd_flag & ND_EXTPG) == 0 && rem > in nfsm_uiombuf()
136 } else if ((nd->nd_flag & ND_EXTPG) != 0 && rem > in nfsm_uiombuf()
137 nd->nd_bextpgsiz) { in nfsm_uiombuf()
138 mp = nfsm_add_ext_pgs(mp, nd->nd_maxextsiz, in nfsm_uiombuf()
139 &nd->nd_bextpg); in nfsm_uiombuf()
141 PHYS_TO_DMAP(mp->m_epg_pa[nd->nd_bextpg]); in nfsm_uiombuf()
142 nd->nd_bextpgsiz = PAGE_SIZE; in nfsm_uiombuf()
147 if ((nd->nd_flag & ND_EXTPG) != 0) { in nfsm_uiombuf()
148 nd->nd_bextpgsiz -= rem; in nfsm_uiombuf()
152 nd->nd_bpos = mcp; in nfsm_uiombuf()
153 nd->nd_mb = mp; in nfsm_uiombuf()
159 * This version returns the mbuf list and does not use "nd".
267 nfsm_loadattr(struct nfsrv_descript *nd, struct nfsvattr *nap) in nfsm_loadattr() argument
272 if (nd->nd_flag & ND_NFSV4) { in nfsm_loadattr()
273 error = nfsv4_loadattr(nd, NULL, nap, NULL, NULL, 0, NULL, in nfsm_loadattr()
275 } else if (nd->nd_flag & ND_NFSV3) { in nfsm_loadattr()
340 nfscl_mtofh(struct nfsrv_descript *nd, struct nfsfh **nfhpp, in nfscl_mtofh() argument
351 if (nd->nd_flag & ND_NFSV3) { in nfscl_mtofh()
354 } else if (nd->nd_flag & ND_NFSV4) { in nfscl_mtofh()
355 NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfscl_mtofh()
358 nd->nd_flag |= ND_NOMOREDATA; in nfscl_mtofh()
364 error = nfsm_getfh(nd, nfhpp); in nfscl_mtofh()
372 if (flag != 0 && (nd->nd_flag & ND_NFSV4) != 0) { in nfscl_mtofh()
373 NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfscl_mtofh()
375 nd->nd_flag |= ND_NOMOREDATA; in nfscl_mtofh()
378 } else if (nd->nd_flag & ND_NFSV3) { in nfscl_mtofh()
383 error = nfsm_advance(nd, NFSX_V3FATTR, -1); in nfscl_mtofh()
389 error = nfsm_loadattr(nd, nap); in nfscl_mtofh()