Lines Matching full:stamp
58 struct stamp { struct
481 struct stamp stamp; in record() local
485 stamp.scr_len = cc; in record()
486 stamp.scr_sec = tv.tv_sec; in record()
487 stamp.scr_usec = tv.tv_usec; in record()
488 stamp.scr_direction = direction; in record()
489 iov[0].iov_len = sizeof(stamp); in record()
490 iov[0].iov_base = &stamp; in record()
515 #define swapstamp(stamp) do { \ argument
516 if (stamp.scr_direction > 0xff) { \
517 stamp.scr_len = bswap64(stamp.scr_len); \
518 stamp.scr_sec = bswap64(stamp.scr_sec); \
519 stamp.scr_usec = bswap32(stamp.scr_usec); \
520 stamp.scr_direction = bswap32(stamp.scr_direction); \
554 struct stamp stamp; in playback() local
570 if (fread(&stamp, sizeof(stamp), 1, fp) != 1) { in playback()
576 swapstamp(stamp); in playback()
577 save_len = sizeof(stamp); in playback()
579 if (reg && stamp.scr_len > in playback()
581 errx(1, "invalid stamp"); in playback()
583 save_len += stamp.scr_len; in playback()
584 tclock = stamp.scr_sec; in playback()
585 tso.tv_sec = stamp.scr_sec; in playback()
586 tso.tv_nsec = stamp.scr_usec * 1000; in playback()
590 switch (stamp.scr_direction) { in playback()
596 (void)consume(fp, stamp.scr_len, buf, reg); in playback()
605 (void)consume(fp, stamp.scr_len, buf, reg); in playback()
609 (void)consume(fp, stamp.scr_len, buf, reg); in playback()
613 if (stamp.scr_len == 0) in playback()
632 while (stamp.scr_len > 0) { in playback()
633 l = MIN(DEF_BUF, stamp.scr_len); in playback()
638 stamp.scr_len -= l; in playback()