Lines Matching refs:readdir

1090 nfsd4_decode_readdir(struct nfsd4_compoundargs *argp, struct nfsd4_readdir *readdir)  in nfsd4_decode_readdir()  argument
1095 p = xdr_decode_hyper(p, &readdir->rd_cookie); in nfsd4_decode_readdir()
1096 COPYMEM(readdir->rd_verf.data, sizeof(readdir->rd_verf.data)); in nfsd4_decode_readdir()
1097 readdir->rd_dircount = be32_to_cpup(p++); in nfsd4_decode_readdir()
1098 readdir->rd_maxcount = be32_to_cpup(p++); in nfsd4_decode_readdir()
1099 if ((status = nfsd4_decode_bitmap(argp, readdir->rd_bmval))) in nfsd4_decode_readdir()
3669 nfsd4_encode_readdir(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_readdir *readdir) in nfsd4_encode_readdir() argument
3700 maxcount = min_t(u32, readdir->rd_maxcount, maxcount); in nfsd4_encode_readdir()
3713 if (!readdir->rd_dircount) in nfsd4_encode_readdir()
3714 readdir->rd_dircount = svc_max_payload(resp->rqstp); in nfsd4_encode_readdir()
3716 readdir->xdr = xdr; in nfsd4_encode_readdir()
3717 readdir->rd_maxcount = maxcount; in nfsd4_encode_readdir()
3718 readdir->common.err = 0; in nfsd4_encode_readdir()
3719 readdir->cookie_offset = 0; in nfsd4_encode_readdir()
3721 offset = readdir->rd_cookie; in nfsd4_encode_readdir()
3722 nfserr = nfsd_readdir(readdir->rd_rqstp, readdir->rd_fhp, in nfsd4_encode_readdir()
3724 &readdir->common, nfsd4_encode_dirent); in nfsd4_encode_readdir()
3726 readdir->common.err == nfserr_toosmall && in nfsd4_encode_readdir()
3739 if (readdir->cookie_offset) { in nfsd4_encode_readdir()
3741 write_bytes_to_xdr_buf(xdr->buf, readdir->cookie_offset, in nfsd4_encode_readdir()
3751 *p++ = htonl(readdir->common.err == nfserr_eof); in nfsd4_encode_readdir()