Lines Matching refs:hrdata
71 HRandomData hrdata; in h_random() local
79 qemu_sem_init(&hrdata.sem, 0); in h_random()
80 hrdata.val.v64 = 0; in h_random()
81 hrdata.received = 0; in h_random()
83 while (hrdata.received < 8) { in h_random()
84 rng_backend_request_entropy(rngstate->backend, 8 - hrdata.received, in h_random()
85 random_recv, &hrdata); in h_random()
87 qemu_sem_wait(&hrdata.sem); in h_random()
91 qemu_sem_destroy(&hrdata.sem); in h_random()
92 args[0] = hrdata.val.v64; in h_random()
100 HRandomData hrdata; in spapr_rng_read_darn() local
108 qemu_sem_init(&hrdata.sem, 0); in spapr_rng_read_darn()
109 hrdata.val.v64 = 0; in spapr_rng_read_darn()
110 hrdata.received = 0; in spapr_rng_read_darn()
112 while (hrdata.received < 8) { in spapr_rng_read_darn()
113 rng_backend_request_entropy(rngstate->backend, 8 - hrdata.received, in spapr_rng_read_darn()
114 random_recv, &hrdata); in spapr_rng_read_darn()
116 qemu_sem_wait(&hrdata.sem); in spapr_rng_read_darn()
120 qemu_sem_destroy(&hrdata.sem); in spapr_rng_read_darn()
121 return hrdata.val.v64; in spapr_rng_read_darn()