Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/rtc/
Drtc-pl031.c101 struct rtc_time *tm, unsigned long *st_time, in pl031_stv2_tm_to_time() argument
123 *st_time = ((tm->tm_mon + 1) << RTC_MON_SHIFT) in pl031_stv2_tm_to_time()
136 static int pl031_stv2_time_to_tm(unsigned long st_time, unsigned long bcd_year, in pl031_stv2_time_to_tm() argument
140 tm->tm_mon = ((st_time & RTC_MON_MASK) >> RTC_MON_SHIFT) - 1; in pl031_stv2_time_to_tm()
141 tm->tm_mday = ((st_time & RTC_MDAY_MASK) >> RTC_MDAY_SHIFT); in pl031_stv2_time_to_tm()
142 tm->tm_wday = ((st_time & RTC_WDAY_MASK) >> RTC_WDAY_SHIFT) - 1; in pl031_stv2_time_to_tm()
143 tm->tm_hour = ((st_time & RTC_HOUR_MASK) >> RTC_HOUR_SHIFT); in pl031_stv2_time_to_tm()
144 tm->tm_min = ((st_time & RTC_MIN_MASK) >> RTC_MIN_SHIFT); in pl031_stv2_time_to_tm()
145 tm->tm_sec = ((st_time & RTC_SEC_MASK) >> RTC_SEC_SHIFT); in pl031_stv2_time_to_tm()