/linux-master/arch/m68k/mvme16x/ |
H A D | rtc.c | 18 #include <linux/rtc.h> /* For struct rtc_time and ioctls, etc */ 40 volatile MK48T08ptr_t rtc = (MK48T08ptr_t)MVME_RTC_BASE; local 50 rtc->ctrl = RTC_READ; 52 wtime.tm_sec = bcd2bin(rtc->bcd_sec); 53 wtime.tm_min = bcd2bin(rtc->bcd_min); 54 wtime.tm_hour = bcd2bin(rtc->bcd_hr); 55 wtime.tm_mday = bcd2bin(rtc->bcd_dom); 56 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; 57 wtime.tm_year = bcd2bin(rtc->bcd_year); 60 wtime.tm_wday = bcd2bin(rtc [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-lp8788.c | 3 * TI LP8788 MFD - rtc driver 15 #include <linux/rtc.h> 111 struct lp8788_rtc *rtc = dev_get_drvdata(dev); local 112 struct lp8788 *lp = rtc->lp; 135 struct lp8788_rtc *rtc = dev_get_drvdata(dev); local 136 struct lp8788 *lp = rtc->lp; 146 /* because rtc weekday is a readonly register, do not update */ 165 struct lp8788_rtc *rtc = dev_get_drvdata(dev); local 166 struct lp8788 *lp = rtc->lp; 171 addr = addr_alarm_sec[rtc 190 struct lp8788_rtc *rtc = dev_get_drvdata(dev); local 226 struct lp8788_rtc *rtc = dev_get_drvdata(dev); local 249 struct lp8788_rtc *rtc = ptr; local 255 lp8788_alarm_irq_register(struct platform_device *pdev, struct lp8788_rtc *rtc) argument 285 struct lp8788_rtc *rtc; local [all...] |
H A D | rtc-ntxec.c | 17 #include <linux/rtc.h> 38 struct ntxec_rtc *rtc = dev_get_drvdata(dev); local 43 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_MINUTE_SECOND, &value); 50 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_MDAY_HOUR, &value); 57 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_YEAR_MONTH, &value); 69 res = regmap_read(rtc->ec->regmap, NTXEC_REG_READ_MINUTE_SECOND, &value); 81 struct ntxec_rtc *rtc = dev_get_drvdata(dev); local 100 return regmap_multi_reg_write(rtc->ec->regmap, regs, ARRAY_SIZE(regs)); 111 struct ntxec_rtc *rtc; local 115 rtc [all...] |
H A D | rtc-ds1672.c | 3 * An rtc/i2c driver for the Dallas DS1672 10 #include <linux/rtc.h> 112 struct rtc_device *rtc; local 119 rtc = devm_rtc_allocate_device(&client->dev); 120 if (IS_ERR(rtc)) 121 return PTR_ERR(rtc); 123 rtc->ops = &ds1672_rtc_ops; 124 rtc->range_max = U32_MAX; 126 err = devm_rtc_register_device(rtc); 130 i2c_set_clientdata(client, rtc); [all...] |
H A D | sysfs.c | 11 #include <linux/rtc.h> 13 #include "rtc-core.h" 88 struct rtc_device *rtc = to_rtc_device(dev); local 99 rtc->max_user_freq = (int)val; 159 struct rtc_device *rtc = to_rtc_device(dev); local 166 retval = rtc_read_time(rtc, &alm.time); 191 retval = rtc_read_alarm(rtc, &alm); 213 retval = rtc_set_alarm(rtc, &alm); 272 static bool rtc_does_wakealarm(struct rtc_device *rtc) argument 274 if (!device_can_wakeup(rtc 284 struct rtc_device *rtc = to_rtc_device(dev); local 316 rtc_add_groups(struct rtc_device *rtc, const struct attribute_group **grps) argument 349 rtc_add_group(struct rtc_device *rtc, const struct attribute_group *grp) argument [all...] |
H A D | rtc-sa1100.h | 18 struct rtc_device *rtc; member in struct:sa1100_rtc
|
H A D | rtc-meson-vrtc.c | 9 #include <linux/rtc.h> 16 struct rtc_device *rtc; member in struct:meson_vrtc_data 81 vrtc->rtc = devm_rtc_allocate_device(&pdev->dev); 82 if (IS_ERR(vrtc->rtc)) 83 return PTR_ERR(vrtc->rtc); 85 vrtc->rtc->ops = &meson_vrtc_ops; 86 return devm_rtc_register_device(vrtc->rtc);
|
H A D | rtc-r9701.c | 7 * Based on rtc-max6902.c 18 #include <linux/rtc.h> 110 struct rtc_device *rtc; local 121 rtc = devm_rtc_allocate_device(&spi->dev); 122 if (IS_ERR(rtc)) 123 return PTR_ERR(rtc); 125 spi_set_drvdata(spi, rtc); 126 rtc->ops = &r9701_rtc_ops; 127 rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; 128 rtc [all...] |
H A D | rtc-mxc.c | 6 #include <linux/rtc.h> 43 #define RTC_HOURMIN 0x00 /* 32bit rtc hour/min counter reg */ 44 #define RTC_SECOND 0x04 /* 32bit rtc seconds counter reg */ 45 #define RTC_ALRM_HM 0x08 /* 32bit rtc alarm hour/min reg */ 46 #define RTC_ALRM_SEC 0x0C /* 32bit rtc alarm seconds reg */ 47 #define RTC_RTCCTL 0x10 /* 32bit rtc control reg */ 48 #define RTC_RTCISR 0x14 /* 32bit rtc interrupt status reg */ 49 #define RTC_RTCIENR 0x18 /* 32bit rtc interrupt enable reg */ 50 #define RTC_STPWCH 0x1C /* 32bit rtc stopwatch min reg */ 51 #define RTC_DAYR 0x20 /* 32bit rtc day 63 struct rtc_device *rtc; member in struct:rtc_plat_data 295 struct rtc_device *rtc; local [all...] |
H A D | rtc-test.c | 10 #include <linux/rtc.h> 16 struct rtc_device *rtc; member in struct:rtc_test_data 112 rtc_update_irq(rtd->rtc, 1, RTC_AF | RTC_IRQF); 125 rtd->rtc = devm_rtc_allocate_device(&plat_dev->dev); 126 if (IS_ERR(rtd->rtc)) 127 return PTR_ERR(rtd->rtc); 131 rtd->rtc->ops = &test_rtc_ops_noalm; 134 rtd->rtc->ops = &test_rtc_ops; 141 return devm_rtc_register_device(rtd->rtc); 147 .name = "rtc [all...] |
H A D | rtc-ds1347.c | 2 /* rtc-ds1347.c 14 #include <linux/rtc.h> 19 /* Registers in ds1347 rtc */ 130 struct rtc_device *rtc; local 156 /* Disable the write protect of rtc */ 161 rtc = devm_rtc_allocate_device(&spi->dev); 162 if (IS_ERR(rtc)) 163 return PTR_ERR(rtc); 165 rtc->ops = &ds1347_rtc_ops; 166 rtc [all...] |
H A D | rtc-ep93xx.c | 11 #include <linux/rtc.h> 31 struct rtc_device *rtc; member in struct:ep93xx_rtc 138 ep93xx_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); 139 if (IS_ERR(ep93xx_rtc->rtc)) 140 return PTR_ERR(ep93xx_rtc->rtc); 142 ep93xx_rtc->rtc->ops = &ep93xx_rtc_ops; 143 ep93xx_rtc->rtc->range_max = U32_MAX; 145 err = rtc_add_group(ep93xx_rtc->rtc, &ep93xx_rtc_sysfs_files); 149 return devm_rtc_register_device(ep93xx_rtc->rtc); 153 { .compatible = "cirrus,ep9301-rtc" }, [all...] |
H A D | rtc-pcap.c | 3 * pcap rtc code for Motorola EZX phones 8 * Based on Motorola's rtc.c Copyright (c) 2003-2005 Motorola 15 #include <linux/rtc.h> 21 struct rtc_device *rtc; member in struct:pcap_rtc 36 rtc_update_irq(pcap_rtc->rtc, 1, rtc_events); 146 pcap_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); 147 if (IS_ERR(pcap_rtc->rtc)) 148 return PTR_ERR(pcap_rtc->rtc); 150 pcap_rtc->rtc->ops = &pcap_rtc_ops; 151 pcap_rtc->rtc [all...] |
H A D | rtc-ab8500.c | 16 #include <linux/rtc.h> 75 /* Wait for some cycles after enabling the rtc read in ab8500 */ 309 struct rtc_device *rtc = data; local 312 dev_dbg(&rtc->dev, "%s\n", __func__); 313 rtc_update_irq(rtc, 1, events); 327 { "ab8500-rtc", (kernel_ulong_t)&ab8500_rtc_ops, }, 336 struct rtc_device *rtc; local 366 rtc = devm_rtc_allocate_device(&pdev->dev); 367 if (IS_ERR(rtc)) 368 return PTR_ERR(rtc); [all...] |
/linux-master/include/soc/arc/ |
H A D | timers.h | 29 unsigned int pad2:15, rtsc:1, pad1:5, rtc:1, t1:1, t0:1, ver:8; member in struct:bcr_timer 31 unsigned int ver:8, t0:1, t1:1, rtc:1, pad1:5, rtsc:1, pad2:15;
|
/linux-master/arch/m68k/apollo/ |
H A D | config.c | 7 #include <linux/rtc.h> 187 t->tm_sec=rtc->second; 188 t->tm_min=rtc->minute; 189 t->tm_hour=rtc->hours; 190 t->tm_mday=rtc->day_of_month; 191 t->tm_wday=rtc->day_of_week; 192 t->tm_mon = rtc->month - 1; 193 t->tm_year=rtc->year; 197 rtc->second=t->tm_sec; 198 rtc [all...] |
/linux-master/tools/testing/selftests/rtc/ |
H A D | setdate.c | 10 #include <linux/rtc.h> 25 const char *rtc, *date; local 34 rtc = argv[1]; 41 fd = open(rtc, O_RDONLY); 43 perror(rtc);
|
/linux-master/arch/x86/kernel/ |
H A D | platform-quirks.c | 12 x86_platform.legacy.rtc = 1; 23 x86_platform.legacy.rtc = 0; 28 x86_platform.legacy.rtc = 0;
|
/linux-master/kernel/power/ |
H A D | suspend_test.c | 9 #include <linux/rtc.h> 62 static void __init test_wakealarm(struct rtc_device *rtc, suspend_state_t state) argument 79 status = rtc_read_time(rtc, &alm.time); 81 printk(err_readtime, dev_name(&rtc->dev), status); 90 status = rtc_set_alarm(rtc, &alm); 92 printk(err_wakealarm, dev_name(&rtc->dev), status); 125 rtc_set_alarm(rtc, &alm); 184 struct rtc_device *rtc = NULL; local 206 rtc = rtc_class_open(dev_name(dev)); 209 if (!rtc) { [all...] |
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | opal-rtc.c | 12 #include <linux/rtc.h> 67 struct device_node *rtc; local 69 rtc = of_find_node_by_path("/ibm,opal/rtc"); 70 if (rtc) { 71 pdev = of_platform_device_create(rtc, "opal-rtc", NULL); 72 of_node_put(rtc); 76 pdev = platform_device_register_simple("opal-rtc", -1,
|
/linux-master/arch/sh/kernel/ |
H A D | time.c | 18 #include <linux/rtc.h> 20 #include <asm/rtc.h>
|
/linux-master/arch/mips/cobalt/ |
H A D | Makefile | 6 obj-y := buttons.o irq.o lcd.o led.o mtd.o reset.o rtc.o serial.o setup.o time.o
|
/linux-master/include/linux/ |
H A D | cuda.h | 11 #include <linux/rtc.h>
|
/linux-master/arch/m68k/include/asm/ |
H A D | virt.h | 15 struct virt_booter_device_data rtc; member in struct:virt_booter_data
|
/linux-master/arch/alpha/kernel/ |
H A D | rtc.c | 3 * linux/arch/alpha/kernel/rtc.c 16 #include <linux/rtc.h> 25 * We don't want to use the rtc-cmos driver, because we don't want to support 77 printk(KERN_INFO "Using epoch %d for rtc year %d\n", epoch, year); 207 struct rtc_device *rtc; local 211 pdev = platform_device_register_simple("rtc-alpha", -1, NULL, 0); 212 rtc = devm_rtc_allocate_device(&pdev->dev); 213 if (IS_ERR(rtc)) 214 return PTR_ERR(rtc); 216 platform_set_drvdata(pdev, rtc); [all...] |