Lines Matching refs:event

166 random_harvestq_fast_process_event(struct harvest_event *event)  in random_harvestq_fast_process_event()  argument
168 p_random_alg_context->ra_event_processor(event); in random_harvestq_fast_process_event()
169 explicit_bzero(event, sizeof(*event)); in random_harvestq_fast_process_event()
343 const struct harvest_event *event) in copy_event() argument
346 memcpy(dst, event->he_entropy, event->he_size); in copy_event()
347 if (event->he_source <= RANDOM_ENVIRONMENTAL_END) { in copy_event()
356 dst[HARVESTSIZE] = event->he_somecounter; in copy_event()
362 const struct harvest_event *event) in random_healthtest_rct_init() argument
365 copy_event(ht->ht_rct_value, event); in random_healthtest_rct_init()
376 const struct harvest_event *event) in random_healthtest_rct_next() argument
380 copy_event(val, event); in random_healthtest_rct_next()
393 const struct harvest_event *event) in random_healthtest_apt_init() argument
397 copy_event(ht->ht_apt_value, event); in random_healthtest_apt_init()
402 const struct harvest_event *event) in random_healthtest_apt_next() argument
407 random_healthtest_apt_init(ht, event); in random_healthtest_apt_next()
411 copy_event(val, event); in random_healthtest_apt_next()
430 random_harvest_healthtest(const struct harvest_event *event) in random_harvest_healthtest() argument
434 ht = &healthtest[event->he_source]; in random_harvest_healthtest()
448 random_healthtest_rct_init(ht, event); in random_harvest_healthtest()
449 random_healthtest_apt_init(ht, event); in random_harvest_healthtest()
459 if (random_healthtest_rct_next(ht, event) && in random_harvest_healthtest()
460 random_healthtest_apt_next(ht, event)) { in random_harvest_healthtest()
466 random_source_descr[event->he_source]); in random_harvest_healthtest()
474 random_source_descr[event->he_source]); in random_harvest_healthtest()
745 struct harvest_event event; in random_early_prime() local
748 len = rounddown(len, sizeof(event.he_entropy)); in random_early_prime()
752 for (i = 0; i < len; i += sizeof(event.he_entropy)) { in random_early_prime()
753 event.he_somecounter = random_get_cyclecount(); in random_early_prime()
754 event.he_size = sizeof(event.he_entropy); in random_early_prime()
755 event.he_source = RANDOM_CACHED; in random_early_prime()
756 event.he_destination = in random_early_prime()
758 memcpy(event.he_entropy, entropy + i, sizeof(event.he_entropy)); in random_early_prime()
759 random_harvestq_fast_process_event(&event); in random_early_prime()
851 struct harvest_event *event; in random_harvest_queue_() local
860 event = &buf->ring[buf->pos++]; in random_harvest_queue_()
861 event->he_somecounter = random_get_cyclecount(); in random_harvest_queue_()
862 event->he_source = origin; in random_harvest_queue_()
863 event->he_destination = hc->hc_destination[origin]++; in random_harvest_queue_()
864 if (size <= sizeof(event->he_entropy)) { in random_harvest_queue_()
865 event->he_size = size; in random_harvest_queue_()
866 memcpy(event->he_entropy, entropy, size); in random_harvest_queue_()
869 event->he_size = sizeof(event->he_entropy[0]); in random_harvest_queue_()
870 event->he_entropy[0] = jenkins_hash(entropy, size, (uint32_t)(uintptr_t)event); in random_harvest_queue_()
902 struct harvest_event event; in random_harvest_direct_() local
905 size = MIN(size, sizeof(event.he_entropy)); in random_harvest_direct_()
906 event.he_somecounter = random_get_cyclecount(); in random_harvest_direct_()
907 event.he_size = size; in random_harvest_direct_()
908 event.he_source = origin; in random_harvest_direct_()
909 event.he_destination = harvest_context.hc_destination[origin]++; in random_harvest_direct_()
910 memcpy(event.he_entropy, entropy, size); in random_harvest_direct_()
911 random_harvestq_fast_process_event(&event); in random_harvest_direct_()