Lines Matching refs:samples
78 * Size of the input event queue in samples.
118 isc_uint32_t nsamples; /*%< number of samples filled in */
119 isc_uint32_t *samples; /*%< the samples */
120 isc_uint32_t *extra; /*%< extra samples added in */
195 REQUIRE(sq->samples != NULL);
198 isc_mem_put(ent->mctx, sq->samples, RND_EVENTQSIZE * 4);
200 sq->samples = NULL;
206 sq->samples = isc_mem_get(ent->mctx, RND_EVENTQSIZE * 4);
207 if (sq->samples == NULL)
212 isc_mem_put(ent->mctx, sq->samples, RND_EVENTQSIZE * 4);
213 sq->samples = NULL;
446 sq->last_time = sq->samples[0];
451 * Prime the values by adding in the first 4 samples in. This
455 (void)estimate_entropy(sq, sq->samples[ns]);
458 added += estimate_entropy(sq, sq->samples[ns]);
460 entropypool_adddata(ent, sq->samples, sq->nsamples * 4, added);
464 * Move the last 4 samples into the first 4 positions, and start
465 * adding new samples from that point.
468 sq->samples[ns] = sq->samples[sq->nsamples - 4 + ns];
1012 sq->samples[sq->nsamples] = sample;