Home
last modified time | relevance | path

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

/linux-3.4.99/fs/nfs/
Dnfs2xdr.c228 static __be32 *xdr_encode_time(__be32 *p, const struct timespec *timep) in xdr_encode_time() argument
230 *p++ = cpu_to_be32(timep->tv_sec); in xdr_encode_time()
231 if (timep->tv_nsec != 0) in xdr_encode_time()
232 *p++ = cpu_to_be32(timep->tv_nsec / NSEC_PER_USEC); in xdr_encode_time()
246 const struct timespec *timep) in xdr_encode_current_server_time() argument
248 *p++ = cpu_to_be32(timep->tv_sec); in xdr_encode_current_server_time()
253 static __be32 *xdr_decode_time(__be32 *p, struct timespec *timep) in xdr_decode_time() argument
255 timep->tv_sec = be32_to_cpup(p++); in xdr_decode_time()
256 timep->tv_nsec = be32_to_cpup(p++) * NSEC_PER_USEC; in xdr_decode_time()
Dnfs3xdr.c491 static __be32 *xdr_encode_nfstime3(__be32 *p, const struct timespec *timep) in xdr_encode_nfstime3() argument
493 *p++ = cpu_to_be32(timep->tv_sec); in xdr_encode_nfstime3()
494 *p++ = cpu_to_be32(timep->tv_nsec); in xdr_encode_nfstime3()
498 static __be32 *xdr_decode_nfstime3(__be32 *p, struct timespec *timep) in xdr_decode_nfstime3() argument
500 timep->tv_sec = be32_to_cpup(p++); in xdr_decode_nfstime3()
501 timep->tv_nsec = be32_to_cpup(p++); in xdr_decode_nfstime3()