Lines Matching full:rng
25 /* Enable the RNG hardware and activate the VF */
29 struct cavium_rng_pf *rng; in cavium_rng_probe() local
32 rng = devm_kzalloc(&pdev->dev, sizeof(*rng), GFP_KERNEL); in cavium_rng_probe()
33 if (!rng) in cavium_rng_probe()
36 /*Map the RNG control */ in cavium_rng_probe()
37 rng->control_status = pcim_iomap(pdev, 0, 0); in cavium_rng_probe()
38 if (!rng->control_status) { in cavium_rng_probe()
44 /* Enable the RNG hardware and entropy source */ in cavium_rng_probe()
46 rng->control_status); in cavium_rng_probe()
48 pci_set_drvdata(pdev, rng); in cavium_rng_probe()
50 /* Enable the Cavium RNG as a VF */ in cavium_rng_probe()
53 /* Disable the RNG hardware and entropy source */ in cavium_rng_probe()
54 writeq(0, rng->control_status); in cavium_rng_probe()
56 "Error initializing RNG virtual function,(%i).\n", in cavium_rng_probe()
64 /* Disable VF and RNG Hardware */
67 struct cavium_rng_pf *rng; in cavium_rng_remove() local
69 rng = pci_get_drvdata(pdev); in cavium_rng_remove()
74 /* Disable the RNG hardware and entropy source */ in cavium_rng_remove()
75 writeq(0, rng->control_status); in cavium_rng_remove()