Home
last modified time | relevance | path

Searched refs:rtcdrv (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/rtc/
Drtc-sirfsoc.c59 static u32 sirfsoc_rtc_readl(struct sirfsoc_rtc_drv *rtcdrv, u32 offset) in sirfsoc_rtc_readl() argument
63 regmap_read(rtcdrv->regmap, rtcdrv->rtc_base + offset, &val); in sirfsoc_rtc_readl()
67 static void sirfsoc_rtc_writel(struct sirfsoc_rtc_drv *rtcdrv, in sirfsoc_rtc_writel() argument
70 regmap_write(rtcdrv->regmap, rtcdrv->rtc_base + offset, val); in sirfsoc_rtc_writel()
77 struct sirfsoc_rtc_drv *rtcdrv; in sirfsoc_rtc_read_alarm() local
79 rtcdrv = dev_get_drvdata(dev); in sirfsoc_rtc_read_alarm()
81 spin_lock_irq(&rtcdrv->lock); in sirfsoc_rtc_read_alarm()
83 rtc_count = sirfsoc_rtc_readl(rtcdrv, RTC_CN); in sirfsoc_rtc_read_alarm()
85 rtc_alarm = sirfsoc_rtc_readl(rtcdrv, RTC_ALARM0); in sirfsoc_rtc_read_alarm()
94 rtc_time_to_tm((rtcdrv->overflow_rtc + 1) in sirfsoc_rtc_read_alarm()
[all …]
Drtc-goldfish.c47 struct goldfish_rtc *rtcdrv; in goldfish_rtc_read_alarm() local
49 rtcdrv = dev_get_drvdata(dev); in goldfish_rtc_read_alarm()
50 base = rtcdrv->base; in goldfish_rtc_read_alarm()
72 struct goldfish_rtc *rtcdrv; in goldfish_rtc_set_alarm() local
79 rtcdrv = dev_get_drvdata(dev); in goldfish_rtc_set_alarm()
80 base = rtcdrv->base; in goldfish_rtc_set_alarm()
108 struct goldfish_rtc *rtcdrv; in goldfish_rtc_alarm_irq_enable() local
110 rtcdrv = dev_get_drvdata(dev); in goldfish_rtc_alarm_irq_enable()
111 base = rtcdrv->base; in goldfish_rtc_alarm_irq_enable()
123 struct goldfish_rtc *rtcdrv = dev_id; in goldfish_rtc_interrupt() local
[all …]