Lines Matching defs:then
550 timeDiff(struct timeval *now, struct timeval *then)
552 return (now->tv_usec >= then->tv_usec) ?
553 now->tv_usec - then->tv_usec :
554 1000000 - (then->tv_usec - now->tv_usec);
582 struct timeval now, then;
591 gettimeofday(&then, &here);
595 if (timeDiff(&now, &then) > VIA_DMAWAITTIMEOUT) {
672 struct timeval now, then;
680 gettimeofday(&then, &here);
683 if (timeDiff(&now, &then) > VIA_DMAWAITTIMEOUT) {
694 if (timeDiff(&now, &then) > VIA_DMAWAITTIMEOUT) {
738 struct timeval now, then;
748 gettimeofday(&then, &here);
752 if (timeDiff(&now, &then) > VIA_SYNCWAITTIMEOUT) {
769 struct timeval now, then;
779 gettimeofday(&then, &here);
782 if (timeDiff(&now, &then) > VIA_SYNCWAITTIMEOUT) {
802 struct timeval now, then;
813 gettimeofday(&then, &here);
824 if (timeDiff(&now, &then) > VIA_XVMC_DECODERTIMEOUT) {