Lines Matching +full:semi +full:- +full:static
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2006-2007 PA Semi, Inc
33 static int pasemi_rng_data_present(struct hwrng *rng, int wait) in pasemi_rng_data_present()
35 void __iomem *rng_regs = (void __iomem *)rng->priv; in pasemi_rng_data_present()
48 static int pasemi_rng_data_read(struct hwrng *rng, u32 *data) in pasemi_rng_data_read()
50 void __iomem *rng_regs = (void __iomem *)rng->priv; in pasemi_rng_data_read()
55 static int pasemi_rng_init(struct hwrng *rng) in pasemi_rng_init()
57 void __iomem *rng_regs = (void __iomem *)rng->priv; in pasemi_rng_init()
67 static void pasemi_rng_cleanup(struct hwrng *rng) in pasemi_rng_cleanup()
69 void __iomem *rng_regs = (void __iomem *)rng->priv; in pasemi_rng_cleanup()
77 static struct hwrng pasemi_rng = {
85 static int rng_probe(struct platform_device *pdev) in rng_probe()
95 pr_info("Registering PA Semi RNG\n"); in rng_probe()
96 return devm_hwrng_register(&pdev->dev, &pasemi_rng); in rng_probe()
99 static const struct of_device_id rng_match[] = {
100 { .compatible = "1682m-rng", },
101 { .compatible = "pasemi,pwrficient-rng", },
106 static struct platform_driver rng_driver = {
108 .name = "pasemi-rng",
118 MODULE_DESCRIPTION("H/W RNG driver for PA Semi processor");