Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/rtc/
Drtc-rv3029c2.c72 #define RV3029_A_SC 0x10 macro
428 ret = rv3029_read_regs(dev, RV3029_A_SC, regs, in rv3029_read_alarm()
447 tm->tm_sec = bcd2bin(regs[RV3029_A_SC - RV3029_A_SC] & 0x7f); in rv3029_read_alarm()
448 tm->tm_min = bcd2bin(regs[RV3029_A_MN - RV3029_A_SC] & 0x7f); in rv3029_read_alarm()
449 tm->tm_hour = bcd2bin(regs[RV3029_A_HR - RV3029_A_SC] & 0x3f); in rv3029_read_alarm()
450 tm->tm_mday = bcd2bin(regs[RV3029_A_DT - RV3029_A_SC] & 0x3f); in rv3029_read_alarm()
451 tm->tm_mon = bcd2bin(regs[RV3029_A_MO - RV3029_A_SC] & 0x1f) - 1; in rv3029_read_alarm()
452 tm->tm_year = bcd2bin(regs[RV3029_A_YR - RV3029_A_SC] & 0x7f) + 100; in rv3029_read_alarm()
453 tm->tm_wday = bcd2bin(regs[RV3029_A_DW - RV3029_A_SC] & 0x07) - 1; in rv3029_read_alarm()
508 regs[RV3029_A_SC - RV3029_A_SC] = bin2bcd(tm->tm_sec) | RV3029_A_AE_X; in rv3029_set_alarm()
[all …]