Home
last modified time | relevance | path

Searched full:rtc_dev (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/rtc/
Drtc-aspeed.c11 struct rtc_device *rtc_dev; member
97 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in aspeed_rtc_probe()
98 if (IS_ERR(rtc->rtc_dev)) in aspeed_rtc_probe()
99 return PTR_ERR(rtc->rtc_dev); in aspeed_rtc_probe()
103 rtc->rtc_dev->ops = &aspeed_rtc_ops; in aspeed_rtc_probe()
104 rtc->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_1900; in aspeed_rtc_probe()
105 rtc->rtc_dev->range_max = 38814989399LL; /* 3199-12-31 23:59:59 */ in aspeed_rtc_probe()
107 return rtc_register_device(rtc->rtc_dev); in aspeed_rtc_probe()
Drtc-ftrtc010.c31 struct rtc_device *rtc_dev; member
159 rtc->rtc_dev = devm_rtc_allocate_device(dev); in ftrtc010_rtc_probe()
160 if (IS_ERR(rtc->rtc_dev)) in ftrtc010_rtc_probe()
161 return PTR_ERR(rtc->rtc_dev); in ftrtc010_rtc_probe()
163 rtc->rtc_dev->ops = &ftrtc010_rtc_ops; in ftrtc010_rtc_probe()
170 rtc->rtc_dev->range_min = (u64)days * 86400 + hour * 3600 + in ftrtc010_rtc_probe()
172 rtc->rtc_dev->range_max = U32_MAX + rtc->rtc_dev->range_min; in ftrtc010_rtc_probe()
179 return rtc_register_device(rtc->rtc_dev); in ftrtc010_rtc_probe()
Drtc-digicolor.c37 struct rtc_device *rtc_dev; member
171 rtc_update_irq(rtc->rtc_dev, 1, RTC_AF | RTC_IRQF); in dc_rtc_irq()
189 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in dc_rtc_probe()
190 if (IS_ERR(rtc->rtc_dev)) in dc_rtc_probe()
191 return PTR_ERR(rtc->rtc_dev); in dc_rtc_probe()
202 rtc->rtc_dev->ops = &dc_rtc_ops; in dc_rtc_probe()
203 rtc->rtc_dev->range_max = U32_MAX; in dc_rtc_probe()
205 return rtc_register_device(rtc->rtc_dev); in dc_rtc_probe()
Drtc-st-lpc.c42 struct rtc_device *rtc_dev; member
74 rtc_update_irq(rtc->rtc_dev, 1, RTC_AF); in st_rtc_handler()
205 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in st_rtc_probe()
206 if (IS_ERR(rtc->rtc_dev)) in st_rtc_probe()
207 return PTR_ERR(rtc->rtc_dev); in st_rtc_probe()
249 rtc->rtc_dev->ops = &st_rtc_ops; in st_rtc_probe()
250 rtc->rtc_dev->range_max = U64_MAX; in st_rtc_probe()
251 do_div(rtc->rtc_dev->range_max, rtc->clkrate); in st_rtc_probe()
253 ret = rtc_register_device(rtc->rtc_dev); in st_rtc_probe()
281 rtc_alarm_irq_enable(rtc->rtc_dev, 0); in st_rtc_resume()
Drtc-cpcap.c43 struct rtc_device *rtc_dev; member
232 rtc_update_irq(rtc->rtc_dev, 1, RTC_AF | RTC_IRQF); in cpcap_rtc_alarm_irq()
240 rtc_update_irq(rtc->rtc_dev, 1, RTC_UF | RTC_IRQF); in cpcap_rtc_update_irq()
259 rtc->rtc_dev = devm_rtc_allocate_device(dev); in cpcap_rtc_probe()
260 if (IS_ERR(rtc->rtc_dev)) in cpcap_rtc_probe()
261 return PTR_ERR(rtc->rtc_dev); in cpcap_rtc_probe()
263 rtc->rtc_dev->ops = &cpcap_rtc_ops; in cpcap_rtc_probe()
264 rtc->rtc_dev->range_max = (timeu64_t) (DAY_MASK + 1) * SECS_PER_DAY - 1; in cpcap_rtc_probe()
302 return rtc_register_device(rtc->rtc_dev); in cpcap_rtc_probe()
Drtc-88pm80x.c41 struct rtc_device *rtc_dev; member
55 rtc_update_irq(info->rtc_dev, 1, RTC_AF); in rtc_update_handler()
282 info->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in pm80x_rtc_probe()
283 if (IS_ERR(info->rtc_dev)) in pm80x_rtc_probe()
284 return PTR_ERR(info->rtc_dev); in pm80x_rtc_probe()
294 info->rtc_dev->ops = &pm80x_rtc_ops; in pm80x_rtc_probe()
295 info->rtc_dev->range_max = U32_MAX; in pm80x_rtc_probe()
297 ret = rtc_register_device(info->rtc_dev); in pm80x_rtc_probe()
309 info->rtc_dev->dev.platform_data = &pdata->rtc_wakeup; in pm80x_rtc_probe()
Drtc-cadence.c80 struct rtc_device *rtc_dev; member
108 rtc_update_irq(crtc->rtc_dev, 1, RTC_IRQF | RTC_AF); in cdns_rtc_irq_handler()
289 crtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in cdns_rtc_probe()
290 if (IS_ERR(crtc->rtc_dev)) in cdns_rtc_probe()
291 return PTR_ERR(crtc->rtc_dev); in cdns_rtc_probe()
329 crtc->rtc_dev->range_min = mktime64(1900, 1, 1, 0, 0, 0); in cdns_rtc_probe()
330 crtc->rtc_dev->range_max = mktime64(2999, 12, 31, 23, 59, 59); in cdns_rtc_probe()
332 crtc->rtc_dev->ops = &cdns_rtc_ops; in cdns_rtc_probe()
339 ret = rtc_register_device(crtc->rtc_dev); in cdns_rtc_probe()
Drtc-sh.c104 struct rtc_device *rtc_dev; member
121 rtc_update_irq(rtc->rtc_dev, 1, RTC_UF | RTC_IRQF); in __sh_rtc_interrupt()
136 rtc_update_irq(rtc->rtc_dev, 1, RTC_AF | RTC_IRQF); in __sh_rtc_alarm()
159 rtc_update_irq(rtc->rtc_dev, 1, RTC_PF | RTC_IRQF); in __sh_rtc_periodic()
532 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in sh_rtc_probe()
533 if (IS_ERR(rtc->rtc_dev)) in sh_rtc_probe()
534 return PTR_ERR(rtc->rtc_dev); in sh_rtc_probe()
599 rtc->rtc_dev->ops = &sh_rtc_ops; in sh_rtc_probe()
600 rtc->rtc_dev->max_user_freq = 256; in sh_rtc_probe()
603 rtc->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_1900; in sh_rtc_probe()
[all …]
Drtc-da9063.c66 struct rtc_device *rtc_dev; member
362 rtc_update_irq(rtc->rtc_dev, 1, RTC_IRQF | RTC_AF); in da9063_alarm_event()
467 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in da9063_rtc_probe()
468 if (IS_ERR(rtc->rtc_dev)) in da9063_rtc_probe()
469 return PTR_ERR(rtc->rtc_dev); in da9063_rtc_probe()
471 rtc->rtc_dev->ops = &da9063_rtc_ops; in da9063_rtc_probe()
472 rtc->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; in da9063_rtc_probe()
473 rtc->rtc_dev->range_max = RTC_TIMESTAMP_END_2063; in da9063_rtc_probe()
483 rtc->rtc_dev->uie_unsupported = 1; in da9063_rtc_probe()
497 return rtc_register_device(rtc->rtc_dev); in da9063_rtc_probe()
Drtc-fsl-ftm-alarm.c42 struct rtc_device *rtc_dev; member
156 rtc_update_irq(rtc->rtc_dev, 1, RTC_IRQF | RTC_AF); in ftm_rtc_alarm_interrupt()
261 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in ftm_rtc_probe()
262 if (IS_ERR(rtc->rtc_dev)) in ftm_rtc_probe()
263 return PTR_ERR(rtc->rtc_dev); in ftm_rtc_probe()
286 rtc->rtc_dev->ops = &ftm_rtc_ops; in ftm_rtc_probe()
293 ret = rtc_register_device(rtc->rtc_dev); in ftm_rtc_probe()
Drtc-mt6397.c34 dev_err(rtc->rtc_dev->dev.parent, in mtk_rtc_write_trigger()
48 rtc_update_irq(rtc->rtc_dev, 1, RTC_IRQF | RTC_AF); in mtk_rtc_irq_handler_thread()
285 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in mtk_rtc_probe()
286 if (IS_ERR(rtc->rtc_dev)) in mtk_rtc_probe()
287 return PTR_ERR(rtc->rtc_dev); in mtk_rtc_probe()
302 rtc->rtc_dev->ops = &mtk_rtc_ops; in mtk_rtc_probe()
304 return rtc_register_device(rtc->rtc_dev); in mtk_rtc_probe()
Drtc-max8907.c43 struct rtc_device *rtc_dev; member
53 rtc_update_irq(rtc->rtc_dev, 1, RTC_IRQF | RTC_AF); in max8907_irq_handler()
189 rtc->rtc_dev = devm_rtc_device_register(&pdev->dev, "max8907-rtc", in max8907_rtc_probe()
191 if (IS_ERR(rtc->rtc_dev)) { in max8907_rtc_probe()
192 ret = PTR_ERR(rtc->rtc_dev); in max8907_rtc_probe()
Drtc-armada38x.c70 struct rtc_device *rtc_dev; member
331 dev_dbg(&rtc->rtc_dev->dev, "%s:irq(%d)\n", __func__, irq); in armada38x_rtc_alarm_irq()
351 rtc_update_irq(rtc->rtc_dev, 1, event); in armada38x_rtc_alarm_irq()
532 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in armada38x_rtc_probe()
533 if (IS_ERR(rtc->rtc_dev)) in armada38x_rtc_probe()
534 return PTR_ERR(rtc->rtc_dev); in armada38x_rtc_probe()
545 rtc->rtc_dev->ops = &armada38x_rtc_ops; in armada38x_rtc_probe()
551 rtc->rtc_dev->ops = &armada38x_rtc_ops_noirq; in armada38x_rtc_probe()
557 rtc->rtc_dev->range_max = U32_MAX; in armada38x_rtc_probe()
559 return rtc_register_device(rtc->rtc_dev); in armada38x_rtc_probe()
Drtc-88pm860x.c25 struct rtc_device *rtc_dev; member
63 rtc_update_irq(info->rtc_dev, 1, RTC_AF); in rtc_update_handler()
286 info->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in pm860x_rtc_probe()
287 if (IS_ERR(info->rtc_dev)) in pm860x_rtc_probe()
288 return PTR_ERR(info->rtc_dev); in pm860x_rtc_probe()
307 info->rtc_dev->ops = &pm860x_rtc_ops; in pm860x_rtc_probe()
308 info->rtc_dev->range_max = U32_MAX; in pm860x_rtc_probe()
310 ret = rtc_register_device(info->rtc_dev); in pm860x_rtc_probe()
Drtc-pcf50633.c59 struct rtc_device *rtc_dev; member
238 rtc_update_irq(rtc->rtc_dev, 1, RTC_AF | RTC_IRQF); in pcf50633_rtc_irq()
252 rtc->rtc_dev = devm_rtc_device_register(&pdev->dev, "pcf50633-rtc", in pcf50633_rtc_probe()
255 if (IS_ERR(rtc->rtc_dev)) in pcf50633_rtc_probe()
256 return PTR_ERR(rtc->rtc_dev); in pcf50633_rtc_probe()
Drtc-max8998.c70 struct rtc_device *rtc_dev; member
234 rtc_update_irq(info->rtc_dev, 1, RTC_IRQF | RTC_AF); in max8998_rtc_alarm_irq()
265 info->rtc_dev = devm_rtc_device_register(&pdev->dev, "max8998-rtc", in max8998_rtc_probe()
268 if (IS_ERR(info->rtc_dev)) { in max8998_rtc_probe()
269 ret = PTR_ERR(info->rtc_dev); in max8998_rtc_probe()
Drtc-max8925.c65 struct rtc_device *rtc_dev; member
78 rtc_update_irq(info->rtc_dev, 1, RTC_IRQF | RTC_AF); in rtc_update_handler()
275 info->rtc_dev = devm_rtc_device_register(&pdev->dev, "max8925-rtc", in max8925_rtc_probe()
277 ret = PTR_ERR(info->rtc_dev); in max8925_rtc_probe()
278 if (IS_ERR(info->rtc_dev)) { in max8925_rtc_probe()
Drtc-pm8xxx.c53 * @rtc_dev: device structure.
62 struct device *rtc_dev; member
364 dev_err(rtc_dd->rtc_dev, in pm8xxx_alarm_trigger()
374 dev_err(rtc_dd->rtc_dev, in pm8xxx_alarm_trigger()
382 dev_err(rtc_dd->rtc_dev, in pm8xxx_alarm_trigger()
483 rtc_dd->rtc_dev = &pdev->dev; in pm8xxx_rtc_probe()
Drtc-max8997.c68 struct rtc_device *rtc_dev; member
353 rtc_update_irq(info->rtc_dev, 1, RTC_IRQF | RTC_AF); in max8997_rtc_alarm_irq()
478 info->rtc_dev = devm_rtc_device_register(&pdev->dev, "max8997-rtc", in max8997_rtc_probe()
481 if (IS_ERR(info->rtc_dev)) { in max8997_rtc_probe()
482 ret = PTR_ERR(info->rtc_dev); in max8997_rtc_probe()
Drtc-ds1685.c1072 struct rtc_device *rtc_dev; in ds1685_rtc_probe() local
1263 rtc_dev = devm_rtc_allocate_device(&pdev->dev); in ds1685_rtc_probe()
1264 if (IS_ERR(rtc_dev)) in ds1685_rtc_probe()
1265 return PTR_ERR(rtc_dev); in ds1685_rtc_probe()
1267 rtc_dev->ops = &ds1685_rtc_ops; in ds1685_rtc_probe()
1270 rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; in ds1685_rtc_probe()
1271 rtc_dev->range_max = RTC_TIMESTAMP_END_2099; in ds1685_rtc_probe()
1274 rtc_dev->max_user_freq = RTC_MAX_USER_FREQ; in ds1685_rtc_probe()
1278 rtc_dev->uie_unsupported = 1; in ds1685_rtc_probe()
1280 rtc->dev = rtc_dev; in ds1685_rtc_probe()
[all …]
Drtc-stm32.c121 struct rtc_device *rtc_dev; member
212 mutex_lock(&rtc->rtc_dev->ops_lock); in stm32_rtc_alarm_irq()
220 dev_dbg(&rtc->rtc_dev->dev, "Alarm occurred\n"); in stm32_rtc_alarm_irq()
223 rtc_update_irq(rtc->rtc_dev, 1, RTC_IRQF | RTC_AF); in stm32_rtc_alarm_irq()
229 mutex_unlock(&rtc->rtc_dev->ops_lock); in stm32_rtc_alarm_irq()
798 rtc->rtc_dev = devm_rtc_device_register(&pdev->dev, pdev->name, in stm32_rtc_probe()
800 if (IS_ERR(rtc->rtc_dev)) { in stm32_rtc_probe()
801 ret = PTR_ERR(rtc->rtc_dev); in stm32_rtc_probe()
Drtc-s5m.c152 struct rtc_device *rtc_dev; member
647 rtc_update_irq(info->rtc_dev, 1, RTC_IRQF | RTC_AF); in s5m_rtc_alarm_irq()
797 info->rtc_dev = devm_rtc_device_register(&pdev->dev, "s5m-rtc", in s5m_rtc_probe()
800 if (IS_ERR(info->rtc_dev)) { in s5m_rtc_probe()
801 ret = PTR_ERR(info->rtc_dev); in s5m_rtc_probe()
Drtc-max77686.c88 struct rtc_device *rtc_dev; member
640 rtc_update_irq(info->rtc_dev, 1, RTC_IRQF | RTC_AF); in max77686_rtc_alarm_irq()
761 info->rtc_dev = devm_rtc_device_register(&pdev->dev, id->name, in max77686_rtc_probe()
764 if (IS_ERR(info->rtc_dev)) { in max77686_rtc_probe()
765 ret = PTR_ERR(info->rtc_dev); in max77686_rtc_probe()
/kernel/linux/linux-5.10/arch/m68k/mvme16x/
Drtc.c150 static struct miscdevice rtc_dev= variable
163 return misc_register(&rtc_dev); in rtc_MK48T08_init()
/kernel/linux/linux-5.10/arch/m68k/bvme6000/
Drtc.c161 static struct miscdevice rtc_dev = { variable
173 return misc_register(&rtc_dev); in rtc_DP8570A_init()

12