Lines Matching refs:from_bcd
612 s->rtc.tm.tm_sec = from_bcd(value & 0x7f); in menelaus_write()
615 s->rtc.tm.tm_min = from_bcd(value & 0x7f); in menelaus_write()
619 MIN(from_bcd(value & 0x3f), 12) + ((value >> 7) ? 11 : -1) : in menelaus_write()
620 from_bcd(value & 0x3f); in menelaus_write()
623 s->rtc.tm.tm_mday = from_bcd(value); in menelaus_write()
626 s->rtc.tm.tm_mon = MAX(1, from_bcd(value)) - 1; in menelaus_write()
629 s->rtc.tm.tm_year = 2000 + from_bcd(value); in menelaus_write()
632 s->rtc.tm.tm_mday = from_bcd(value); in menelaus_write()
635 s->rtc.alm.tm_sec = from_bcd(value & 0x7f); in menelaus_write()
639 s->rtc.alm.tm_min = from_bcd(value & 0x7f); in menelaus_write()
644 MIN(from_bcd(value & 0x3f), 12) + ((value >> 7) ? 11 : -1) : in menelaus_write()
645 from_bcd(value & 0x3f); in menelaus_write()
649 s->rtc.alm.tm_mday = from_bcd(value); in menelaus_write()
653 s->rtc.alm.tm_mon = MAX(1, from_bcd(value)) - 1; in menelaus_write()
657 s->rtc.alm.tm_year = 2000 + from_bcd(value); in menelaus_write()