Lines Matching defs:value
128 STATIC long long g_adjTimeLeft; /* absolute value of adjtime */
909 const struct itimerspec *value, /* new value */
910 struct itimerspec *oldValue) /* old value to return, always 0 */
926 if ((value == NULL) || OS_INT_ACTIVE || !ValidTimerID(swtmrID)) {
931 if (!ValidTimeSpec(&value->it_value) || !ValidTimeSpec(&value->it_interval)) {
947 expiry = OsTimeSpec2Tick(&value->it_value);
948 interval = OsTimeSpec2Tick(&value->it_interval);
957 if ((value->it_value.tv_sec == 0) && (value->it_value.tv_nsec == 0)) {
974 int timer_gettime(timer_t timerID, struct itimerspec *value)
984 if ((value == NULL) || !ValidTimerID(swtmrID)) {
998 OsTick2TimeSpec(&value->it_value, tick);
999 OsTick2TimeSpec(&value->it_interval, (swtmr->ucMode == LOS_SWTMR_MODE_ONCE) ? 0 : swtmr->uwInterval);
1096 int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue)
1106 if (which != ITIMER_REAL || !value) {
1133 if (!ValidTimeval(&value->it_value) || !ValidTimeval(&value->it_interval)) {
1138 TIMEVAL_TO_TIMESPEC(&value->it_value, &spec.it_value);
1139 TIMEVAL_TO_TIMESPEC(&value->it_interval, &spec.it_interval);
1150 int getitimer(int which, struct itimerval *value)
1158 if (which != ITIMER_REAL || !value) {
1168 TIMESPEC_TO_TIMEVAL(&value->it_value, &spec.it_value);
1169 TIMESPEC_TO_TIMEVAL(&value->it_interval, &spec.it_interval);