Lines Matching refs:bcd2bin
126 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get()
127 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
128 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get()
129 tmp->tm_mday = bcd2bin (mday & 0x3F); in rtc_get()
130 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get()
131 tmp->tm_year = bcd2bin (year) + ( bcd2bin (year) >= 70 ? 1900 : 2000); in rtc_get()
132 tmp->tm_wday = bcd2bin ((wday - 1) & 0x07); in rtc_get()
284 tm->tm_sec = bcd2bin(buf[RTC_SEC_REG_ADDR] & 0x7F); in ds1307_rtc_get()
285 tm->tm_min = bcd2bin(buf[RTC_MIN_REG_ADDR] & 0x7F); in ds1307_rtc_get()
286 tm->tm_hour = bcd2bin(buf[RTC_HR_REG_ADDR] & 0x3F); in ds1307_rtc_get()
287 tm->tm_mday = bcd2bin(buf[RTC_DATE_REG_ADDR] & 0x3F); in ds1307_rtc_get()
288 tm->tm_mon = bcd2bin(buf[RTC_MON_REG_ADDR] & 0x1F); in ds1307_rtc_get()
289 tm->tm_year = bcd2bin(buf[RTC_YR_REG_ADDR]) + in ds1307_rtc_get()
290 (bcd2bin(buf[RTC_YR_REG_ADDR]) >= 70 ? in ds1307_rtc_get()
292 tm->tm_wday = bcd2bin((buf[RTC_DAY_REG_ADDR] - 1) & 0x07); in ds1307_rtc_get()