Searched refs:tm (Results 1 – 8 of 8) sorted by relevance
/optee_os-3.20.0/core/drivers/ |
A D | atmel_rtc.c | 108 struct optee_rtc_time *tm) in atmel_decode_date() argument 121 tm->tm_mday = bcd_decode(RTC_VAL(CAL_DATE, date)); in atmel_decode_date() 127 tm->tm_min = bcd_decode(RTC_VAL(TIME_MIN, time)); in atmel_decode_date() 128 tm->tm_sec = bcd_decode(RTC_VAL(TIME_SEC, time)); in atmel_decode_date() 132 struct optee_rtc_time *tm) in atmel_rtc_get_time() argument 134 atmel_decode_date(RTC_TIMR, RTC_CALR, tm); in atmel_rtc_get_time() 144 atmel_decode_date(RTC_TSTR0, RTC_TSDR0, tm); in atmel_rtc_get_tamper_timestamp() 150 struct optee_rtc_time *tm) in atmel_rtc_set_time() argument 171 RTC_SET_VAL(TIME_SEC, bcd_encode(tm->tm_sec)) | in atmel_rtc_set_time() 172 RTC_SET_VAL(TIME_MIN, bcd_encode(tm->tm_min)) | in atmel_rtc_set_time() [all …]
|
A D | atmel_piobu.c | 207 struct optee_rtc_time tm = { }; in secumod_it_handler() local 222 res = atmel_rtc_get_tamper_timestamp(&tm); in secumod_it_handler() 225 tm.tm_mday, tm.tm_mon, tm.tm_year); in secumod_it_handler() 227 tm.tm_hour, tm.tm_min, tm.tm_sec); in secumod_it_handler()
|
/optee_os-3.20.0/core/include/drivers/ |
A D | rtc.h | 40 TEE_Result (*get_time)(struct rtc *rtc, struct optee_rtc_time *tm); 41 TEE_Result (*set_time)(struct rtc *rtc, struct optee_rtc_time *tm); 67 static inline TEE_Result rtc_get_time(struct optee_rtc_time *tm) in rtc_get_time() argument 72 return rtc_device->ops->get_time(rtc_device, tm); in rtc_get_time() 75 static inline TEE_Result rtc_set_time(struct optee_rtc_time *tm) in rtc_set_time() argument 80 return rtc_device->ops->set_time(rtc_device, tm); in rtc_set_time() 110 static inline TEE_Result rtc_get_time(struct optee_rtc_time *tm __unused) in rtc_get_time() 115 static inline TEE_Result rtc_set_time(struct optee_rtc_time *tm __unused) in rtc_set_time()
|
A D | atmel_rtc.h | 13 TEE_Result atmel_rtc_get_tamper_timestamp(struct optee_rtc_time *tm); 16 TEE_Result atmel_rtc_get_tamper_timestamp(struct optee_rtc_time *tm __unused) in atmel_rtc_get_tamper_timestamp()
|
/optee_os-3.20.0/core/arch/riscv/kernel/ |
A D | tee_time_rdtime.c | 14 uint64_t tm = read_time(); in riscv_get_sys_time() local 17 time->seconds = tm / rate; in riscv_get_sys_time() 18 time->millis = (tm % rate) / (rate / TEE_TIME_MILLIS_BASE); in riscv_get_sys_time()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | platform_util.c | 103 struct tm *mbedtls_platform_gmtime_r( const mbedtls_time_t *tt, in mbedtls_platform_gmtime_r() 104 struct tm *tm_buf ) in mbedtls_platform_gmtime_r() 111 struct tm *lt; in mbedtls_platform_gmtime_r() 122 memcpy( tm_buf, lt, sizeof( struct tm ) ); in mbedtls_platform_gmtime_r()
|
A D | x509.c | 552 if ( tm->year < 50 ) in x509_parse_time() 553 tm->year += 100; in x509_parse_time() 555 tm->year += 1900; in x509_parse_time() 558 CHECK( x509_parse_int( p, 2, &tm->mon ) ); in x509_parse_time() 559 CHECK( x509_parse_int( p, 2, &tm->day ) ); in x509_parse_time() 560 CHECK( x509_parse_int( p, 2, &tm->hour ) ); in x509_parse_time() 561 CHECK( x509_parse_int( p, 2, &tm->min ) ); in x509_parse_time() 568 CHECK( x509_parse_int( p, 2, &tm->sec ) ); in x509_parse_time() 589 CHECK( x509_date_is_valid( tm ) ); in x509_parse_time() 600 mbedtls_x509_time *tm ) in mbedtls_x509_get_time() argument [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | platform_util.h | 275 struct tm *mbedtls_platform_gmtime_r( const mbedtls_time_t *tt, 276 struct tm *tm_buf );
|
Completed in 10 milliseconds