ep93xx_rtc 36 drivers/rtc/rtc-ep93xx.c struct ep93xx_rtc *ep93xx_rtc = dev_get_platdata(dev); ep93xx_rtc 39 drivers/rtc/rtc-ep93xx.c comp = readl(ep93xx_rtc->mmio_base + EP93XX_RTC_SWCOMP); ep93xx_rtc 54 drivers/rtc/rtc-ep93xx.c struct ep93xx_rtc *ep93xx_rtc = dev_get_platdata(dev); ep93xx_rtc 57 drivers/rtc/rtc-ep93xx.c time = readl(ep93xx_rtc->mmio_base + EP93XX_RTC_DATA); ep93xx_rtc 65 drivers/rtc/rtc-ep93xx.c struct ep93xx_rtc *ep93xx_rtc = dev_get_platdata(dev); ep93xx_rtc 68 drivers/rtc/rtc-ep93xx.c writel(secs + 1, ep93xx_rtc->mmio_base + EP93XX_RTC_LOAD); ep93xx_rtc 124 drivers/rtc/rtc-ep93xx.c struct ep93xx_rtc *ep93xx_rtc; ep93xx_rtc 128 drivers/rtc/rtc-ep93xx.c ep93xx_rtc = devm_kzalloc(&pdev->dev, sizeof(*ep93xx_rtc), GFP_KERNEL); ep93xx_rtc 129 drivers/rtc/rtc-ep93xx.c if (!ep93xx_rtc) ep93xx_rtc 133 drivers/rtc/rtc-ep93xx.c ep93xx_rtc->mmio_base = devm_ioremap_resource(&pdev->dev, res); ep93xx_rtc 134 drivers/rtc/rtc-ep93xx.c if (IS_ERR(ep93xx_rtc->mmio_base)) ep93xx_rtc 135 drivers/rtc/rtc-ep93xx.c return PTR_ERR(ep93xx_rtc->mmio_base); ep93xx_rtc 137 drivers/rtc/rtc-ep93xx.c platform_set_drvdata(pdev, ep93xx_rtc); ep93xx_rtc 139 drivers/rtc/rtc-ep93xx.c ep93xx_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); ep93xx_rtc 140 drivers/rtc/rtc-ep93xx.c if (IS_ERR(ep93xx_rtc->rtc)) ep93xx_rtc 141 drivers/rtc/rtc-ep93xx.c return PTR_ERR(ep93xx_rtc->rtc); ep93xx_rtc 143 drivers/rtc/rtc-ep93xx.c ep93xx_rtc->rtc->ops = &ep93xx_rtc_ops; ep93xx_rtc 144 drivers/rtc/rtc-ep93xx.c ep93xx_rtc->rtc->range_max = U32_MAX; ep93xx_rtc 146 drivers/rtc/rtc-ep93xx.c err = rtc_add_group(ep93xx_rtc->rtc, &ep93xx_rtc_sysfs_files); ep93xx_rtc 150 drivers/rtc/rtc-ep93xx.c return rtc_register_device(ep93xx_rtc->rtc);