Lines Matching defs:then
213 timeDiff(struct timeval *now, struct timeval *then)
215 return (now->tv_usec >= then->tv_usec) ?
216 now->tv_usec - then->tv_usec :
217 1000000 - (then->tv_usec - now->tv_usec);
245 struct timeval now, then;
254 gettimeofday(&then, &here);
258 if (timeDiff(&now, &then) > VIA_DMAWAITTIMEOUT) {
334 struct timeval now, then;
342 gettimeofday(&then, &here);
345 if (timeDiff(&now, &then) > VIA_DMAWAITTIMEOUT) {
356 if (timeDiff(&now, &then) > VIA_DMAWAITTIMEOUT) {
377 struct timeval now, then;
385 gettimeofday(&then, &here);
388 if (timeDiff(&now, &then) > VIA_SYNCWAITTIMEOUT) {
402 struct timeval now, then;
412 gettimeofday(&then, &here);
415 if (timeDiff(&now, &then) > VIA_SYNCWAITTIMEOUT) {
435 struct timeval now, then;
446 gettimeofday(&then, &here);
457 if (timeDiff(&now, &then) > VIA_XVMC_DECODERTIMEOUT) {