Lines Matching refs:bcd2bin
127 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get()
128 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get()
129 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get()
130 tmp->tm_mday = bcd2bin (mday & 0x3F); in rtc_get()
131 tmp->tm_mon = bcd2bin (mon & 0x1F); in rtc_get()
132 tmp->tm_year = bcd2bin (year) + ( bcd2bin (year) >= 70 ? 1900 : 2000); in rtc_get()
133 tmp->tm_wday = bcd2bin ((wday - 1) & 0x07); in rtc_get()
295 tm->tm_sec = bcd2bin(buf[RTC_SEC_REG_ADDR] & 0x7F); in ds1307_rtc_get()
296 tm->tm_min = bcd2bin(buf[RTC_MIN_REG_ADDR] & 0x7F); in ds1307_rtc_get()
297 tm->tm_hour = bcd2bin(buf[RTC_HR_REG_ADDR] & 0x3F); in ds1307_rtc_get()
298 tm->tm_mday = bcd2bin(buf[RTC_DATE_REG_ADDR] & 0x3F); in ds1307_rtc_get()
299 tm->tm_mon = bcd2bin(buf[RTC_MON_REG_ADDR] & 0x1F); in ds1307_rtc_get()
300 tm->tm_year = bcd2bin(buf[RTC_YR_REG_ADDR]) + in ds1307_rtc_get()
301 (bcd2bin(buf[RTC_YR_REG_ADDR]) >= 70 ? in ds1307_rtc_get()
303 tm->tm_wday = bcd2bin((buf[RTC_DAY_REG_ADDR] - 1) & 0x07); in ds1307_rtc_get()