/linux-master/kernel/time/ |
H A D | time_test.c | 15 * Gets the last day of a month. 17 static int last_day_of_month(long year, int month) argument 19 if (month == 2) 21 if (month == 4 || month == 6 || month == 9 || month == 11) 29 static void advance_date(long *year, int *month, int *mday, int *yday) argument 31 if (*mday != last_day_of_month(*year, *month)) { 38 if (*month ! 62 int month = 1; local [all...] |
H A D | timeconv.c | 49 u32 u32tmp, day_of_century, year_of_century, day_of_year, month, day; local 80 * (fictitious) calendar where the year starts in March, month = 2 81 * (*), and finishes in February, month = 13. This calendar is 120 month = u32tmp >> 16; 131 month = is_Jan_or_Feb ? month - 12 : month; 137 result->tm_mon = (int) month;
|
/linux-master/drivers/rtc/ |
H A D | lib_test.c | 9 static void advance_date(int *year, int *month, int *mday, int *yday) argument 11 if (*mday != rtc_month_days(*month - 1, *year)) { 18 if (*month != 12) { 19 ++*month; 24 *month = 1; 43 int month = 1; local 58 year, month, mday, yday, days 61 KUNIT_ASSERT_EQ_MSG(test, month - 1, result.tm_mon, FAIL_MSG); 65 advance_date(&year, &month, &mday, &yday);
|
H A D | lib.c | 28 * The number of days in the month. 30 int rtc_month_days(unsigned int month, unsigned int year) argument 32 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); 39 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year) argument 41 return rtc_ydays[is_leap_year(year)][month] + day - 1; 59 day_of_year, month, day; local 71 * (fictitious) calendar where the year starts in March, month = 2 72 * (*), and finishes in February, month = 13. This calendar is 112 month [all...] |
H A D | rtc-efi.c | 29 /* efi_time_t.month is in the [1-12] so, we need -1 */ 30 return rtc_year_days(eft->day, eft->month - 1, eft->year); 56 eft->month = wtime->tm_mon + 1; 87 if (!eft->month || eft->month > 12) 89 wtime->tm_mon = eft->month - 1; 208 eft.year, eft.month, eft.day, 225 alm.year, alm.month, alm.day,
|
H A D | rtc-wilco-ec.c | 42 * @month: Month value (1..12) 54 u8 month; member in struct:ec_rtc_read_response 66 * @month: Month value (1..12) 81 u8 month; member in struct:ec_rtc_write_request 111 tm->tm_mon = rtc.month - 1; 141 rtc.month = bin2bcd(tm->tm_mon + 1);
|
H A D | rtc-ds1216.c | 22 u8 month; member in struct:ds1216_regs 97 tm->tm_mon = bcd2bin(regs.month & 0x1f); 125 regs.month = bin2bcd(tm->tm_mon);
|
H A D | rtc-mv.c | 71 unsigned int year, month, day, hour, minute, second, wday; local 82 month = (rtc_date >> RTC_MONTH_OFFS) & 0x3f; 90 tm->tm_mon = bcd2bin(month) - 1; 102 unsigned int year, month, day, hour, minute, second, wday; local 113 month = (rtc_date >> RTC_MONTH_OFFS) & 0x3f; 121 alm->time.tm_mon = bcd2bin(month) - 1;
|
H A D | rtc-m48t35.c | 29 u8 month; member in struct:m48t35_rtc 39 u8 month; member in struct:m48t35_rtc 73 tm->tm_mon = readb(&priv->reg->month); 135 writeb(mon, &priv->reg->month);
|
H A D | rtc-ds1286.c | 95 unsigned char month, cmd, amode; local 98 month = ds1286_rtc_read(priv, RTC_MONTH); 102 (month & RTC_EOSC) ? "disabled" : "enabled", 103 (month & RTC_ESQW) ? "disabled" : "enabled");
|
H A D | rtc-bd70528.c | 37 u8 month; member in struct:bd70528_rtc_data 70 r->month &= ~BD70528_MASK_RTC_MONTH; 84 r->month |= bin2bcd(t->tm_mon + 1); 103 t->tm_mon = bcd2bin(r->month & BD70528_MASK_RTC_MONTH) - 1;
|
H A D | rtc-bq32k.c | 47 uint8_t month; member in struct:bq32k_regs 111 tm->tm_mon = bcd2bin(regs.month) - 1; 127 regs.month = bin2bcd(tm->tm_mon + 1);
|
/linux-master/fs/isofs/ |
H A D | util.c | 21 int year, month, day, hour, minute, second, tz; local 25 month = p[1]; 36 crtime = mktime64(year+1900, month, day, hour, minute, second);
|
/linux-master/arch/m68k/sun3x/ |
H A D | time.h | 15 volatile unsigned char month; member in struct:mostek_dt
|
H A D | time.c | 55 h->month = bin2bcd(t->tm_mon + 1); 65 t->tm_mon = bcd2bin(h->month) - 1;
|
/linux-master/arch/m68k/include/asm/ |
H A D | intersil.h | 33 unsigned char month; member in struct:intersil_dt
|
H A D | apollohw.h | 48 unsigned char month, year; member in struct:mc146818
|
/linux-master/arch/m68k/sun3/ |
H A D | intersil.c | 45 todintersil->month = t->tm_mon + 1; 55 t->tm_mon = todintersil->month - 1;
|
/linux-master/fs/udf/ |
H A D | udftime.c | 46 dest->tv_sec = mktime64(year, src.month, src.day, src.hour, src.minute, 72 dest->month = tm.tm_mon + 1;
|
/linux-master/drivers/mmc/core/ |
H A D | card.h | 58 unsigned char month; member in struct:mmc_fixup 104 .month = (_month), \ 152 #define cid_rev(hwrev, fwrev, year, month) \ 156 ((u64) month)) 162 card->cid.month)
|
/linux-master/arch/alpha/include/asm/ |
H A D | err_common.h | 75 u8 month; member in struct:el_timestamp::__anon52
|
/linux-master/net/netfilter/ |
H A D | xt_time.c | 23 u_int8_t month; /* (1-12) */ member in struct:xtm 130 * On to finding the month (like above). In each month, a certain 136 * Concludes i == 2, i.e. 3rd month => March. 154 r->month = i + 1;
|
/linux-master/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb_pro.h | 39 u8 month; member in struct:pcan_usb_pro_blinfo 53 u8 month; member in struct:pcan_usb_pro_fwinfo
|
/linux-master/arch/m68k/apollo/ |
H A D | config.c | 192 t->tm_mon = rtc->month - 1; 203 rtc->month = t->tm_mon + 1;
|
/linux-master/fs/fat/ |
H A D | misc.c | 175 * date: 5 - 8: month (1 - 12) 209 long day, leap_day, month, year; local 212 month = max(1, (date >> 5) & 0xf); 218 if (IS_LEAP_YEAR(year) && month > 2) 225 + days_in_year[month] + day
|