Searched refs:month (Results 1 - 25 of 78) sorted by relevance

1234

/linux-master/kernel/time/
H A Dtime_test.c15 * 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 Dtimeconv.c49 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 Dlib_test.c9 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 Dlib.c28 * 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 Drtc-efi.c29 /* 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 Drtc-wilco-ec.c42 * @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 Drtc-ds1216.c22 u8 month; member in struct:ds1216_regs
97 tm->tm_mon = bcd2bin(regs.month & 0x1f);
125 regs.month = bin2bcd(tm->tm_mon);
H A Drtc-mv.c71 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 Drtc-m48t35.c29 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 Drtc-ds1286.c95 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 Drtc-bd70528.c37 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 Drtc-bq32k.c47 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 Dutil.c21 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 Dtime.h15 volatile unsigned char month; member in struct:mostek_dt
H A Dtime.c55 h->month = bin2bcd(t->tm_mon + 1);
65 t->tm_mon = bcd2bin(h->month) - 1;
/linux-master/arch/m68k/include/asm/
H A Dintersil.h33 unsigned char month; member in struct:intersil_dt
H A Dapollohw.h48 unsigned char month, year; member in struct:mc146818
/linux-master/arch/m68k/sun3/
H A Dintersil.c45 todintersil->month = t->tm_mon + 1;
55 t->tm_mon = todintersil->month - 1;
/linux-master/fs/udf/
H A Dudftime.c46 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 Dcard.h58 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 Derr_common.h75 u8 month; member in struct:el_timestamp::__anon52
/linux-master/net/netfilter/
H A Dxt_time.c23 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 Dpcan_usb_pro.h39 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 Dconfig.c192 t->tm_mon = rtc->month - 1;
203 rtc->month = t->tm_mon + 1;
/linux-master/fs/fat/
H A Dmisc.c175 * 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

Completed in 191 milliseconds

1234