vt8500_rtc 81 drivers/rtc/rtc-vt8500.c struct vt8500_rtc *vt8500_rtc = dev_id; vt8500_rtc 85 drivers/rtc/rtc-vt8500.c spin_lock(&vt8500_rtc->lock); vt8500_rtc 88 drivers/rtc/rtc-vt8500.c isr = readl(vt8500_rtc->regbase + VT8500_RTC_IS); vt8500_rtc 89 drivers/rtc/rtc-vt8500.c writel(isr, vt8500_rtc->regbase + VT8500_RTC_IS); vt8500_rtc 91 drivers/rtc/rtc-vt8500.c spin_unlock(&vt8500_rtc->lock); vt8500_rtc 96 drivers/rtc/rtc-vt8500.c rtc_update_irq(vt8500_rtc->rtc, 1, events); vt8500_rtc 103 drivers/rtc/rtc-vt8500.c struct vt8500_rtc *vt8500_rtc = dev_get_drvdata(dev); vt8500_rtc 106 drivers/rtc/rtc-vt8500.c date = readl(vt8500_rtc->regbase + VT8500_RTC_DR); vt8500_rtc 107 drivers/rtc/rtc-vt8500.c time = readl(vt8500_rtc->regbase + VT8500_RTC_TR); vt8500_rtc 123 drivers/rtc/rtc-vt8500.c struct vt8500_rtc *vt8500_rtc = dev_get_drvdata(dev); vt8500_rtc 135 drivers/rtc/rtc-vt8500.c vt8500_rtc->regbase + VT8500_RTC_DS); vt8500_rtc 140 drivers/rtc/rtc-vt8500.c vt8500_rtc->regbase + VT8500_RTC_TS); vt8500_rtc 147 drivers/rtc/rtc-vt8500.c struct vt8500_rtc *vt8500_rtc = dev_get_drvdata(dev); vt8500_rtc 150 drivers/rtc/rtc-vt8500.c alarm = readl(vt8500_rtc->regbase + VT8500_RTC_AS); vt8500_rtc 151 drivers/rtc/rtc-vt8500.c isr = readl(vt8500_rtc->regbase + VT8500_RTC_IS); vt8500_rtc 166 drivers/rtc/rtc-vt8500.c struct vt8500_rtc *vt8500_rtc = dev_get_drvdata(dev); vt8500_rtc 173 drivers/rtc/rtc-vt8500.c vt8500_rtc->regbase + VT8500_RTC_AS); vt8500_rtc 180 drivers/rtc/rtc-vt8500.c struct vt8500_rtc *vt8500_rtc = dev_get_drvdata(dev); vt8500_rtc 181 drivers/rtc/rtc-vt8500.c unsigned long tmp = readl(vt8500_rtc->regbase + VT8500_RTC_AS); vt8500_rtc 188 drivers/rtc/rtc-vt8500.c writel(tmp, vt8500_rtc->regbase + VT8500_RTC_AS); vt8500_rtc 202 drivers/rtc/rtc-vt8500.c struct vt8500_rtc *vt8500_rtc; vt8500_rtc 206 drivers/rtc/rtc-vt8500.c vt8500_rtc = devm_kzalloc(&pdev->dev, vt8500_rtc 207 drivers/rtc/rtc-vt8500.c sizeof(struct vt8500_rtc), GFP_KERNEL); vt8500_rtc 208 drivers/rtc/rtc-vt8500.c if (!vt8500_rtc) vt8500_rtc 211 drivers/rtc/rtc-vt8500.c spin_lock_init(&vt8500_rtc->lock); vt8500_rtc 212 drivers/rtc/rtc-vt8500.c platform_set_drvdata(pdev, vt8500_rtc); vt8500_rtc 214 drivers/rtc/rtc-vt8500.c vt8500_rtc->irq_alarm = platform_get_irq(pdev, 0); vt8500_rtc 215 drivers/rtc/rtc-vt8500.c if (vt8500_rtc->irq_alarm < 0) vt8500_rtc 216 drivers/rtc/rtc-vt8500.c return vt8500_rtc->irq_alarm; vt8500_rtc 219 drivers/rtc/rtc-vt8500.c vt8500_rtc->regbase = devm_ioremap_resource(&pdev->dev, res); vt8500_rtc 220 drivers/rtc/rtc-vt8500.c if (IS_ERR(vt8500_rtc->regbase)) vt8500_rtc 221 drivers/rtc/rtc-vt8500.c return PTR_ERR(vt8500_rtc->regbase); vt8500_rtc 225 drivers/rtc/rtc-vt8500.c vt8500_rtc->regbase + VT8500_RTC_CR); vt8500_rtc 227 drivers/rtc/rtc-vt8500.c vt8500_rtc->rtc = devm_rtc_device_register(&pdev->dev, "vt8500-rtc", vt8500_rtc 229 drivers/rtc/rtc-vt8500.c if (IS_ERR(vt8500_rtc->rtc)) { vt8500_rtc 230 drivers/rtc/rtc-vt8500.c ret = PTR_ERR(vt8500_rtc->rtc); vt8500_rtc 236 drivers/rtc/rtc-vt8500.c ret = devm_request_irq(&pdev->dev, vt8500_rtc->irq_alarm, vt8500_rtc 237 drivers/rtc/rtc-vt8500.c vt8500_rtc_irq, 0, "rtc alarm", vt8500_rtc); vt8500_rtc 240 drivers/rtc/rtc-vt8500.c vt8500_rtc->irq_alarm, ret); vt8500_rtc 252 drivers/rtc/rtc-vt8500.c struct vt8500_rtc *vt8500_rtc = platform_get_drvdata(pdev); vt8500_rtc 255 drivers/rtc/rtc-vt8500.c writel(0, vt8500_rtc->regbase + VT8500_RTC_IS);