Lines Matching refs:bcd2bin
366 t->tm_sec = bcd2bin(ds1307->regs[DS1307_REG_SECS] & 0x7f); in ds1307_get_time()
367 t->tm_min = bcd2bin(ds1307->regs[DS1307_REG_MIN] & 0x7f); in ds1307_get_time()
369 t->tm_hour = bcd2bin(tmp); in ds1307_get_time()
370 t->tm_wday = bcd2bin(ds1307->regs[DS1307_REG_WDAY] & 0x07) - 1; in ds1307_get_time()
371 t->tm_mday = bcd2bin(ds1307->regs[DS1307_REG_MDAY] & 0x3f); in ds1307_get_time()
373 t->tm_mon = bcd2bin(tmp) - 1; in ds1307_get_time()
376 t->tm_year = bcd2bin(ds1307->regs[DS1307_REG_YEAR]) + 100; in ds1307_get_time()
475 t->time.tm_sec = bcd2bin(ds1307->regs[0] & 0x7f); in ds1337_read_alarm()
476 t->time.tm_min = bcd2bin(ds1307->regs[1] & 0x7f); in ds1337_read_alarm()
477 t->time.tm_hour = bcd2bin(ds1307->regs[2] & 0x3f); in ds1337_read_alarm()
478 t->time.tm_mday = bcd2bin(ds1307->regs[3] & 0x3f); in ds1337_read_alarm()
671 t->time.tm_sec = bcd2bin(ds1307->regs[3] & 0x7f); in mcp794xx_read_alarm()
672 t->time.tm_min = bcd2bin(ds1307->regs[4] & 0x7f); in mcp794xx_read_alarm()
673 t->time.tm_hour = bcd2bin(ds1307->regs[5] & 0x3f); in mcp794xx_read_alarm()
674 t->time.tm_wday = bcd2bin(ds1307->regs[6] & 0x7) - 1; in mcp794xx_read_alarm()
675 t->time.tm_mday = bcd2bin(ds1307->regs[7] & 0x3f); in mcp794xx_read_alarm()
676 t->time.tm_mon = bcd2bin(ds1307->regs[8] & 0x1f) - 1; in mcp794xx_read_alarm()
1005 hour = bcd2bin(ds1307->regs[DS1307_REG_HOUR]); in ds1307_probe()
1127 tmp = bcd2bin(tmp & 0x1f); in ds1307_probe()