Lines Matching refs:mmio_regs
934 void __iomem *mmio_regs = NULL;
1005 mmio_regs = ioremap_nocache(reg4_start + C2_PCI_REGS_OFFSET,
1007 if (!mmio_regs) {
1016 if (c2_magic[i] != readb(mmio_regs + C2_REGS_MAGIC + i)) {
1021 readb(mmio_regs + C2_REGS_MAGIC + i),
1024 iounmap(mmio_regs);
1031 if (be32_to_cpu((__force __be32) readl(mmio_regs + C2_REGS_VERS)) != C2_VERSION) {
1034 be32_to_cpu((__force __be32) readl(mmio_regs + C2_REGS_VERS)),
1037 iounmap(mmio_regs);
1042 if (be32_to_cpu((__force __be32) readl(mmio_regs + C2_REGS_IVN)) != C2_IVN) {
1046 be32_to_cpu((__force __be32) readl(mmio_regs + C2_REGS_IVN)),
1049 iounmap(mmio_regs);
1059 iounmap(mmio_regs);
1070 (be32_to_cpu((__force __be32) readl(mmio_regs + C2_REGS_HRX_CUR)) -
1078 iounmap(mmio_regs);
1086 if ((netdev = c2_devinit(c2dev, mmio_regs)) == NULL) {
1087 iounmap(mmio_regs);
1091 /* Save off the actual size prior to unmapping mmio_regs */
1092 kva_map_size = be32_to_cpu((__force __be32) readl(mmio_regs + C2_REGS_PCI_WINSIZE));
1095 iounmap(mmio_regs);