Home
last modified time | relevance | path

Searched refs:rtc (Results 1 – 25 of 247) sorted by relevance

12345678910

/linux-2.6.39/drivers/rtc/
Drtc-dev.c26 struct rtc_device *rtc = container_of(inode->i_cdev, in rtc_dev_open() local
28 const struct rtc_class_ops *ops = rtc->ops; in rtc_dev_open()
30 if (test_and_set_bit_lock(RTC_DEV_BUSY, &rtc->flags)) in rtc_dev_open()
33 file->private_data = rtc; in rtc_dev_open()
35 err = ops->open ? ops->open(rtc->dev.parent) : 0; in rtc_dev_open()
37 spin_lock_irq(&rtc->irq_lock); in rtc_dev_open()
38 rtc->irq_data = 0; in rtc_dev_open()
39 spin_unlock_irq(&rtc->irq_lock); in rtc_dev_open()
45 clear_bit_unlock(RTC_DEV_BUSY, &rtc->flags); in rtc_dev_open()
56 struct rtc_device *rtc = in rtc_uie_task() local
[all …]
DMakefile7 obj-$(CONFIG_RTC_LIB) += rtc-lib.o
9 obj-$(CONFIG_RTC_CLASS) += rtc-core.o
10 rtc-core-y := class.o interface.o
12 rtc-core-$(CONFIG_RTC_INTF_DEV) += rtc-dev.o
13 rtc-core-$(CONFIG_RTC_INTF_PROC) += rtc-proc.o
14 rtc-core-$(CONFIG_RTC_INTF_SYSFS) += rtc-sysfs.o
18 obj-$(CONFIG_RTC_DRV_AB3100) += rtc-ab3100.o
19 obj-$(CONFIG_RTC_DRV_AB8500) += rtc-ab8500.o
20 obj-$(CONFIG_RTC_DRV_AT32AP700X)+= rtc-at32ap700x.o
21 obj-$(CONFIG_RTC_DRV_AT91RM9200)+= rtc-at91rm9200.o
[all …]
Dinterface.c19 static int rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer);
20 static void rtc_timer_remove(struct rtc_device *rtc, struct rtc_timer *timer);
22 static int __rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in __rtc_read_time() argument
25 if (!rtc->ops) in __rtc_read_time()
27 else if (!rtc->ops->read_time) in __rtc_read_time()
31 err = rtc->ops->read_time(rtc->dev.parent, tm); in __rtc_read_time()
36 int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_read_time() argument
40 err = mutex_lock_interruptible(&rtc->ops_lock); in rtc_read_time()
44 err = __rtc_read_time(rtc, tm); in rtc_read_time()
45 mutex_unlock(&rtc->ops_lock); in rtc_read_time()
[all …]
Drtc-sh.c105 static int __sh_rtc_interrupt(struct sh_rtc *rtc) in __sh_rtc_interrupt() argument
109 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_interrupt()
112 writeb(tmp, rtc->regbase + RCR1); in __sh_rtc_interrupt()
115 if (pending && rtc->periodic_freq & PF_OXS) in __sh_rtc_interrupt()
116 rtc_update_irq(rtc->rtc_dev, 1, RTC_UF | RTC_IRQF); in __sh_rtc_interrupt()
121 static int __sh_rtc_alarm(struct sh_rtc *rtc) in __sh_rtc_alarm() argument
125 tmp = readb(rtc->regbase + RCR1); in __sh_rtc_alarm()
128 writeb(tmp, rtc->regbase + RCR1); in __sh_rtc_alarm()
131 rtc_update_irq(rtc->rtc_dev, 1, RTC_AF | RTC_IRQF); in __sh_rtc_alarm()
136 static int __sh_rtc_periodic(struct sh_rtc *rtc) in __sh_rtc_periodic() argument
[all …]
Drtc-lpc32xx.c60 struct rtc_device *rtc; member
67 struct lpc32xx_rtc *rtc = dev_get_drvdata(dev); in lpc32xx_rtc_read_time() local
69 elapsed_sec = rtc_readl(rtc, LPC32XX_RTC_UCOUNT); in lpc32xx_rtc_read_time()
77 struct lpc32xx_rtc *rtc = dev_get_drvdata(dev); in lpc32xx_rtc_set_mmss() local
80 spin_lock_irq(&rtc->lock); in lpc32xx_rtc_set_mmss()
83 tmp = rtc_readl(rtc, LPC32XX_RTC_CTRL); in lpc32xx_rtc_set_mmss()
84 rtc_writel(rtc, LPC32XX_RTC_CTRL, tmp | LPC32XX_RTC_CTRL_CNTR_DIS); in lpc32xx_rtc_set_mmss()
85 rtc_writel(rtc, LPC32XX_RTC_UCOUNT, secs); in lpc32xx_rtc_set_mmss()
86 rtc_writel(rtc, LPC32XX_RTC_DCOUNT, 0xFFFFFFFF - secs); in lpc32xx_rtc_set_mmss()
87 rtc_writel(rtc, LPC32XX_RTC_CTRL, tmp &= ~LPC32XX_RTC_CTRL_CNTR_DIS); in lpc32xx_rtc_set_mmss()
[all …]
Drtc-jz4740.c43 struct rtc_device *rtc; member
50 static inline uint32_t jz4740_rtc_reg_read(struct jz4740_rtc *rtc, size_t reg) in jz4740_rtc_reg_read() argument
52 return readl(rtc->base + reg); in jz4740_rtc_reg_read()
55 static int jz4740_rtc_wait_write_ready(struct jz4740_rtc *rtc) in jz4740_rtc_wait_write_ready() argument
61 ctrl = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_CTRL); in jz4740_rtc_wait_write_ready()
67 static inline int jz4740_rtc_reg_write(struct jz4740_rtc *rtc, size_t reg, in jz4740_rtc_reg_write() argument
71 ret = jz4740_rtc_wait_write_ready(rtc); in jz4740_rtc_reg_write()
73 writel(val, rtc->base + reg); in jz4740_rtc_reg_write()
78 static int jz4740_rtc_ctrl_set_bits(struct jz4740_rtc *rtc, uint32_t mask, in jz4740_rtc_ctrl_set_bits() argument
85 spin_lock_irqsave(&rtc->lock, flags); in jz4740_rtc_ctrl_set_bits()
[all …]
Drtc-at32ap700x.c62 struct rtc_device *rtc; member
72 struct rtc_at32ap700x *rtc = dev_get_drvdata(dev); in at32_rtc_readtime() local
75 now = rtc_readl(rtc, VAL); in at32_rtc_readtime()
83 struct rtc_at32ap700x *rtc = dev_get_drvdata(dev); in at32_rtc_settime() local
89 rtc_writel(rtc, VAL, now); in at32_rtc_settime()
96 struct rtc_at32ap700x *rtc = dev_get_drvdata(dev); in at32_rtc_readalarm() local
98 spin_lock_irq(&rtc->lock); in at32_rtc_readalarm()
99 rtc_time_to_tm(rtc->alarm_time, &alrm->time); in at32_rtc_readalarm()
100 alrm->enabled = rtc_readl(rtc, IMR) & RTC_BIT(IMR_TOPI) ? 1 : 0; in at32_rtc_readalarm()
101 alrm->pending = rtc_readl(rtc, ISR) & RTC_BIT(ISR_TOPI) ? 1 : 0; in at32_rtc_readalarm()
[all …]
Dclass.c30 struct rtc_device *rtc = to_rtc_device(dev); in rtc_device_release() local
32 idr_remove(&rtc_idr, rtc->id); in rtc_device_release()
34 kfree(rtc); in rtc_device_release()
49 struct rtc_device *rtc = to_rtc_device(dev); in rtc_suspend() local
53 if (strcmp(dev_name(&rtc->dev), CONFIG_RTC_HCTOSYS_DEVICE) != 0) in rtc_suspend()
56 rtc_read_time(rtc, &tm); in rtc_suspend()
69 struct rtc_device *rtc = to_rtc_device(dev); in rtc_resume() local
74 if (strcmp(dev_name(&rtc->dev), CONFIG_RTC_HCTOSYS_DEVICE) != 0) in rtc_resume()
77 rtc_read_time(rtc, &tm); in rtc_resume()
79 pr_debug("%s: bogus resume time\n", dev_name(&rtc->dev)); in rtc_resume()
[all …]
Drtc-pcf50633.c68 static void pcf2rtc_time(struct rtc_time *rtc, struct pcf50633_time *pcf) in pcf2rtc_time() argument
70 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); in pcf2rtc_time()
71 rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); in pcf2rtc_time()
72 rtc->tm_hour = bcd2bin(pcf->time[PCF50633_TI_HOUR]); in pcf2rtc_time()
73 rtc->tm_wday = bcd2bin(pcf->time[PCF50633_TI_WKDAY]); in pcf2rtc_time()
74 rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); in pcf2rtc_time()
75 rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; in pcf2rtc_time()
76 rtc->tm_year = bcd2bin(pcf->time[PCF50633_TI_YEAR]) + 100; in pcf2rtc_time()
79 static void rtc2pcf_time(struct pcf50633_time *pcf, struct rtc_time *rtc) in rtc2pcf_time() argument
81 pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); in rtc2pcf_time()
[all …]
Drtc-at91sam9.c62 #define rtt_readl(rtc, field) \ argument
63 __raw_readl((rtc)->rtt + AT91_RTT_ ## field)
64 #define rtt_writel(rtc, field, val) \ argument
65 __raw_writel((val), (rtc)->rtt + AT91_RTT_ ## field)
67 #define gpbr_readl(rtc) \ argument
69 #define gpbr_writel(rtc, val) \ argument
77 struct sam9_rtc *rtc = dev_get_drvdata(dev); in at91_rtc_readtime() local
82 offset = gpbr_readl(rtc); in at91_rtc_readtime()
87 secs = rtt_readl(rtc, VR); in at91_rtc_readtime()
88 secs2 = rtt_readl(rtc, VR); in at91_rtc_readtime()
[all …]
Drtc-pl030.c27 struct rtc_device *rtc; member
33 struct pl030_rtc *rtc = dev_id; in pl030_interrupt() local
34 writel(0, rtc->base + RTC_EOI); in pl030_interrupt()
40 struct pl030_rtc *rtc = dev_get_drvdata(dev); in pl030_read_alarm() local
42 rtc_time_to_tm(readl(rtc->base + RTC_MR), &alrm->time); in pl030_read_alarm()
48 struct pl030_rtc *rtc = dev_get_drvdata(dev); in pl030_set_alarm() local
59 writel(time, rtc->base + RTC_MR); in pl030_set_alarm()
65 struct pl030_rtc *rtc = dev_get_drvdata(dev); in pl030_read_time() local
67 rtc_time_to_tm(readl(rtc->base + RTC_DR), tm); in pl030_read_time()
82 struct pl030_rtc *rtc = dev_get_drvdata(dev); in pl030_set_time() local
[all …]
Drtc-mpc5121.c79 struct rtc_device *rtc; member
104 struct mpc5121_rtc_data *rtc = dev_get_drvdata(dev); in mpc5121_rtc_read_time() local
105 struct mpc5121_rtc_regs __iomem *regs = rtc->regs; in mpc5121_rtc_read_time()
126 struct mpc5121_rtc_data *rtc = dev_get_drvdata(dev); in mpc5121_rtc_set_time() local
127 struct mpc5121_rtc_regs __iomem *regs = rtc->regs; in mpc5121_rtc_set_time()
150 struct mpc5121_rtc_data *rtc = dev_get_drvdata(dev); in mpc5121_rtc_read_alarm() local
151 struct mpc5121_rtc_regs __iomem *regs = rtc->regs; in mpc5121_rtc_read_alarm()
153 *alarm = rtc->wkalarm; in mpc5121_rtc_read_alarm()
162 struct mpc5121_rtc_data *rtc = dev_get_drvdata(dev); in mpc5121_rtc_set_alarm() local
163 struct mpc5121_rtc_regs __iomem *regs = rtc->regs; in mpc5121_rtc_set_alarm()
[all …]
Drtc-core.h5 extern void rtc_dev_prepare(struct rtc_device *rtc);
6 extern void rtc_dev_add_device(struct rtc_device *rtc);
7 extern void rtc_dev_del_device(struct rtc_device *rtc);
19 static inline void rtc_dev_prepare(struct rtc_device *rtc) in rtc_dev_prepare() argument
23 static inline void rtc_dev_add_device(struct rtc_device *rtc) in rtc_dev_add_device() argument
27 static inline void rtc_dev_del_device(struct rtc_device *rtc) in rtc_dev_del_device() argument
35 extern void rtc_proc_add_device(struct rtc_device *rtc);
36 extern void rtc_proc_del_device(struct rtc_device *rtc);
40 static inline void rtc_proc_add_device(struct rtc_device *rtc) in rtc_proc_add_device() argument
44 static inline void rtc_proc_del_device(struct rtc_device *rtc) in rtc_proc_del_device() argument
[all …]
Drtc-bfin.c159 struct bfin_rtc *rtc = dev_get_drvdata(dev); in bfin_rtc_reset() local
166 rtc->rtc_wrote_regs = 0; in bfin_rtc_reset()
183 struct bfin_rtc *rtc = dev_get_drvdata(dev); in bfin_rtc_interrupt() local
218 rtc_update_irq(rtc->rtc_dev, 1, events); in bfin_rtc_interrupt()
236 static void bfin_rtc_int_set_alarm(struct bfin_rtc *rtc) in bfin_rtc_int_set_alarm() argument
241 bfin_rtc_int_set(rtc->rtc_alarm.tm_yday == -1 ? RTC_ISTAT_ALARM : RTC_ISTAT_ALARM_DAY); in bfin_rtc_int_set_alarm()
246 struct bfin_rtc *rtc = dev_get_drvdata(dev); in bfin_rtc_alarm_irq_enable() local
250 bfin_rtc_int_set_alarm(rtc); in bfin_rtc_alarm_irq_enable()
259 struct bfin_rtc *rtc = dev_get_drvdata(dev); in bfin_rtc_read_time() local
263 if (rtc->rtc_wrote_regs & 0x1) in bfin_rtc_read_time()
[all …]
Drtc-proc.c25 struct rtc_device *rtc = seq->private; in rtc_proc_show() local
26 const struct rtc_class_ops *ops = rtc->ops; in rtc_proc_show()
30 err = rtc_read_time(rtc, &tm); in rtc_proc_show()
39 err = rtc_read_alarm(rtc, &alrm); in rtc_proc_show()
73 (rtc->uie_rtctimer.enabled) ? "yes" : "no"); in rtc_proc_show()
75 (rtc->pie_enabled) ? "yes" : "no"); in rtc_proc_show()
77 rtc->irq_freq); in rtc_proc_show()
79 rtc->max_user_freq); in rtc_proc_show()
85 ops->proc(rtc->dev.parent, seq); in rtc_proc_show()
93 struct rtc_device *rtc = PDE(inode)->data; in rtc_proc_open() local
[all …]
Drtc-nuc900.c64 struct nuc900_rtc *rtc = _rtc; in nuc900_rtc_interrupt() local
67 rtc_irq = __raw_readl(rtc->rtc_reg + REG_RTC_RIIR); in nuc900_rtc_interrupt()
71 __raw_writel(rtc_irq, rtc->rtc_reg + REG_RTC_RIIR); in nuc900_rtc_interrupt()
77 __raw_writel(rtc_irq, rtc->rtc_reg + REG_RTC_RIIR); in nuc900_rtc_interrupt()
81 rtc_update_irq(rtc->rtcdev, 1, events); in nuc900_rtc_interrupt()
139 struct nuc900_rtc *rtc = dev_get_drvdata(dev); in nuc900_alarm_irq_enable() local
142 __raw_writel(__raw_readl(rtc->rtc_reg + REG_RTC_RIER)| in nuc900_alarm_irq_enable()
143 (ALARMINTENB), rtc->rtc_reg + REG_RTC_RIER); in nuc900_alarm_irq_enable()
145 __raw_writel(__raw_readl(rtc->rtc_reg + REG_RTC_RIER)& in nuc900_alarm_irq_enable()
146 (~ALARMINTENB), rtc->rtc_reg + REG_RTC_RIER); in nuc900_alarm_irq_enable()
[all …]
Drtc-test.c78 struct rtc_device *rtc = platform_get_drvdata(plat_dev); in test_irq_store() local
81 if (strncmp(buf, "tick", 4) == 0 && rtc->pie_enabled) in test_irq_store()
82 rtc_update_irq(rtc, 1, RTC_PF | RTC_IRQF); in test_irq_store()
85 int err = rtc_read_alarm(rtc, &alrm); in test_irq_store()
88 rtc_update_irq(rtc, 1, RTC_AF | RTC_IRQF); in test_irq_store()
90 } else if (strncmp(buf, "update", 6) == 0 && rtc->uie_rtctimer.enabled) in test_irq_store()
91 rtc_update_irq(rtc, 1, RTC_UF | RTC_IRQF); in test_irq_store()
102 struct rtc_device *rtc = rtc_device_register("test", &plat_dev->dev, in test_probe() local
104 if (IS_ERR(rtc)) { in test_probe()
105 err = PTR_ERR(rtc); in test_probe()
[all …]
Drtc-sysfs.c94 struct rtc_device *rtc = to_rtc_device(dev); in rtc_sysfs_set_max_user_freq() local
100 rtc->max_user_freq = (int)val; in rtc_sysfs_set_max_user_freq()
162 struct rtc_device *rtc = to_rtc_device(dev); in rtc_sysfs_set_wakealarm() local
169 retval = rtc_read_time(rtc, &alm.time); in rtc_sysfs_set_wakealarm()
188 retval = rtc_read_alarm(rtc, &alm); in rtc_sysfs_set_wakealarm()
205 retval = rtc_set_alarm(rtc, &alm); in rtc_sysfs_set_wakealarm()
217 static inline int rtc_does_wakealarm(struct rtc_device *rtc) in rtc_does_wakealarm() argument
219 if (!device_can_wakeup(rtc->dev.parent)) in rtc_does_wakealarm()
221 return rtc->ops->set_alarm != NULL; in rtc_does_wakealarm()
225 void rtc_sysfs_add_device(struct rtc_device *rtc) in rtc_sysfs_add_device() argument
[all …]
/linux-2.6.39/arch/m68k/bvme6000/
Dconfig.c162 volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE; in bvme6000_timer_int() local
163 unsigned char msr = rtc->msr & 0xc0; in bvme6000_timer_int()
165 rtc->msr = msr | 0x20; /* Ack the interrupt */ in bvme6000_timer_int()
181 volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE; in bvme6000_sched_init() local
182 unsigned char msr = rtc->msr & 0xc0; in bvme6000_sched_init()
184 rtc->msr = 0; /* Ensure timer registers accessible */ in bvme6000_sched_init()
191 rtc->t1cr_omr = 0x04; /* Mode 2, ext clk */ in bvme6000_sched_init()
192 rtc->t1msb = 39999 >> 8; in bvme6000_sched_init()
193 rtc->t1lsb = 39999 & 0xff; in bvme6000_sched_init()
194 rtc->irr_icr1 &= 0xef; /* Route timer 1 to INTR pin */ in bvme6000_sched_init()
[all …]
Drtc.c41 volatile RtcPtr_t rtc = (RtcPtr_t)BVME_RTC_BASE; in rtc_ioctl() local
52 msr = rtc->msr & 0xc0; in rtc_ioctl()
53 rtc->msr = 0x40; in rtc_ioctl()
56 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl()
57 wtime.tm_min = bcd2bin(rtc->bcd_min); in rtc_ioctl()
58 wtime.tm_hour = bcd2bin(rtc->bcd_hr); in rtc_ioctl()
59 wtime.tm_mday = bcd2bin(rtc->bcd_dom); in rtc_ioctl()
60 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; in rtc_ioctl()
61 wtime.tm_year = bcd2bin(rtc->bcd_year); in rtc_ioctl()
64 wtime.tm_wday = bcd2bin(rtc->bcd_dow)-1; in rtc_ioctl()
[all …]
/linux-2.6.39/arch/m68k/mvme16x/
Drtc.c40 volatile MK48T08ptr_t rtc = (MK48T08ptr_t)MVME_RTC_BASE; in rtc_ioctl() local
50 rtc->ctrl = RTC_READ; in rtc_ioctl()
52 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl()
53 wtime.tm_min = bcd2bin(rtc->bcd_min); in rtc_ioctl()
54 wtime.tm_hour = bcd2bin(rtc->bcd_hr); in rtc_ioctl()
55 wtime.tm_mday = bcd2bin(rtc->bcd_dom); in rtc_ioctl()
56 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; in rtc_ioctl()
57 wtime.tm_year = bcd2bin(rtc->bcd_year); in rtc_ioctl()
60 wtime.tm_wday = bcd2bin(rtc->bcd_dow)-1; in rtc_ioctl()
61 rtc->ctrl = 0; in rtc_ioctl()
[all …]
/linux-2.6.39/include/linux/
Drtc.h221 extern void rtc_device_unregister(struct rtc_device *rtc);
223 extern int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm);
224 extern int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm);
225 extern int rtc_set_mmss(struct rtc_device *rtc, unsigned long secs);
226 int __rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm);
227 extern int rtc_read_alarm(struct rtc_device *rtc,
229 extern int rtc_set_alarm(struct rtc_device *rtc,
231 extern int rtc_initialize_alarm(struct rtc_device *rtc,
233 extern void rtc_update_irq(struct rtc_device *rtc,
237 extern void rtc_class_close(struct rtc_device *rtc);
[all …]
/linux-2.6.39/arch/m68k/apollo/
Dconfig.c217 t->tm_sec=rtc->second; in dn_dummy_hwclk()
218 t->tm_min=rtc->minute; in dn_dummy_hwclk()
219 t->tm_hour=rtc->hours; in dn_dummy_hwclk()
220 t->tm_mday=rtc->day_of_month; in dn_dummy_hwclk()
221 t->tm_wday=rtc->day_of_week; in dn_dummy_hwclk()
222 t->tm_mon=rtc->month; in dn_dummy_hwclk()
223 t->tm_year=rtc->year; in dn_dummy_hwclk()
225 rtc->second=t->tm_sec; in dn_dummy_hwclk()
226 rtc->minute=t->tm_min; in dn_dummy_hwclk()
227 rtc->hours=t->tm_hour; in dn_dummy_hwclk()
[all …]
/linux-2.6.39/kernel/power/
Dsuspend_test.c61 static void __init test_wakealarm(struct rtc_device *rtc, suspend_state_t state) in test_wakealarm() argument
77 status = rtc_read_time(rtc, &alm.time); in test_wakealarm()
79 printk(err_readtime, dev_name(&rtc->dev), status); in test_wakealarm()
88 status = rtc_set_alarm(rtc, &alm); in test_wakealarm()
90 printk(err_wakealarm, dev_name(&rtc->dev), status); in test_wakealarm()
112 rtc_set_alarm(rtc, &alm); in test_wakealarm()
163 struct rtc_device *rtc = NULL; in test_suspend() local
176 rtc = rtc_class_open(pony); in test_suspend()
177 if (!rtc) { in test_suspend()
183 test_wakealarm(rtc, test_state); in test_suspend()
[all …]
/linux-2.6.39/sound/core/
Drtctimer.c81 rtc_task_t *rtc = t->private_data; in rtctimer_close() local
82 if (rtc) { in rtctimer_close()
83 rtc_unregister(rtc); in rtctimer_close()
93 rtc_task_t *rtc = timer->private_data; in rtctimer_start() local
94 if (snd_BUG_ON(!rtc)) in rtctimer_start()
96 rtc_control(rtc, RTC_IRQP_SET, rtctimer_freq); in rtctimer_start()
97 rtc_control(rtc, RTC_PIE_ON, 0); in rtctimer_start()
104 rtc_task_t *rtc = timer->private_data; in rtctimer_stop() local
105 if (snd_BUG_ON(!rtc)) in rtctimer_stop()
107 rtc_control(rtc, RTC_PIE_OFF, 0); in rtctimer_stop()

12345678910