Lines Matching refs:vbase
265 void __iomem *vbase; member
273 void __iomem *vbase; member
327 mbmr = __raw_readl(pdata->vbase + REG_MBMR_OFFSET + in cpc925_init_csrows()
329 mbbar = __raw_readl(pdata->vbase + REG_MBBAR_OFFSET + in cpc925_init_csrows()
387 apimask = __raw_readl(pdata->vbase + REG_APIMASK_OFFSET); in cpc925_mc_init()
390 __raw_writel(apimask, pdata->vbase + REG_APIMASK_OFFSET); in cpc925_mc_init()
394 mccr = __raw_readl(pdata->vbase + REG_MCCR_OFFSET); in cpc925_mc_init()
397 __raw_writel(mccr, pdata->vbase + REG_MCCR_OFFSET); in cpc925_mc_init()
529 apiexcp = __raw_readl(pdata->vbase + REG_APIEXCP_OFFSET); in cpc925_mc_check()
533 mesr = __raw_readl(pdata->vbase + REG_MESR_OFFSET); in cpc925_mc_check()
536 mear = __raw_readl(pdata->vbase + REG_MEAR_OFFSET); in cpc925_mc_check()
560 __raw_readl(pdata->vbase + REG_APIMASK_OFFSET)); in cpc925_mc_check()
564 __raw_readl(pdata->vbase + REG_MSCR_OFFSET)); in cpc925_mc_check()
566 __raw_readl(pdata->vbase + REG_MSRSR_OFFSET)); in cpc925_mc_check()
568 __raw_readl(pdata->vbase + REG_MSRER_OFFSET)); in cpc925_mc_check()
570 __raw_readl(pdata->vbase + REG_MSPR_OFFSET)); in cpc925_mc_check()
572 __raw_readl(pdata->vbase + REG_MCCR_OFFSET)); in cpc925_mc_check()
574 __raw_readl(pdata->vbase + REG_MCRER_OFFSET)); in cpc925_mc_check()
620 apimask = __raw_readl(dev_info->vbase + REG_APIMASK_OFFSET); in cpc925_cpu_init()
632 __raw_writel(apimask, dev_info->vbase + REG_APIMASK_OFFSET); in cpc925_cpu_init()
660 apiexcp = __raw_readl(dev_info->vbase + REG_APIEXCP_OFFSET); in cpc925_cpu_check()
667 apimask = __raw_readl(dev_info->vbase + REG_APIMASK_OFFSET); in cpc925_cpu_check()
682 ht_errctrl = __raw_readl(dev_info->vbase + REG_ERRCTRL_OFFSET); in cpc925_htlink_init()
685 __raw_writel(ht_errctrl, dev_info->vbase + REG_ERRCTRL_OFFSET); in cpc925_htlink_init()
694 ht_errctrl = __raw_readl(dev_info->vbase + REG_ERRCTRL_OFFSET); in cpc925_htlink_exit()
696 __raw_writel(ht_errctrl, dev_info->vbase + REG_ERRCTRL_OFFSET); in cpc925_htlink_exit()
703 u32 brgctrl = __raw_readl(dev_info->vbase + REG_BRGCTRL_OFFSET); in cpc925_htlink_check()
704 u32 linkctrl = __raw_readl(dev_info->vbase + REG_LINKCTRL_OFFSET); in cpc925_htlink_check()
705 u32 errctrl = __raw_readl(dev_info->vbase + REG_ERRCTRL_OFFSET); in cpc925_htlink_check()
706 u32 linkerr = __raw_readl(dev_info->vbase + REG_LINKERR_OFFSET); in cpc925_htlink_check()
728 dev_info->vbase + REG_BRGCTRL_OFFSET); in cpc925_htlink_check()
732 dev_info->vbase + REG_LINKCTRL_OFFSET); in cpc925_htlink_check()
737 dev_info->vbase + REG_BRGCTRL_OFFSET); in cpc925_htlink_check()
741 dev_info->vbase + REG_ERRCTRL_OFFSET); in cpc925_htlink_check()
745 dev_info->vbase + REG_LINKERR_OFFSET); in cpc925_htlink_check()
773 static void cpc925_add_edac_devices(void __iomem *vbase) in cpc925_add_edac_devices() argument
777 if (!vbase) { in cpc925_add_edac_devices()
783 dev_info->vbase = vbase; in cpc925_add_edac_devices()
870 mscr = __raw_readl(pdata->vbase + REG_MSCR_OFFSET); in cpc925_get_sdram_scrub_rate()
886 static int cpc925_mc_get_channels(void __iomem *vbase) in cpc925_mc_get_channels() argument
891 mbcr = __raw_readl(vbase + REG_MBCR_OFFSET); in cpc925_mc_get_channels()
911 void __iomem *vbase; in cpc925_probe() local
939 vbase = devm_ioremap(&pdev->dev, r->start, resource_size(r)); in cpc925_probe()
940 if (!vbase) { in cpc925_probe()
946 nr_channels = cpc925_mc_get_channels(vbase) + 1; in cpc925_probe()
963 pdata->vbase = vbase; in cpc925_probe()
994 cpc925_add_edac_devices(vbase); in cpc925_probe()