Lines Matching refs:htonl
140 *p++ = htonl(nfs_ftypes[type >> 12]); in encode_fattr()
141 *p++ = htonl((u32) stat->mode); in encode_fattr()
142 *p++ = htonl((u32) stat->nlink); in encode_fattr()
143 *p++ = htonl((u32) from_kuid_munged(userns, stat->uid)); in encode_fattr()
144 *p++ = htonl((u32) from_kgid_munged(userns, stat->gid)); in encode_fattr()
147 *p++ = htonl(NFS_MAXPATHLEN); in encode_fattr()
149 *p++ = htonl((u32) stat->size); in encode_fattr()
151 *p++ = htonl((u32) stat->blksize); in encode_fattr()
153 *p++ = htonl(new_encode_dev(stat->rdev)); in encode_fattr()
155 *p++ = htonl(0xffffffff); in encode_fattr()
156 *p++ = htonl((u32) stat->blocks); in encode_fattr()
160 *p++ = htonl(new_encode_dev(stat->dev)); in encode_fattr()
163 *p++ = htonl((u32) fhp->fh_export->ex_fsid); in encode_fattr()
170 *p++ = htonl(f); in encode_fattr()
173 *p++ = htonl((u32) stat->ino); in encode_fattr()
174 *p++ = htonl((u32) stat->atime.tv_sec); in encode_fattr()
175 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0); in encode_fattr()
178 *p++ = htonl((u32) time.tv_sec); in encode_fattr()
179 *p++ = htonl(time.tv_nsec ? time.tv_nsec / 1000 : 0); in encode_fattr()
180 *p++ = htonl((u32) stat->ctime.tv_sec); in encode_fattr()
181 *p++ = htonl(stat->ctime.tv_nsec ? stat->ctime.tv_nsec / 1000 : 0); in encode_fattr()
477 *p++ = htonl(resp->len); in nfssvc_encode_readlinkres()
499 *p++ = htonl(resp->count); in nfssvc_encode_readres()
525 *p++ = htonl((resp->common.err == nfserr_eof)); in nfssvc_encode_readdirres()
541 *p++ = htonl(NFSSVC_MAXBLKSIZE_V2); /* max transfer size */ in nfssvc_encode_statfsres()
542 *p++ = htonl(stat->f_bsize); in nfssvc_encode_statfsres()
543 *p++ = htonl(stat->f_blocks); in nfssvc_encode_statfsres()
544 *p++ = htonl(stat->f_bfree); in nfssvc_encode_statfsres()
545 *p++ = htonl(stat->f_bavail); in nfssvc_encode_statfsres()
568 *cd->offset = htonl(offset); in nfssvc_encode_entry()
583 *p++ = htonl((u32) ino); /* file id */ in nfssvc_encode_entry()
586 *p++ = htonl(~0U); /* offset of next entry */ in nfssvc_encode_entry()