Lines Matching refs:unit
110 unsigned long unit) in n2rng_generic_read_control_v2() argument
116 hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state, in n2rng_generic_read_control_v2()
147 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument
151 return n2rng_generic_read_control_v2(ra, unit); in n2rng_control_settle_v2()
154 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument
167 watchdog_timeout, unit); in n2rng_write_ctl_one()
169 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one()
202 unsigned long unit, in n2rng_read_diag_data_one() argument
213 unit, ticks); in n2rng_read_diag_data_one()
221 unsigned long unit, in n2rng_generic_read_diag_data() argument
229 hv_err = n2rng_read_diag_data_one(np, unit, in n2rng_generic_read_diag_data()
251 unsigned long unit, in n2rng_generic_write_control() argument
258 hv_err = n2rng_write_ctl_one(np, unit, state, control_ra, in n2rng_generic_write_control()
462 static int n2rng_entropy_diag_read(struct n2rng *np, unsigned long unit, in n2rng_entropy_diag_read() argument
472 err = n2rng_generic_write_control(np, pre_ctl_ra, unit, pre_state); in n2rng_entropy_diag_read()
476 err = n2rng_generic_read_diag_data(np, unit, in n2rng_entropy_diag_read()
479 (void) n2rng_generic_write_control(np, post_ctl_ra, unit, in n2rng_entropy_diag_read()
521 static int n2rng_check_selftest_buffer(struct n2rng *np, unsigned long unit) in n2rng_check_selftest_buffer() argument
549 dev_err(&np->op->dev, "Selftest failed on unit %lu\n", unit); in n2rng_check_selftest_buffer()
552 dev_info(&np->op->dev, "Selftest passed on unit %lu\n", unit); in n2rng_check_selftest_buffer()
557 static int n2rng_control_selftest(struct n2rng *np, unsigned long unit) in n2rng_control_selftest() argument
587 err = n2rng_entropy_diag_read(np, unit, np->test_control, in n2rng_control_selftest()
591 &np->units[unit].control[0], in n2rng_control_selftest()
596 return n2rng_check_selftest_buffer(np, unit); in n2rng_control_selftest()
616 int unit, err; in n2rng_control_configure_units() local
619 for (unit = 0; unit < np->num_units; unit++) { in n2rng_control_configure_units()
620 struct n2rng_unit *up = &np->units[unit]; in n2rng_control_configure_units()
650 err = n2rng_generic_write_control(np, ctl_ra, unit, in n2rng_control_configure_units()