Lines Matching refs:convert
1199 struct timespec convert; in convertMonotonic() member
1201 struct timespec time, convert; in convertMonotonic() local
1300 subTimespec(&list->convert, &time, &monotonic); in convertMonotonic()
1305 if (subTimespec(&time, subTimespec(&time, &list->time, &list->convert), in convertMonotonic()
1309 subTimespec(&convert, &list->convert, &suspended_diff); in convertMonotonic()
1312 convert = list->convert; in convertMonotonic()
1315 sumTimespec(&time, &convert); in convertMonotonic()
1320 list->convert = convert; in convertMonotonic()
1327 list->convert = convert; in convertMonotonic()
1328 sumTimespec(&list->convert, &suspended_diff); in convertMonotonic()
1339 clock_gettime(CLOCK_MONOTONIC, &convert); in convertMonotonic()
1342 subTimespec(&time, &convert, subTimespec(&time, &time, &convert)); in convertMonotonic()
1344 subTimespec(&list->convert, &list->time, &time); in convertMonotonic()
1348 subTimespec(&convert, &list->convert, &suspended_diff); in convertMonotonic()
1350 sumTimespec(&time, &convert); in convertMonotonic()
1356 list->convert = convert; in convertMonotonic()
1357 sumTimespec(&list->convert, &suspended_diff); in convertMonotonic()
1363 list->convert = convert; in convertMonotonic()
1384 convert = list->convert; in convertMonotonic()
1395 float f = nsecTimespec(subTimespec(&time, &next->convert, &convert)); in convertMonotonic()
1399 convert.tv_sec += crun / (long long)NS_PER_SEC; in convertMonotonic()
1401 convert.tv_nsec -= (-crun) % NS_PER_SEC; in convertMonotonic()
1402 if (convert.tv_nsec < 0) { in convertMonotonic()
1403 convert.tv_nsec += NS_PER_SEC; in convertMonotonic()
1404 convert.tv_sec -= 1; in convertMonotonic()
1407 convert.tv_nsec += crun % NS_PER_SEC; in convertMonotonic()
1408 if (convert.tv_nsec >= (long)NS_PER_SEC) { in convertMonotonic()
1409 convert.tv_nsec -= NS_PER_SEC; in convertMonotonic()
1410 convert.tv_sec += 1; in convertMonotonic()
1419 subTimespec(result, result, &convert); in convertMonotonic()