Lines Matching refs:repl

190 	struct repl {  in nfs_getrootfh()  struct
196 } *repl; in nfs_getrootfh() local
219 args, len, (void **)&repl, &pkt); in nfs_getrootfh()
229 if (repl->errno != 0) { in nfs_getrootfh()
231 return (ntohl(repl->errno)); in nfs_getrootfh()
233 *fhlenp = ntohl(repl->fhsize); in nfs_getrootfh()
234 bcopy(repl->fh, fhp, *fhlenp); in nfs_getrootfh()
255 struct repl { in nfs_lookupfh() struct
261 } *repl; in nfs_lookupfh() local
288 args, len, (void **)&repl, &pkt); in nfs_lookupfh()
297 if (repl->errno != 0) { in nfs_lookupfh()
300 return (ntohl(repl->errno)); in nfs_lookupfh()
302 newfd->fhsize = ntohl(repl->fhsize); in nfs_lookupfh()
303 bcopy(repl->fhplusattr, &newfd->fh, newfd->fhsize); in nfs_lookupfh()
305 if (repl->fhplusattr[pos++] == 0) { in nfs_lookupfh()
309 bcopy(&repl->fhplusattr[pos], &newfd->fa, sizeof(newfd->fa)); in nfs_lookupfh()
326 struct repl { in nfs_readlink() struct
332 } *repl; in nfs_readlink() local
352 (void **)&repl, &pkt); in nfs_readlink()
361 if (repl->errno != 0) { in nfs_readlink()
362 rc = ntohl(repl->errno); in nfs_readlink()
366 if (repl->ok == 0) { in nfs_readlink()
371 repl->len = ntohl(repl->len); in nfs_readlink()
372 if (repl->len > NFS_MAXPATHLEN) { in nfs_readlink()
377 bcopy(repl->path, buf, repl->len); in nfs_readlink()
378 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()
767 struct nfsv3_readdir_repl *repl; in nfs_readdir() local
810 repl = (struct nfsv3_readdir_repl *)buf; in nfs_readdir()
811 if (repl->errno != 0) { in nfs_readdir()
812 rc = ntohl(repl->errno); in nfs_readdir()
817 fp->cookie = ((uint64_t)ntohl(repl->cookiev0) << 32) | in nfs_readdir()
818 ntohl(repl->cookiev1); in nfs_readdir()