Lines Matching refs:up
153 register struct arbunit *up; in arb_start() local
169 up = emalloc_zero(sizeof(*up)); in arb_start()
178 free(up); in arb_start()
181 pp->unitptr = up; in arb_start()
193 free(up); in arb_start()
213 register struct arbunit *up; in arb_shutdown() local
217 up = pp->unitptr; in arb_shutdown()
220 if (NULL != up) in arb_shutdown()
221 free(up); in arb_shutdown()
233 register struct arbunit *up; in arb_receive() local
246 up = pp->unitptr; in arb_receive()
266 pp->lastrec = up->laststamp; in arb_receive()
267 up->laststamp = trtmp; in arb_receive()
271 if (up->tcswitch == 0) { in arb_receive()
283 up->qualchar = tbuf[2]; in arb_receive()
288 strlcpy(up->status, tbuf + 2, in arb_receive()
289 sizeof(up->status)); in arb_receive()
298 strlcpy(up->latlon, tbuf + 2, sizeof(up->latlon)); in arb_receive()
303 strlcat(up->latlon, " ", sizeof(up->latlon)); in arb_receive()
304 strlcat(up->latlon, tbuf + 2, sizeof(up->latlon)); in arb_receive()
309 strlcat(up->latlon, " ", sizeof(up->latlon)); in arb_receive()
310 strlcat(up->latlon, tbuf + 2, sizeof(up->latlon)); in arb_receive()
315 strlcat(up->latlon, " ", sizeof(up->latlon)); in arb_receive()
316 strlcat(up->latlon, tbuf + 2, sizeof(up->latlon)); in arb_receive()
317 record_clock_stats(&peer->srcadr, up->latlon); in arb_receive()
320 printf("arbiter: %s\n", up->latlon); in arb_receive()
336 up->tcswitch++; in arb_receive()
337 if (up->tcswitch <= 1 || temp < LENARB) in arb_receive()
344 pp->a_lastcode[LENARB - 2] = up->qualchar; in arb_receive()
345 strlcat(pp->a_lastcode, up->status, sizeof(pp->a_lastcode)); in arb_receive()
360 switch (up->qualchar) { in arb_receive()
442 register struct arbunit *up; in arb_poll() local
454 up = pp->unitptr; in arb_poll()
456 up->tcswitch = 0; in arb_poll()