Lines Matching refs:repl

192 	struct repl {  in nfs_getrootfh()  struct
198 } *repl; in nfs_getrootfh() local
221 args, len, (void **)&repl, &pkt); in nfs_getrootfh()
231 if (repl->errno != 0) { in nfs_getrootfh()
233 return (ntohl(repl->errno)); in nfs_getrootfh()
235 *fhlenp = ntohl(repl->fhsize); in nfs_getrootfh()
236 bcopy(repl->fh, fhp, *fhlenp); in nfs_getrootfh()
257 struct repl { in nfs_lookupfh() struct
263 } *repl; in nfs_lookupfh() local
290 args, len, (void **)&repl, &pkt); in nfs_lookupfh()
299 if (repl->errno != 0) { in nfs_lookupfh()
302 return (ntohl(repl->errno)); in nfs_lookupfh()
304 newfd->fhsize = ntohl(repl->fhsize); in nfs_lookupfh()
305 bcopy(repl->fhplusattr, &newfd->fh, newfd->fhsize); in nfs_lookupfh()
307 if (repl->fhplusattr[pos++] == 0) { in nfs_lookupfh()
311 bcopy(&repl->fhplusattr[pos], &newfd->fa, sizeof (newfd->fa)); in nfs_lookupfh()
327 struct repl { in nfs_readlink() struct
333 } *repl; in nfs_readlink() local
353 (void **)&repl, &pkt); in nfs_readlink()
362 if (repl->errno != 0) { in nfs_readlink()
363 rc = ntohl(repl->errno); in nfs_readlink()
367 if (repl->ok == 0) { in nfs_readlink()
372 repl->len = ntohl(repl->len); in nfs_readlink()
373 if (repl->len > NFS_MAXPATHLEN) { in nfs_readlink()
378 bcopy(repl->path, buf, repl->len); in nfs_readlink()
379 buf[repl->len] = 0; in nfs_readlink()
397 struct repl { in nfs_readdata() struct
405 } *repl; in nfs_readdata() local
425 hlen = offsetof(struct repl, data[0]); in nfs_readdata()
429 (void **)&repl, &pkt); in nfs_readdata()
439 if (repl->errno != 0) { in nfs_readdata()
440 errno = ntohl(repl->errno); in nfs_readdata()
445 x = ntohl(repl->count); in nfs_readdata()
452 bcopy(repl->data, addr, x); in nfs_readdata()
758 struct nfsv3_readdir_repl *repl; in nfs_readdir() local
802 repl = (struct nfsv3_readdir_repl *)buf; in nfs_readdir()
803 if (repl->errno != 0) { in nfs_readdir()
804 rc = ntohl(repl->errno); in nfs_readdir()
809 fp->cookie = ((uint64_t)ntohl(repl->cookiev0) << 32) | in nfs_readdir()
810 ntohl(repl->cookiev1); in nfs_readdir()