Lines Matching refs:rng_priv
29 struct mpfs_rng *rng_priv = container_of(rng, struct mpfs_rng, rng); in mpfs_rng_read() local
49 ret = mpfs_blocking_transaction(rng_priv->sys_controller, &msg); in mpfs_rng_read()
67 struct mpfs_rng *rng_priv; in mpfs_rng_probe() local
70 rng_priv = devm_kzalloc(dev, sizeof(*rng_priv), GFP_KERNEL); in mpfs_rng_probe()
71 if (!rng_priv) in mpfs_rng_probe()
74 rng_priv->sys_controller = mpfs_sys_controller_get(&pdev->dev); in mpfs_rng_probe()
75 if (IS_ERR(rng_priv->sys_controller)) in mpfs_rng_probe()
76 return dev_err_probe(dev, PTR_ERR(rng_priv->sys_controller), in mpfs_rng_probe()
79 rng_priv->rng.read = mpfs_rng_read; in mpfs_rng_probe()
80 rng_priv->rng.name = pdev->name; in mpfs_rng_probe()
82 platform_set_drvdata(pdev, rng_priv); in mpfs_rng_probe()
84 ret = devm_hwrng_register(&pdev->dev, &rng_priv->rng); in mpfs_rng_probe()