Lines Matching refs:f
84 nlm4_decode_fh(__be32 *p, struct nfs_fh *f) in nlm4_decode_fh() argument
86 memset(f->data, 0, sizeof(f->data)); in nlm4_decode_fh()
87 f->size = ntohl(*p++); in nlm4_decode_fh()
88 if (f->size > NFS_MAXFHSIZE) { in nlm4_decode_fh()
90 f->size, NFS_MAXFHSIZE); in nlm4_decode_fh()
93 memcpy(f->data, p, f->size); in nlm4_decode_fh()
94 return p + XDR_QUADLEN(f->size); in nlm4_decode_fh()
98 nlm4_encode_fh(__be32 *p, struct nfs_fh *f) in nlm4_encode_fh() argument
100 *p++ = htonl(f->size); in nlm4_encode_fh()
101 if (f->size) p[XDR_QUADLEN(f->size)-1] = 0; /* don't leak anything */ in nlm4_encode_fh()
102 memcpy(p, f->data, f->size); in nlm4_encode_fh()
103 return p + XDR_QUADLEN(f->size); in nlm4_encode_fh()