Lines Matching refs:tm
1729 char *date_str(char *buf, char *end, const struct rtc_time *tm, bool r) in date_str() argument
1731 int year = tm->tm_year + (r ? 0 : 1900); in date_str()
1732 int mon = tm->tm_mon + (r ? 0 : 1); in date_str()
1744 return number(buf, end, tm->tm_mday, default_dec02_spec); in date_str()
1748 char *time_str(char *buf, char *end, const struct rtc_time *tm, bool r) in time_str() argument
1750 buf = number(buf, end, tm->tm_hour, default_dec02_spec); in time_str()
1755 buf = number(buf, end, tm->tm_min, default_dec02_spec); in time_str()
1760 return number(buf, end, tm->tm_sec, default_dec02_spec); in time_str()
1764 char *rtc_str(char *buf, char *end, const struct rtc_time *tm, in rtc_str() argument
1771 if (check_pointer(&buf, end, tm, spec)) in rtc_str()
1788 buf = date_str(buf, end, tm, raw); in rtc_str()
1796 buf = time_str(buf, end, tm, raw); in rtc_str()