/hardware/google/gfxstream/guest/mesa/include/android_stub/log/ |
D | log_time.h | 29 #define LOG_TIME_NSEC(t) ((t)->tv_nsec & (UINT32_MAX >> 2)) 38 uint32_t tv_nsec = 0; member 44 : tv_sec(static_cast<uint32_t>(T.tv_sec)), tv_nsec(static_cast<uint32_t>(T.tv_nsec)) {} in log_time() 46 : tv_sec(sec), tv_nsec(nsec) { in tv_sec() 53 tv_nsec = static_cast<uint32_t>(T.tv_nsec); in log_time() 59 (tv_nsec == static_cast<uint32_t>(T.tv_nsec)); 67 (tv_nsec < static_cast<uint32_t>(T.tv_nsec))); 75 (tv_nsec > static_cast<uint32_t>(T.tv_nsec))); 83 return (tv_sec == T.tv_sec) && (tv_nsec == T.tv_nsec); 90 ((tv_sec == T.tv_sec) && (tv_nsec < T.tv_nsec)); [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/ |
D | timespec.h | 56 r->tv_nsec = a->tv_nsec + b->tv_nsec; in timespec_add() 57 if (r->tv_nsec > NSEC_PER_SEC) { in timespec_add() 59 r->tv_nsec -= NSEC_PER_SEC; in timespec_add() 75 r->tv_nsec = a->tv_nsec - b->tv_nsec; in timespec_sub() 76 if (r->tv_nsec < 0) { in timespec_sub() 78 r->tv_nsec += NSEC_PER_SEC; in timespec_sub() 103 r->tv_nsec = (uint64_t)a->tv_nsec + b_nsec; in timespec_add_nsec() 105 if (r->tv_nsec >= NSEC_PER_SEC) { in timespec_add_nsec() 109 r->tv_nsec -= NSEC_PER_SEC; in timespec_add_nsec() 110 } else if (r->tv_nsec < 0) { in timespec_add_nsec() [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/tests/ |
D | timespec_test.cpp | 38 a.tv_nsec = NSEC_PER_SEC - 1; in TEST() 40 b.tv_nsec = 2; in TEST() 43 EXPECT_EQ(r.tv_nsec, 1); in TEST() 51 a.tv_nsec = 1; in TEST() 53 b.tv_nsec = 2; in TEST() 56 EXPECT_EQ(r.tv_nsec, NSEC_PER_SEC - 1); in TEST() 64 a.tv_nsec = 4; in TEST() 73 a.tv_nsec = 4000; in TEST() 82 a.tv_nsec = 4000000; in TEST() 91 uint32_t tv_nsec; in TEST() local [all …]
|
/hardware/google/graphics/common/libhwjpeg/ |
D | hwjpeg-base.cpp | 72 return (m_tBegin.tv_nsec > tp.tv_nsec) ? elapsed - (m_tBegin.tv_nsec - tp.tv_nsec) / 1000 in GetElapsed() 73 : elapsed + (tp.tv_nsec - m_tBegin.tv_nsec) / 1000; in GetElapsed() 85 elapsed = (m_tBegin.tv_nsec > tp.tv_nsec) ? elapsed - (m_tBegin.tv_nsec - tp.tv_nsec) / 1000 in GetElapsedUpdate() 86 : elapsed + (tp.tv_nsec - m_tBegin.tv_nsec) / 1000; in GetElapsedUpdate()
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/ |
D | cam_semaphore_tests.cpp | 32 ts.tv_nsec += (ms % 1000) * 1000000; in timespec_add_ms() 33 if (ts.tv_nsec >= NS_PER_S) { in timespec_add_ms() 35 ts.tv_nsec -= NS_PER_S; in timespec_add_ms() 41 return (int64_t)ts_end.tv_nsec - ts_start.tv_nsec; in time_diff() 44 ts_end.tv_nsec + NS_PER_S - ts_start.tv_nsec; in time_diff()
|
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/ |
D | sync.h | 75 …if(((abstime.tv_nsec + now.tv_usec*1000) > 1000*1000*1000) || (abstime.tv_nsec + now.tv_usec*1000 … in wait() 78 abstime.tv_nsec += now.tv_usec * 1000; in wait() 79 abstime.tv_nsec -= 1000*1000*1000; in wait() 83 abstime.tv_nsec += now.tv_usec * 1000; in wait()
|
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/ |
D | sync.h | 75 …if(((abstime.tv_nsec + now.tv_usec*1000) > 1000*1000*1000) || (abstime.tv_nsec + now.tv_usec*1000 … in wait() 78 abstime.tv_nsec += now.tv_usec * 1000; in wait() 79 abstime.tv_nsec -= 1000*1000*1000; in wait() 83 abstime.tv_nsec += now.tv_usec * 1000; in wait()
|
/hardware/nxp/secure_element/snxxx/libese-spi/src/adaptation/ |
D | CondVar.cpp | 103 long ns = absoluteTime.tv_nsec + ((millisec % 1000) * 1000000); in wait() 106 absoluteTime.tv_nsec = ns - 1000000000; in wait() 108 absoluteTime.tv_nsec = ns; in wait()
|
/hardware/interfaces/nfc/aidl/vts/functional/ |
D | CondVar.cpp | 100 long ns = absoluteTime.tv_nsec + ((millisec % 1000) * 1000000); in wait() 103 absoluteTime.tv_nsec = ns - 1000000000; in wait() 105 absoluteTime.tv_nsec = ns; in wait()
|
/hardware/nxp/nfc/snxxx/halimpl/power-tracker/src/ |
D | phNxpNciHal_PowerTracker.cc | 37 ((long)spec.tv_sec * 1000 + (long)(spec.tv_nsec / 1000000)) 87 .lastSyncTime.tv_nsec = 0, 185 long ns = absoluteTime.tv_nsec + in phNxpNciHal_pollPowerTrackerData() 189 absoluteTime.tv_nsec = ns - 1000000000; in phNxpNciHal_pollPowerTrackerData() 191 absoluteTime.tv_nsec = ns; in phNxpNciHal_pollPowerTrackerData() 224 struct timespec currentTime = {.tv_sec = 0, .tv_nsec = 0}; in phNxpNciHal_syncPowerTrackerData() 309 struct timespec ulpdetEndTime = {.tv_sec = 0, .tv_nsec = 0}; in onUlpdetTimerExpired() 374 gContext.ulpdetStartTime = {.tv_sec = 0, .tv_nsec = 0}; in phNxpNciHal_onRefreshNfccPowerState()
|
/hardware/qcom/gps/msm8960/utils/ |
D | loc_timer.c | 80 ts.tv_nsec += t.time_msec * 1000000; in timer_thread() 81 if(ts.tv_nsec > 999999999) { in timer_thread() 84 ts.tv_nsec -= 1000000000; in timer_thread() 87 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec); in timer_thread()
|
/hardware/qcom/display/msm8996/sdm/include/utils/ |
D | locker.h | 147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; in WaitFinite() 148 ts.tv_sec += ts.tv_nsec/1000000000L; in WaitFinite() 149 ts.tv_nsec += ts.tv_nsec%1000000000L; in WaitFinite()
|
/hardware/interfaces/security/keymint/aidl/default/ta/ |
D | clock.rs | 32 let mut time = libc::timespec { tv_sec: 0, tv_nsec: 0 }; in now() 42 crypto::MillisecondsSinceEpoch(((time.tv_sec * 1000) + (time.tv_nsec / 1000 / 1000)).into()) in now()
|
/hardware/st/nfc/1.0/hal/ |
D | halcore.c | 416 if ((end.tv_nsec - start.tv_nsec) < 0) { in HalTimeDiffInMs() 418 temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; in HalTimeDiffInMs() 421 temp.tv_nsec = end.tv_nsec - start.tv_nsec; in HalTimeDiffInMs() 424 return (temp.tv_nsec / 1000000) + (temp.tv_sec * 1000); in HalTimeDiffInMs() 901 tm.tv_nsec += ((timeout % 1000) * 1000000); in HalSemWait() 904 if (tm.tv_nsec >= oneSecInNs) { in HalSemWait() 906 tm.tv_nsec -= oneSecInNs; in HalSemWait()
|
/hardware/nxp/secure_element/snxxx/libese-spi/p73/pal/ |
D | NxpTimer.cpp | 35 start_ts = tm.tv_nsec * 1e-3 + tm.tv_sec * 1e+6; in startTimer() 44 end_ts = tm.tv_nsec * 1e-3 + tm.tv_sec * 1e+6; in stopTimer()
|
/hardware/st/nfc/st21nfc/hal/ |
D | halcore.cc | 448 if ((end.tv_nsec - start.tv_nsec) < 0) { in HalTimeDiffInMs() 450 temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; in HalTimeDiffInMs() 453 temp.tv_nsec = end.tv_nsec - start.tv_nsec; in HalTimeDiffInMs() 456 return (temp.tv_nsec / 1000000) + (temp.tv_sec * 1000); in HalTimeDiffInMs() 919 tm.tv_nsec += ((timeout % 1000) * 1000000); in HalSemWait() 922 if (tm.tv_nsec >= oneSecInNs) { in HalSemWait() 924 tm.tv_nsec -= oneSecInNs; in HalSemWait()
|
/hardware/qcom/gps/utils/ |
D | loc_timer.c | 69 ts.tv_nsec += t->time_msec * 1000000; in timer_thread() 70 if(ts.tv_nsec > 999999999) { in timer_thread() 73 ts.tv_nsec -= 1000000000; in timer_thread() 77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec, in timer_thread()
|
/hardware/qcom/gps/msm8994/utils/ |
D | loc_timer.c | 69 ts.tv_nsec += t->time_msec * 1000000; in timer_thread() 70 if(ts.tv_nsec > 999999999) { in timer_thread() 73 ts.tv_nsec -= 1000000000; in timer_thread() 77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec, in timer_thread()
|
/hardware/qcom/gps/msm8084/utils/ |
D | loc_timer.c | 69 ts.tv_nsec += t->time_msec * 1000000; in timer_thread() 70 if(ts.tv_nsec > 999999999) { in timer_thread() 73 ts.tv_nsec -= 1000000000; in timer_thread() 77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec, in timer_thread()
|
/hardware/st/secure_element2/secure_element/esehal/src/ |
D | transport.c | 53 return t1->tv_nsec - t2->tv_nsec; in ts_compare() 73 div_uint64_rem(ta.tv_nsec + ns, NSEC_PER_SEC, &ns); in ts_add_ns()
|
/hardware/qcom/sm7150/gps/utils/ |
D | LocTimer.cpp | 296 delay.it_value.tv_nsec = 0; in updateSoonestTime() 519 rank = (int)(timer->mFutureTime.tv_nsec - mFutureTime.tv_nsec); in ranks() 560 futureTime.tv_nsec += (timeOutInMs % 1000) * 1000000; in start() 561 if (futureTime.tv_nsec >= 1000000000) { in start() 562 futureTime.tv_sec += futureTime.tv_nsec / 1000000000; in start() 563 futureTime.tv_nsec %= 1000000000; in start() 658 return (double)to.tv_sec + (double)to.tv_nsec / 1000000000 in getDeltaSeconds() 659 - from.tv_sec - (double)from.tv_nsec / 1000000000; in getDeltaSeconds()
|
/hardware/qcom/gps/msm8998/utils/ |
D | LocTimer.cpp | 294 delay.it_value.tv_nsec = 0; in updateSoonestTime() 516 rank = (int)(timer->mFutureTime.tv_nsec - mFutureTime.tv_nsec); in ranks() 557 futureTime.tv_nsec += (timeOutInMs % 1000) * 1000000; in start() 558 if (futureTime.tv_nsec >= 1000000000) { in start() 559 futureTime.tv_sec += futureTime.tv_nsec / 1000000000; in start() 560 futureTime.tv_nsec %= 1000000000; in start() 655 return (double)to.tv_sec + (double)to.tv_nsec / 1000000000 in getDeltaSeconds() 656 - from.tv_sec - (double)from.tv_nsec / 1000000000; in getDeltaSeconds()
|
/hardware/qcom/sm8150p/gps/utils/ |
D | LocTimer.cpp | 296 delay.it_value.tv_nsec = 0; in updateSoonestTime() 519 rank = (int)(timer->mFutureTime.tv_nsec - mFutureTime.tv_nsec); in ranks() 560 futureTime.tv_nsec += (timeOutInMs % 1000) * 1000000; in start() 561 if (futureTime.tv_nsec >= 1000000000) { in start() 562 futureTime.tv_sec += futureTime.tv_nsec / 1000000000; in start() 563 futureTime.tv_nsec %= 1000000000; in start() 658 return (double)to.tv_sec + (double)to.tv_nsec / 1000000000 in getDeltaSeconds() 659 - from.tv_sec - (double)from.tv_nsec / 1000000000; in getDeltaSeconds()
|
/hardware/qcom/gps/msm8909w_3100/utils/ |
D | LocTimer.cpp | 294 delay.it_value.tv_nsec = 0; in updateSoonestTime() 517 rank = (int)(timer->mFutureTime.tv_nsec - mFutureTime.tv_nsec); in ranks() 558 futureTime.tv_nsec += (timeOutInMs % 1000) * 1000000; in start() 559 if (futureTime.tv_nsec >= 1000000000) { in start() 560 futureTime.tv_sec += futureTime.tv_nsec / 1000000000; in start() 561 futureTime.tv_nsec %= 1000000000; in start() 656 return (double)to.tv_sec + (double)to.tv_nsec / 1000000000 in getDeltaSeconds() 657 - from.tv_sec - (double)from.tv_nsec / 1000000000; in getDeltaSeconds()
|
/hardware/qcom/display/msm8998/sdm/include/utils/ |
D | locker.h | 147 ts.tv_nsec = tv.tv_usec*1000 + (ms%1000)*1000000; in WaitFinite() 148 ts.tv_sec += ts.tv_nsec/1000000000L; in WaitFinite() 149 ts.tv_nsec %= 1000000000L; in WaitFinite()
|