Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/rtc/
Drtc-m48t59.c26 #define M48T59_WRITE(val, reg) \ macro
30 M48T59_WRITE((M48T59_READ(reg) | (mask)), (reg))
32 M48T59_WRITE((M48T59_READ(reg) & ~(mask)), (reg))
127 M48T59_WRITE((bin2bcd(tm->tm_sec) & 0x7F), M48T59_SEC); in m48t59_rtc_set_time()
128 M48T59_WRITE((bin2bcd(tm->tm_min) & 0x7F), M48T59_MIN); in m48t59_rtc_set_time()
129 M48T59_WRITE((bin2bcd(tm->tm_hour) & 0x3F), M48T59_HOUR); in m48t59_rtc_set_time()
130 M48T59_WRITE((bin2bcd(tm->tm_mday) & 0x3F), M48T59_MDAY); in m48t59_rtc_set_time()
132 M48T59_WRITE((bin2bcd(tm->tm_mon + 1) & 0x1F), M48T59_MONTH); in m48t59_rtc_set_time()
133 M48T59_WRITE(bin2bcd(year % 100), M48T59_YEAR); in m48t59_rtc_set_time()
138 M48T59_WRITE(val, M48T59_WDAY); in m48t59_rtc_set_time()
[all …]