Home
last modified time | relevance | path

Searched refs:gregs (Results 1 – 8 of 8) sorted by relevance

/drivers/memory/
Dfsl_ifc.c64 if (!fsl_ifc_ctrl_dev || !fsl_ifc_ctrl_dev->gregs) in fsl_ifc_find()
68 u32 cspr = ifc_in32(&fsl_ifc_ctrl_dev->gregs->cspr_cs[i].cspr); in fsl_ifc_find()
80 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_init()
109 iounmap(ctrl->gregs); in fsl_ifc_ctrl_remove()
162 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_irq()
231 fsl_ifc_ctrl_dev->gregs = of_iomap(dev->dev.of_node, 0); in fsl_ifc_ctrl_probe()
232 if (!fsl_ifc_ctrl_dev->gregs) { in fsl_ifc_ctrl_probe()
246 version = ifc_in32(&fsl_ifc_ctrl_dev->gregs->ifc_rev) & in fsl_ifc_ctrl_probe()
256 addr = fsl_ifc_ctrl_dev->gregs; in fsl_ifc_ctrl_probe()
/drivers/net/ethernet/sun/
Dsunqe.c62 static inline int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument
66 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset()
68 u32 tmp = sbus_readl(gregs + GLOB_CTRL); in qec_global_reset()
145 void __iomem *gregs = qecp->gregs; in qe_init() local
167 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE); in qe_init()
172 sbus_readl(gregs + GLOB_RSIZE); in qe_init()
474 qec_status = sbus_readl(qecp->gregs + GLOB_STAT); in qec_interrupt()
721 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); in qec_init_once()
723 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL); in qec_init_once()
725 sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL); in qec_init_once()
[all …]
Dsunbmac.c79 static int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument
83 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset()
85 if (sbus_readl(gregs + GLOB_CTRL) & GLOB_CTRL_RESET) { in qec_global_reset()
100 void __iomem *gregs = bp->gregs; in qec_init() local
111 sbus_writel(regval | GLOB_CTRL_BMODE, gregs + GLOB_CTRL); in qec_init()
112 sbus_writel(GLOB_PSIZE_2048, gregs + GLOB_PSIZE); in qec_init()
116 gregs + GLOB_MSIZE); in qec_init()
120 gregs + GLOB_TSIZE); in qec_init()
122 gregs + GLOB_RSIZE); in qec_init()
623 void __iomem *gregs = bp->gregs; in bigmac_init_hw() local
[all …]
Dsunhme.c914 static void happy_meal_stop(struct happy_meal *hp, void __iomem *gregs) in happy_meal_stop() argument
921 hme_write32(hp, gregs + GREG_SWRESET, GREG_RESET_ALL); in happy_meal_stop()
922 while (hme_read32(hp, gregs + GREG_SWRESET) && --tries) in happy_meal_stop()
1423 void __iomem *gregs = hp->gregs; in happy_meal_init() local
1448 happy_meal_stop(hp, gregs); in happy_meal_init()
1572 hme_read32(hp, gregs + GREG_CFG))); in happy_meal_init()
1576 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST64); in happy_meal_init()
1602 hme_write32(hp, gregs + GREG_CFG, gcfg); in happy_meal_init()
1605 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST32); in happy_meal_init()
1608 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST16); in happy_meal_init()
[all …]
Dsunbmac.h289 void __iomem *gregs; /* QEC Global Registers */ member
Dsunqe.h314 void __iomem *gregs; /* QEC Global Registers */ member
Dsunhme.h401 void __iomem *gregs; /* Happy meal global registers */ member
/drivers/mtd/nand/
Dfsl_ifc_nand.c754 struct fsl_ifc_global __iomem *ifc_global = ctrl->gregs; in fsl_ifc_sram_init()
805 struct fsl_ifc_global __iomem *ifc_global = ctrl->gregs; in fsl_ifc_chip_init()
970 if (match_bank(fsl_ifc_ctrl_dev->gregs, bank, res.start)) in fsl_ifc_nand_probe()