Lines Matching refs:up

78 	shm_start,              /* start up driver */
222 struct shmunit * const up = emalloc_zero(sizeof(*up));
229 up->forall = (unit >= 2) && !(peer->ttl & SHM_MODE_PRIVATE);
231 up->shm = getShmTime(unit, up->forall);
237 if (up->shm != 0) {
238 pp->unitptr = up;
239 up->shm->precision = PRECISION;
240 peer->precision = up->shm->precision;
241 up->shm->valid = 0;
242 up->shm->nsamples = NSAMPLES;
245 up->max_delay = 5;
246 up->max_delta = 4*3600;
249 free(up);
272 struct shmunit * const up = pp->unitptr;
277 if (NULL == up)
280 up->max_delta = 0;
282 up->max_delta = 4*3600;
284 up->max_delta = (time_t)floor(pp->fudgetime2 + 0.5);
298 struct shmunit * const up = pp->unitptr;
301 if (NULL == up)
306 (void)shmdt((char *)up->shm);
310 UnmapViewOfFile(up->shm);
313 free(up);
327 struct shmunit * const up = pp->unitptr;
333 major_error = max(up->notready, up->bad);
334 major_error = max(major_error, up->clash);
345 } else if (NULL == up->shm) { /* is this possible at all? */
348 } else if (major_error == up->clash) {
351 } else if (major_error == up->bad) {
523 struct shmunit * const up = pp->unitptr;
539 up->ticks++;
540 if ((shm = up->shm) == NULL) {
543 shm = up->shm = getShmTime(unit, up->forall);
564 up->notready++;
569 up->bad++;
577 up->clash++;
583 up->bad++;
608 if (tt < 0 || tt > up->max_delay) {
611 up->bad++;
621 if (up->max_delta > 0 && tt > up->max_delta) {
624 up->bad++;
638 up->good++;
650 struct shmunit * const up = pp->unitptr;
656 up->ticks, up->good, up->notready,
657 up->bad, up->clash);
659 up->ticks = up->good = up->notready = up->bad = up->clash = 0;