Lines Matching refs:nevents
706 static void fill_payload_le16(struct stream *s, quadlet_t *data, int nevents) in fill_payload_le16() argument
712 for (i = 0, event = data; i < nevents; i++) { in fill_payload_le16()
727 static void fill_packet(struct stream *s, struct packet *packet, int nevents) in fill_packet() argument
732 size = (nevents * s->dimension + 2) * sizeof(quadlet_t); in fill_packet()
749 if (syt_index < nevents) { in fill_packet()
782 fill_payload_le16(s, packet->payload->data, nevents); in fill_packet()
786 s->dbc += nevents; in fill_packet()
792 int nevents; in stream_flush() local
814 nevents = s->syt_interval; in stream_flush()
816 nevents = 0; in stream_flush()
819 nevents = fraction_floor(&next); in stream_flush()
822 if (s->input->length < nevents * s->dimension * 2 || p == NULL) in stream_flush()
825 fill_packet(s, p, nevents); in stream_flush()
830 fraction_sub_int(&s->ready_samples, &next, nevents); in stream_flush()