Lines Matching refs:via_rtc_command
173 static void via_rtc_command(int command, __u8 *data) in via_rtc_command() function
214 via_rtc_command(RTC_CMD_XPRAM_READ | RTC_CMD_XPRAM_ARG(offset), &temp); in via_pram_read_byte()
224 via_rtc_command(RTC_CMD_WRITE(RTC_REG_WRITE_PROTECT), &temp); in via_pram_write_byte()
227 via_rtc_command(RTC_CMD_XPRAM_WRITE | RTC_CMD_XPRAM_ARG(offset), &temp); in via_pram_write_byte()
230 via_rtc_command(RTC_CMD_WRITE(RTC_REG_WRITE_PROTECT), &temp); in via_pram_write_byte()
249 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_0), &last_result.cdata[3]); in via_read_time()
250 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_1), &last_result.cdata[2]); in via_read_time()
251 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_2), &last_result.cdata[1]); in via_read_time()
252 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_3), &last_result.cdata[0]); in via_read_time()
260 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_0), in via_read_time()
262 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_1), in via_read_time()
264 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_2), in via_read_time()
266 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_3), in via_read_time()
306 via_rtc_command(RTC_CMD_WRITE(RTC_REG_WRITE_PROTECT), &temp); in via_set_rtc_time()
309 via_rtc_command(RTC_CMD_WRITE(RTC_REG_SECONDS_0), &data.cdata[3]); in via_set_rtc_time()
310 via_rtc_command(RTC_CMD_WRITE(RTC_REG_SECONDS_1), &data.cdata[2]); in via_set_rtc_time()
311 via_rtc_command(RTC_CMD_WRITE(RTC_REG_SECONDS_2), &data.cdata[1]); in via_set_rtc_time()
312 via_rtc_command(RTC_CMD_WRITE(RTC_REG_SECONDS_3), &data.cdata[0]); in via_set_rtc_time()
317 via_rtc_command(RTC_CMD_WRITE(RTC_REG_WRITE_PROTECT), &temp); in via_set_rtc_time()