Lines Matching refs:writeb
64 writeb(RTC_WRITE, ioaddr + RTC_CONTROL); in ds1742_rtc_set_time()
66 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); in ds1742_rtc_set_time()
67 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); in ds1742_rtc_set_time()
68 writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY); in ds1742_rtc_set_time()
69 writeb(bin2bcd(tm->tm_mday), ioaddr + RTC_DATE); in ds1742_rtc_set_time()
70 writeb(bin2bcd(tm->tm_hour), ioaddr + RTC_HOURS); in ds1742_rtc_set_time()
71 writeb(bin2bcd(tm->tm_min), ioaddr + RTC_MINUTES); in ds1742_rtc_set_time()
72 writeb(bin2bcd(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); in ds1742_rtc_set_time()
75 writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY); in ds1742_rtc_set_time()
76 writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1742_rtc_set_time()
91 writeb(RTC_READ, ioaddr + RTC_CONTROL); in ds1742_rtc_read_time()
100 writeb(0, ioaddr + RTC_CONTROL); in ds1742_rtc_read_time()
138 writeb(*buf++, ioaddr + pos++); in ds1742_nvram_write()
178 writeb(RTC_WRITE, ioaddr + RTC_CONTROL); in ds1742_rtc_probe()
179 writeb(sec, ioaddr + RTC_SECONDS); in ds1742_rtc_probe()
180 writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1742_rtc_probe()