Searched refs:rng_buffer (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/char/hw_random/
H A Dcore.c59 /* Protects rng read functions, data_avail, rng_buffer and rng_fillbuf */
62 static u8 *rng_buffer, *rng_fillbuf; variable
243 bytes_read = rng_get_data(rng, rng_buffer, rng_dev_read()
265 if (copy_to_user(buf + ret, rng_buffer + data_avail, rng_dev_read()
451 if (!rng_buffer) { hwrng_register()
452 rng_buffer = kmalloc(rng_buffer_size(), GFP_KERNEL); hwrng_register()
453 if (!rng_buffer) hwrng_register()
459 kfree(rng_buffer); hwrng_register()
579 kfree(rng_buffer); hwrng_modexit()

Completed in 44 milliseconds