/linux-master/drivers/rtc/ |
H A D | rtc-rx8025.c | 24 #include <linux/rtc.h> 81 struct rtc_device *rtc; member in struct:rx8025_data 183 rtc_lock(rx8025->rtc); 196 rtc_update_irq(rx8025->rtc, 1, RTC_PF | RTC_IRQF); 205 rtc_update_irq(rx8025->rtc, 1, RTC_AF | RTC_IRQF); 209 rtc_unlock(rx8025->rtc); 550 rx8025->rtc = devm_rtc_allocate_device(&client->dev); 551 if (IS_ERR(rx8025->rtc)) 552 return PTR_ERR(rx8025->rtc); 554 rx8025->rtc [all...] |
H A D | rtc-ds1286.c | 12 #include <linux/rtc.h> 15 #include <linux/rtc/ds1286.h> 20 struct rtc_device *rtc; member in struct:ds1286_priv 163 * immediately read /dev/rtc which will block until you get the IRQ. 325 struct rtc_device *rtc; local 338 rtc = devm_rtc_device_register(&pdev->dev, "ds1286", &ds1286_ops, 340 if (IS_ERR(rtc)) 341 return PTR_ERR(rtc); 342 priv->rtc = rtc; [all...] |
H A D | rtc-wm831x.c | 14 #include <linux/rtc.h> 91 struct rtc_device *rtc; member in struct:wm831x_rtc 332 rtc_update_irq(wm831x_rtc->rtc, 1, RTC_IRQF | RTC_AF); 425 wm831x_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); 426 if (IS_ERR(wm831x_rtc->rtc)) 427 return PTR_ERR(wm831x_rtc->rtc); 429 wm831x_rtc->rtc->ops = &wm831x_rtc_ops; 430 wm831x_rtc->rtc->range_max = U32_MAX; 432 ret = devm_rtc_register_device(wm831x_rtc->rtc); 465 .name = "wm831x-rtc", [all...] |
H A D | rtc-gamecube.c | 8 * /config/rtc.xml (on the Wii��U). The latter being very impractical to access 24 * Based on rtc-gcn.c 36 #include <linux/rtc.h> 262 * of /config/rtc.xml on the SLC (the eMMC). We don���t do that from 312 .name = "gamecube-rtc", 318 struct rtc_device *rtc; local 342 rtc = devm_rtc_allocate_device(dev); 343 if (IS_ERR(rtc)) 344 return PTR_ERR(rtc); 350 rtc [all...] |
H A D | rtc-mc13xxx.c | 15 #include <linux/rtc.h> 17 #define DRIVER_NAME "mc13xxx-rtc" 27 struct rtc_device *rtc; member in struct:mc13xxx_rtc 244 rtc_update_irq(priv->rtc, 1, RTC_IRQF | RTC_AF); 285 priv->rtc = devm_rtc_allocate_device(&pdev->dev); 286 if (IS_ERR(priv->rtc)) 287 return PTR_ERR(priv->rtc); 290 priv->rtc->ops = &mc13xxx_rtc_ops; 292 priv->rtc->range_max = (timeu64_t)(1 << 15) * SEC_PER_DAY - 1; 310 ret = devm_rtc_register_device(priv->rtc); [all...] |
H A D | rtc-mxc_v2.c | 14 #include <linux/rtc.h> 40 struct rtc_device *rtc; member in struct:mxc_rtc_data 92 rtc_update_irq(pdata->rtc, 1, RTC_AF | RTC_IRQF); 296 dev_err(&pdev->dev, "unable to get rtc clock!\n"); 338 pdata->rtc = devm_rtc_allocate_device(&pdev->dev); 339 if (IS_ERR(pdata->rtc)) { 341 return PTR_ERR(pdata->rtc); 344 pdata->rtc->ops = &mxc_rtc_ops; 345 pdata->rtc->range_max = U32_MAX; 358 ret = devm_rtc_register_device(pdata->rtc); [all...] |
H A D | rtc-mpfs.c | 20 #include <linux/rtc.h> 57 struct rtc_device *rtc; member in struct:mpfs_rtc_dev 118 dev_err(dev, "timed out uploading time to rtc"); 202 rtc_update_irq(rtcdev->rtc, 1, RTC_IRQF | RTC_AF); 228 rtcdev->rtc = devm_rtc_allocate_device(&pdev->dev); 229 if (IS_ERR(rtcdev->rtc)) 230 return PTR_ERR(rtcdev->rtc); 232 rtcdev->rtc->ops = &mpfs_rtc_ops; 235 rtcdev->rtc->range_max = GENMASK_ULL(42, 0); 237 clk = devm_clk_get_enabled(&pdev->dev, "rtc"); [all...] |
H A D | rtc-rc5t583.c | 3 * rtc-rc5t583.c -- RICOH RC5T583 Real Time Clock 14 #include <linux/rtc.h> 21 struct rtc_device *rtc; member in struct:rc5t583_rtc 168 static irqreturn_t rc5t583_rtc_interrupt(int irq, void *rtc) argument 170 struct device *dev = rtc; 192 rtc_update_irq(rc5t583_rtc->rtc, 1, events); 243 "rtc-rc5t583", &pdev->dev); 250 ricoh_rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name, 252 if (IS_ERR(ricoh_rtc->rtc)) { 253 ret = PTR_ERR(ricoh_rtc->rtc); [all...] |
H A D | rtc-tegra.c | 18 #include <linux/rtc.h> 50 struct rtc_device *rtc; member in struct:tegra_rtc_info 257 rtc_update_irq(info->rtc, 1, events); 272 { .compatible = "nvidia,tegra20-rtc", }, 296 info->rtc = devm_rtc_allocate_device(&pdev->dev); 297 if (IS_ERR(info->rtc)) 298 return PTR_ERR(info->rtc); 300 info->rtc->ops = &tegra_rtc_ops; 301 info->rtc->range_max = U32_MAX; 332 ret = devm_rtc_register_device(info->rtc); [all...] |
H A D | rtc-zynqmp.c | 16 #include <linux/rtc.h> 51 struct rtc_device *rtc; member in struct:xlnx_rtc_dev 74 * Clear the rtc interrupt status register after setting the 272 rtc_update_irq(xrtcdev->rtc, 1, RTC_IRQF | RTC_AF); 288 xrtcdev->rtc = devm_rtc_allocate_device(&pdev->dev); 289 if (IS_ERR(xrtcdev->rtc)) 290 return PTR_ERR(xrtcdev->rtc); 292 xrtcdev->rtc->ops = &xlnx_rtc_ops; 293 xrtcdev->rtc->range_max = U32_MAX; 342 return devm_rtc_register_device(xrtcdev->rtc); [all...] |
H A D | rtc-stmp3xxx.c | 19 #include <linux/rtc.h> 57 struct rtc_device *rtc; member in struct:stmp3xxx_rtc_data 177 rtc_update_irq(rtc_data->rtc, 1, RTC_AF | RTC_IRQF); 281 * Resetting the rtc stops the watchdog timer that is potentially 288 "Watchdog is running, skip resetting rtc\n"); 299 * Obviously the rtc needs a clock input to be able to run. 353 rtc_data->rtc = devm_rtc_allocate_device(&pdev->dev); 354 if (IS_ERR(rtc_data->rtc)) 355 return PTR_ERR(rtc_data->rtc); 365 rtc_data->rtc [all...] |
H A D | rtc-isl12022.c | 19 #include <linux/rtc.h> 328 struct rtc_device *rtc; local 350 rtc = devm_rtc_allocate_device(&client->dev); 351 if (IS_ERR(rtc)) 352 return PTR_ERR(rtc); 354 rtc->ops = &isl12022_rtc_ops; 355 rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; 356 rtc->range_max = RTC_TIMESTAMP_END_2099; 358 return devm_rtc_register_device(rtc); 376 .name = "rtc [all...] |
H A D | rtc-m48t59.c | 16 #include <linux/rtc.h> 17 #include <linux/rtc/m48t59.h> 37 struct rtc_device *rtc; member in struct:m48t59_private 300 rtc_update_irq(m48t59->rtc, 1, (RTC_AF | RTC_IRQF)); 431 "rtc-m48t59", &pdev->dev); 436 m48t59->rtc = devm_rtc_allocate_device(&pdev->dev); 437 if (IS_ERR(m48t59->rtc)) 438 return PTR_ERR(m48t59->rtc); 445 clear_bit(RTC_FEATURE_ALARM, m48t59->rtc->features); 449 clear_bit(RTC_FEATURE_ALARM, m48t59->rtc [all...] |
H A D | rtc-optee.c | 9 #include <linux/rtc.h> 189 static int optee_rtc_read_info(struct device *dev, struct rtc_device *rtc, argument 224 rtc->range_min = mktime64(tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, 227 rtc->range_max = mktime64(tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, 246 struct rtc_device *rtc; local 256 rtc = devm_rtc_allocate_device(dev); 257 if (IS_ERR(rtc)) 258 return PTR_ERR(rtc); 265 /* Open session with rtc Trusted App */ 288 rtc [all...] |
H A D | rtc-snvs.c | 12 #include <linux/rtc.h> 44 struct rtc_device *rtc; member in struct:snvs_rtc_data 81 dev_err(&data->rtc->dev, "Timeout trying to get valid LPSRT Counter read\n"); 101 dev_err(&data->rtc->dev, "Timeout trying to get valid LPSRT Counter read\n"); 128 dev_err(&data->rtc->dev, "Timeout waiting for LPSRT Counter to change\n"); 295 rtc_update_irq(data->rtc, 1, events); 327 data->rtc = devm_rtc_allocate_device(&pdev->dev); 328 if (IS_ERR(data->rtc)) 329 return PTR_ERR(data->rtc); 334 dev_warn(&pdev->dev, "snvs rtc [all...] |
H A D | rtc-s35390a.c | 9 #include <linux/rtc.h> 67 struct rtc_device *rtc; member in struct:s35390a 144 * Returns <0 on error, 0 if rtc is setup fine and 1 if the chip was reset. 451 s35390a->rtc = devm_rtc_allocate_device(dev); 452 if (IS_ERR(s35390a->rtc)) 453 return PTR_ERR(s35390a->rtc); 484 s35390a->rtc->ops = &s35390a_rtc_ops; 485 s35390a->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; 486 s35390a->rtc->range_max = RTC_TIMESTAMP_END_2099; 488 set_bit(RTC_FEATURE_ALARM_RES_MINUTE, s35390a->rtc [all...] |
H A D | rtc-rx6110.c | 14 #include <linux/rtc.h> 98 struct rtc_device *rtc; member in struct:rx6110_data 164 * @dev: the rtc device in use 210 * @dev: the rtc device in use 263 struct rtc_device *rtc = rx6110->rtc; local 283 dev_warn(&rtc->dev, "Voltage low, data loss detected.\n"); 287 dev_warn(&rtc->dev, "An alarm may have been missed.\n"); 291 dev_warn(&rtc->dev, "Periodic timer was detected\n"); 295 dev_warn(&rtc [all...] |
H A D | rtc-cmos.c | 5 * Copyright (C) 1996 Paul Gortmaker (drivers/char/rtc.c) 74 struct rtc_device *rtc; member in struct:cmos_rtc 362 rtc_update_irq(cmos->rtc, 1, rtc_intr); 488 /* next rtc irq must not be from previous alarm setting */ 613 cmos->rtc->irq_freq, 761 * Always update rtc irq when ACPI is used as RTC Alarm. 763 * update rtc irq in that case. 766 cmos_interrupt(0, (void *)cmos->rtc); 776 rtc_update_irq(cmos->rtc, 1, rtc_intr); 891 rtc_update_irq(cmos->rtc, [all...] |
H A D | rtc-ds1511.c | 3 * An rtc driver for the Dallas DS1511 20 #include <linux/rtc.h> 63 struct rtc_device *rtc; member in struct:ds1511_data 222 rtc_update_irq(ds1511->rtc, 1, events); 320 ds1511->rtc = devm_rtc_allocate_device(&pdev->dev); 321 if (IS_ERR(ds1511->rtc)) 322 return PTR_ERR(ds1511->rtc); 324 ds1511->rtc->ops = &ds1511_rtc_ops; 325 ds1511->rtc->range_max = RTC_TIMESTAMP_END_2099; 326 ds1511->rtc [all...] |
H A D | rtc-ds1305.c | 3 * rtc-ds1305.c -- driver for DS1305 and DS1306 SPI RTC chips 11 #include <linux/rtc.h> 86 struct rtc_device *rtc; member in struct:ds1305 264 * Context: caller holds rtc->ops_lock (to protect ds1305->ctrl) 316 * Context: caller holds rtc->ops_lock (to protect ds1305->ctrl) 339 if ((later - now) > ds1305->rtc->alarm_offset_max) 443 rtc_lock(ds1305->rtc); 461 rtc_unlock(ds1305->rtc); 466 rtc_update_irq(ds1305->rtc, 1, RTC_AF | RTC_IRQF); 687 ds1305->rtc [all...] |
/linux-master/tools/testing/selftests/rtc/ |
H A D | rtctest.c | 10 #include <linux/rtc.h> 28 FIXTURE(rtc) { 32 FIXTURE_SETUP(rtc) { 36 FIXTURE_TEARDOWN(rtc) { 40 TEST_F(rtc, date_read) { 85 TEST_F_TIMEOUT(rtc, date_read_loop, READ_LOOP_DURATION_SEC + 2) { 125 TEST_F_TIMEOUT(rtc, uie_read, NUM_UIE + 2) { 154 TEST_F(rtc, uie_select) { 193 TEST_F(rtc, alarm_alm_set) { 250 TEST_F(rtc, alarm_wkalm_se [all...] |
/linux-master/kernel/time/ |
H A D | alarmtimer.c | 18 #include <linux/rtc.h> 61 /* rtc timer and device for setting alarm wakeups at suspend */ 69 * This function returns the rtc device to use for wakealarms. 87 struct rtc_device *rtc = to_rtc_device(dev); local 94 if (!test_bit(RTC_FEATURE_ALARM, rtc->features)) 96 if (!device_may_wakeup(rtc->dev.parent)) 106 if (!try_module_get(rtc->owner)) { 111 rtcdev = rtc; 238 * set an rtc timer to fire that far into the future, which 245 struct rtc_device *rtc; local 315 struct rtc_device *rtc; local [all...] |
/linux-master/arch/powerpc/platforms/ps3/ |
H A D | time.c | 3 * PS3 time and rtc routines. 11 #include <linux/rtc.h> 55 pdev = platform_device_register_simple("rtc-ps3", -1, NULL, 0);
|
/linux-master/include/linux/ |
H A D | pmu.h | 12 #include <linux/rtc.h>
|
/linux-master/arch/powerpc/platforms/44x/ |
H A D | ebony.c | 17 #include <linux/rtc.h>
|