Lines Matching refs:event
173 random_harvestq_fast_process_event(struct harvest_event *event) in random_harvestq_fast_process_event() argument
175 p_random_alg_context->ra_event_processor(event); in random_harvestq_fast_process_event()
176 explicit_bzero(event, sizeof(*event)); in random_harvestq_fast_process_event()
448 struct harvest_event event; in random_early_prime() local
451 len = rounddown(len, sizeof(event.he_entropy)); in random_early_prime()
455 for (i = 0; i < len; i += sizeof(event.he_entropy)) { in random_early_prime()
456 event.he_somecounter = (uint32_t)get_cyclecount(); in random_early_prime()
457 event.he_size = sizeof(event.he_entropy); in random_early_prime()
458 event.he_source = RANDOM_CACHED; in random_early_prime()
459 event.he_destination = in random_early_prime()
461 memcpy(event.he_entropy, entropy + i, sizeof(event.he_entropy)); in random_early_prime()
462 random_harvestq_fast_process_event(&event); in random_early_prime()
554 struct harvest_event *event; in random_harvest_queue_() local
562 event = harvest_context.hc_entropy_ring.ring + ring_in; in random_harvest_queue_()
563 event->he_somecounter = (uint32_t)get_cyclecount(); in random_harvest_queue_()
564 event->he_source = origin; in random_harvest_queue_()
565 event->he_destination = harvest_context.hc_destination[origin]++; in random_harvest_queue_()
566 if (size <= sizeof(event->he_entropy)) { in random_harvest_queue_()
567 event->he_size = size; in random_harvest_queue_()
568 memcpy(event->he_entropy, entropy, size); in random_harvest_queue_()
572 event->he_size = sizeof(event->he_entropy[0]); in random_harvest_queue_()
573 event->he_entropy[0] = jenkins_hash(entropy, size, (uint32_t)(uintptr_t)event); in random_harvest_queue_()
605 struct harvest_event event; in random_harvest_direct_() local
608 size = MIN(size, sizeof(event.he_entropy)); in random_harvest_direct_()
609 event.he_somecounter = (uint32_t)get_cyclecount(); in random_harvest_direct_()
610 event.he_size = size; in random_harvest_direct_()
611 event.he_source = origin; in random_harvest_direct_()
612 event.he_destination = harvest_context.hc_destination[origin]++; in random_harvest_direct_()
613 memcpy(event.he_entropy, entropy, size); in random_harvest_direct_()
614 random_harvestq_fast_process_event(&event); in random_harvest_direct_()