/freebsd-current/sys/dev/ixgbe/ |
H A D | if_bypass.c | 95 ixgbe_get_bypass_time(u32 *year, u32 *sec) argument 99 *year = 1970; /* time starts at 01/01/1970 */ 103 while(*sec > SEC_THIS_YEAR(*year)) { 104 *sec -= SEC_THIS_YEAR(*year); 105 (*year)++; 508 u32 sec, year; local 519 ixgbe_get_bypass_time(&year, &sec); 636 int year; local 655 * time is in sec's this year, so convert to something 658 ixgbe_get_bypass_time(&year, 719 u32 mask, value, sec, year; local [all...] |
/freebsd-current/sys/dev/iicbus/rtc/ |
H A D | ds1307.c | 494 bct.year = data[DS1307_YEAR] & DS1307_YEAR_MASK; 505 int error, year; local 540 data[DS1307_YEAR] = bct.year & 0xff; 544 year = bcd2bin(bct.year >> 8) * 100 + bcd2bin(bct.year & 0xff); 545 if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
|
H A D | pcf85063.c | 66 uint8_t year; member in struct:pcf85063_time 163 bcd.year = data.year; 193 data.year = bcd.year;
|
H A D | rx8803.c | 69 uint8_t year; member in struct:rx8803_time 129 bcd.year = data.year; 155 data.year = bcd.year;
|
H A D | isl12xx.c | 118 uint8_t sec, min, hour, day, month, year; member in struct:time_regs 272 bct.year = tregs.year; 308 tregs.year = bct.year % 100;
|
H A D | hym8563.c | 153 bct.year = buf[6] & 0xff; 155 bct.year += 0x100; 180 buf[6] = bct.year & 0xFF; 181 if (bct.year > 0x99)
|
H A D | ds13rtc.c | 158 uint8_t sec, min, hour, wday, day, month, year; member in struct:time_regs 388 bct.year = tregs.year & DS13xx_M_YEAR; 392 * clock_ct_to_ts() infer the century from the 2-digit year. 395 bct.year += (tregs.month & DS13xx_B_MONTH_CENTURY) ? 0x100 : 0; 438 if (bct.year >= 2000) 447 tregs.year = bct.year & 0xff;
|
/freebsd-current/sys/dev/ppbus/ |
H A D | pcfclock.c | 206 int year; local 208 year = NR(buf, 14); 209 if (year < 70) 210 year += 100; 214 NR(buf, 10), NR(buf, 12), 1900 + year,
|
/freebsd-current/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | convert_to_tm.h | 26 #include <__chrono/year.h> 59 // the year 2038 valid, so instead do the transformation manually. 67 __result.tm_year = static_cast<int>(__date.year()) - 1900; 73 static_cast<chrono::sys_days>(chrono::year_month_day{__date.year(), chrono::January, chrono::day{1}})) 141 else if constexpr (same_as<_ChronoT, chrono::year>) 156 __result.tm_year = static_cast<int>(__value.year()) - 1900;
|
/freebsd-current/sys/amd64/vmm/io/ |
H A D | vrtc.c | 63 uint8_t year; member in struct:rtcdev 219 KASSERT(ct.year >= POSIX_BASE_YEAR, ("invalid clocktime year %d", 220 ct.year)); 256 rtc->year = rtcset(rtc, ct.year % 100); 257 rtc->century = rtcset(rtc, ct.year / 100); 289 int century, error, hour, pm, year; local 367 error = rtcget(rtc, rtc->year, &year); [all...] |
/freebsd-current/usr.bin/ncal/ |
H A D | ncal.c | 121 /* Table used to print day of year and week numbers */ 170 static void mkmonthr(int year, int month, int jd_flag, 172 static void mkmonthb(int year, int month, int jd_flag, 175 static void monthranger(int year, int m, int jd_flag, 177 static void monthrangeb(int year, int m, int jd_flag, 181 static void printeaster(int year, int julian, int orthodox); 197 int y = 0; /* year */ 199 int flag_wholeyear = 0; /* user wants the whole year */ 209 int flag_givenyear = 0; /* user has specified year [n] */ 366 errx(EX_USAGE, "year ` 588 struct monthlines year[12]; local 678 struct monthlines year[12]; local [all...] |
/freebsd-current/sys/dev/smartpqi/ |
H A D | smartpqi_misc.c | 48 host_wellness_time->century = (uint8_t)bin2bcd(ct.year / 100); 49 host_wellness_time->year = (uint8_t)bin2bcd(ct.year % 100);
|
/freebsd-current/contrib/ntp/ntpd/ |
H A D | refclock_leitch.c | 73 short year; member in struct:leitchunit 519 int year 522 if (year%4) { /* not a potential leap year */ 525 if (year % 100) { /* is a leap year */ 528 if (year % 400) { 552 leitch->year = ATOB(0)*10 + ATOB(1); 569 if ((days_per_year((leitch->year>90?1900:2000)+leitch->year) [all...] |
H A D | refclock_neoclock4x.c | 552 neol_atoi_len(&pp->a_lastcode[NEOCLOCK4X_OFFSET_YEAR], &pp->year, 2); 582 (pp->year < 0) || (pp->year > 99)) { 596 * if(pp->year < YEAR_PIVOT) 598 * pp->year += 100; 601 pp->year += 2000; 604 calc_utc = neol_mktime(pp->year, month, day, pp->hour, pp->minute, pp->second); 609 neol_localtime(calc_utc, &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second); 614 pp->day = ymd2yd(pp->year, month, day); 621 pp->year, mont 831 neol_mktime(int year, int mon, int day, int hour, int min, int sec) argument 851 neol_localtime(unsigned long utc, int* year, int* month, int* day, int* hour, int* min, int* sec) argument [all...] |
/freebsd-current/sys/powerpc/pseries/ |
H A D | rtas_dev.c | 119 ct.year = tod[1]; 142 error = rtas_call_method(token, 7, 1, ct.year, ct.mon, ct.day, ct.hour,
|
/freebsd-current/sys/dev/bnxt/bnxt_en/ |
H A D | bnxt_ioctl.h | 149 uint16_t year; member in struct:bnxt_ioctl_hwrm_fw_get_time 161 uint16_t year; member in struct:bnxt_ioctl_hwrm_fw_set_time
|
/freebsd-current/contrib/wpa/src/utils/ |
H A D | os_win32.c | 62 int os_mktime(int year, int month, int day, int hour, int min, int sec, argument 69 if (year < 1970 || month < 1 || month > 12 || day < 1 || day > 31 || 75 tm.tm_year = year - 1900; 115 tm->year = tm2->tm_year + 1900;
|
/freebsd-current/contrib/netbsd-tests/lib/libc/time/ |
H A D | t_strptime.c | 456 ATF_TC(year); variable 458 ATF_TC_HEAD(year, tc) 462 "Checks strptime(3) century/year conversions [CyY]"); 465 ATF_TC_BODY(year, tc) 519 ATF_TP_ADD_TC(tp, year);
|
/freebsd-current/sys/powerpc/mpc85xx/ |
H A D | ds1553_core.c | 114 ct.year = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_YEAR)); 119 ct.year += sc->year_offset; 146 ct.year -= sc->year_offset; 166 (*sc->sc_write)(dev, DS1553_OFF_YEAR, TOBCD(ct.year));
|
/freebsd-current/sys/i386/acpica/ |
H A D | acpi_machdep.c | 91 int year; local 95 sscanf(va + 11, "%2d", &year); 102 if (year > 90 && year < 99)
|
/freebsd-current/contrib/ntp/libparse/ |
H A D | clk_sel240x.c | 146 clock_time->year = ptime.tm_year + 1900;
|
/freebsd-current/contrib/ntp/libntp/ |
H A D | ntp_calgps.c | 386 * This function also augments the century if just a 2-digit year 412 /* if needed, convert from 2-digit year to full year 416 if (cal.year < 80) 417 cal.year += 2000; 418 else if (cal.year < 100) 419 cal.year += 1900; 425 days = ntpcal_year_to_ystart(cal.year) 440 } else if (jd->year < 100) { 441 /* Two-digit year o [all...] |
/freebsd-current/crypto/openssl/crypto/asn1/ |
H A D | a_time.c | 30 static int is_utc(const int year) argument 32 if (50 <= year && year <= 149) 37 static int leap_year(const int year) argument 39 if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) 45 * Compute the day of the week and the day of the year from the year, month 46 * and day. The day of the year i [all...] |
/freebsd-current/usr.sbin/newsyslog/ |
H A D | ptimes.c | 80 static int days_pmonth(int month, int year); 88 days_pmonth(int month, int year) argument 98 * We are usually called with a 'tm-year' value 101 if (year < 1900) 102 year += 1900; 103 if (year % 4 == 0) { 105 * This is a leap year, as long as it is not a 109 if (year % 100 != 0) 111 else if (year % 400 == 0) 602 * If the user specified a year an [all...] |
/freebsd-current/contrib/ntp/include/ |
H A D | ntp.h | 27 #define YEAR_PIVOT 98 /* 97/98: years < this are year 2000+ 28 * FYI: official UNIX pivot year is 32 * Number of Days since 1 BC Gregorian to 1 January of given year 34 #define julian0(year) (((year) * 365 ) + ((year) > 0 ? (((year) + 3) \ 35 / 4 - ((year - 1) / 100) + ((year - 1) / \ 39 * Number of days since start of NTP time to 1 January of given year [all...] |