Lines Matching defs:time

70 	__u64 prev_time;	/* SENSITIVE Previous time stamp */
93 /* LSB of time stamp to process */
114 * variations (2nd derivation of time is
145 * @delta_masked [in] Masked time delta to process
251 * 1st derivative of the jitter measurement (time delta)
252 * 2nd derivative of the jitter measurement (delta of time deltas)
253 * 3rd derivative of the jitter measurement (delta of delta of time deltas)
258 * @current_delta [in] Jitter time delta
273 * Insert the result of the comparison of two back-to-back time
327 __u64 time = 0;
332 jent_get_nstime(&time);
338 time ^= ec->data;
340 * We fold the time value as much as possible to ensure that as many
341 * bits of the time stamp are included as possible.
344 shuffle ^= time & mask;
345 time = time >> bits;
357 * execution time jitter
359 * This function injects the individual bits of the time value into the
366 * the CPU execution time jitter. Any change to the loop in this function
370 * @time [in] time stamp to be injected
373 * @stuck [in] Is the time stamp identified as stuck?
380 static void jent_lfsr_time(struct rand_data *ec, __u64 time, __u64 loop_cnt,
400 __u64 tmp = time << (DATA_SIZE_BITS - i);
426 * If the time stamp is stuck, do not finally insert the value into
428 * even when the time stamp has no entropy, SP800-90B requires that
503 * This is the heart of the entropy generation: calculate time deltas and
504 * use the CPU jitter in the time deltas. The jitter is injected into the
517 __u64 time = 0;
521 /* Invoke one noise source before time measurement to add variations */
525 * Get time stamp and calculate time delta to previous
528 jent_get_nstime(&time);
529 current_delta = jent_delta(ec->prev_time, time);
530 ec->prev_time = time;
738 __u64 time = 0;
745 jent_get_nstime(&time);
746 ec.prev_time = time;
747 jent_lfsr_time(&ec, time, 0, 0);
751 if (!time || !time2)
753 delta = jent_delta(time, time2);
800 if (!(time2 > time))
804 lowdelta = time2 - time;
822 * we allow up to three times the time running backwards.
832 * Variations of deltas of time must on average be larger
840 * Ensure that we have variations in the time stamp below 10 for at