Searched refs:timep (Results 1 – 2 of 2) sorted by relevance
225 static __be32 *xdr_encode_time(__be32 *p, const struct timespec *timep) in xdr_encode_time() argument227 *p++ = cpu_to_be32(timep->tv_sec); in xdr_encode_time()228 if (timep->tv_nsec != 0) in xdr_encode_time()229 *p++ = cpu_to_be32(timep->tv_nsec / NSEC_PER_USEC); in xdr_encode_time()243 const struct timespec *timep) in xdr_encode_current_server_time() argument245 *p++ = cpu_to_be32(timep->tv_sec); in xdr_encode_current_server_time()250 static __be32 *xdr_decode_time(__be32 *p, struct timespec *timep) in xdr_decode_time() argument252 timep->tv_sec = be32_to_cpup(p++); in xdr_decode_time()253 timep->tv_nsec = be32_to_cpup(p++) * NSEC_PER_USEC; in xdr_decode_time()
487 static __be32 *xdr_encode_nfstime3(__be32 *p, const struct timespec *timep) in xdr_encode_nfstime3() argument489 *p++ = cpu_to_be32(timep->tv_sec); in xdr_encode_nfstime3()490 *p++ = cpu_to_be32(timep->tv_nsec); in xdr_encode_nfstime3()494 static __be32 *xdr_decode_nfstime3(__be32 *p, struct timespec *timep) in xdr_decode_nfstime3() argument496 timep->tv_sec = be32_to_cpup(p++); in xdr_decode_nfstime3()497 timep->tv_nsec = be32_to_cpup(p++); in xdr_decode_nfstime3()