Home
last modified time | relevance | path

Searched refs:alrm (Results 1 – 25 of 62) sorted by relevance

123

/linux/drivers/rtc/
A Drtc-asm9260.c196 alrm->time.tm_mon = ioread32(priv->iobase + HW_ALMON); in asm9260_rtc_read_alarm()
197 alrm->time.tm_mday = ioread32(priv->iobase + HW_ALDOM); in asm9260_rtc_read_alarm()
198 alrm->time.tm_wday = ioread32(priv->iobase + HW_ALDOW); in asm9260_rtc_read_alarm()
199 alrm->time.tm_yday = ioread32(priv->iobase + HW_ALDOY); in asm9260_rtc_read_alarm()
201 alrm->time.tm_min = ioread32(priv->iobase + HW_ALMIN); in asm9260_rtc_read_alarm()
202 alrm->time.tm_sec = ioread32(priv->iobase + HW_ALSEC); in asm9260_rtc_read_alarm()
207 return rtc_valid_tm(&alrm->time); in asm9260_rtc_read_alarm()
215 iowrite32(alrm->time.tm_mon, priv->iobase + HW_ALMON); in asm9260_rtc_set_alarm()
216 iowrite32(alrm->time.tm_mday, priv->iobase + HW_ALDOM); in asm9260_rtc_set_alarm()
217 iowrite32(alrm->time.tm_wday, priv->iobase + HW_ALDOW); in asm9260_rtc_set_alarm()
[all …]
A Drtc-rk808.c213 rockchip_to_gregorian(&alrm->time); in rk808_rtc_readalarm()
222 &alrm->time, alrm->time.tm_wday, &alrm->time); in rk808_rtc_readalarm()
265 &alrm->time, alrm->time.tm_wday, &alrm->time); in rk808_rtc_setalarm()
267 gregorian_to_rockchip(&alrm->time); in rk808_rtc_setalarm()
268 alrm_data[0] = bin2bcd(alrm->time.tm_sec); in rk808_rtc_setalarm()
269 alrm_data[1] = bin2bcd(alrm->time.tm_min); in rk808_rtc_setalarm()
270 alrm_data[2] = bin2bcd(alrm->time.tm_hour); in rk808_rtc_setalarm()
271 alrm_data[3] = bin2bcd(alrm->time.tm_mday); in rk808_rtc_setalarm()
272 alrm_data[4] = bin2bcd(alrm->time.tm_mon + 1); in rk808_rtc_setalarm()
273 alrm_data[5] = bin2bcd(alrm->time.tm_year - 100); in rk808_rtc_setalarm()
[all …]
A Drtc-rc5t619.c255 alrm->time.tm_sec = bcd2bin(buff[0]); in rc5t619_rtc_read_alarm()
256 alrm->time.tm_min = bcd2bin(buff[1]); in rc5t619_rtc_read_alarm()
259 alrm->time.tm_hour = bcd2bin(buff[2]); in rc5t619_rtc_read_alarm()
263 alrm->time.tm_mday = bcd2bin(buff[3]); in rc5t619_rtc_read_alarm()
291 if (alrm->enabled == 0) in rc5t619_rtc_set_alarm()
294 if (alrm->time.tm_year >= 100) in rc5t619_rtc_set_alarm()
299 alrm->time.tm_mon += 1; in rc5t619_rtc_set_alarm()
300 buff[0] = bin2bcd(alrm->time.tm_sec); in rc5t619_rtc_set_alarm()
301 buff[1] = bin2bcd(alrm->time.tm_min); in rc5t619_rtc_set_alarm()
308 buff[3] = bin2bcd(alrm->time.tm_mday); in rc5t619_rtc_set_alarm()
[all …]
A Drtc-vt8500.c147 alrm->time.tm_mday = bcd2bin((alarm & ALARM_DAY_MASK) >> ALARM_DAY_S); in vt8500_rtc_read_alarm()
149 alrm->time.tm_min = bcd2bin((alarm & TIME_MIN_MASK) >> TIME_MIN_S); in vt8500_rtc_read_alarm()
150 alrm->time.tm_sec = bcd2bin((alarm & TIME_SEC_MASK)); in vt8500_rtc_read_alarm()
152 alrm->enabled = (alarm & ALARM_ENABLE_MASK) ? 1 : 0; in vt8500_rtc_read_alarm()
153 alrm->pending = (isr & VT8500_RTC_IS_ALARM) ? 1 : 0; in vt8500_rtc_read_alarm()
155 return rtc_valid_tm(&alrm->time); in vt8500_rtc_read_alarm()
162 writel((alrm->enabled ? ALARM_ENABLE_MASK : 0) in vt8500_rtc_set_alarm()
163 | (bin2bcd(alrm->time.tm_mday) << ALARM_DAY_S) in vt8500_rtc_set_alarm()
164 | (bin2bcd(alrm->time.tm_hour) << TIME_HOUR_S) in vt8500_rtc_set_alarm()
165 | (bin2bcd(alrm->time.tm_min) << TIME_MIN_S) in vt8500_rtc_set_alarm()
[all …]
A Dproc.c44 struct rtc_wkalrm alrm; in rtc_proc_show() local
55 err = rtc_read_alarm(rtc, &alrm); in rtc_proc_show()
57 seq_printf(seq, "alrm_time\t: %ptRt\n", &alrm.time); in rtc_proc_show()
58 seq_printf(seq, "alrm_date\t: %ptRd\n", &alrm.time); in rtc_proc_show()
60 alrm.enabled ? "yes" : "no"); in rtc_proc_show()
62 alrm.pending ? "yes" : "no"); in rtc_proc_show()
A Drtc-pcf85363.c193 alrm->time.tm_sec = bcd2bin(buf[0]); in pcf85363_rtc_read_alarm()
194 alrm->time.tm_min = bcd2bin(buf[1]); in pcf85363_rtc_read_alarm()
195 alrm->time.tm_hour = bcd2bin(buf[2]); in pcf85363_rtc_read_alarm()
196 alrm->time.tm_mday = bcd2bin(buf[3]); in pcf85363_rtc_read_alarm()
197 alrm->time.tm_mon = bcd2bin(buf[4]) - 1; in pcf85363_rtc_read_alarm()
203 alrm->enabled = !!(val & INT_A1IE); in pcf85363_rtc_read_alarm()
244 buf[0] = bin2bcd(alrm->time.tm_sec); in pcf85363_rtc_set_alarm()
245 buf[1] = bin2bcd(alrm->time.tm_min); in pcf85363_rtc_set_alarm()
246 buf[2] = bin2bcd(alrm->time.tm_hour); in pcf85363_rtc_set_alarm()
247 buf[3] = bin2bcd(alrm->time.tm_mday); in pcf85363_rtc_set_alarm()
[all …]
A Drtc-pcf50633.c171 static int pcf50633_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pcf50633_rtc_read_alarm() argument
179 alrm->enabled = rtc->alarm_enabled; in pcf50633_rtc_read_alarm()
180 alrm->pending = rtc->alarm_pending; in pcf50633_rtc_read_alarm()
189 pcf2rtc_time(&alrm->time, &pcf_tm); in pcf50633_rtc_read_alarm()
191 return rtc_valid_tm(&alrm->time); in pcf50633_rtc_read_alarm()
194 static int pcf50633_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pcf50633_rtc_set_alarm() argument
202 rtc2pcf_time(&pcf_tm, &alrm->time); in pcf50633_rtc_set_alarm()
216 if (!alrm->enabled) in pcf50633_rtc_set_alarm()
219 if (!alarm_masked || alrm->enabled) in pcf50633_rtc_set_alarm()
221 rtc->alarm_enabled = alrm->enabled; in pcf50633_rtc_set_alarm()
A Drtc-ds1553.c151 static int ds1553_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in ds1553_rtc_set_alarm() argument
157 pdata->alrm_mday = alrm->time.tm_mday; in ds1553_rtc_set_alarm()
158 pdata->alrm_hour = alrm->time.tm_hour; in ds1553_rtc_set_alarm()
159 pdata->alrm_min = alrm->time.tm_min; in ds1553_rtc_set_alarm()
160 pdata->alrm_sec = alrm->time.tm_sec; in ds1553_rtc_set_alarm()
161 if (alrm->enabled) in ds1553_rtc_set_alarm()
173 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; in ds1553_rtc_read_alarm()
174 alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; in ds1553_rtc_read_alarm()
175 alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; in ds1553_rtc_read_alarm()
176 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; in ds1553_rtc_read_alarm()
[all …]
A Drtc-goldfish.c33 struct rtc_wkalrm *alrm) in goldfish_rtc_read_alarm() argument
49 memset(alrm, 0, sizeof(struct rtc_wkalrm)); in goldfish_rtc_read_alarm()
51 rtc_time64_to_tm(rtc_alarm, &alrm->time); in goldfish_rtc_read_alarm()
54 alrm->enabled = 1; in goldfish_rtc_read_alarm()
56 alrm->enabled = 0; in goldfish_rtc_read_alarm()
62 struct rtc_wkalrm *alrm) in goldfish_rtc_set_alarm() argument
72 if (alrm->enabled) { in goldfish_rtc_set_alarm()
73 rtc_alarm64 = rtc_tm_to_time64(&alrm->time) * NSEC_PER_SEC; in goldfish_rtc_set_alarm()
A Drtc-rv8803.c294 alrm->time.tm_sec = 0; in rv8803_get_alarm()
295 alrm->time.tm_min = bcd2bin(alarmvals[0] & 0x7f); in rv8803_get_alarm()
296 alrm->time.tm_hour = bcd2bin(alarmvals[1] & 0x3f); in rv8803_get_alarm()
300 alrm->pending = (flags & RV8803_FLAG_AF) && alrm->enabled; in rv8803_get_alarm()
314 if (alrm->time.tm_sec) { in rv8803_set_alarm()
317 alarm_time += 60 - alrm->time.tm_sec; in rv8803_set_alarm()
318 rtc_time64_to_tm(alarm_time, &alrm->time); in rv8803_set_alarm()
329 alarmvals[0] = bin2bcd(alrm->time.tm_min); in rv8803_set_alarm()
330 alarmvals[1] = bin2bcd(alrm->time.tm_hour); in rv8803_set_alarm()
331 alarmvals[2] = bin2bcd(alrm->time.tm_mday); in rv8803_set_alarm()
[all …]
A Drtc-stk17ta8.c159 static int stk17ta8_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in stk17ta8_rtc_set_alarm() argument
165 pdata->alrm_mday = alrm->time.tm_mday; in stk17ta8_rtc_set_alarm()
166 pdata->alrm_hour = alrm->time.tm_hour; in stk17ta8_rtc_set_alarm()
167 pdata->alrm_min = alrm->time.tm_min; in stk17ta8_rtc_set_alarm()
168 pdata->alrm_sec = alrm->time.tm_sec; in stk17ta8_rtc_set_alarm()
169 if (alrm->enabled) in stk17ta8_rtc_set_alarm()
181 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; in stk17ta8_rtc_read_alarm()
182 alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; in stk17ta8_rtc_read_alarm()
183 alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; in stk17ta8_rtc_read_alarm()
184 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; in stk17ta8_rtc_read_alarm()
[all …]
A Drtc-ds1511.c306 ds1511_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in ds1511_rtc_set_alarm() argument
313 pdata->alrm_mday = alrm->time.tm_mday; in ds1511_rtc_set_alarm()
314 pdata->alrm_hour = alrm->time.tm_hour; in ds1511_rtc_set_alarm()
315 pdata->alrm_min = alrm->time.tm_min; in ds1511_rtc_set_alarm()
316 pdata->alrm_sec = alrm->time.tm_sec; in ds1511_rtc_set_alarm()
317 if (alrm->enabled) in ds1511_rtc_set_alarm()
325 ds1511_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in ds1511_rtc_read_alarm() argument
332 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; in ds1511_rtc_read_alarm()
334 alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; in ds1511_rtc_read_alarm()
335 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; in ds1511_rtc_read_alarm()
[all …]
A Drtc-88pm80x.c77 struct rtc_time *alrm) in rtc_next_alarm_time() argument
85 next->tm_hour = alrm->tm_hour; in rtc_next_alarm_time()
86 next->tm_min = alrm->tm_min; in rtc_next_alarm_time()
87 next->tm_sec = alrm->tm_sec; in rtc_next_alarm_time()
144 static int pm80x_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pm80x_rtc_read_alarm() argument
163 rtc_time64_to_tm(ticks, &alrm->time); in pm80x_rtc_read_alarm()
165 alrm->enabled = (ret & PM800_ALARM1_EN) ? 1 : 0; in pm80x_rtc_read_alarm()
166 alrm->pending = (ret & (PM800_ALARM | PM800_ALARM_WAKEUP)) ? 1 : 0; in pm80x_rtc_read_alarm()
170 static int pm80x_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pm80x_rtc_set_alarm() argument
195 rtc_next_alarm_time(&alarm_tm, &now_tm, &alrm->time); in pm80x_rtc_set_alarm()
[all …]
A Drtc-test.c24 static int test_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in test_rtc_read_alarm() argument
32 rtc_time64_to_tm(alarm, &alrm->time); in test_rtc_read_alarm()
33 alrm->enabled = rtd->alarm_en; in test_rtc_read_alarm()
38 static int test_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in test_rtc_set_alarm() argument
44 timeout = rtc_tm_to_time64(&alrm->time) - ktime_get_real_seconds(); in test_rtc_set_alarm()
55 if (alrm->enabled) in test_rtc_set_alarm()
58 rtd->alarm_en = alrm->enabled; in test_rtc_set_alarm()
A Drtc-max8925.c179 static int max8925_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in max8925_rtc_read_alarm() argument
188 ret = tm_calc(&alrm->time, buf, TIME_NUM); in max8925_rtc_read_alarm()
195 alrm->enabled = 0; in max8925_rtc_read_alarm()
201 alrm->enabled = 0; in max8925_rtc_read_alarm()
203 alrm->enabled = 1; in max8925_rtc_read_alarm()
209 alrm->pending = 1; in max8925_rtc_read_alarm()
211 alrm->pending = 0; in max8925_rtc_read_alarm()
217 static int max8925_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in max8925_rtc_set_alarm() argument
223 ret = data_calc(buf, &alrm->time, TIME_NUM); in max8925_rtc_set_alarm()
229 if (alrm->enabled) in max8925_rtc_set_alarm()
A Drtc-as3722.c104 static int as3722_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in as3722_rtc_read_alarm() argument
118 as3722_reg_to_time(as_time_array, &alrm->time); in as3722_rtc_read_alarm()
122 static int as3722_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in as3722_rtc_set_alarm() argument
129 if (alrm->time.tm_year < (AS3722_RTC_START_YEAR - 1900)) in as3722_rtc_set_alarm()
138 as3722_time_to_reg(as_time_array, &alrm->time); in as3722_rtc_set_alarm()
146 if (alrm->enabled) in as3722_rtc_set_alarm()
147 ret = as3722_rtc_alarm_irq_enable(dev, alrm->enabled); in as3722_rtc_set_alarm()
A Drtc-max8998.c136 static int max8998_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in max8998_rtc_read_alarm() argument
147 max8998_data_to_tm(data, &alrm->time); in max8998_rtc_read_alarm()
153 alrm->enabled = !!val; in max8998_rtc_read_alarm()
160 alrm->pending = 1; in max8998_rtc_read_alarm()
162 alrm->pending = 0; in max8998_rtc_read_alarm()
194 static int max8998_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in max8998_rtc_set_alarm() argument
200 max8998_tm_to_data(&alrm->time, data); in max8998_rtc_set_alarm()
213 if (alrm->enabled) in max8998_rtc_set_alarm()
A Drtc-at91rm9200.c249 struct rtc_time *tm = &alrm->time; in at91_rtc_readalarm()
254 alrm->enabled = (at91_rtc_read_imr() & AT91_RTC_ALARM) in at91_rtc_readalarm()
258 alrm->enabled ? "en" : "dis"); in at91_rtc_readalarm()
266 static int at91_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm) in at91_rtc_setalarm() argument
268 struct rtc_time tm = alrm->time; in at91_rtc_setalarm()
272 FIELD_PREP(AT91_RTC_SEC, bin2bcd(alrm->time.tm_sec)) in at91_rtc_setalarm()
273 | FIELD_PREP(AT91_RTC_MIN, bin2bcd(alrm->time.tm_min)) in at91_rtc_setalarm()
274 | FIELD_PREP(AT91_RTC_HOUR, bin2bcd(alrm->time.tm_hour)) in at91_rtc_setalarm()
277 FIELD_PREP(AT91_RTC_MONTH, bin2bcd(alrm->time.tm_mon + 1)) in at91_rtc_setalarm()
278 | FIELD_PREP(AT91_RTC_DATE, bin2bcd(alrm->time.tm_mday)) in at91_rtc_setalarm()
[all …]
A Drtc-mxc.c153 static void rtc_update_alarm(struct device *dev, struct rtc_time *alrm) in rtc_update_alarm() argument
159 time = rtc_tm_to_time64(alrm); in rtc_update_alarm()
259 static int mxc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in mxc_rtc_read_alarm() argument
264 rtc_time64_to_tm(get_alarm_or_time(dev, MXC_RTC_ALARM), &alrm->time); in mxc_rtc_read_alarm()
265 alrm->pending = ((readw(ioaddr + RTC_RTCISR) & RTC_ALM_BIT)) ? 1 : 0; in mxc_rtc_read_alarm()
273 static int mxc_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in mxc_rtc_set_alarm() argument
277 rtc_update_alarm(dev, &alrm->time); in mxc_rtc_set_alarm()
279 memcpy(&pdata->g_rtc_alarm, &alrm->time, sizeof(struct rtc_time)); in mxc_rtc_set_alarm()
280 mxc_rtc_irq_enable(dev, RTC_ALM_BIT, alrm->enabled); in mxc_rtc_set_alarm()
A Drtc-m41t80.c323 alarmvals[0] = bin2bcd(alrm->time.tm_mon + 1); in m41t80_set_alarm()
324 alarmvals[1] = bin2bcd(alrm->time.tm_mday); in m41t80_set_alarm()
325 alarmvals[2] = bin2bcd(alrm->time.tm_hour); in m41t80_set_alarm()
326 alarmvals[3] = bin2bcd(alrm->time.tm_min); in m41t80_set_alarm()
327 alarmvals[4] = bin2bcd(alrm->time.tm_sec); in m41t80_set_alarm()
361 if (alrm->enabled) { in m41t80_set_alarm()
387 alrm->time.tm_sec = bcd2bin(alarmvals[4] & 0x7f); in m41t80_read_alarm()
388 alrm->time.tm_min = bcd2bin(alarmvals[3] & 0x7f); in m41t80_read_alarm()
389 alrm->time.tm_hour = bcd2bin(alarmvals[2] & 0x3f); in m41t80_read_alarm()
390 alrm->time.tm_mday = bcd2bin(alarmvals[1] & 0x3f); in m41t80_read_alarm()
[all …]
A Drtc-sc27xx.c305 time64_t secs = rtc_tm_to_time64(&alrm->time); in sprd_rtc_set_aux_alarm()
318 if (alrm->enabled) { in sprd_rtc_set_aux_alarm()
383 static int sprd_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in sprd_rtc_read_alarm() argument
398 rtc_time64_to_tm(secs, &alrm->time); in sprd_rtc_read_alarm()
404 alrm->enabled = !!(val & SPRD_RTC_ALARM_EN); in sprd_rtc_read_alarm()
410 alrm->pending = !!(val & SPRD_RTC_ALARM_EN); in sprd_rtc_read_alarm()
414 static int sprd_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in sprd_rtc_set_alarm() argument
417 time64_t secs = rtc_tm_to_time64(&alrm->time); in sprd_rtc_set_alarm()
435 if (!rtc->rtc->aie_timer.enabled || rtc_tm_sub(&aie_time, &alrm->time)) in sprd_rtc_set_alarm()
436 return sprd_rtc_set_aux_alarm(dev, alrm); in sprd_rtc_set_alarm()
[all …]
A Drtc-pcf85063.c160 static int pcf85063_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pcf85063_rtc_read_alarm() argument
172 alrm->time.tm_sec = bcd2bin(buf[0]); in pcf85063_rtc_read_alarm()
173 alrm->time.tm_min = bcd2bin(buf[1]); in pcf85063_rtc_read_alarm()
174 alrm->time.tm_hour = bcd2bin(buf[2]); in pcf85063_rtc_read_alarm()
175 alrm->time.tm_mday = bcd2bin(buf[3]); in pcf85063_rtc_read_alarm()
181 alrm->enabled = !!(val & PCF85063_CTRL2_AIE); in pcf85063_rtc_read_alarm()
186 static int pcf85063_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pcf85063_rtc_set_alarm() argument
192 buf[0] = bin2bcd(alrm->time.tm_sec); in pcf85063_rtc_set_alarm()
193 buf[1] = bin2bcd(alrm->time.tm_min); in pcf85063_rtc_set_alarm()
194 buf[2] = bin2bcd(alrm->time.tm_hour); in pcf85063_rtc_set_alarm()
[all …]
A Drtc-max8907.c121 static int max8907_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in max8907_rtc_read_alarm() argument
133 regs_to_tm(regs, &alrm->time); in max8907_rtc_read_alarm()
139 alrm->enabled = !!(val & 0x7f); in max8907_rtc_read_alarm()
144 static int max8907_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in max8907_rtc_set_alarm() argument
150 tm_to_regs(&alrm->time, regs); in max8907_rtc_set_alarm()
162 if (alrm->enabled) in max8907_rtc_set_alarm()
A Drtc-s5m.c457 s5m8763_data_to_tm(data, &alrm->time); in s5m_rtc_read_alarm()
462 alrm->enabled = !!val; in s5m_rtc_read_alarm()
469 s5m8767_data_to_tm(data, &alrm->time, info->rtc_24hr_mode); in s5m_rtc_read_alarm()
470 alrm->enabled = 0; in s5m_rtc_read_alarm()
473 alrm->enabled = 1; in s5m_rtc_read_alarm()
483 dev_dbg(dev, "%s: %ptR(%d)\n", __func__, &alrm->time, alrm->time.tm_wday); in s5m_rtc_read_alarm()
485 return s5m_check_peding_alarm_interrupt(info, alrm); in s5m_rtc_read_alarm()
589 s5m8763_tm_to_data(&alrm->time, data); in s5m_rtc_set_alarm()
596 s5m8767_tm_to_data(&alrm->time, data); in s5m_rtc_set_alarm()
603 dev_dbg(dev, "%s: %ptR(%d)\n", __func__, &alrm->time, alrm->time.tm_wday); in s5m_rtc_set_alarm()
[all …]
/linux/arch/um/drivers/
A Drtc_kern.c44 static int uml_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in uml_rtc_read_alarm() argument
46 rtc_time64_to_tm(uml_rtc_alarm_time, &alrm->time); in uml_rtc_read_alarm()
47 alrm->enabled = uml_rtc_alarm_enabled; in uml_rtc_read_alarm()
82 static int uml_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in uml_rtc_set_alarm() argument
85 uml_rtc_alarm_time = rtc_tm_to_time64(&alrm->time); in uml_rtc_set_alarm()
86 uml_rtc_alarm_irq_enable(dev, alrm->enabled); in uml_rtc_set_alarm()

Completed in 47 milliseconds

123