Lines Matching defs:up
155 nmea_start, /* start up driver */
173 register struct nmeaunit *up;
285 up = emalloc(sizeof(*up));
286 memset(up, 0, sizeof(*up));
294 free(up);
297 pp->unitptr = (caddr_t)up;
324 register struct nmeaunit *up;
330 up = (struct nmeaunit *)pp->unitptr;
331 if (up != NULL) {
333 if (up->ppsapi_lit) {
334 time_pps_destroy(up->atom.handle);
335 if (up->ppsapi_fd != pp->io.fd)
336 close(up->ppsapi_fd);
339 free(up);
358 register struct nmeaunit *up;
366 up = (struct nmeaunit *)pp->unitptr;
369 if (!up->ppsapi_tried)
371 up->ppsapi_tried = 0;
372 if (!up->ppsapi_lit)
376 time_pps_destroy(up->atom.handle);
377 if (up->ppsapi_fd != pp->io.fd)
378 close(up->ppsapi_fd);
379 up->atom.handle = 0;
380 up->ppsapi_lit = 0;
381 up->ppsapi_fd = -1;
385 if (up->ppsapi_tried)
388 * Light up the PPSAPI interface.
390 up->ppsapi_tried = 1;
404 if (refclock_ppsapi(pps_fd, &up->atom)) {
405 up->ppsapi_lit = 1;
406 up->ppsapi_fd = pps_fd;
428 struct nmeaunit *up;
434 up = (struct nmeaunit *)pp->unitptr;
436 if (up->ppsapi_lit &&
437 refclock_pps(peer, &up->atom, pp->sloppyclockflag) > 0) {
438 up->pcount++,
454 register struct nmeaunit *up;
471 up = (struct nmeaunit *)pp->unitptr;
557 if (up->gps_time && !cmdtypezdg)
570 up->tstamp = rd_timestamp;
571 pp->lastrec = up->tstamp;
826 if (cmdtypezdg && !up->gps_time) {
827 up->gps_time = 1;
838 up->tcount++;
859 register struct nmeaunit *up;
863 up = (struct nmeaunit *)pp->unitptr;
870 if (up->pcount == 0) {
874 if (up->tcount == 0) {
879 up->pcount = up->tcount = 0;