/Linux-v5.15/kernel/time/ |
D | time_test.c | 17 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 …]
|
D | timeconv.c | 49 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-v5.15/drivers/rtc/ |
D | lib_test.c | 9 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()
|
D | lib.c | 30 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()
|
D | rtc-efi.c | 30 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() 207 eft.year, eft.month, eft.day, in efi_procfs() 223 alm.year, alm.month, alm.day, in efi_procfs()
|
D | rtc-wilco-ec.c | 54 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()
|
D | rtc-mv.c | 71 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()
|
D | rtc-m48t35.c | 29 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()
|
D | rtc-ds1216.c | 22 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()
|
D | rtc-bd70528.c | 37 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()
|
D | rtc-ds1286.c | 95 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()
|
D | rtc-ds1742.c | 84 unsigned int year, month, day, hour, minute, second, week; in ds1742_rtc_read_time() local 97 month = readb(ioaddr + RTC_MONTH); in ds1742_rtc_read_time() 106 tm->tm_mon = bcd2bin(month) - 1; in ds1742_rtc_read_time()
|
D | rtc-bq32k.c | 46 uint8_t month; member 110 tm->tm_mon = bcd2bin(regs.month) - 1; in bq32k_rtc_read_time() 126 regs.month = bin2bcd(tm->tm_mon + 1); in bq32k_rtc_set_time()
|
/Linux-v5.15/Documentation/RCU/ |
D | RTFP.txt | 246 ,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-v5.15/fs/isofs/ |
D | util.c | 21 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-v5.15/arch/m68k/sun3/ |
D | intersil.c | 44 todintersil->month = t->tm_mon + 1; in sun3_hwclk() 54 t->tm_mon = todintersil->month - 1; in sun3_hwclk()
|
/Linux-v5.15/include/uapi/linux/ |
D | cec-funcs.h | 436 __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-v5.15/fs/udf/ |
D | udftime.c | 60 dest->tv_sec = mktime64(year, src.month, src.day, src.hour, src.minute, in udf_disk_stamp_to_time() 86 dest->month = tm.tm_mon + 1; in udf_time_to_disk_stamp()
|
/Linux-v5.15/arch/m68k/sun3x/ |
D | time.c | 55 h->month = bin2bcd(t->tm_mon + 1); in sun3x_hwclk() 65 t->tm_mon = bcd2bin(h->month) - 1; in sun3x_hwclk()
|
D | time.h | 15 volatile unsigned char month; member
|
/Linux-v5.15/drivers/mmc/core/ |
D | card.h | 122 #define cid_rev(hwrev, fwrev, year, month) \ argument 126 ((u64) month)) 132 card->cid.month)
|
/Linux-v5.15/fs/fat/ |
D | misc.c | 203 long day, leap_day, month, year; in fat_time_fat2unix() local 206 month = max(1, (date >> 5) & 0xf); in fat_time_fat2unix() 212 if (IS_LEAP_YEAR(year) && month > 2) in fat_time_fat2unix() 219 + days_in_year[month] + day in fat_time_fat2unix()
|
/Linux-v5.15/drivers/char/ |
D | toshiba.c | 404 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-v5.15/fs/cifs/ |
D | netmisc.c | 975 int min, day, month, year; in cnvrtDosUnixTm() local 992 month = sd->Month; in cnvrtDosUnixTm() 993 if (day < 1 || day > 31 || month < 1 || month > 12) { in cnvrtDosUnixTm() 994 cifs_dbg(VFS, "Invalid date, month %d day: %d\n", month, day); in cnvrtDosUnixTm() 996 month = clamp(month, 1, 12); in cnvrtDosUnixTm() 998 month -= 1; in cnvrtDosUnixTm() 999 days = day + total_days_of_prev_months[month]; in cnvrtDosUnixTm() 1015 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()
|
/Linux-v5.15/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_pro.h | 39 u8 month; member 53 u8 month; member
|