Lines Matching refs:ppsfd
424 int ppsfd; /* fd to ise for PPS io */ member
1819 if (ioctl(parse->ppsfd, I_PUSH, (caddr_t)m1) == -1 && in ppsclock_init()
1820 ioctl(parse->ppsfd, I_PUSH, (caddr_t)m2) == -1) in ppsclock_init()
1831 (void)ioctl(parse->ppsfd, I_POP, (caddr_t)0); in ppsclock_init()
2306 if (ioctl(parse->ppsfd, TIOCDCDTIMESTAMP, &dcd_time) != -1) in local_input()
2320 parse->ppsfd, in local_input()
2338 if (ioctl(parse->ppsfd, CIOGETEV, (caddr_t)&ev) == 0) in local_input()
2341 if (ioctl(parse->ppsfd, TIOCGPPSEV, (caddr_t)&ev) == 0) in local_input()
2816 if (parse->generic->io.fd != parse->ppsfd && parse->ppsfd != -1) in parse_shutdown()
2817 (void)closeserial(parse->ppsfd); /* close separate PPS source */ in parse_shutdown()
3071 parse->ppsfd = -1; in parse_start()
3168 parse->ppsfd = tty_open(parseppsdev, O_RDWR | O_NOCTTY | O_NONBLOCK, 0777); in parse_start()
3170 if (parse->ppsfd == -1) in parse_start()
3172 parse->ppsfd = fd232; in parse_start()
3181 if (ioctl(parse->ppsfd, TIOCGSERIAL, &ss) < 0 || in parse_start()
3191 ioctl(parse->ppsfd, TIOCSSERIAL, &ss)) < 0) { in parse_start()
3192 msyslog(LOG_NOTICE, "refclock_parse: TIOCSSERIAL fd %d, %m", parse->ppsfd); in parse_start()
3214 if (ioctl(parse->ppsfd, TIOCSPPS, (caddr_t)&i) == 0) in parse_start()
3228 if (!refclock_ppsapi(parse->ppsfd, &parse->atom)) in parse_start()
3356 (parse->ppsfd != parse->generic->io.fd) ? parseppsdev : parsedev); in parse_start()