Home
last modified time | relevance | path

Searched refs:timep (Results 1 - 10 of 10) sorted by relevance

/kernel/liteos_m/testsuites/unittest/fuzz/src/time/
H A Dlocaltime_r_fuzz.c46 time_t timep; in LocaltimerFuzzTest() local
58 timep = DT_SetGetS64(&g_element[0], DEFAULT_TIME_VALUE); in LocaltimerFuzzTest()
59 (void)localtime_r(&timep, &result); in LocaltimerFuzzTest()
H A Dlocaltime_fuzz.c46 time_t timep; in LocaltimeFuzzTest() local
57 timep = DT_SetGetS64(&g_element[0], DEFAULT_TIME_VALUE); in LocaltimeFuzzTest()
58 (void)localtime(&timep); in LocaltimeFuzzTest()
H A Dgmtime_fuzz.c46 time_t timep; in GmtimeFuzzTest() local
57 timep = DT_SetGetS64(&g_element[0], DEFAULT_TIME_VALUE); in GmtimeFuzzTest()
58 (void)gmtime(&timep); in GmtimeFuzzTest()
/kernel/liteos_m/testsuites/unittest/xts/time/
H A Dtime_utils_test.c70 time_t timep = mktime(localTime); variable
71 ICUNIT_ASSERT_EQUAL(timep, 18880, timep); /* 18880, common data for test, no special meaning */
/kernel/liteos_m/kal/posix/src/
H A Dtime.c595 struct tm *gmtime_r(const time_t *timep, struct tm *result) in gmtime_r() argument
597 if ((timep == NULL) || (result == NULL)) { in gmtime_r()
601 if (!ConvertSecs2Utc(*timep, 0, result)) { in gmtime_r()
614 struct tm *localtime_r(const time_t *timep, struct tm *result) in localtime_r() argument
618 if ((timep == NULL) || (result == NULL)) { in localtime_r()
626 ret = ConvertSecs2Utc(*timep, -tempTimezone, result); in localtime_r()
628 ret = ConvertSecs2Utc(*timep, -TIMEZONE, result); in localtime_r()
/kernel/linux/linux-5.10/fs/nfs/
H A Dnfs2xdr.c212 static __be32 *xdr_encode_time(__be32 *p, const struct timespec64 *timep) in xdr_encode_time() argument
214 *p++ = cpu_to_be32((u32)timep->tv_sec); in xdr_encode_time()
215 if (timep->tv_nsec != 0) in xdr_encode_time()
216 *p++ = cpu_to_be32(timep->tv_nsec / NSEC_PER_USEC); in xdr_encode_time()
230 const struct timespec64 *timep) in xdr_encode_current_server_time()
232 *p++ = cpu_to_be32(timep->tv_sec); in xdr_encode_current_server_time()
237 static __be32 *xdr_decode_time(__be32 *p, struct timespec64 *timep) in xdr_decode_time() argument
239 timep->tv_sec = be32_to_cpup(p++); in xdr_decode_time()
240 timep->tv_nsec = be32_to_cpup(p++) * NSEC_PER_USEC; in xdr_decode_time()
229 xdr_encode_current_server_time(__be32 *p, const struct timespec64 *timep) xdr_encode_current_server_time() argument
H A Dnfs3xdr.c460 static __be32 *xdr_encode_nfstime3(__be32 *p, const struct timespec64 *timep) in xdr_encode_nfstime3() argument
462 *p++ = cpu_to_be32((u32)timep->tv_sec); in xdr_encode_nfstime3()
463 *p++ = cpu_to_be32(timep->tv_nsec); in xdr_encode_nfstime3()
467 static __be32 *xdr_decode_nfstime3(__be32 *p, struct timespec64 *timep) in xdr_decode_nfstime3() argument
469 timep->tv_sec = be32_to_cpup(p++); in xdr_decode_nfstime3()
470 timep->tv_nsec = be32_to_cpup(p++); in xdr_decode_nfstime3()
/kernel/linux/linux-6.6/fs/nfs/
H A Dnfs2xdr.c213 static __be32 *xdr_encode_time(__be32 *p, const struct timespec64 *timep) in xdr_encode_time() argument
215 *p++ = cpu_to_be32((u32)timep->tv_sec); in xdr_encode_time()
216 if (timep->tv_nsec != 0) in xdr_encode_time()
217 *p++ = cpu_to_be32(timep->tv_nsec / NSEC_PER_USEC); in xdr_encode_time()
231 const struct timespec64 *timep) in xdr_encode_current_server_time()
233 *p++ = cpu_to_be32(timep->tv_sec); in xdr_encode_current_server_time()
238 static __be32 *xdr_decode_time(__be32 *p, struct timespec64 *timep) in xdr_decode_time() argument
240 timep->tv_sec = be32_to_cpup(p++); in xdr_decode_time()
241 timep->tv_nsec = be32_to_cpup(p++) * NSEC_PER_USEC; in xdr_decode_time()
230 xdr_encode_current_server_time(__be32 *p, const struct timespec64 *timep) xdr_encode_current_server_time() argument
H A Dnfs3xdr.c462 static __be32 *xdr_encode_nfstime3(__be32 *p, const struct timespec64 *timep) in xdr_encode_nfstime3() argument
464 *p++ = cpu_to_be32((u32)timep->tv_sec); in xdr_encode_nfstime3()
465 *p++ = cpu_to_be32(timep->tv_nsec); in xdr_encode_nfstime3()
469 static __be32 *xdr_decode_nfstime3(__be32 *p, struct timespec64 *timep) in xdr_decode_nfstime3() argument
471 timep->tv_sec = be32_to_cpup(p++); in xdr_decode_nfstime3()
472 timep->tv_nsec = be32_to_cpup(p++); in xdr_decode_nfstime3()
/kernel/linux/linux-6.6/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()

Completed in 12 milliseconds