Lines Matching full:rng

56 #define	RNG_CTRL		0x00		/* RNG Control Register */
67 #define RNG_RBGEN_BIT 0x00000001 /* Enable RNG bit */
69 #define BCM2835_RNG_STATUS 0x04 /* BCM2835 RNG status register */
70 #define BCM2838_RNG_STATUS 0x18 /* BCM2838 RNG status register */
77 #define BCM2835_RND_VAL_WARM_CNT 0x40000 /* RNG Warm Up count */
78 #define BCM2835_RND_WARM_CNT 0xfffff /* RNG Warm Up Count mask */
80 #define BCM2835_RNG_DATA 0x08 /* RNG Data Register */
153 {"broadcom,bcm2835-rng", (uintptr_t)&bcm2835_rng_conf},
154 {"brcm,bcm2835-rng", (uintptr_t)&bcm2835_rng_conf},
157 {"brcm,bcm2838-rng", (uintptr_t)&bcm2838_rng_conf},
159 {"brcm,bcm7211-rng", (uintptr_t)&bcm2838_rng_conf},
160 {"brcm,bcm7278-rng", (uintptr_t)&bcm2838_rng_conf},
204 /* Display RNG control register contents */ in bcm2835_rng_dump_registers()
228 "Use RNG clock (APB clock)"); in bcm2835_rng_dump_registers()
235 sbuf_cat(sbp, " RNG_RBG2X: RNG 2X SPEED enabled\n"); in bcm2835_rng_dump_registers()
240 /* Display RNG status register contents */ in bcm2835_rng_dump_registers()
282 /* Enable the RNG */ in bcm2835_rng_start()
295 /* Disable the RNG */ in bcm2835_rng_stop()
350 "RNG stalled, disabling device\n"); in bcm2835_rng_harvest()
365 CTR2(KTR_DEV, "%s: %d words available in RNG FIFO", in bcm2835_rng_harvest()
396 /* Reset the RNG */ in sysctl_bcm2835_rng_2xspeed()
433 device_set_desc(dev, "Broadcom BCM2835/BCM2838 RNG"); in bcm2835_rng_probe()
471 /* Start the RNG */ in bcm2835_rng_attach()
499 RNG_STALL_COUNT_DEFAULT, "Number of underruns to assume RNG stall"); in bcm2835_rng_attach()
503 sysctl_bcm2835_rng_dump, "S", "Dump RNG registers"); in bcm2835_rng_attach()
508 * hardware RNG plenty of time to generate the first random bytes. in bcm2835_rng_attach()
522 /* Stop the RNG */ in bcm2835_rng_detach()