Lines Matching refs:up
137 hpgps_start, /* start up driver */
156 register struct hpgpsunit *up;
180 up = emalloc_zero(sizeof(*up));
189 free(up);
192 pp->unitptr = up;
200 up->tzhour = 0;
201 up->tzminute = 0;
203 *up->statscrn = '\0';
204 up->lastptr = up->statscrn;
205 up->pollcnt = 2;
211 up->linecnt = 1;
228 register struct hpgpsunit *up;
232 up = pp->unitptr;
235 if (NULL != up)
236 free(up);
248 register struct hpgpsunit *up;
271 up = pp->unitptr;
301 if (up->linecnt-- > 0) {
302 if ((int)(pp->lencode + 2) <= (SMAX - (up->lastptr - up->statscrn))) {
303 *up->lastptr++ = '\n';
304 memcpy(up->lastptr, pp->a_lastcode, pp->lencode);
305 up->lastptr += pp->lencode;
307 if (up->linecnt == 0)
308 record_clock_stats(&peer->srcadr, up->statscrn);
316 up->lastptr = up->statscrn;
317 *up->lastptr = '\0';
318 up->pollcnt = 2;
377 m = sscanf(tcp,"%d,%d", &up->tzhour, &up->tzminute);
386 if ((up->tzhour < -12) || (up->tzhour > 13) ||
387 (up->tzminute < -59) || (up->tzminute > 59)){
391 up->tzhour, up->tzminute);
492 pp->minute -= up->tzminute;
493 pp->hour -= up->tzhour;
586 up->linecnt = 22;
602 register struct hpgpsunit *up;
612 up = pp->unitptr;
613 if (up->pollcnt == 0)
616 up->pollcnt--;