Lines Matching refs:parse
326 register parsestream_t *parse; in parseopen() local
353 parse = (parsestream_t *) q->q_ptr; in parseopen()
354 bzero((caddr_t)parse, sizeof(*parse)); in parseopen()
355 parse->parse_queue = q; in parseopen()
356 parse->parse_status = PARSE_ENABLE; in parseopen()
357 parse->parse_ppsclockev.tv.tv_sec = 0; in parseopen()
358 parse->parse_ppsclockev.tv.tv_usec = 0; in parseopen()
359 parse->parse_ppsclockev.serial = 0; in parseopen()
365 if (!parse_ioinit(&parse->parse_io)) in parseopen()
372 kmem_free((caddr_t)parse, sizeof(parsestream_t)); in parseopen()
400 kmem_free((caddr_t)parse, sizeof(parsestream_t)); in parseopen()
413 register parsestream_t *parse = (parsestream_t *)q->q_ptr; in parseclose() local
422 if (parse->parse_dqueue) in parseclose()
423 close_linemon(parse->parse_dqueue, q); in parseclose()
424 parse->parse_dqueue = (queue_t *)0; in parseclose()
428 parse_ioend(&parse->parse_io); in parseclose()
430 kmem_free((caddr_t)parse, sizeof(parsestream_t)); in parseclose()
479 parsestream_t *parse = (parsestream_t *)q->q_ptr; in parsewput() local
515 *(struct ppsclockev *)(void *)datap->b_wptr = parse->parse_ppsclockev; in parsewput()
526 parse->parse_status = (parse->parse_status & (unsigned)~PARSE_ENABLE) | in parsewput()
529 if (!setup_stream(RD(q), (parse->parse_status & PARSE_ENABLE) ? in parsewput()
554 ok = parse_timecode(dct, &parse->parse_io); in parsewput()
559 ok = parse_setfmt(dct, &parse->parse_io); in parsewput()
564 ok = parse_getfmt(dct, &parse->parse_io); in parsewput()
569 ok = parse_setcs(dct, &parse->parse_io); in parsewput()
643 register parsestream_t * parse = (parsestream_t *)q->q_ptr; in parserput() local
656 if (!(parse->parse_status & PARSE_ENABLE)) in parserput()
677 if (ch != ~0 && parse_ioread(&parse->parse_io, (unsigned int)ch, &c_time)) in parserput()
684 if (canputnext(parse->parse_queue) && (nmp = allocb(sizeof(parsetime_t), BPRI_MED))) in parserput()
686 bcopy((caddr_t)&parse->parse_io.parse_dtime, (caddr_t)nmp->b_rptr, sizeof(parsetime_t)); in parserput()
688 putnext(parse->parse_queue, nmp); in parserput()
692 parse_iodone(&parse->parse_io); in parserput()
698 if (parse_ioread(&parse->parse_io, (unsigned int)0, &c_time)) in parserput()
705 if (canputnext(parse->parse_queue) && (nmp = allocb(sizeof(parsetime_t), BPRI_MED))) in parserput()
707 bcopy((caddr_t)&parse->parse_io.parse_dtime, (caddr_t)nmp->b_rptr, sizeof(parsetime_t)); in parserput()
709 putnext(parse->parse_queue, nmp); in parserput()
713 parse_iodone(&parse->parse_io); in parserput()
727 register parsestream_t * parse = (parsestream_t *)q->q_ptr; in parserput() local
739 if ((parse->parse_status & PARSE_ENABLE) && in parserput()
740 parse_iopps(&parse->parse_io, status ? SYNC_ONE : SYNC_ZERO, &c_time)) in parserput()
743 if (canputnext(parse->parse_queue) && (nmp = allocb(sizeof(parsetime_t), BPRI_MED))) in parserput()
745 bcopy((caddr_t)&parse->parse_io.parse_dtime, (caddr_t)nmp->b_rptr, sizeof(parsetime_t)); in parserput()
747 putnext(parse->parse_queue, nmp); in parserput()
751 parse_iodone(&parse->parse_io); in parserput()
764 parse->parse_ppsclockev.tv = c_time.tv; in parserput()
765 ++(parse->parse_ppsclockev.serial); in parserput()