Searched refs:alarm_tm (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/drivers/rtc/ |
D | rtc-ab-b5ze-s3.c | 301 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 …]
|
D | rtc-isl1208.c | 396 struct rtc_time *alarm_tm = &alarm->time; in isl1208_i2c_set_alarm() local 407 if (!alarm->enabled || rtc_tm_sub(alarm_tm, &rtc_tm) <= 0) in isl1208_i2c_set_alarm() 413 regs[ISL1208_REG_SCA - offs] = bin2bcd(alarm_tm->tm_sec) | enable; in isl1208_i2c_set_alarm() 414 regs[ISL1208_REG_MNA - offs] = bin2bcd(alarm_tm->tm_min) | enable; in isl1208_i2c_set_alarm() 415 regs[ISL1208_REG_HRA - offs] = bin2bcd(alarm_tm->tm_hour) | in isl1208_i2c_set_alarm() 418 regs[ISL1208_REG_DTA - offs] = bin2bcd(alarm_tm->tm_mday) | enable; in isl1208_i2c_set_alarm() 419 regs[ISL1208_REG_MOA - offs] = bin2bcd(alarm_tm->tm_mon + 1) | enable; in isl1208_i2c_set_alarm() 420 regs[ISL1208_REG_DWA - offs] = bin2bcd(alarm_tm->tm_wday & 7) | enable; in isl1208_i2c_set_alarm()
|
D | rtc-88pm80x.c | 173 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()
|
D | rtc-88pm860x.c | 193 struct rtc_time now_tm, alarm_tm; in pm860x_rtc_set_alarm() local 215 rtc_next_alarm_time(&alarm_tm, &now_tm, &alrm->time); in pm860x_rtc_set_alarm() 217 rtc_tm_to_time(&alarm_tm, &ticks); in pm860x_rtc_set_alarm()
|