/third_party/nghttp2/lib/ |
H A D | nghttp2_ratelim.c | 31 rl->tstamp = 0; in nghttp2_ratelim_init() 34 void nghttp2_ratelim_update(nghttp2_ratelim *rl, uint64_t tstamp) { in nghttp2_ratelim_update() argument 37 if (tstamp == rl->tstamp) { in nghttp2_ratelim_update() 41 if (tstamp > rl->tstamp) { in nghttp2_ratelim_update() 42 d = tstamp - rl->tstamp; in nghttp2_ratelim_update() 47 rl->tstamp = tstamp; in nghttp2_ratelim_update() [all...] |
H A D | nghttp2_ratelim.h | 37 /* rate is the amount of value that is regenerated per 1 tstamp. */ 41 /* tstamp is the last timestamp in second resolution that is known 43 uint64_t tstamp; member 49 /* nghttp2_ratelim_update updates rl->val with the current |tstamp| 51 void nghttp2_ratelim_update(nghttp2_ratelim *rl, uint64_t tstamp);
|
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_ratelim.c | 31 rl->tstamp = 0; in nghttp2_ratelim_init() 34 void nghttp2_ratelim_update(nghttp2_ratelim *rl, uint64_t tstamp) { in nghttp2_ratelim_update() argument 37 if (tstamp == rl->tstamp) { in nghttp2_ratelim_update() 41 if (tstamp > rl->tstamp) { in nghttp2_ratelim_update() 42 d = tstamp - rl->tstamp; in nghttp2_ratelim_update() 47 rl->tstamp = tstamp; in nghttp2_ratelim_update() [all...] |
H A D | nghttp2_ratelim.h | 37 /* rate is the amount of value that is regenerated per 1 tstamp. */ 41 /* tstamp is the last timestamp in second resolution that is known 43 uint64_t tstamp; member 49 /* nghttp2_ratelim_update updates rl->val with the current |tstamp| 51 void nghttp2_ratelim_update(nghttp2_ratelim *rl, uint64_t tstamp);
|
/third_party/alsa-lib/src/rawmidi/ |
H A D | rawmidi_hw.c | 113 int tstamp; in snd_rawmidi_hw_params() local 120 tstamp = (params->mode & SNDRV_RAWMIDI_MODE_FRAMING_MASK) == SNDRV_RAWMIDI_MODE_FRAMING_TSTAMP; in snd_rawmidi_hw_params() 121 if (hw->buf && !tstamp) { in snd_rawmidi_hw_params() 125 } else if (tstamp) { in snd_rawmidi_hw_params() 197 static ssize_t read_from_ts_buf(snd_rawmidi_hw_t *hw, struct timespec *tstamp, in read_from_ts_buf() argument 207 tstamp->tv_sec = f->tv_sec; in read_from_ts_buf() 208 tstamp->tv_nsec = f->tv_nsec; in read_from_ts_buf() 221 if (tstamp->tv_sec != (time_t)f->tv_sec || in read_from_ts_buf() 222 tstamp->tv_nsec != f->tv_nsec) in read_from_ts_buf() 245 static ssize_t snd_rawmidi_hw_tread(snd_rawmidi_t *rmidi, struct timespec *tstamp, in snd_rawmidi_hw_tread() argument [all...] |
H A D | rawmidi.c | 880 * \brief sets clock type for tstamp type framing 904 * \brief get current clock type (for tstamp type framing) 1006 * \param tstamp returned timestamp value 1008 void snd_rawmidi_status_get_tstamp(const snd_rawmidi_status_t *status, snd_htimestamp_t *tstamp) in snd_rawmidi_status_get_tstamp() argument 1010 assert(status && tstamp); in snd_rawmidi_status_get_tstamp() 1011 *tstamp = status->tstamp; in snd_rawmidi_status_get_tstamp() 1108 * \param[out] tstamp timestamp for the returned MIDI bytes 1113 ssize_t snd_rawmidi_tread(snd_rawmidi_t *rawmidi, struct timespec *tstamp, void *buffer, size_t size) in snd_rawmidi_tread() argument 1122 return (rawmidi->ops->tread)(rawmidi, tstamp, buffe in snd_rawmidi_tread() [all...] |
H A D | rawmidi_local.h | 37 ssize_t (*tread)(snd_rawmidi_t *rawmidi, struct timespec *tstamp, void *buffer, size_t size);
|
H A D | ump.c | 290 * \param[out] tstamp timestamp for the returned UMP packets 295 ssize_t snd_ump_tread(snd_ump_t *ump, struct timespec *tstamp, void *buffer, in snd_ump_tread() argument 300 return snd_rawmidi_tread(ump->rawmidi, tstamp, buffer, size); in snd_ump_tread()
|
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
H A D | ngtcp2_acktr.c | 32 ngtcp2_tstamp tstamp) { in acktr_entry_init() 35 ent->tstamp = tstamp; in acktr_entry_init() 39 ngtcp2_tstamp tstamp, in ngtcp2_acktr_entry_objalloc_new() 46 acktr_entry_init(*ent, pkt_num, tstamp); in ngtcp2_acktr_entry_objalloc_new() 134 ent->tstamp = ts; in ngtcp2_acktr_add() 154 ent->tstamp = ts; in ngtcp2_acktr_add() 31 acktr_entry_init(ngtcp2_acktr_entry *ent, int64_t pkt_num, ngtcp2_tstamp tstamp) acktr_entry_init() argument 38 ngtcp2_acktr_entry_objalloc_new(ngtcp2_acktr_entry **ent, int64_t pkt_num, ngtcp2_tstamp tstamp, ngtcp2_objalloc *objalloc) ngtcp2_acktr_entry_objalloc_new() argument
|
H A D | ngtcp2_acktr.h | 59 /* tstamp is the timestamp when a packet denoted by pkt_num is 61 ngtcp2_tstamp tstamp; member 82 ngtcp2_tstamp tstamp,
|
/third_party/nghttp2/tests/ |
H A D | nghttp2_ratelim_test.c | 41 CU_ASSERT(0 == rl.tstamp); in test_nghttp2_ratelim_update() 46 CU_ASSERT(999 == rl.tstamp); in test_nghttp2_ratelim_update() 63 CU_ASSERT(1004 == rl.tstamp); in test_nghttp2_ratelim_update()
|
/third_party/nghttp2/src/ |
H A D | shrpx_log_config.cc | 46 tstamp(std::make_shared<Timestamp>(time_str_updated)), in LogConfig() 110 tstamp = std::make_shared<Timestamp>(now); in update_tstamp_millis() 124 tstamp = std::make_shared<Timestamp>(now); in update_tstamp()
|
H A D | shrpx_log_config.h | 53 std::shared_ptr<Timestamp> tstamp; member
|
H A D | shrpx_log.cc | 195 lgconf->tstamp->time_iso8601.c_str(), config->pid, lgconf->pid, in ~Log() 592 const auto &tstamp = req.tstamp; in upstream_accesslog() local 622 std::tie(p, last) = copy(tstamp->time_local, p, last); in upstream_accesslog() 625 std::tie(p, last) = copy(tstamp->time_iso8601, p, last); in upstream_accesslog()
|
/third_party/alsa-lib/test/ |
H A D | rawmidi.c | 186 struct timespec tstamp; in main() local 187 ret = snd_rawmidi_tread(handle_in, &tstamp, buf, sizeof(buf)); in main() 191 fprintf(stderr, "read [%lld:%09lld]", (long long)tstamp.tv_sec, (long long)tstamp.tv_nsec); in main()
|
H A D | latency.c | 81 void timestamp_now(timestamp_t *tstamp) in timestamp_now() argument 83 if (clock_gettime(CLOCK_MONOTONIC_RAW, tstamp)) in timestamp_now() 87 long long timestamp_diff_micro(timestamp_t *tstamp) in timestamp_diff_micro() argument 91 if (tstamp->tv_nsec > now.tv_nsec) { in timestamp_diff_micro() 92 diff.tv_sec = now.tv_sec - tstamp->tv_sec - 1; in timestamp_diff_micro() 93 diff.tv_nsec = (now.tv_nsec + 1000000000L) - tstamp->tv_nsec; in timestamp_diff_micro() 95 diff.tv_sec = now.tv_sec - tstamp->tv_sec; in timestamp_diff_micro() 96 diff.tv_nsec = now.tv_nsec - tstamp->tv_nsec; in timestamp_diff_micro()
|
H A D | pcm-multi-thread.c | 62 snd_htimestamp_t tstamp; in peeper() local 84 &tstamp); in peeper()
|
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_generic.c | 274 snd_htimestamp_t *tstamp) in snd_pcm_generic_htimestamp() 277 return snd_pcm_htimestamp(generic->slave, avail, tstamp); in snd_pcm_generic_htimestamp() 281 * taking the tstamp via gettimestamp(). 284 snd_htimestamp_t *tstamp) in snd_pcm_generic_real_htimestamp() 296 gettimestamp(tstamp, pcm->tstamp_type); in snd_pcm_generic_real_htimestamp() 273 snd_pcm_generic_htimestamp(snd_pcm_t *pcm, snd_pcm_uframes_t *avail, snd_htimestamp_t *tstamp) snd_pcm_generic_htimestamp() argument 283 snd_pcm_generic_real_htimestamp(snd_pcm_t *pcm, snd_pcm_uframes_t *avail, snd_htimestamp_t *tstamp) snd_pcm_generic_real_htimestamp() argument
|
H A D | pcm_generic.h | 157 snd_htimestamp_t *tstamp);
|
/third_party/alsa-lib/include/sound/uapi/ |
H A D | asound.h | 484 struct timespec tstamp; /* reference timestamp */ member 494 struct timespec driver_tstamp; /* useful in case reference system tstamp is reported with delay */ 529 struct __snd_timespec tstamp; /* Timestamp */ member 571 struct __snd_timespec64 tstamp; /* Timestamp */ member 776 struct timespec tstamp; /* Timestamp */ member 958 struct timespec tstamp; /* Timestamp - last update */ member 1018 struct timespec tstamp; member
|
/third_party/pulseaudio/src/modules/rtp/ |
H A D | rtp.h | 40 int pa_rtp_recv(pa_rtp_context *c, pa_memchunk *chunk, pa_mempool *pool, uint32_t *rtp_tstamp, struct timeval *tstamp);
|
H A D | rtp-native.c | 192 int pa_rtp_recv(pa_rtp_context *c, pa_memchunk *chunk, pa_mempool *pool, uint32_t *rtp_tstamp, struct timeval *tstamp) { in pa_rtp_recv() argument 357 memcpy(tstamp, CMSG_DATA(cm), sizeof(struct timeval)); in pa_rtp_recv() 364 pa_zero(*tstamp); in pa_rtp_recv()
|
/third_party/libsnd/programs/ |
H A D | sndfile-play.c | 309 { struct timeval now, diff, tstamp ; in alsa_write_float() 312 snd_pcm_status_get_trigger_tstamp (status, &tstamp) ; in alsa_write_float() 313 timersub (&now, &tstamp, &diff) ; in alsa_write_float()
|
/third_party/alsa-lib/include/ |
H A D | ump.h | 39 ssize_t snd_ump_tread(snd_ump_t *ump, struct timespec *tstamp, void *buffer, size_t size);
|
H A D | rawmidi.h | 170 ssize_t snd_rawmidi_tread(snd_rawmidi_t *rmidi, struct timespec *tstamp, void *buffer, size_t size);
|