Lines Matching defs:rdc
2138 rddir4_cache *rdc = aobjp->rdc;
2151 ASSERT(rdc->entries == NULL);
2170 rdc->entries = kmem_alloc(aobjp->dircount, KM_SLEEP);
2172 dp = (dirent64_t *)rdc->entries;
2173 rdc->entlen = rdc->buflen = space_left = aobjp->dircount;
2176 if (rdc->nfs4_cookie == (nfs_cookie4) 0 ||
2177 rdc->nfs4_cookie == (nfs_cookie4) 1) {
2179 if (rdc->nfs4_cookie == (nfs_cookie4)0) {
2180 bcopy(nfs4_dot_entries, rdc->entries,
2191 bcopy(nfs4_dot_dot_entry, rdc->entries,
2342 ASSERT(rdc->entries);
2344 kmem_free(rdc->entries, rdc->entlen);
2345 rdc->entries = NULL;
2346 last_cookie = rdc->nfs4_cookie;
2349 rdc->actlen = rdc->entlen - space_left;
2350 rdc->nfs4_ncookie = last_cookie;
2360 rdc->eof = (objp->eof && !skip_to_end) ? TRUE : FALSE;
2365 if (rdc->entries) {
2366 rdc->error = 0;
2375 rdc->error = EINVAL;
2383 rdc->error = 0;
2391 rdc->error = ENOENT;
2395 if (rdc->entries) {
2396 kmem_free(rdc->entries, rdc->entlen);
2397 rdc->entries = NULL;
2401 rdc->error = EIO;