Home
last modified time | relevance | path

Searched refs:rng_base (Results 1 – 5 of 5) sorted by relevance

/linux-2.6.39/drivers/char/hw_random/
Dmxc-rnga.c66 void __iomem *rng_base = (void __iomem *)rng->priv; in mxc_rnga_data_present() local
69 level = ((__raw_readl(rng_base + RNGA_STATUS) & in mxc_rnga_data_present()
79 void __iomem *rng_base = (void __iomem *)rng->priv; in mxc_rnga_data_read() local
82 *data = __raw_readl(rng_base + RNGA_OUTPUT_FIFO); in mxc_rnga_data_read()
85 err = __raw_readl(rng_base + RNGA_STATUS) & RNGA_STATUS_ERROR_INT; in mxc_rnga_data_read()
90 ctrl = __raw_readl(rng_base + RNGA_CONTROL); in mxc_rnga_data_read()
92 rng_base + RNGA_CONTROL); in mxc_rnga_data_read()
101 void __iomem *rng_base = (void __iomem *)rng->priv; in mxc_rnga_init() local
104 ctrl = __raw_readl(rng_base + RNGA_CONTROL); in mxc_rnga_init()
105 __raw_writel(ctrl & ~RNGA_CONTROL_SLEEP, rng_base + RNGA_CONTROL); in mxc_rnga_init()
[all …]
Dixp4xx-rng.c31 void __iomem * rng_base = (void __iomem *)rng->priv; in ixp4xx_rng_data_read() local
33 *buffer = __raw_readl(rng_base); in ixp4xx_rng_data_read()
45 void __iomem * rng_base; in ixp4xx_rng_init() local
48 rng_base = ioremap(0x70002100, 4); in ixp4xx_rng_init()
49 if (!rng_base) in ixp4xx_rng_init()
51 ixp4xx_rng_ops.priv = (unsigned long)rng_base; in ixp4xx_rng_init()
54 iounmap(rng_base); in ixp4xx_rng_init()
61 void __iomem * rng_base = (void __iomem *)ixp4xx_rng_ops.priv; in ixp4xx_rng_exit() local
64 iounmap(rng_base); in ixp4xx_rng_exit()
Dpicoxcell-rng.c34 static void __iomem *rng_base; variable
40 return __raw_readl(rng_base + CSR_REG_OFFSET); in picoxcell_trng_read_csr()
56 __raw_writel(0, rng_base + TAI_REG_OFFSET); in picoxcell_trng_start()
57 __raw_writel(0, rng_base + CSR_REG_OFFSET); in picoxcell_trng_start()
62 __raw_writel(TRNG_BLOCK_RESET_MASK, rng_base + CSR_REG_OFFSET); in picoxcell_trng_reset()
63 __raw_writel(TRNG_BLOCK_RESET_MASK, rng_base + TAI_REG_OFFSET); in picoxcell_trng_reset()
93 *(u32 *)buf = __raw_readl(rng_base + DATA_REG_OFFSET); in picoxcell_trng_read()
118 rng_base = devm_ioremap(&pdev->dev, mem->start, resource_size(mem)); in picoxcell_trng_probe()
119 if (!rng_base) { in picoxcell_trng_probe()
Domap-rng.c47 static void __iomem *rng_base; variable
53 return __raw_readl(rng_base + reg); in omap_rng_read_reg()
58 __raw_writel(val, rng_base + reg); in omap_rng_write_reg()
125 rng_base = ioremap(res->start, resource_size(res)); in omap_rng_probe()
126 if (!rng_base) { in omap_rng_probe()
144 iounmap(rng_base); in omap_rng_probe()
145 rng_base = NULL; in omap_rng_probe()
164 iounmap(rng_base); in omap_rng_remove()
172 rng_base = NULL; in omap_rng_remove()
Dgeode-rng.c92 unsigned long rng_base; in mod_init() local
103 rng_base = pci_resource_start(pdev, 0); in mod_init()
104 if (rng_base == 0) in mod_init()
107 mem = ioremap(rng_base, 0x58); in mod_init()