Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/rtc/
Drtc-lib.c33 int rtc_month_days(unsigned int month, unsigned int year) in rtc_month_days() argument
35 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()
42 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year) in rtc_year_days() argument
44 return rtc_ydays[is_leap_year(year)][month] + day-1; in rtc_year_days()
55 unsigned int month, year; in rtc_time64_to_tm() local
77 for (month = 0; month < 11; month++) { in rtc_time64_to_tm()
80 newdays = days - rtc_month_days(month, year); in rtc_time64_to_tm()
85 tm->tm_mon = month; in rtc_time64_to_tm()
Drtc-efi.c39 return rtc_year_days(eft->day, eft->month - 1, eft->year); in compute_yday()
72 eft->month = wtime->tm_mon + 1; in convert_to_efi_time()
103 if (!eft->month || eft->month > 12) in convert_from_efi_time()
105 wtime->tm_mon = eft->month - 1; in convert_from_efi_time()
Drtc-mv.c73 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_time() local
84 month = (rtc_date >> RTC_MONTH_OFFS) & 0x3f; in mv_rtc_read_time()
92 tm->tm_mon = bcd2bin(month) - 1; in mv_rtc_read_time()
104 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_alarm() local
115 month = (rtc_date >> RTC_MONTH_OFFS) & 0x3f; in mv_rtc_read_alarm()
123 alm->time.tm_mon = bcd2bin(month) - 1; in mv_rtc_read_alarm()
Drtc-ds1216.c23 u8 month; member
99 tm->tm_mon = bcd2bin(regs.month & 0x1f); in ds1216_rtc_read_time()
128 regs.month = bin2bcd(tm->tm_mon); in ds1216_rtc_set_time()
Drtc-m48t35.c35 u8 month; member
68 tm->tm_mon = readb(&priv->reg->month); in m48t35_read_time()
130 writeb(mon, &priv->reg->month); in m48t35_set_time()
Drtc-bq32k.c44 uint8_t month; member
101 tm->tm_mon = bcd2bin(regs.month) - 1; in bq32k_rtc_read_time()
117 regs.month = bin2bcd(tm->tm_mon + 1); in bq32k_rtc_set_time()
Drtc-ds1286.c101 unsigned char month, cmd, amode; in ds1286_proc() local
104 month = ds1286_rtc_read(priv, RTC_MONTH); in ds1286_proc()
108 (month & RTC_EOSC) ? "disabled" : "enabled", in ds1286_proc()
109 (month & RTC_ESQW) ? "disabled" : "enabled"); in ds1286_proc()
Drtc-da9063.c28 #define MONTHS_TO_DA9063(month) ((month) + 1) argument
30 #define MONTHS_FROM_DA9063(month) ((month) - 1) argument
Drtc-ds1742.c93 unsigned int year, month, day, hour, minute, second, week; in ds1742_rtc_read_time() local
106 month = readb(ioaddr + RTC_MONTH); in ds1742_rtc_read_time()
115 tm->tm_mon = bcd2bin(month) - 1; in ds1742_rtc_read_time()
Drtc-ds3232.c108 unsigned int year, month, day, hour, minute, second; in ds3232_read_time() local
124 month = buf[5]; in ds3232_read_time()
131 century = month & 0x80; in ds3232_read_time()
151 time->tm_mon = bcd2bin(month & 0x7F) - 1; in ds3232_read_time()
Drtc-stk17ta8.c105 unsigned int year, month, day, hour, minute, second, week; in stk17ta8_rtc_read_time() local
121 month = readb(ioaddr + RTC_MONTH); in stk17ta8_rtc_read_time()
130 tm->tm_mon = bcd2bin(month) - 1; in stk17ta8_rtc_read_time()
Drtc-ds1553.c106 unsigned int year, month, day, hour, minute, second, week; in ds1553_rtc_read_time() local
119 month = readb(ioaddr + RTC_MONTH); in ds1553_rtc_read_time()
128 tm->tm_mon = bcd2bin(month) - 1; in ds1553_rtc_read_time()
Drtc-mpc5121.c49 u8 month; /* RTC + 0x14 */ member
170 tm->tm_mon = in_8(&regs->month) - 1; in mpc5200_rtc_read_time()
Drtc-ds1685.c255 u8 seconds, minutes, hours, wday, mday, month, years; in ds1685_rtc_read_time() local
264 month = rtc->read(rtc, RTC_MONTH); in ds1685_rtc_read_time()
285 tm->tm_mon = (ds1685_rtc_bcd2bin(rtc, month, RTC_MONTH_BCD_MASK, in ds1685_rtc_read_time()
304 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century; in ds1685_rtc_set_time() local
317 month = ds1685_rtc_bin2bcd(rtc, (tm->tm_mon + 1), RTC_MONTH_BIN_MASK, in ds1685_rtc_set_time()
356 rtc->write(rtc, RTC_MONTH, month); in ds1685_rtc_set_time()
1693 DS1685_RTC_SYSFS_TIME_REG_RW(month);
Dinterface.c166 enum { none, day, month, year } missing = none; in __rtc_read_alarm() enumerator
257 missing = month; in __rtc_read_alarm()
289 case month: in __rtc_read_alarm()
/linux-4.1.27/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-4.1.27/fs/isofs/
Dutil.c20 int year, month, day, hour, minute, second, tz; in iso_date() local
24 month = p[1]; in iso_date()
35 crtime = mktime64(year+1900, month, day, hour, minute, second); in iso_date()
/linux-4.1.27/drivers/char/
Defirtc.c73 return __mon_yday[is_leap(eft->year)][eft->month-1]+ eft->day -1; in compute_yday()
107 eft->month = wtime->tm_mon + 1; in convert_to_efi_time()
125 wtime->tm_mon = eft->month - 1; in convert_from_efi_time()
323 eft.year, eft.month, eft.day, in efi_rtc_proc_show()
340 alm.year, alm.month, alm.day, in efi_rtc_proc_show()
Dtoshiba.c430 int i,major,minor,day,year,month,flag; in tosh_probe() local
481 month = ((readb(bios+0xfff8)-'0')*10)+(readb(bios+0xfff9)-'0'); in tosh_probe()
483 tosh_date = (((year-90) & 0x1f)<<10) | ((month & 0xf)<<6) in tosh_probe()
/linux-4.1.27/arch/m68k/sun3/
Dintersil.c51 todintersil->month = t->tm_mon; in sun3_hwclk()
61 t->tm_mon = todintersil->month; in sun3_hwclk()
/linux-4.1.27/fs/fat/
Dmisc.c193 time_t second, day, leap_day, month, year; in fat_time_fat2unix() local
196 month = max(1, (date >> 5) & 0xf); in fat_time_fat2unix()
202 if (IS_LEAP_YEAR(year) && month > 2) in fat_time_fat2unix()
209 + days_in_year[month] + day in fat_time_fat2unix()
/linux-4.1.27/arch/m68k/sun3x/
Dtime.c54 h->month = bin2bcd(t->tm_mon); in sun3x_hwclk()
64 t->tm_mon = bcd2bin(h->month); in sun3x_hwclk()
Dtime.h15 volatile unsigned char month; member
/linux-4.1.27/fs/ncpfs/
Ddir.c1198 int month, year, secs; in ncp_date_dos2unix() local
1202 month = ((date >> 5) - 1) & 15; in ncp_date_dos2unix()
1205 86400 * ((date & 31) - 1 + day_n[month] + (year / 4) + in ncp_date_dos2unix()
1206 year * 365 - ((year & 3) == 0 && month < 2 ? 1 : 0) + 3653); in ncp_date_dos2unix()
1216 int day, year, nl_day, month; in ncp_date_unix2dos() local
1229 month = 2; in ncp_date_unix2dos()
1232 for (month = 1; month < 12; month++) in ncp_date_unix2dos()
1233 if (day_n[month] > nl_day) in ncp_date_unix2dos()
1236 *date = cpu_to_le16(nl_day - day_n[month - 1] + 1 + (month << 5) + (year << 9)); in ncp_date_unix2dos()
/linux-4.1.27/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.h47 u8 month; member
61 u8 month; member
/linux-4.1.27/drivers/firmware/
Ddmi_scan.c834 int year = 0, month = 0, day = 0; in dmi_get_date() local
865 month = simple_strtoul(s, &e, 10); in dmi_get_date()
866 if (s == e || *e != '/' || !month || month > 12) { in dmi_get_date()
867 month = 0; in dmi_get_date()
879 *monthp = month; in dmi_get_date()
/linux-4.1.27/include/linux/mmc/
Dcard.h26 unsigned char month; member
393 #define cid_rev(hwrev, fwrev, year, month) \ argument
397 ((u64) month))
403 card->cid.month)
/linux-4.1.27/net/netfilter/
Dxt_time.c20 u_int8_t month; /* (1-12) */ member
151 r->month = i + 1; in localtime_3()
/linux-4.1.27/arch/m68k/include/asm/
Dintersil.h32 unsigned char month; member
Dapollohw.h47 unsigned char month, year; member
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Dfw.h45 u8 month; member
/linux-4.1.27/fs/cifs/
Dnetmisc.c965 int sec, min, days, month, year; in cnvrtDosUnixTm() local
982 month = sd->Month; in cnvrtDosUnixTm()
983 if ((days > 31) || (month > 12)) { in cnvrtDosUnixTm()
984 cifs_dbg(VFS, "illegal date, month %d day: %d\n", month, days); in cnvrtDosUnixTm()
985 if (month > 12) in cnvrtDosUnixTm()
986 month = 12; in cnvrtDosUnixTm()
988 month -= 1; in cnvrtDosUnixTm()
989 days += total_days_of_prev_months[month]; in cnvrtDosUnixTm()
1005 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()
/linux-4.1.27/fs/udf/
Dudftime.c112 yday = ((__mon_yday[__isleap(year)][src.month - 1]) + src.day - 1); in udf_disk_stamp_to_time()
159 dest->month = y + 1; in udf_time_to_disk_stamp()
Decma_167.h63 uint8_t month; member
Dsuper.c925 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc()
2210 le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super()
/linux-4.1.27/arch/mips/include/asm/
Dm48t37.h27 volatile u8 month; member
/linux-4.1.27/include/linux/
Drtc.h19 extern int rtc_month_days(unsigned int month, unsigned int year);
20 extern int rtc_year_days(unsigned int day, unsigned int month, unsigned int year);
Defi.h140 u8 month; member
/linux-4.1.27/arch/m68k/apollo/
Dconfig.c224 t->tm_mon=rtc->month; in dn_dummy_hwclk()
233 rtc->month=t->tm_mon; in dn_dummy_hwclk()
/linux-4.1.27/arch/alpha/include/asm/
Derr_common.h74 u8 month; member
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723com/
Dfw_common.h60 u8 month; member
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/
Dfw.h121 u8 month; member
/linux-4.1.27/include/uapi/linux/
Dtelephony.h99 char month[3]; member
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192c/
Dfw_common.h79 u8 month; member
/linux-4.1.27/drivers/ata/
Dahci.c1082 int year, month, date; in ahci_sb600_enable_64bit() local
1093 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_sb600_enable_64bit()
1094 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_sb600_enable_64bit()
1217 int year, month, date; in ahci_broken_suspend() local
1223 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_broken_suspend()
1224 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_broken_suspend()
/linux-4.1.27/drivers/media/rc/
Dimon.c691 unsigned int year, unsigned int month, in send_set_imon_clock() argument
709 clock_enable_pkt[0][2] = month-1; in send_set_imon_clock()
735 clock_enable_pkt[0][1] = month-1; in send_set_imon_clock()
849 unsigned int year, month, day, dow, hour, minute, second; in store_imon_clock() local
864 if (sscanf(buf, "%u %u %u %u %u %u %u", &year, &month, &day, &dow, in store_imon_clock()
870 if ((month < 1 || month > 12) || in store_imon_clock()
877 retval = send_set_imon_clock(ictx, year, month, day, dow, in store_imon_clock()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/
Dfw.h99 u8 month; member
/linux-4.1.27/drivers/staging/unisys/common-spar/include/channels/
Ddiagchannel.h111 u8 month; /* 1 - 12 */ member
/linux-4.1.27/drivers/scsi/esas2r/
Desas2r_flash.c1083 u8 month = HIBYTE(HIWORD(a->flash_ver)); in esas2r_print_flash_rev() local
1086 || month == 0 in esas2r_print_flash_rev()
1088 || month > 12 in esas2r_print_flash_rev()
1096 sprintf(a->flash_rev, "%02d/%02d/%04d", month, day, year); in esas2r_print_flash_rev()
Datvda.h956 u8 month; member
/linux-4.1.27/arch/alpha/kernel/
Derr_common.c173 timestamp->b.month, timestamp->b.day, in el_print_timestamp()
/linux-4.1.27/include/acpi/
Dacbuffer.h80 u8 month; member
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/
Dfw.h141 u8 month; member
/linux-4.1.27/include/xen/interface/
Dplatform.h138 uint8_t month; member
/linux-4.1.27/arch/ia64/hp/sim/boot/
Dfw-emu.c95 tp->month = y + 1; in offtime()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8821ae/
Dfw.h147 u8 month; member
/linux-4.1.27/security/tomoyo/
Daudit.c165 "fsuid=%u fsgid=%u }", stamp.year, stamp.month, in tomoyo_print_header()
Dutil.c117 stamp->month = ++m; in tomoyo_convert_time()
Dcommon.h889 u8 month; member
Dcommon.c2299 stamp.year, stamp.month, stamp.day, in tomoyo_read_stat()
/linux-4.1.27/drivers/mmc/core/
Dmmc.c86 card->cid.month = UNSTUFF_BITS(resp, 12, 4); in mmc_decode_cid()
103 card->cid.month = UNSTUFF_BITS(resp, 12, 4); in mmc_decode_cid()
711 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
Dsd.c94 card->cid.month = UNSTUFF_BITS(resp, 8, 4); in mmc_decode_cid()
694 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
/linux-4.1.27/Documentation/input/
Dyealink.txt98 'e' : Most significant day of the month digit,
Datarikbd.txt479 MM ; month
496 MM ; month
/linux-4.1.27/arch/x86/platform/efi/
Defi.c115 now->tv_sec = mktime(eft.year, eft.month, eft.day, eft.hour, in efi_get_time()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dwmi.h640 u8 month; member
/linux-4.1.27/drivers/scsi/
Dips.h573 uint8_t month; member
Dips.c6053 scb->cmd.ffdc.month = i + 1; in ips_fix_ffdc_time()
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
Dvxge-config.h215 u32 month; member
Dvxge-config.c823 fw_date->month = in __vxge_hw_vpath_fw_ver_get()
829 fw_date->month, fw_date->day, fw_date->year); in __vxge_hw_vpath_fw_ver_get()
843 flash_date->month = in __vxge_hw_vpath_fw_ver_get()
849 flash_date->month, flash_date->day, flash_date->year); in __vxge_hw_vpath_fw_ver_get()
/linux-4.1.27/Documentation/scsi/
Darcmsr_spec.txt99 ** byte 3 : month (1..12)
/linux-4.1.27/Documentation/
Dkernel-docs.txt135 topic, preparing the reader to understand next month's
167 month, we further investigate the field of interrupt handling.
/linux-4.1.27/Documentation/virtual/kvm/
Dtimekeeping.txt215 07h byte Current day of month (BCD)
216 08h byte Current month (BCD)
/linux-4.1.27/arch/ia64/kernel/
Defi.c248 ts->tv_sec = mktime(tm.year, tm.month, tm.day, in STUB_GET_TIME()
/linux-4.1.27/Documentation/development-process/
D1.Intro83 free software projects. A typical three-month kernel development cycle can
/linux-4.1.27/
DMAINTAINERS51 or does something very odd once a month document it.