Home
last modified time | relevance | path

Searched refs:timep (Results 1 – 3 of 3) sorted by relevance

/linux/fs/nfs/
H A Dnfs2xdr.c209 static __be32 *xdr_encode_time(__be32 *p, const struct timespec64 *timep) in xdr_encode_time() argument
211 *p++ = cpu_to_be32((u32)timep->tv_sec); in xdr_encode_time()
212 if (timep->tv_nsec != 0) in xdr_encode_time()
213 *p++ = cpu_to_be32(timep->tv_nsec / NSEC_PER_USEC); in xdr_encode_time()
227 const struct timespec64 *timep) in xdr_encode_current_server_time() argument
229 *p++ = cpu_to_be32(timep->tv_sec); in xdr_encode_current_server_time()
234 static __be32 *xdr_decode_time(__be32 *p, struct timespec64 *timep) in xdr_decode_time() argument
236 timep->tv_sec = be32_to_cpup(p++); in xdr_decode_time()
237 timep->tv_nsec = be32_to_cpup(p++) * NSEC_PER_USEC; in xdr_decode_time()
H A Dnfs3xdr.c459 static __be32 *xdr_encode_nfstime3(__be32 *p, const struct timespec64 *timep) in xdr_encode_nfstime3() argument
461 *p++ = cpu_to_be32((u32)timep->tv_sec); in xdr_encode_nfstime3()
462 *p++ = cpu_to_be32(timep->tv_nsec); in xdr_encode_nfstime3()
466 static __be32 *xdr_decode_nfstime3(__be32 *p, struct timespec64 *timep) in xdr_decode_nfstime3() argument
468 timep->tv_sec = be32_to_cpup(p++); in xdr_decode_nfstime3()
469 timep->tv_nsec = be32_to_cpup(p++); in xdr_decode_nfstime3()
/linux/fs/nfsd/
H A Dnfs3xdr.c58 svcxdr_decode_nfstime3(struct xdr_stream *xdr, struct timespec64 *timep) in svcxdr_decode_nfstime3() argument
65 timep->tv_sec = be32_to_cpup(p++); in svcxdr_decode_nfstime3()
66 timep->tv_nsec = be32_to_cpup(p); in svcxdr_decode_nfstime3()