/src/sys/crypto/cprng_fast/ |
cprng_fast.c | 38 #include <sys/cprng.h> 87 struct cprng_fast *const cprng = p; 90 cprng->epoch = entropy_epoch(); 92 cprng_fast_seed(cprng, seed); 95 cprng->reseed_evcnt = kmem_alloc(sizeof(*cprng->reseed_evcnt), 97 evcnt_attach_dynamic(cprng->reseed_evcnt, EVCNT_TYPE_MISC, NULL, 105 struct cprng_fast *cprng; 108 *cprngp = cprng = percpu_getref(cprng_fast_percpu); 111 if (__predict_false(cprng->epoch != entropy_epoch()) 86 struct cprng_fast *const cprng = p; local in function:cprng_fast_init_cpu 103 struct cprng_fast *cprng; local in function:cprng_fast_get 136 struct cprng_fast *cprng; local in function:cprng_fast_intr 194 struct cprng_fast *cprng; local in function:cprng_fast_buf_short [all...] |
cprng_fast.c | 38 #include <sys/cprng.h> 87 struct cprng_fast *const cprng = p; 90 cprng->epoch = entropy_epoch(); 92 cprng_fast_seed(cprng, seed); 95 cprng->reseed_evcnt = kmem_alloc(sizeof(*cprng->reseed_evcnt), 97 evcnt_attach_dynamic(cprng->reseed_evcnt, EVCNT_TYPE_MISC, NULL, 105 struct cprng_fast *cprng; 108 *cprngp = cprng = percpu_getref(cprng_fast_percpu); 111 if (__predict_false(cprng->epoch != entropy_epoch()) 86 struct cprng_fast *const cprng = p; local in function:cprng_fast_init_cpu 103 struct cprng_fast *cprng; local in function:cprng_fast_get 136 struct cprng_fast *cprng; local in function:cprng_fast_intr 194 struct cprng_fast *cprng; local in function:cprng_fast_buf_short [all...] |
/src/sys/kern/ |
subr_cprng.c | 59 #include <sys/cprng.h> 100 /* Well-known CPRNG instances */ 114 * Create CPRNG instances at two IPLs: IPL_SOFTSERIAL for 193 struct cprng_strong *cprng; local in function:cprng_strong_create 195 cprng = kmem_alloc(sizeof(*cprng), KM_SLEEP); 196 cprng->cs_iplcookie = makeiplcookie(ipl); 197 cprng->cs_percpu = percpu_create(sizeof(struct cprng_cpu), 200 return cprng; 204 cprng_strong_destroy(struct cprng_strong *cprng) [all...] |
subr_cprng.c | 59 #include <sys/cprng.h> 100 /* Well-known CPRNG instances */ 114 * Create CPRNG instances at two IPLs: IPL_SOFTSERIAL for 193 struct cprng_strong *cprng; local in function:cprng_strong_create 195 cprng = kmem_alloc(sizeof(*cprng), KM_SLEEP); 196 cprng->cs_iplcookie = makeiplcookie(ipl); 197 cprng->cs_percpu = percpu_create(sizeof(struct cprng_cpu), 200 return cprng; 204 cprng_strong_destroy(struct cprng_strong *cprng) [all...] |