Lines Matching refs:up
164 wwvb_start, /* start up driver */
183 register struct wwvbunit *up;
199 up = emalloc_zero(sizeof(*up));
208 free(up);
211 pp->unitptr = up;
233 struct wwvbunit * up;
236 up = pp->unitptr;
239 if (NULL != up)
240 free(up);
252 struct wwvbunit *up;
271 up = pp->unitptr;
279 * the start bit can be delayed up to 10 ms. In format 2 the
283 * Save the timestamp of each <CR> in up->laststamp. Lines with
294 if (up->prev_eol_cr) {
298 up->laststamp = trtmp;
302 up->prev_eol_cr = !up->prev_eol_cr;
306 pp->lastrec = up->laststamp;
307 up->laststamp = trtmp;
308 up->prev_eol_cr = TRUE;
379 if (up->linect > 0) {
380 up->linect--;
436 up->tcount++;
455 register struct wwvbunit *up;
470 up = pp->unitptr;
471 if (up->linect > 0)
483 if (up->ppsapi_lit &&
484 refclock_pps(peer, &up->atom, pp->sloppyclockflag) > 0) {
485 up->pcount++,
502 register struct wwvbunit *up;
506 * Sweep up the samples received since the last poll. If none
510 up = pp->unitptr;
518 (int)up->lasthour)
519 up->linect = MONLIN;
520 up->lasthour = (u_char)pp->hour;
527 if (up->pcount == 0) {
531 if (up->tcount == 0) {
536 up->pcount = up->tcount = 0;
565 register struct wwvbunit *up;
569 up = pp->unitptr;
572 if (!up->ppsapi_tried)
574 up->ppsapi_tried = 0;
575 if (!up->ppsapi_lit)
579 time_pps_destroy(up->atom.handle);
580 up->atom.handle = 0;
581 up->ppsapi_lit = 0;
585 if (up->ppsapi_tried)
588 * Light up the PPSAPI interface.
590 up->ppsapi_tried = 1;
591 if (refclock_ppsapi(pp->io.fd, &up->atom)) {
592 up->ppsapi_lit = 1;