Lines Matching full:rng
22 /* Enable the RNG hardware and activate the VF */
26 struct cavium_rng_pf *rng; in cavium_rng_probe() local
29 rng = devm_kzalloc(&pdev->dev, sizeof(*rng), GFP_KERNEL); in cavium_rng_probe()
30 if (!rng) in cavium_rng_probe()
33 /*Map the RNG control */ in cavium_rng_probe()
34 rng->control_status = pcim_iomap(pdev, 0, 0); in cavium_rng_probe()
35 if (!rng->control_status) { in cavium_rng_probe()
41 /* Enable the RNG hardware and entropy source */ in cavium_rng_probe()
43 rng->control_status); in cavium_rng_probe()
45 pci_set_drvdata(pdev, rng); in cavium_rng_probe()
47 /* Enable the Cavium RNG as a VF */ in cavium_rng_probe()
50 /* Disable the RNG hardware and entropy source */ in cavium_rng_probe()
51 writeq(0, rng->control_status); in cavium_rng_probe()
53 "Error initializing RNG virtual function,(%i).\n", in cavium_rng_probe()
61 /* Disable VF and RNG Hardware */
64 struct cavium_rng_pf *rng; in cavium_rng_remove() local
66 rng = pci_get_drvdata(pdev); in cavium_rng_remove()
71 /* Disable the RNG hardware and entropy source */ in cavium_rng_remove()
72 writeq(0, rng->control_status); in cavium_rng_remove()