/illumos-gate/usr/src/uts/sun4v/io/n2rng/ |
H A D | n2rng_debug.c | 33 #include <sys/n2rng.h> 48 n2rng_dprintf(n2rng_t *n2rng, int level, const char *fmt, ...) argument 55 if (n2rng == NULL) { 59 ddi_driver_name(n2rng->n_dip), 60 ddi_get_instance(n2rng->n_dip), fmt); 69 n2rng_error(n2rng_t *n2rng, const char *fmt, ...) argument 73 n2rng_dipverror(n2rng->n_dip, fmt, ap);
|
H A D | n2rng_kstat.c | 35 #include <sys/n2rng.h> 46 n2rng_ksinit(n2rng_t *n2rng) argument 53 if (ddi_getprop(DDI_DEV_T_ANY, n2rng->n_dip, 62 instance = ddi_get_instance(n2rng->n_dip); 67 n2rng->n_ksp = kstat_create(DRIVER, instance, NULL, "misc", 71 if (n2rng->n_ksp == NULL) { 72 n2rng_error(n2rng, "unable to create kstats"); 74 n2rng_stat_t *dkp = (n2rng_stat_t *)n2rng->n_ksp->ks_data; 83 if (n2rng_iscontrol(n2rng)) { 85 for (i = 0; i < n2rng 114 n2rng_ksdeinit(n2rng_t *n2rng) argument 129 n2rng_t *n2rng; local [all...] |
H A D | n2rng_provider.c | 41 #include <sys/n2rng.h> 66 fips_random(n2rng_t *n2rng, uint8_t *out, size_t nbytes) argument 79 frsp = &n2rng->n_frs.fipsarray[ 80 atomic_inc_32_nv(&n2rng->n_frs.fips_round_robin_j) % 87 if ((rv = n2rng_getentropy(n2rng, (void *)&entropy.as64[1], 97 n2rng_failure(n2rng); 111 * n2rng->n_frs.fips_round_robin_j. We increment the 118 frsp = &n2rng->n_frs.fipsarray[ 119 atomic_inc_32_nv(&n2rng->n_frs.fips_round_robin_j) % 134 n2rng_unconfigured(n2rng); 162 n2rng_fips_random_init(n2rng_t *n2rng, fipsrandomstruct_t *frsp) argument [all...] |
H A D | n2rng_entp_setup.c | 44 #include <sys/n2rng.h> 136 n2rng_logic_test(n2rng_t *n2rng, int rngid) argument 144 rng_entry_t *rng = &n2rng->n_ctl_data->n_rngs[rngid]; 166 rv = n2rng_collect_diag_bits(n2rng, rngid, &logictest, buffer, 170 cmn_err(CE_WARN, "n2rng: n2rng_collect_diag_bits failed with " 196 DBG2(n2rng, DHEALTH, "n2rng: logic error on rng(%d), only %d " 199 DBG3(n2rng, DHEALTH, "buffer[%d] %016llx, cycles = %d", 204 DBG3(n2rng, DHEALTH, "n2rng 220 n2rng_collect_metrics(n2rng_t *n2rng, int rngid, n2rng_setup_t *setupp, n2rng_setup_t *exit_setupp, uint64_t exit_state, n2rng_osc_perf_t *metricp) argument 256 collect_rng_perf(n2rng_t *n2rng, int rngid, n2rng_osc_perf_table_t ptable) argument 307 n2rng_noise_gen_preferred(n2rng_t *n2rng, int rngid) argument 437 n2rng_do_health_check(n2rng_t *n2rng, int rngid) argument [all...] |
H A D | n2rng_kcf.c | 39 #include <sys/n2rng.h> 54 void n2rng_ksinit(n2rng_t *n2rng); 55 void n2rng_ksdeinit(n2rng_t *n2rng); 57 static int fips_init(n2rng_t *n2rng); 58 static void fips_fini(n2rng_t *n2rng); 59 int fips_random(n2rng_t *n2rng, uint8_t *out, size_t nbytes); 126 n2rng_t *n2rng = (n2rng_t *)prov; local 157 ddi_driver_name(n2rng->n_dip), 158 ddi_get_instance(n2rng->n_dip)); 183 n2rng_t *n2rng local 193 n2rng_register_provider(n2rng_t *n2rng) argument 224 n2rng_unregister_provider(n2rng_t *n2rng) argument 250 n2rng_failure(n2rng_t *n2rng) argument 287 n2rng_unconfigured(n2rng_t *n2rng) argument 326 n2rng_init(n2rng_t *n2rng) argument 373 n2rng_uninit(n2rng_t *n2rng) argument 414 n2rng_t *n2rng = (n2rng_t *)provider; local 426 fips_init(n2rng_t *n2rng) argument 447 fips_fini(n2rng_t *n2rng) argument [all...] |
H A D | n2rng.c | 49 #include <sys/n2rng.h> 163 n2rng_t *n2rng = NULL; local 172 * Only instance 0 of n2rng driver is allowed. 181 n2rng = (n2rng_t *)ddi_get_soft_state(n2rng_softstate, 183 if (n2rng == NULL) { 187 return (n2rng_resume(n2rng)); 200 n2rng = (n2rng_t *)ddi_get_soft_state(n2rng_softstate, instance); 201 ASSERT(n2rng != NULL); 202 n2rng->n_dip = dip; 204 mutex_init(&n2rng 331 n2rng_t *n2rng; local 385 n2rng_suspend(n2rng_t *n2rng) argument 398 n2rng_resume(n2rng_t *n2rng) argument 448 cyclesleep(n2rng_t *n2rng, uint64_t delay_sticks) argument 513 n2rng_collect_diag_bits(n2rng_t *n2rng, int rngid, n2rng_setup_t *collect_setupp, void *buffer, int numbytes, n2rng_setup_t *exit_setupp, uint64_t exitstate) argument 721 n2rng_getentropy(n2rng_t *n2rng, void *buffer, size_t size) argument 810 n2rng_ctl_read(n2rng_t *n2rng, int rngid, uint64_t ctlregs_pa, uint64_t *state, uint64_t *tdelta, uint64_t *wdelta) argument 832 n2rng_ctl_wait(n2rng_t *n2rng, int rngid) argument 894 n2rng_ctl_write(n2rng_t *n2rng, int rngid, uint64_t ctlregs_pa, uint64_t newstate, uint64_t wtimeout, uint64_t *tdelta) argument 916 n2rng_data_read_diag(n2rng_t *n2rng, int rngid, uint64_t data_pa, size_t datalen, uint64_t *tdelta) argument 936 n2rng_check_ctl_access(n2rng_t *n2rng) argument 962 n2rng_config_retry(n2rng_t *n2rng, clock_t seconds) argument 995 n2rng_init_ctl(n2rng_t *n2rng) argument 1137 n2rng_uninit_ctl(n2rng_t *n2rng) argument 1159 n2rng_config_test(n2rng_t *n2rng) argument 1223 n2rng_config(n2rng_t *n2rng) argument 1362 n2rng_t *n2rng = (n2rng_t *)targ; local [all...] |
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | n2rng.h | 59 #define DRIVER "n2rng" 157 #define n2rng_setcontrol(n2rng) ((n2rng)->n_flags |= N2RNG_CONTROL) 158 #define n2rng_clrcontrol(n2rng) ((n2rng)->n_flags &= ~N2RNG_CONTROL) 159 #define n2rng_iscontrol(n2rng) ((n2rng)->n_flags & N2RNG_CONTROL) 161 #define n2rng_setfailed(n2rng) ((n2rng)->n_flags |= N2RNG_FAILED) 162 #define n2rng_clrfailed(n2rng) ((n2rn 220 typedef struct n2rng { struct [all...] |