Lines Matching refs:rng_mem
91 static void *rng_mem; /* token to our ioremap'd RNG register area */ variable
100 assert (rng_mem != NULL); in rng_hwstatus()
101 return readb (rng_mem + RNG_HW_STATUS); in rng_hwstatus()
106 assert (rng_mem != NULL); in rng_hwstatus_set()
107 writeb (hw_status, rng_mem + RNG_HW_STATUS); in rng_hwstatus_set()
114 assert (rng_mem != NULL); in rng_data_present()
116 return (readb (rng_mem + RNG_STATUS) & RNG_DATA_PRESENT) ? 1 : 0; in rng_data_present()
122 assert (rng_mem != NULL); in rng_data_read()
124 return readb (rng_mem + RNG_DATA); in rng_data_read()
295 rng_mem = ioremap (RNG_ADDR, RNG_ADDR_LEN); in rng_init_one()
296 if (rng_mem == NULL) { in rng_init_one()
324 iounmap (rng_mem); in rng_init_one()
397 iounmap (rng_mem); in rng_cleanup()