Home
last modified time | relevance | path

Searched refs:month (Results 1 – 25 of 95) sorted by relevance

1234

/linux-6.6.21/kernel/time/
Dtime_test.c17 static int last_day_of_month(long year, int month) in last_day_of_month() argument
19 if (month == 2) in last_day_of_month()
21 if (month == 4 || month == 6 || month == 9 || month == 11) in last_day_of_month()
29 static void advance_date(long *year, int *month, int *mday, int *yday) in advance_date() argument
31 if (*mday != last_day_of_month(*year, *month)) { in advance_date()
38 if (*month != 12) { in advance_date()
39 ++*month; in advance_date()
44 *month = 1; in advance_date()
62 int month = 1; in time64_to_tm_test_date_range() local
77 year, month, mdday, yday, days in time64_to_tm_test_date_range()
[all …]
Dtimeconv.c49 u32 u32tmp, day_of_century, year_of_century, day_of_year, month, day; in time64_to_tm() local
120 month = u32tmp >> 16; in time64_to_tm()
131 month = is_Jan_or_Feb ? month - 12 : month; in time64_to_tm()
137 result->tm_mon = (int) month; in time64_to_tm()
/linux-6.6.21/drivers/rtc/
Dlib_test.c9 static void advance_date(int *year, int *month, int *mday, int *yday) in advance_date() argument
11 if (*mday != rtc_month_days(*month - 1, *year)) { in advance_date()
18 if (*month != 12) { in advance_date()
19 ++*month; in advance_date()
24 *month = 1; in advance_date()
43 int month = 1; in rtc_time64_to_tm_test_date_range() local
58 year, month, mday, yday, days in rtc_time64_to_tm_test_date_range()
61 KUNIT_ASSERT_EQ_MSG(test, month - 1, result.tm_mon, FAIL_MSG); in rtc_time64_to_tm_test_date_range()
65 advance_date(&year, &month, &mday, &yday); in rtc_time64_to_tm_test_date_range()
Dlib.c30 int rtc_month_days(unsigned int month, unsigned int year) in rtc_month_days() argument
32 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()
39 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year) in rtc_year_days() argument
41 return rtc_ydays[is_leap_year(year)][month] + day - 1; in rtc_year_days()
59 day_of_year, month, day; in rtc_time64_to_tm() local
112 month = u32tmp >> 16; in rtc_time64_to_tm()
123 month = is_Jan_or_Feb ? month - 12 : month; in rtc_time64_to_tm()
131 tm->tm_mon = (int) month; in rtc_time64_to_tm()
Drtc-efi.c30 return rtc_year_days(eft->day, eft->month - 1, eft->year); in compute_yday()
56 eft->month = wtime->tm_mon + 1; in convert_to_efi_time()
87 if (!eft->month || eft->month > 12) in convert_from_efi_time()
89 wtime->tm_mon = eft->month - 1; in convert_from_efi_time()
208 eft.year, eft.month, eft.day, in efi_procfs()
225 alm.year, alm.month, alm.day, in efi_procfs()
Drtc-wilco-ec.c54 u8 month; member
81 u8 month; member
111 tm->tm_mon = rtc.month - 1; in wilco_ec_rtc_read()
141 rtc.month = bin2bcd(tm->tm_mon + 1); in wilco_ec_rtc_write()
Drtc-mv.c71 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_time() local
82 month = (rtc_date >> RTC_MONTH_OFFS) & 0x3f; in mv_rtc_read_time()
90 tm->tm_mon = bcd2bin(month) - 1; in mv_rtc_read_time()
102 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_alarm() local
113 month = (rtc_date >> RTC_MONTH_OFFS) & 0x3f; in mv_rtc_read_alarm()
121 alm->time.tm_mon = bcd2bin(month) - 1; in mv_rtc_read_alarm()
Drtc-m48t35.c29 u8 month; member
39 u8 month; member
73 tm->tm_mon = readb(&priv->reg->month); in m48t35_read_time()
135 writeb(mon, &priv->reg->month); in m48t35_set_time()
Drtc-ds1216.c22 u8 month; member
97 tm->tm_mon = bcd2bin(regs.month & 0x1f); in ds1216_rtc_read_time()
125 regs.month = bin2bcd(tm->tm_mon); in ds1216_rtc_set_time()
Drtc-bd70528.c37 u8 month; member
70 r->month &= ~BD70528_MASK_RTC_MONTH; in tm2rtc()
84 r->month |= bin2bcd(t->tm_mon + 1); in tm2rtc()
103 t->tm_mon = bcd2bin(r->month & BD70528_MASK_RTC_MONTH) - 1; in rtc2tm()
Drtc-ds1286.c95 unsigned char month, cmd, amode; in ds1286_proc() local
98 month = ds1286_rtc_read(priv, RTC_MONTH); in ds1286_proc()
102 (month & RTC_EOSC) ? "disabled" : "enabled", in ds1286_proc()
103 (month & RTC_ESQW) ? "disabled" : "enabled"); in ds1286_proc()
Drtc-ds1742.c83 unsigned int year, month, day, hour, minute, second, week; in ds1742_rtc_read_time() local
96 month = readb(ioaddr + RTC_MONTH); in ds1742_rtc_read_time()
105 tm->tm_mon = bcd2bin(month) - 1; in ds1742_rtc_read_time()
Drtc-bq32k.c47 uint8_t month; member
111 tm->tm_mon = bcd2bin(regs.month) - 1; in bq32k_rtc_read_time()
127 regs.month = bin2bcd(tm->tm_mon + 1); in bq32k_rtc_set_time()
/linux-6.6.21/Documentation/RCU/
DRTFP.txt246 ,month="January"
361 ,month="February"
372 ,month="June"
418 ,month="September"
459 ,month="December"
475 ,month="May"
494 ,month="August"
512 ,month="March"
529 ,month="March"
577 ,month="June"
[all …]
/linux-6.6.21/fs/isofs/
Dutil.c21 int year, month, day, hour, minute, second, tz; in iso_date() local
25 month = p[1]; in iso_date()
36 crtime = mktime64(year+1900, month, day, hour, minute, second); in iso_date()
/linux-6.6.21/drivers/mmc/core/
Dcard.h58 unsigned char month; member
104 .month = (_month), \
152 #define cid_rev(hwrev, fwrev, year, month) \ argument
156 ((u64) month))
162 card->cid.month)
Dquirks.h238 if (f->month != CID_MONTH_ANY && f->month != card->cid.month) in mmc_fixup_device()
/linux-6.6.21/include/uapi/linux/
Dcec-funcs.h436 __u8 month, in cec_msg_clear_analogue_timer() argument
449 msg->msg[3] = month; in cec_msg_clear_analogue_timer()
465 __u8 *month, in cec_ops_clear_analogue_timer() argument
476 *month = msg->msg[3]; in cec_ops_clear_analogue_timer()
491 __u8 month, in cec_msg_clear_digital_timer() argument
503 msg->msg[3] = month; in cec_msg_clear_digital_timer()
515 __u8 *month, in cec_ops_clear_digital_timer() argument
524 *month = msg->msg[3]; in cec_ops_clear_digital_timer()
537 __u8 month, in cec_msg_clear_ext_timer() argument
550 msg->msg[3] = month; in cec_msg_clear_ext_timer()
[all …]
/linux-6.6.21/arch/m68k/sun3/
Dintersil.c44 todintersil->month = t->tm_mon + 1; in sun3_hwclk()
54 t->tm_mon = todintersil->month - 1; in sun3_hwclk()
/linux-6.6.21/fs/udf/
Dudftime.c46 dest->tv_sec = mktime64(year, src.month, src.day, src.hour, src.minute, in udf_disk_stamp_to_time()
72 dest->month = tm.tm_mon + 1; in udf_time_to_disk_stamp()
/linux-6.6.21/arch/m68k/sun3x/
Dtime.c55 h->month = bin2bcd(t->tm_mon + 1); in sun3x_hwclk()
65 t->tm_mon = bcd2bin(h->month) - 1; in sun3x_hwclk()
/linux-6.6.21/fs/fat/
Dmisc.c209 long day, leap_day, month, year; in fat_time_fat2unix() local
212 month = max(1, (date >> 5) & 0xf); in fat_time_fat2unix()
218 if (IS_LEAP_YEAR(year) && month > 2) in fat_time_fat2unix()
225 + days_in_year[month] + day in fat_time_fat2unix()
/linux-6.6.21/drivers/char/
Dtoshiba.c404 int i,major,minor,day,year,month,flag; in tosh_probe() local
455 month = ((readb(bios+0xfff8)-'0')*10)+(readb(bios+0xfff9)-'0'); in tosh_probe()
457 tosh_date = (((year-90) & 0x1f)<<10) | ((month & 0xf)<<6) in tosh_probe()
/linux-6.6.21/fs/smb/client/
Dnetmisc.c972 int min, day, month, year; in cnvrtDosUnixTm() local
989 month = sd->Month; in cnvrtDosUnixTm()
990 if (day < 1 || day > 31 || month < 1 || month > 12) { in cnvrtDosUnixTm()
991 cifs_dbg(VFS, "Invalid date, month %d day: %d\n", month, day); in cnvrtDosUnixTm()
993 month = clamp(month, 1, 12); in cnvrtDosUnixTm()
995 month -= 1; in cnvrtDosUnixTm()
996 days = day + total_days_of_prev_months[month]; in cnvrtDosUnixTm()
1012 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()
/linux-6.6.21/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.h39 u8 month; member
53 u8 month; member

1234