Lines Matching refs:M48T59_WRITE
26 #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()
235 M48T59_WRITE(mday, M48T59_ALARM_DATE); in m48t59_rtc_setalarm()
236 M48T59_WRITE(hour, M48T59_ALARM_HOUR); in m48t59_rtc_setalarm()
237 M48T59_WRITE(min, M48T59_ALARM_MIN); in m48t59_rtc_setalarm()
238 M48T59_WRITE(sec, M48T59_ALARM_SEC); in m48t59_rtc_setalarm()
261 M48T59_WRITE(M48T59_INTR_AFE, M48T59_INTR); in m48t59_rtc_alarm_irq_enable()
263 M48T59_WRITE(0x00, M48T59_INTR); in m48t59_rtc_alarm_irq_enable()
351 M48T59_WRITE(*buf++, cnt); in m48t59_nvram_write()