tag | line | file | source code |
rtc_tm | 82 | drivers/char/rtc.c | void get_rtc_time (struct tm *rtc_tm); |
rtc_tm | 298 | drivers/char/rtc.c | struct tm rtc_tm; |
rtc_tm | 304 | drivers/char/rtc.c | get_rtc_time(&rtc_tm); |
rtc_tm | 305 | drivers/char/rtc.c | memcpy_tofs((struct tm*)arg, &rtc_tm, sizeof(struct tm)); |
rtc_tm | 311 | drivers/char/rtc.c | struct tm rtc_tm; |
rtc_tm | 324 | drivers/char/rtc.c | memcpy_fromfs(&rtc_tm, (struct tm*)arg, sizeof(struct tm)); |
rtc_tm | 326 | drivers/char/rtc.c | yrs = rtc_tm.tm_year + 1900; |
rtc_tm | 327 | drivers/char/rtc.c | mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ |
rtc_tm | 328 | drivers/char/rtc.c | day = rtc_tm.tm_mday; |
rtc_tm | 329 | drivers/char/rtc.c | hrs = rtc_tm.tm_hour; |
rtc_tm | 330 | drivers/char/rtc.c | min = rtc_tm.tm_min; |
rtc_tm | 331 | drivers/char/rtc.c | sec = rtc_tm.tm_sec; |
rtc_tm | 630 | drivers/char/rtc.c | void get_rtc_time(struct tm *rtc_tm) |
rtc_tm | 658 | drivers/char/rtc.c | rtc_tm->tm_sec = CMOS_READ(RTC_SECONDS); |
rtc_tm | 659 | drivers/char/rtc.c | rtc_tm->tm_min = CMOS_READ(RTC_MINUTES); |
rtc_tm | 660 | drivers/char/rtc.c | rtc_tm->tm_hour = CMOS_READ(RTC_HOURS); |
rtc_tm | 661 | drivers/char/rtc.c | rtc_tm->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); |
rtc_tm | 662 | drivers/char/rtc.c | rtc_tm->tm_mon = CMOS_READ(RTC_MONTH); |
rtc_tm | 663 | drivers/char/rtc.c | rtc_tm->tm_year = CMOS_READ(RTC_YEAR); |
rtc_tm | 669 | drivers/char/rtc.c | BCD_TO_BIN(rtc_tm->tm_sec); |
rtc_tm | 670 | drivers/char/rtc.c | BCD_TO_BIN(rtc_tm->tm_min); |
rtc_tm | 671 | drivers/char/rtc.c | BCD_TO_BIN(rtc_tm->tm_hour); |
rtc_tm | 672 | drivers/char/rtc.c | BCD_TO_BIN(rtc_tm->tm_mday); |
rtc_tm | 673 | drivers/char/rtc.c | BCD_TO_BIN(rtc_tm->tm_mon); |
rtc_tm | 674 | drivers/char/rtc.c | BCD_TO_BIN(rtc_tm->tm_year); |
rtc_tm | 681 | drivers/char/rtc.c | if (rtc_tm->tm_year <= 69) |
rtc_tm | 682 | drivers/char/rtc.c | rtc_tm->tm_year += 100; |
rtc_tm | 684 | drivers/char/rtc.c | rtc_tm->tm_mon--; |