Home
last modified time | relevance | path

Searched refs:alarm_tm (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/rtc/
Drtc-ab-b5ze-s3.c301 struct rtc_time rtc_tm, *alarm_tm = &alarm->time; in _abb5zes3_rtc_read_timer() local
335 rtc_time64_to_tm(rtc_secs + timer_secs, alarm_tm); in _abb5zes3_rtc_read_timer()
354 struct rtc_time rtc_tm, *alarm_tm = &alarm->time; in _abb5zes3_rtc_read_alarm() local
368 alarm_tm->tm_sec = 0; in _abb5zes3_rtc_read_alarm()
369 alarm_tm->tm_min = bcd2bin(regs[0] & 0x7f); in _abb5zes3_rtc_read_alarm()
370 alarm_tm->tm_hour = bcd2bin(regs[1] & 0x3f); in _abb5zes3_rtc_read_alarm()
371 alarm_tm->tm_mday = bcd2bin(regs[2] & 0x3f); in _abb5zes3_rtc_read_alarm()
372 alarm_tm->tm_wday = -1; in _abb5zes3_rtc_read_alarm()
383 alarm_tm->tm_year = rtc_tm.tm_year; in _abb5zes3_rtc_read_alarm()
384 alarm_tm->tm_mon = rtc_tm.tm_mon; in _abb5zes3_rtc_read_alarm()
[all …]
Drtc-isl1208.c429 struct rtc_time *alarm_tm = &alarm->time; in isl1208_i2c_set_alarm() local
440 if (!alarm->enabled || rtc_tm_sub(alarm_tm, &rtc_tm) <= 0) in isl1208_i2c_set_alarm()
446 regs[ISL1208_REG_SCA - offs] = bin2bcd(alarm_tm->tm_sec) | enable; in isl1208_i2c_set_alarm()
447 regs[ISL1208_REG_MNA - offs] = bin2bcd(alarm_tm->tm_min) | enable; in isl1208_i2c_set_alarm()
448 regs[ISL1208_REG_HRA - offs] = bin2bcd(alarm_tm->tm_hour) | in isl1208_i2c_set_alarm()
451 regs[ISL1208_REG_DTA - offs] = bin2bcd(alarm_tm->tm_mday) | enable; in isl1208_i2c_set_alarm()
452 regs[ISL1208_REG_MOA - offs] = bin2bcd(alarm_tm->tm_mon + 1) | enable; in isl1208_i2c_set_alarm()
453 regs[ISL1208_REG_DWA - offs] = bin2bcd(alarm_tm->tm_wday & 7) | enable; in isl1208_i2c_set_alarm()
Drtc-88pm80x.c173 struct rtc_time now_tm, alarm_tm; in pm80x_rtc_set_alarm() local
195 rtc_next_alarm_time(&alarm_tm, &now_tm, &alrm->time); in pm80x_rtc_set_alarm()
197 ticks = rtc_tm_to_time64(&alarm_tm); in pm80x_rtc_set_alarm()