Struct rtc_wkalrm
WebFeb 15, 2024 · TA_EN : TA_DIS);++return 0;+}++static int bbnsm_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)+{+struct bbnsm_rtc *bbnsm = dev_get_drvdata(dev);+unsigned long time = rtc_tm_to_time64(&alrm->time);++/* disable the alarm */+regmap_update_bits(bbnsm->regmap, BBNSM_CTRL, TA_EN, TA_EN);++/* write … WebJan 8, 2009 · If so, the module will be called rtc-ds1742. +config RTC_DRV_EFI + tristate "EFI RTC" + depends on IA64 + help + If you say yes here you will get support for the EFI + Real Time Clock. + + This driver can also be built as a module.
Struct rtc_wkalrm
Did you know?
Webstruct rtc_wkalrm { unsigned char enabled; unsigned char pending; struct rtc_time time; }; The enabled flag is used to enable or disable the alarm interrupt, or to read its current status; when using these calls, RTC_AIE_ON and RTC_AIE_OFF are not used. The pending flag is … WebFeb 2, 2024 · static int pm8xxx_rtc_set_alarm (struct device *dev, struct rtc_wkalrm *alarm) { - int rc, i; u8 value [NUM_8_BIT_RTC_REGS]; struct pm8xxx_rtc *rtc_dd = dev_get_drvdata (dev); const struct pm8xxx_rtc_regs *regs = rtc_dd->regs; unsigned long secs; + int rc; secs = rtc_tm_to_time64 (&alarm->time); - - for (i = 0; i < NUM_8_BIT_RTC_REGS; i++) {
Web* [PATCH 1/4] rtc: wm831x: set range @ 2024-03-22 7:13 Alexandre Belloni 2024-03-22 7:13 ` [PATCH 2/4] rtc: wm831x: remove unnecessary goto Alexandre Belloni ` (2 more replies) 0 siblings, 3 replies; 6+ messages in thread From: Alexandre Belloni @ 2024-03-22 7:13 UTC (permalink / raw) To: linux-rtc; +Cc: linux-kernel, Alexandre Belloni The ... WebLKML Archive on lore.kernel.org help / color / mirror / Atom feed * [PATCH] rtc: sc27xx: Always read normal alarm @ 2024-11-17 21:22 Alexandre Belloni 2024-11-18 6:31 ` Chunyan Zhang 0 siblings, 1 reply; 2+ messages in thread From: Alexandre Belloni @ 2024-11-17 21:22 UTC (permalink / raw) To: Alessandro Zummo, Alexandre Belloni, Orson Zhai, Baolin …
WebThe kernel uses 32-bit signed value (time_t) for seconds since 1970-01-01:00:00:00, thus it. will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. Currently, rtc_time_to_tm () deals with "unsigned long" which is 2038 unsafe on 32-bit systems. As part of addressing 2038 saftey for in-kernel uses, this patch ... WebMay 5, 2011 · Enable alarm if disabled in step 1. + */ +static int +pm8xxx_rtc_set_time (struct device *dev, struct rtc_time *tm) + { + int rc; + unsigned long secs, irq_flags; + u8 value [4], reg = 0, alarm_enabled = 0, ctrl_reg; + struct pm8xxx_rtc *rtc_dd = dev_get_drvdata (dev); + + rtc_tm_to_time (tm, &secs); + + value [0] = secs & 0xFF; + value [1] = …
http://visa.lab.asu.edu/gitlab/fstrace/android-kernel-msm-hammerhead-3.4-marshmallow-mr3/blob/626b413c34856d9143bb1d1e60aeb2bc889a3e1a/drivers/rtc/qpnp-rtc.c
Web*/ struct rtc_wkalrm { unsigned char enabled; /* 0 = alarm disabled, 1 = alarm enabled */ unsigned char pending; /* 0 = alarm not pending, 1 = alarm pending */ struct rtc_time time; … rockwool typesWebFile: rtc-sysfs.c package info (click to toggle) linux 3.16.7-ckt4-3 links: PTS , VCS area: main in suites: jessie size: 736,636 kB ctags: 2,374,727 sloc : ansic: 12,214,218; asm: 277,326; perl: 54,003; xml: 47,771; makefile: 30,483; sh: 8,035; python: 6,597; cpp: 5,124; yacc: 4,254; lex: 2,215; awk: 741; pascal: 231; lisp: 218; sed: 30 rockwool ul ratingWebJan 22, 2024 · The pending > flag is used by RTC_WKALM_RD to report a pending interrupt > (so it's mostly useless on Linux, except when talking to the > RTC managed by EFI firmware). The time field is as used with > RTC_ALM_READ and RTC_ALM_SET except that the tm_mday, tm_mon, > and tm_year fields are also valid. otthon netWebApr 15, 2024 · 介绍Linux环境下基于I2C协议的RTC驱动程序开发与实现。首先研究了Linux环境下字符设备驱动程序框架,然后介绍I2C协议,在此基础上开发基于I2C协议的RTC字符 … rockwool tube insulationWebAdding support for Analog Devices MAX313XX series RTCs. Signed-off-by: Ibrahim Tilki Signed-off-by: Zeynep Arslanbenzer rock wool ul assemblyWeb@@ -267,21 +298,16 @@ static int pm8xxx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) int rc; unsigned int ctrl_reg; - u8 value[NUM_8_BIT_RTC_REGS]; unsigned long secs; struct pm8xxx_rtc *rtc_dd = dev_get_drvdata(dev); const struct pm8xxx_rtc_regs *regs = rtc_dd->regs; - rc = regmap_bulk_read(rtc_dd->regmap, regs->alarm_rw, value, otthonok.comWebGenerated on 2024-Aug-17 from project linux revision v6.0-rc1 Powered by Code Browser 2.1 Generator usage only permitted with license. otthonnet pro