Lines Matching defs:res
20 __be32 nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res)
27 res->bitmap[0] = res->bitmap[1] = 0;
28 res->status = htonl(NFS4ERR_BADHANDLE);
44 res->size = i_size_read(inode);
45 res->change_attr = delegation->change_attr;
47 res->change_attr++;
48 res->ctime = inode->i_ctime;
49 res->mtime = inode->i_mtime;
50 res->bitmap[0] = (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE) &
52 res->bitmap[1] = (FATTR4_WORD1_TIME_METADATA|FATTR4_WORD1_TIME_MODIFY) &
54 res->status = 0;
61 dprintk("%s: exit with status = %d\n", __func__, ntohl(res->status));
62 return res->status;
69 __be32 res;
71 res = htonl(NFS4ERR_BADHANDLE);
87 res = 0;
90 if (res != 0)
91 res = htonl(NFS4ERR_BAD_STATEID);
94 res = htonl(NFS4ERR_RESOURCE);
102 dprintk("%s: exit with status = %d\n", __func__, ntohl(res));
103 return res;
275 struct cb_sequenceres *res)
300 memcpy(&res->csr_sessionid, &args->csa_sessionid,
301 sizeof(res->csr_sessionid));
302 res->csr_sequenceid = args->csa_sequenceid;
303 res->csr_slotid = args->csa_slotid;
304 res->csr_highestslotid = NFS41_BC_MAX_CALLBACKS - 1;
305 res->csr_target_highestslotid = NFS41_BC_MAX_CALLBACKS - 1;
315 res->csr_status = 0;
317 res->csr_status = status;
318 dprintk("%s: exit with status = %d res->csr_status %d\n", __func__,
319 ntohl(status), ntohl(res->csr_status));