/drivers/rtc/ |
D | rtc-aspeed.c | 11 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 devm_rtc_register_device(rtc->rtc_dev); in aspeed_rtc_probe()
|
D | rtc-ftrtc010.c | 31 struct rtc_device *rtc_dev; member 163 rtc->rtc_dev = devm_rtc_allocate_device(dev); in ftrtc010_rtc_probe() 164 if (IS_ERR(rtc->rtc_dev)) { in ftrtc010_rtc_probe() 165 ret = PTR_ERR(rtc->rtc_dev); in ftrtc010_rtc_probe() 169 rtc->rtc_dev->ops = &ftrtc010_rtc_ops; in ftrtc010_rtc_probe() 176 rtc->rtc_dev->range_min = (u64)days * 86400 + hour * 3600 + in ftrtc010_rtc_probe() 178 rtc->rtc_dev->range_max = U32_MAX + rtc->rtc_dev->range_min; in ftrtc010_rtc_probe() 185 return devm_rtc_register_device(rtc->rtc_dev); in ftrtc010_rtc_probe()
|
D | rtc-st-lpc.c | 42 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() 250 rtc->rtc_dev->ops = &st_rtc_ops; in st_rtc_probe() 251 rtc->rtc_dev->range_max = U64_MAX; in st_rtc_probe() 252 do_div(rtc->rtc_dev->range_max, rtc->clkrate); in st_rtc_probe() 254 ret = devm_rtc_register_device(rtc->rtc_dev); in st_rtc_probe() 282 rtc_alarm_irq_enable(rtc->rtc_dev, 0); in st_rtc_resume()
|
D | rtc-digicolor.c | 37 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 devm_rtc_register_device(rtc->rtc_dev); in dc_rtc_probe()
|
D | rtc-cpcap.c | 43 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() 304 return devm_rtc_register_device(rtc->rtc_dev); in cpcap_rtc_probe()
|
D | rtc-fsl-ftm-alarm.c | 42 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 = devm_rtc_register_device(rtc->rtc_dev); in ftm_rtc_probe()
|
D | rtc-sh.c | 104 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 …]
|
D | rtc-88pm80x.c | 41 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 = devm_rtc_register_device(info->rtc_dev); in pm80x_rtc_probe() 309 info->rtc_dev->dev.platform_data = &pdata->rtc_wakeup; in pm80x_rtc_probe()
|
D | rtc-cadence.c | 80 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 = devm_rtc_register_device(crtc->rtc_dev); in cdns_rtc_probe()
|
D | rtc-da9063.c | 66 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 devm_rtc_register_device(rtc->rtc_dev); in da9063_rtc_probe()
|
D | rtc-armada38x.c | 70 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() 524 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in armada38x_rtc_probe() 525 if (IS_ERR(rtc->rtc_dev)) in armada38x_rtc_probe() 526 return PTR_ERR(rtc->rtc_dev); in armada38x_rtc_probe() 538 clear_bit(RTC_FEATURE_ALARM, rtc->rtc_dev->features); in armada38x_rtc_probe() 543 rtc->rtc_dev->ops = &armada38x_rtc_ops; in armada38x_rtc_probe() 544 rtc->rtc_dev->range_max = U32_MAX; in armada38x_rtc_probe() 546 return devm_rtc_register_device(rtc->rtc_dev); in armada38x_rtc_probe()
|
D | rtc-88pm860x.c | 25 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 = devm_rtc_register_device(info->rtc_dev); in pm860x_rtc_probe()
|
D | rtc-max8907.c | 43 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()
|
D | rtc-mt6397.c | 34 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() 287 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in mtk_rtc_probe() 288 if (IS_ERR(rtc->rtc_dev)) in mtk_rtc_probe() 289 return PTR_ERR(rtc->rtc_dev); in mtk_rtc_probe() 304 rtc->rtc_dev->ops = &mtk_rtc_ops; in mtk_rtc_probe() 306 return devm_rtc_register_device(rtc->rtc_dev); in mtk_rtc_probe()
|
D | rtc-s5m.c | 152 struct rtc_device *rtc_dev; member 639 rtc_update_irq(info->rtc_dev, 1, RTC_IRQF | RTC_AF); in s5m_rtc_alarm_irq() 783 info->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in s5m_rtc_probe() 784 if (IS_ERR(info->rtc_dev)) in s5m_rtc_probe() 785 return PTR_ERR(info->rtc_dev); in s5m_rtc_probe() 787 info->rtc_dev->ops = &s5m_rtc_ops; in s5m_rtc_probe() 790 info->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_0000; in s5m_rtc_probe() 791 info->rtc_dev->range_max = RTC_TIMESTAMP_END_9999; in s5m_rtc_probe() 793 info->rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; in s5m_rtc_probe() 794 info->rtc_dev->range_max = RTC_TIMESTAMP_END_2099; in s5m_rtc_probe() [all …]
|
D | rtc-pcf50633.c | 59 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()
|
D | rtc-max8998.c | 70 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()
|
D | rtc-ds1685.c | 1070 struct rtc_device *rtc_dev; in ds1685_rtc_probe() local 1261 rtc_dev = devm_rtc_allocate_device(&pdev->dev); in ds1685_rtc_probe() 1262 if (IS_ERR(rtc_dev)) in ds1685_rtc_probe() 1263 return PTR_ERR(rtc_dev); in ds1685_rtc_probe() 1265 rtc_dev->ops = &ds1685_rtc_ops; in ds1685_rtc_probe() 1268 rtc_dev->range_min = RTC_TIMESTAMP_BEGIN_2000; in ds1685_rtc_probe() 1269 rtc_dev->range_max = RTC_TIMESTAMP_END_2099; in ds1685_rtc_probe() 1272 rtc_dev->max_user_freq = RTC_MAX_USER_FREQ; in ds1685_rtc_probe() 1276 rtc_dev->uie_unsupported = 1; in ds1685_rtc_probe() 1278 rtc->dev = rtc_dev; in ds1685_rtc_probe() [all …]
|
D | rtc-max8925.c | 65 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()
|
D | rtc-stm32.c | 121 struct rtc_device *rtc_dev; member 212 rtc_lock(rtc->rtc_dev); 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 rtc_unlock(rtc->rtc_dev); 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()
|
D | rtc-pm8xxx.c | 63 struct device *rtc_dev; member 368 dev_err(rtc_dd->rtc_dev, in pm8xxx_alarm_trigger() 378 dev_err(rtc_dd->rtc_dev, in pm8xxx_alarm_trigger() 386 dev_err(rtc_dd->rtc_dev, in pm8xxx_alarm_trigger() 498 rtc_dd->rtc_dev = &pdev->dev; in pm8xxx_rtc_probe()
|
D | rtc-max8997.c | 68 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()
|
D | rtc-max77686.c | 88 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()
|