Lines Matching refs:unit

111 						   unsigned long unit)  in n2rng_generic_read_control_v2()  argument
117 hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state, in n2rng_generic_read_control_v2()
148 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument
152 return n2rng_generic_read_control_v2(ra, unit); in n2rng_control_settle_v2()
155 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument
168 watchdog_timeout, unit); in n2rng_write_ctl_one()
170 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one()
203 unsigned long unit, in n2rng_read_diag_data_one() argument
214 unit, ticks); in n2rng_read_diag_data_one()
222 unsigned long unit, in n2rng_generic_read_diag_data() argument
230 hv_err = n2rng_read_diag_data_one(np, unit, in n2rng_generic_read_diag_data()
252 unsigned long unit, in n2rng_generic_write_control() argument
259 hv_err = n2rng_write_ctl_one(np, unit, state, control_ra, in n2rng_generic_write_control()
463 static int n2rng_entropy_diag_read(struct n2rng *np, unsigned long unit, in n2rng_entropy_diag_read() argument
473 err = n2rng_generic_write_control(np, pre_ctl_ra, unit, pre_state); in n2rng_entropy_diag_read()
477 err = n2rng_generic_read_diag_data(np, unit, in n2rng_entropy_diag_read()
480 (void) n2rng_generic_write_control(np, post_ctl_ra, unit, in n2rng_entropy_diag_read()
522 static int n2rng_check_selftest_buffer(struct n2rng *np, unsigned long unit) in n2rng_check_selftest_buffer() argument
550 dev_err(&np->op->dev, "Selftest failed on unit %lu\n", unit); in n2rng_check_selftest_buffer()
553 dev_info(&np->op->dev, "Selftest passed on unit %lu\n", unit); in n2rng_check_selftest_buffer()
558 static int n2rng_control_selftest(struct n2rng *np, unsigned long unit) in n2rng_control_selftest() argument
588 err = n2rng_entropy_diag_read(np, unit, np->test_control, in n2rng_control_selftest()
592 &np->units[unit].control[0], in n2rng_control_selftest()
597 return n2rng_check_selftest_buffer(np, unit); in n2rng_control_selftest()
617 int unit, err; in n2rng_control_configure_units() local
620 for (unit = 0; unit < np->num_units; unit++) { in n2rng_control_configure_units()
621 struct n2rng_unit *up = &np->units[unit]; in n2rng_control_configure_units()
651 err = n2rng_generic_write_control(np, ctl_ra, unit, in n2rng_control_configure_units()