/linux-master/drivers/rtc/ |
H A D | rtc-sun6i.c | 7 * based on rtc-sunxi.c 28 #include <linux/rtc.h> 145 struct rtc_device *rtc; member in struct:sun6i_rtc_dev 165 struct sun6i_rtc_dev *rtc = container_of(hw, struct sun6i_rtc_dev, hw); local 168 val = readl(rtc->base + SUN6I_LOSC_CTRL); 172 if (rtc->data->fixed_prescaler) 173 parent_rate /= rtc->data->fixed_prescaler; 175 if (rtc->data->has_prescaler) { 176 val = readl(rtc->base + SUN6I_LOSC_CLK_PRESCAL); 185 struct sun6i_rtc_dev *rtc local 192 struct sun6i_rtc_dev *rtc = container_of(hw, struct sun6i_rtc_dev, hw); local 226 struct sun6i_rtc_dev *rtc; local [all...] |
H A D | rtc-mt7622.c | 14 #include <linux/rtc.h> 102 struct rtc_device *rtc; member in struct:mtk_rtc 108 static void mtk_w32(struct mtk_rtc *rtc, u32 reg, u32 val) argument 110 writel_relaxed(val, rtc->base + reg); 113 static u32 mtk_r32(struct mtk_rtc *rtc, u32 reg) argument 115 return readl_relaxed(rtc->base + reg); 118 static void mtk_rmw(struct mtk_rtc *rtc, u32 reg, u32 mask, u32 set) argument 122 val = mtk_r32(rtc, reg); 125 mtk_w32(rtc, reg, val); 128 static void mtk_set(struct mtk_rtc *rtc, u3 argument 133 mtk_clr(struct mtk_rtc *rtc, u32 reg, u32 val) argument [all...] |
H A D | rtc-efi.c | 3 * rtc-efi: RTC Class Driver for EFI-based systems 18 #include <linux/rtc.h> 194 struct rtc_device *rtc = dev_get_drvdata(dev); local 217 if (test_bit(RTC_FEATURE_ALARM, rtc->features)) { 259 struct rtc_device *rtc; local 267 rtc = devm_rtc_allocate_device(&dev->dev); 268 if (IS_ERR(rtc)) 269 return PTR_ERR(rtc); 271 platform_set_drvdata(dev, rtc); 273 rtc [all...] |
H A D | rtc-rx8010.c | 15 #include <linux/rtc.h> 66 struct rtc_device *rtc; member in struct:rx8010_data 76 rtc_lock(rx8010->rtc); 80 rtc_unlock(rx8010->rtc); 89 rtc_update_irq(rx8010->rtc, 1, RTC_PF | RTC_IRQF); 94 rtc_update_irq(rx8010->rtc, 1, RTC_AF | RTC_IRQF); 99 rtc_update_irq(rx8010->rtc, 1, RTC_UF | RTC_IRQF); 103 rtc_unlock(rx8010->rtc); 289 if (rx8010->rtc->uie_rtctimer.enabled) 291 if (rx8010->rtc [all...] |
H A D | rtc-tps6594.c | 19 #include <linux/rtc.h> 328 static irqreturn_t tps6594_rtc_interrupt(int irq, void *rtc) argument 330 struct device *dev = rtc; 359 struct rtc_device *rtc; local 363 rtc = devm_kzalloc(dev, sizeof(*rtc), GFP_KERNEL); 364 if (!rtc) 367 rtc = devm_rtc_allocate_device(dev); 368 if (IS_ERR(rtc)) 369 return PTR_ERR(rtc); [all...] |
H A D | rtc-rp5c01.c | 15 #include <linux/rtc.h> 66 struct rtc_device *rtc; member in struct:rp5c01_priv 222 struct rtc_device *rtc; local 249 rtc = devm_rtc_allocate_device(&dev->dev); 250 if (IS_ERR(rtc)) 251 return PTR_ERR(rtc); 253 rtc->ops = &rp5c01_rtc_ops; 255 priv->rtc = rtc; 258 error = devm_rtc_nvmem_register(rtc, [all...] |
H A D | rtc-opal.c | 9 #define DRVNAME "rtc-opal" 13 #include <linux/rtc.h> 111 * with the rtc utility time conversion functions, we use the 'u64' to store 221 * non-zero rtc-time. We only handle disable case which needs to be 237 struct rtc_device *rtc; local 239 rtc = devm_rtc_allocate_device(&pdev->dev); 240 if (IS_ERR(rtc)) 241 return PTR_ERR(rtc); 248 clear_bit(RTC_FEATURE_ALARM, rtc->features); 250 rtc [all...] |
H A D | rtc-max8925.c | 12 #include <linux/rtc.h> 67 struct i2c_client *rtc; member in struct:max8925_rtc_info 77 max8925_set_bits(info->rtc, MAX8925_ALARM0_CNTL, 0x7f, 0); 157 ret = max8925_bulk_read(info->rtc, MAX8925_RTC_SEC, TIME_NUM, buf); 174 ret = max8925_bulk_write(info->rtc, MAX8925_RTC_SEC, TIME_NUM, buf); 185 ret = max8925_bulk_read(info->rtc, MAX8925_ALARM0_SEC, TIME_NUM, buf); 191 ret = max8925_reg_read(info->rtc, MAX8925_RTC_IRQ_MASK); 197 ret = max8925_reg_read(info->rtc, MAX8925_ALARM0_CNTL); 205 ret = max8925_reg_read(info->rtc, MAX8925_RTC_STATUS); 226 ret = max8925_bulk_write(info->rtc, MAX8925_ALARM0_SE [all...] |
H A D | rtc-pcf2123.c | 20 * .modalias = "rtc-pcf2123", 40 #include <linux/rtc.h> 108 struct rtc_device *rtc; member in struct:pcf2123_data 193 tm->tm_hour = bcd2bin(rxbuf[2] & 0x3F); /* rtc hr 0-23 */ 196 tm->tm_mon = bcd2bin(rxbuf[5] & 0x1F) - 1; /* rtc mn 1-12 */ 223 txbuf[5] = bin2bcd((tm->tm_mon + 1) & 0x1F); /* rtc mn 1-12 */ 313 rtc_lock(pcf2123->rtc); 323 rtc_update_irq(pcf2123->rtc, 1, RTC_IRQF | RTC_AF); 326 rtc_unlock(pcf2123->rtc); 377 struct rtc_device *rtc; local [all...] |
H A D | rtc-rs5c348.c | 20 #include <linux/rtc.h> 54 struct rtc_device *rtc; member in struct:rs5c348_plat_data 167 struct rtc_device *rtc; local 192 rtc = devm_rtc_allocate_device(&spi->dev); 193 if (IS_ERR(rtc)) 194 return PTR_ERR(rtc); 196 pdata->rtc = rtc; 198 rtc->ops = &rs5c348_rtc_ops; 200 return devm_rtc_register_device(rtc); [all...] |
H A D | rtc-vt8500.c | 3 * drivers/rtc/rtc-vt8500.c 7 * Based on rtc-pxa.c 11 #include <linux/rtc.h> 75 struct rtc_device *rtc; member in struct:vt8500_rtc 96 rtc_update_irq(vt8500_rtc->rtc, 1, events); 219 vt8500_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); 220 if (IS_ERR(vt8500_rtc->rtc)) 221 return PTR_ERR(vt8500_rtc->rtc); 223 vt8500_rtc->rtc [all...] |
H A D | rtc-cros-ec.c | 12 #include <linux/rtc.h> 15 #define DRV_NAME "cros-ec-rtc" 23 * @rtc: Pointer to RTC device 29 struct rtc_device *rtc; member in struct:cros_ec_rtc 264 struct rtc_device *rtc; local 269 rtc = cros_ec_rtc->rtc; 274 rtc_update_irq(rtc, 1, RTC_IRQF | RTC_AF); 345 cros_ec_rtc->rtc = devm_rtc_allocate_device(&pdev->dev); 346 if (IS_ERR(cros_ec_rtc->rtc)) [all...] |
H A D | rtc-max8997.c | 7 // based on rtc-max8998.c 12 #include <linux/rtc.h> 67 struct i2c_client *rtc; member in struct:max8997_rtc_info 117 ret = max8997_write_reg(info->rtc, MAX8997_RTC_UPDATE1, 139 ret = max8997_bulk_read(info->rtc, MAX8997_RTC_SEC, RTC_NR_TIME, data); 165 ret = max8997_bulk_write(info->rtc, MAX8997_RTC_SEC, RTC_NR_TIME, data); 187 ret = max8997_bulk_read(info->rtc, MAX8997_RTC_ALARM1_SEC, RTC_NR_TIME, 229 ret = max8997_bulk_read(info->rtc, MAX8997_RTC_ALARM1_SEC, RTC_NR_TIME, 240 ret = max8997_bulk_write(info->rtc, MAX8997_RTC_ALARM1_SEC, RTC_NR_TIME, 261 ret = max8997_bulk_read(info->rtc, MAX8997_RTC_ALARM1_SE [all...] |
H A D | rtc-wm8350.c | 14 #include <linux/rtc.h> 19 #include <linux/mfd/wm8350/rtc.h> 301 struct rtc_device *rtc = wm8350->rtc.rtc; local 304 rtc_update_irq(rtc, 1, RTC_IRQF | RTC_AF); 310 dev_err(&(wm8350->rtc.pdev->dev), 320 struct rtc_device *rtc = wm8350->rtc.rtc; local [all...] |
H A D | rtc-pcf8523.c | 11 #include <linux/rtc.h> 51 struct rtc_device *rtc; member in struct:pcf8523 64 dev_warn(&pcf8523->rtc->dev, "Unknown quartz-load-femtofarads value: %d. Assuming 12500", 91 rtc_update_irq(pcf8523->rtc, 1, RTC_IRQF | RTC_AF); 419 struct rtc_device *rtc; local 437 rtc = devm_rtc_allocate_device(&client->dev); 438 if (IS_ERR(rtc)) 439 return PTR_ERR(rtc); 440 pcf8523->rtc = rtc; [all...] |
H A D | rtc-max6916.c | 2 /* rtc-max6916.c 14 #include <linux/rtc.h> 18 /* Registers in max6916 rtc */ 98 /* write the rtc settings */ 109 struct rtc_device *rtc; local 123 /* Disable the write protect of rtc */ 140 rtc = devm_rtc_device_register(&spi->dev, "max6916", 142 if (IS_ERR(rtc)) 143 return PTR_ERR(rtc); 145 spi_set_drvdata(spi, rtc); [all...] |
H A D | rtc-max6902.c | 2 /* drivers/rtc/rtc-max6902.c 14 #include <linux/rtc.h> 121 struct rtc_device *rtc; local 133 rtc = devm_rtc_device_register(&spi->dev, "max6902", 135 if (IS_ERR(rtc)) 136 return PTR_ERR(rtc); 138 spi_set_drvdata(spi, rtc); 144 .name = "rtc-max6902", 154 MODULE_ALIAS("spi:rtc [all...] |
H A D | rtc-m41t94.c | 11 #include <linux/rtc.h> 111 struct rtc_device *rtc; local 123 rtc = devm_rtc_device_register(&spi->dev, m41t94_driver.driver.name, 125 if (IS_ERR(rtc)) 126 return PTR_ERR(rtc); 128 spi_set_drvdata(spi, rtc); 135 .name = "rtc-m41t94", 145 MODULE_ALIAS("spi:rtc-m41t94");
|
H A D | rtc-em3027.c | 3 * An rtc/i2c driver for the EM Microelectronic EM3027 8 * Based on rtc-ds1672.c by Alessandro Zummo <a.zummo@towertech.it> 12 #include <linux/rtc.h> 116 struct rtc_device *rtc; local 121 rtc = devm_rtc_device_register(&client->dev, em3027_driver.driver.name, 123 if (IS_ERR(rtc)) 124 return PTR_ERR(rtc); 126 i2c_set_clientdata(client, rtc); 147 .name = "rtc-em3027",
|
H A D | rtc-max8998.c | 14 #include <linux/rtc.h> 69 struct i2c_client *rtc; member in struct:max8998_rtc_info 111 ret = max8998_bulk_read(info->rtc, MAX8998_RTC_SEC, 8, data); 128 ret = max8998_bulk_write(info->rtc, MAX8998_RTC_SEC, 8, data); 143 ret = max8998_bulk_read(info->rtc, MAX8998_ALARM0_SEC, 8, data); 149 ret = max8998_read_reg(info->rtc, MAX8998_ALARM0_CONF, &val); 155 ret = max8998_read_reg(info->rtc, MAX8998_RTC_STATUS, &val); 169 int ret = max8998_write_reg(info->rtc, MAX8998_ALARM0_CONF, 0); 182 /* LP3974 with delay bug chips has rtc alarm bugs with "MONTH" field */ 186 ret = max8998_write_reg(info->rtc, MAX8998_ALARM0_CON [all...] |
H A D | rtc-bd70528.c | 14 #include <linux/rtc.h> 229 struct rtc_device *rtc = data; local 231 rtc_update_irq(rtc, 1, RTC_IRQF | RTC_AF | RTC_PF); 241 struct rtc_device *rtc; local 262 irq_name = "bd71815-rtc-alm-0"; 279 irq_name = "bd71828-rtc-alm-0"; 321 rtc = devm_rtc_allocate_device(&pdev->dev); 322 if (IS_ERR(rtc)) { 324 return PTR_ERR(rtc); 327 rtc [all...] |
/linux-master/arch/x86/platform/olpc/ |
H A D | Makefile | 4 obj-$(CONFIG_OLPC_XO1_RTC) += olpc-xo1-rtc.o
|
/linux-master/arch/mips/include/asm/mach-rc32434/ |
H A D | timer.h | 47 u32 rtc; /* use RTC_ */ member in struct:timer
|
/linux-master/arch/mips/include/asm/ |
H A D | time.h | 13 #include <linux/rtc.h>
|
/linux-master/tools/testing/selftests/timers/ |
H A D | rtcpie.c | 12 #include <linux/rtc.h> 34 const char *rtc = default_rtc; local 39 rtc = argv[1]; 54 fd = open(rtc, O_RDONLY); 57 perror(rtc);
|