Lines Matching refs:rdc

2212 	rddir4_cache *rdc = aobjp->rdc;  in xdr_READDIR4res_clnt()  local
2225 ASSERT(rdc->entries == NULL); in xdr_READDIR4res_clnt()
2244 rdc->entries = kmem_alloc(aobjp->dircount, KM_SLEEP); in xdr_READDIR4res_clnt()
2246 dp = (dirent64_t *)rdc->entries; in xdr_READDIR4res_clnt()
2247 rdc->entlen = rdc->buflen = space_left = aobjp->dircount; in xdr_READDIR4res_clnt()
2250 if (rdc->nfs4_cookie == (nfs_cookie4) 0 || in xdr_READDIR4res_clnt()
2251 rdc->nfs4_cookie == (nfs_cookie4) 1) { in xdr_READDIR4res_clnt()
2253 if (rdc->nfs4_cookie == (nfs_cookie4)0) { in xdr_READDIR4res_clnt()
2254 bcopy(nfs4_dot_entries, rdc->entries, in xdr_READDIR4res_clnt()
2265 bcopy(nfs4_dot_dot_entry, rdc->entries, in xdr_READDIR4res_clnt()
2416 ASSERT(rdc->entries); in xdr_READDIR4res_clnt()
2418 kmem_free(rdc->entries, rdc->entlen); in xdr_READDIR4res_clnt()
2419 rdc->entries = NULL; in xdr_READDIR4res_clnt()
2420 last_cookie = rdc->nfs4_cookie; in xdr_READDIR4res_clnt()
2423 rdc->actlen = rdc->entlen - space_left; in xdr_READDIR4res_clnt()
2424 rdc->nfs4_ncookie = last_cookie; in xdr_READDIR4res_clnt()
2434 rdc->eof = (objp->eof && !skip_to_end) ? TRUE : FALSE; in xdr_READDIR4res_clnt()
2439 if (rdc->entries) { in xdr_READDIR4res_clnt()
2440 rdc->error = 0; in xdr_READDIR4res_clnt()
2449 rdc->error = EINVAL; in xdr_READDIR4res_clnt()
2457 rdc->error = 0; in xdr_READDIR4res_clnt()
2465 rdc->error = ENOENT; in xdr_READDIR4res_clnt()
2469 if (rdc->entries) { in xdr_READDIR4res_clnt()
2470 kmem_free(rdc->entries, rdc->entlen); in xdr_READDIR4res_clnt()
2471 rdc->entries = NULL; in xdr_READDIR4res_clnt()
2475 rdc->error = EIO; in xdr_READDIR4res_clnt()