Lines Matching refs:writeb

79 	writeb(flags | RTC_WRITE, pdata->ioaddr + RTC_FLAGS);  in stk17ta8_rtc_set_time()
81 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); in stk17ta8_rtc_set_time()
82 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); in stk17ta8_rtc_set_time()
83 writeb(bin2bcd(tm->tm_wday) & RTC_DAY_MASK, ioaddr + RTC_DAY); in stk17ta8_rtc_set_time()
84 writeb(bin2bcd(tm->tm_mday), ioaddr + RTC_DATE); in stk17ta8_rtc_set_time()
85 writeb(bin2bcd(tm->tm_hour), ioaddr + RTC_HOURS); in stk17ta8_rtc_set_time()
86 writeb(bin2bcd(tm->tm_min), ioaddr + RTC_MINUTES); in stk17ta8_rtc_set_time()
87 writeb(bin2bcd(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); in stk17ta8_rtc_set_time()
88 writeb(bin2bcd((tm->tm_year + 1900) / 100), ioaddr + RTC_CENTURY); in stk17ta8_rtc_set_time()
90 writeb(flags & ~RTC_WRITE, pdata->ioaddr + RTC_FLAGS); in stk17ta8_rtc_set_time()
108 writeb(flags | RTC_READ, ioaddr + RTC_FLAGS); in stk17ta8_rtc_read_time()
117 writeb(flags & ~RTC_READ, ioaddr + RTC_FLAGS); in stk17ta8_rtc_read_time()
139 writeb(flags | RTC_WRITE, ioaddr + RTC_FLAGS); in stk17ta8_rtc_update_alarm()
141 writeb(pdata->alrm_mday < 0 || (pdata->irqen & RTC_UF) ? in stk17ta8_rtc_update_alarm()
144 writeb(pdata->alrm_hour < 0 || (pdata->irqen & RTC_UF) ? in stk17ta8_rtc_update_alarm()
147 writeb(pdata->alrm_min < 0 || (pdata->irqen & RTC_UF) ? in stk17ta8_rtc_update_alarm()
150 writeb(pdata->alrm_sec < 0 || (pdata->irqen & RTC_UF) ? in stk17ta8_rtc_update_alarm()
153 writeb(pdata->irqen ? RTC_INTS_AIE : 0, ioaddr + RTC_INTERRUPTS); in stk17ta8_rtc_update_alarm()
155 writeb(flags & ~RTC_WRITE, ioaddr + RTC_FLAGS); in stk17ta8_rtc_update_alarm()
253 writeb(*buf++, ioaddr + pos++); in stk17ta8_nvram_write()
288 writeb(flags | RTC_WRITE, ioaddr + RTC_FLAGS); in stk17ta8_rtc_probe()
289 writeb(cal, ioaddr + RTC_CALIBRATION); in stk17ta8_rtc_probe()
290 writeb(flags & ~RTC_WRITE, ioaddr + RTC_FLAGS); in stk17ta8_rtc_probe()
299 writeb(0, ioaddr + RTC_INTERRUPTS); in stk17ta8_rtc_probe()