Home
last modified time | relevance | path

Searched refs:RSECCNT (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-r9701.c24 #define RSECCNT 0x00 /* Second Counter */ macro
71 unsigned char buf[] = { RSECCNT, RMINCNT, RHRCNT, in r9701_get_datetime()
78 dt->tm_sec = bcd2bin(buf[0]); /* RSECCNT */ in r9701_get_datetime()
95 ret = ret ? ret : write_reg(dev, RSECCNT, bin2bcd(dt->tm_sec)); in r9701_set_datetime()
H A Drtc-sh.c44 #define RSECCNT RTC_REG(1) /* RTC sec */ macro
294 tm->tm_sec = bcd2bin(readb(rtc->regbase + RSECCNT)); in sh_rtc_read_time()
350 writeb(bin2bcd(tm->tm_sec), rtc->regbase + RSECCNT); in sh_rtc_set_time()
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-r9701.c24 #define RSECCNT 0x00 /* Second Counter */ macro
71 unsigned char buf[] = { RSECCNT, RMINCNT, RHRCNT, in r9701_get_datetime()
78 dt->tm_sec = bcd2bin(buf[0]); /* RSECCNT */ in r9701_get_datetime()
95 ret = ret ? ret : write_reg(dev, RSECCNT, bin2bcd(dt->tm_sec)); in r9701_set_datetime()
H A Drtc-sh.c44 #define RSECCNT RTC_REG(1) /* RTC sec */ macro
294 tm->tm_sec = bcd2bin(readb(rtc->regbase + RSECCNT)); in sh_rtc_read_time()
350 writeb(bin2bcd(tm->tm_sec), rtc->regbase + RSECCNT); in sh_rtc_set_time()

Completed in 4 milliseconds