/optee_os-3.20.0/core/kernel/ |
A D | tee_time_ree.c | 14 static TEE_Result get_monotonic_ree_time(TEE_Time *time) in get_monotonic_ree_time() argument 18 res = tee_time_get_ree_time(time); in get_monotonic_ree_time() 23 if (time->seconds < prev.seconds || in get_monotonic_ree_time() 24 (time->seconds == prev.seconds && in get_monotonic_ree_time() 25 time->millis < prev.millis)) in get_monotonic_ree_time() 26 *time = prev; /* REE time was rolled back */ in get_monotonic_ree_time() 28 prev = *time; in get_monotonic_ree_time()
|
A D | tee_time.c | 27 TEE_Result tee_time_get_sys_time(TEE_Time *time) in tee_time_get_sys_time() argument 29 return _time_source.get_sys_time(time); in tee_time_get_sys_time() 51 TEE_Result tee_time_get_ree_time(TEE_Time *time) in tee_time_get_ree_time() argument 56 if (!time) in tee_time_get_ree_time() 61 time->seconds = params.u.value.a; in tee_time_get_ree_time() 62 time->millis = params.u.value.b / 1000000; in tee_time_get_ree_time()
|
/optee_os-3.20.0/core/arch/riscv/include/kernel/ |
A D | time.h | 14 uint64_t time = 0; in read_time() local 19 time = clint_get_mtime(); in read_time() 26 lo = read_csr(time); in read_time() 29 time = SHIFT_U64(hi, 32) | lo; in read_time() 31 time = rdtime(); in read_time() 35 return time; in read_time()
|
/optee_os-3.20.0/core/include/kernel/ |
A D | tee_time.h | 11 TEE_Result tee_time_get_sys_time(TEE_Time *time); 13 TEE_Result tee_time_get_ta_time(const TEE_UUID *uuid, TEE_Time *time); 14 TEE_Result tee_time_get_ree_time(TEE_Time *time); 15 TEE_Result tee_time_set_ta_time(const TEE_UUID *uuid, const TEE_Time *time);
|
A D | time_source.h | 11 TEE_Result (*get_sys_time)(TEE_Time *time);
|
/optee_os-3.20.0/core/pta/ |
A D | rtc.c | 34 struct optee_rtc_time time = { }; in rtc_pta_get_time() local 47 res = rtc_get_time(&time); in rtc_pta_get_time() 59 struct optee_rtc_time time = { }; in rtc_pta_set_time() local 72 time.tm_sec = pta_time->tm_sec; in rtc_pta_set_time() 73 time.tm_min = pta_time->tm_min; in rtc_pta_set_time() 74 time.tm_hour = pta_time->tm_hour; in rtc_pta_set_time() 75 time.tm_mday = pta_time->tm_mday; in rtc_pta_set_time() 76 time.tm_mon = pta_time->tm_mon; in rtc_pta_set_time() 77 time.tm_year = pta_time->tm_year; in rtc_pta_set_time() 78 time.tm_wday = pta_time->tm_wday; in rtc_pta_set_time() [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | platform_time.h | 50 extern mbedtls_time_t (*mbedtls_time)( mbedtls_time_t* time ); 59 int mbedtls_platform_set_time( mbedtls_time_t (*time_func)( mbedtls_time_t* time ) ); 64 #define mbedtls_time time
|
/optee_os-3.20.0/core/arch/riscv/kernel/ |
A D | tee_time_rdtime.c | 12 static TEE_Result riscv_get_sys_time(TEE_Time *time) in riscv_get_sys_time() argument 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/core/tee/ |
A D | tee_time_generic.c | 65 TEE_Result tee_time_get_ta_time(const TEE_UUID *uuid, TEE_Time *time) in tee_time_get_ta_time() argument 94 *time = t2; in tee_time_get_ta_time() 99 TEE_Result tee_time_set_ta_time(const TEE_UUID *uuid, const TEE_Time *time) in tee_time_set_ta_time() argument 106 if (time->millis >= TEE_TIME_MILLIS_BASE) in tee_time_set_ta_time() 113 if (TEE_TIME_LT(t, *time)) { in tee_time_set_ta_time() 114 TEE_TIME_SUB(*time, t, offs); in tee_time_set_ta_time() 117 TEE_TIME_SUB(t, *time, offs); in tee_time_set_ta_time()
|
/optee_os-3.20.0/core/drivers/crypto/caam/utils/ |
A D | utils_delay.c | 12 void caam_udelay(uint32_t time) in caam_udelay() argument 14 uint32_t counter = time * 500; in caam_udelay()
|
/optee_os-3.20.0/core/drivers/ |
A D | hi16xx_rng.c | 46 TEE_Time time; in hi16xx_rng_init() local 52 tee_time_get_sys_time(&time); in hi16xx_rng_init() 53 io_write32(rng + RNG_SEED, time.seconds * 1000 + time.millis); in hi16xx_rng_init()
|
A D | atmel_rtc.c | 110 uint32_t time = 0; in atmel_decode_date() local 115 time = atmel_rtc_read(time_reg); in atmel_decode_date() 117 } while ((time != atmel_rtc_read(time_reg)) || in atmel_decode_date() 126 tm->tm_hour = bcd_decode(RTC_VAL(TIME_HOUR, time)); 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()
|
A D | atmel_tcb.c | 74 static TEE_Result atmel_tcb_get_sys_time(TEE_Time *time) in atmel_tcb_get_sys_time() argument 89 time->seconds = cv0 / tcb_rate; in atmel_tcb_get_sys_time() 90 time->millis = (cv0 % tcb_rate) / (tcb_rate / TEE_TIME_MILLIS_BASE); in atmel_tcb_get_sys_time()
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | tee_time_arm_cntpct.c | 17 static TEE_Result arm_cntpct_get_sys_time(TEE_Time *time) in arm_cntpct_get_sys_time() argument 22 time->seconds = cntpct / cntfrq; in arm_cntpct_get_sys_time() 23 time->millis = (cntpct % cntfrq) / (cntfrq / TEE_TIME_MILLIS_BASE); in arm_cntpct_get_sys_time()
|
/optee_os-3.20.0/lib/libutee/ |
A D | tee_api.c | 338 void TEE_GetSystemTime(TEE_Time *time) in TEE_GetSystemTime() argument 340 TEE_Result res = _utee_get_time(UTEE_TIME_CAT_SYSTEM, time); in TEE_GetSystemTime() 356 TEE_Result TEE_GetTAPersistentTime(TEE_Time *time) in TEE_GetTAPersistentTime() argument 360 res = _utee_get_time(UTEE_TIME_CAT_TA_PERSISTENT, time); in TEE_GetTAPersistentTime() 363 time->seconds = 0; in TEE_GetTAPersistentTime() 364 time->millis = 0; in TEE_GetTAPersistentTime() 377 TEE_Result TEE_SetTAPersistentTime(const TEE_Time *time) in TEE_SetTAPersistentTime() argument 381 res = _utee_set_ta_time(time); in TEE_SetTAPersistentTime() 391 void TEE_GetREETime(TEE_Time *time) in TEE_GetREETime() argument 393 TEE_Result res = _utee_get_time(UTEE_TIME_CAT_REE, time); in TEE_GetREETime()
|
/optee_os-3.20.0/core/drivers/crypto/caam/include/ |
A D | caam_utils_delay.h | 15 void caam_udelay(uint32_t time);
|
/optee_os-3.20.0/core/include/tee/ |
A D | tee_svc.h | 74 TEE_Result syscall_get_time(unsigned long cat, TEE_Time *time); 75 TEE_Result syscall_set_ta_time(const TEE_Time *time);
|
/optee_os-3.20.0/core/drivers/imx/dcp/ |
A D | dcp_utils.c | 56 void dcp_udelay(uint32_t time) in dcp_udelay() argument 58 uint32_t counter = time * 500; in dcp_udelay()
|
/optee_os-3.20.0/core/drivers/imx/dcp/include/ |
A D | dcp_utils.h | 47 void dcp_udelay(uint32_t time);
|
/optee_os-3.20.0/core/arch/arm/dts/ |
A D | stm32mp15xx-dhcor-avenger96.dtsi | 118 st,min-sample-time-nsecs = <5000>; 124 st,min-sample-time-nsecs = <5000>; 204 i2c-scl-rising-time-ns = <185>; 205 i2c-scl-falling-time-ns = <20>; 214 i2c-scl-rising-time-ns = <185>; 215 i2c-scl-falling-time-ns = <20>;
|
A D | stm32mp15xx-dkx.dtsi | 104 * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C: 108 st,min-sample-time-nsecs = <5000>; 116 st,min-sample-time-nsecs = <5000>; 167 i2c-scl-rising-time-ns = <100>; 168 i2c-scl-falling-time-ns = <7>; 242 i2c-scl-rising-time-ns = <185>; 243 i2c-scl-falling-time-ns = <20>; 407 power-off-time-sec = <10>; 422 i2c-scl-rising-time-ns = <185>; 423 i2c-scl-falling-time-ns = <20>;
|
A D | stm32mp15xx-dhcom-pdk2.dtsi | 152 i2c-scl-rising-time-ns = <185>; 153 i2c-scl-falling-time-ns = <20>; 163 i2c-scl-rising-time-ns = <185>; 164 i2c-scl-falling-time-ns = <20>;
|
A D | stm32mp157c-ed1.dts | 112 /* 16.5 ck_cycles sampling time */ 113 st,min-sample-time-nsecs = <400>; 158 i2c-scl-rising-time-ns = <185>; 159 i2c-scl-falling-time-ns = <20>; 296 power-off-time-sec = <10>;
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | ssl_cookie.c | 127 const unsigned char time[4], in ssl_cookie_hmac() 136 mbedtls_md_hmac_update( hmac_ctx, time, 4 ) != 0 || in ssl_cookie_hmac()
|
/optee_os-3.20.0/core/crypto/ |
A D | rng_fortuna.c | 375 TEE_Time time; in reseed_rate_limiting() local 378 res = tee_time_get_sys_time(&time); in reseed_rate_limiting() 386 if (TEE_TIME_LT(time, state.next_reseed_time)) in reseed_rate_limiting() 390 TEE_TIME_ADD(time, time_100ms, state.next_reseed_time); in reseed_rate_limiting()
|