Lines Matching refs:mmdc_base
103 void __iomem *mmdc_base; member
189 void __iomem *mmdc_base, *reg; in mmdc_pmu_read_counter() local
191 mmdc_base = pmu_mmdc->mmdc_base; in mmdc_pmu_read_counter()
195 reg = mmdc_base + MMDC_MADPSR0; in mmdc_pmu_read_counter()
198 reg = mmdc_base + MMDC_MADPSR1; in mmdc_pmu_read_counter()
201 reg = mmdc_base + MMDC_MADPSR2; in mmdc_pmu_read_counter()
204 reg = mmdc_base + MMDC_MADPSR3; in mmdc_pmu_read_counter()
207 reg = mmdc_base + MMDC_MADPSR4; in mmdc_pmu_read_counter()
210 reg = mmdc_base + MMDC_MADPSR5; in mmdc_pmu_read_counter()
337 void __iomem *mmdc_base, *reg; in mmdc_pmu_event_start() local
340 mmdc_base = pmu_mmdc->mmdc_base; in mmdc_pmu_event_start()
341 reg = mmdc_base + MMDC_MADPCR0; in mmdc_pmu_event_start()
358 reg = mmdc_base + MMDC_MADPCR1; in mmdc_pmu_event_start()
361 reg = mmdc_base + MMDC_MADPCR0; in mmdc_pmu_event_start()
393 void __iomem *mmdc_base, *reg; in mmdc_pmu_event_stop() local
395 mmdc_base = pmu_mmdc->mmdc_base; in mmdc_pmu_event_stop()
396 reg = mmdc_base + MMDC_MADPCR0; in mmdc_pmu_event_stop()
400 reg = mmdc_base + MMDC_MADPCR1; in mmdc_pmu_event_stop()
444 void __iomem *mmdc_base, struct device *dev) in mmdc_pmu_init() argument
459 .mmdc_base = mmdc_base, in mmdc_pmu_init()
479 static int imx_mmdc_perf_init(struct platform_device *pdev, void __iomem *mmdc_base) in imx_mmdc_perf_init() argument
506 mmdc_num = mmdc_pmu_init(pmu_mmdc, mmdc_base, &pdev->dev); in imx_mmdc_perf_init()
542 #define imx_mmdc_perf_init(pdev, mmdc_base) 0 argument
548 void __iomem *mmdc_base, *reg; in imx_mmdc_probe() local
551 mmdc_base = of_iomap(np, 0); in imx_mmdc_probe()
552 WARN_ON(!mmdc_base); in imx_mmdc_probe()
554 reg = mmdc_base + MMDC_MDMISC; in imx_mmdc_probe()
560 reg = mmdc_base + MMDC_MAPSR; in imx_mmdc_probe()
567 return imx_mmdc_perf_init(pdev, mmdc_base); in imx_mmdc_probe()