Lines Matching defs:ent
67 isc_entropy_t *ent = source->ent;
90 entropypool_adddata(ent, buf, n, n * 8);
107 isc_entropy_t *ent = source->ent;
222 entropypool_adddata(ent, buf, n, n * 8);
243 fillpool(isc_entropy_t *ent, unsigned int desired, isc_boolean_t blocking) {
250 REQUIRE(VALID_ENTROPY(ent));
277 if ((ent->pool.entropy >= RND_POOLBITS / 4)
278 && (ent->pool.pseudo <= RND_POOLBITS / 4))
290 needed = ISC_MIN(needed, RND_POOLBITS - ent->pool.entropy);
297 if (ent->initialized < THRESHOLD_BITS)
298 needed = ISC_MAX(needed, THRESHOLD_BITS - ent->initialized);
310 if (ent->nextsource == NULL) {
311 ent->nextsource = ISC_LIST_HEAD(ent->sources);
312 if (ent->nextsource == NULL)
315 source = ent->nextsource;
317 for (nsource = 0; nsource < ent->nsources; nsource++) {
341 source = ISC_LIST_HEAD(ent->sources);
343 ent->nextsource = source;
348 fds = wait_for_sources(ent);
357 source = ISC_LIST_HEAD(ent->sources);
378 if (ent->initialized < THRESHOLD_BITS)
379 ent->initialized += added;
383 wait_for_sources(isc_entropy_t *ent) {
394 source = ISC_LIST_HEAD(ent->sources);
481 isc_entropy_createfilesource(isc_entropy_t *ent, const char *fname) {
489 REQUIRE(VALID_ENTROPY(ent));
492 LOCK(&ent->lock);
551 source = isc_mem_get(ent->mctx, sizeof(isc_entropysource_t));
561 source->ent = ent;
584 ISC_LIST_APPEND(ent->sources, source, link);
585 ent->nsources++;
587 UNLOCK(&ent->lock);
594 UNLOCK(&ent->lock);