Home
last modified time | relevance | path

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

12

/drivers/rtc/
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()
51 unsigned int month, year, secs; in rtc_time64_to_tm() local
71 for (month = 0; month < 11; month++) { in rtc_time64_to_tm()
74 newdays = days - rtc_month_days(month, year); in rtc_time64_to_tm()
79 tm->tm_mon = 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()
207 eft.year, eft.month, eft.day, in efi_procfs()
223 alm.year, alm.month, alm.day, in efi_procfs()
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-wilco-ec.c54 u8 month; member
81 u8 month; member
111 tm->tm_mon = rtc.month - 1; in wilco_ec_rtc_read()
139 rtc.month = bin2bcd(tm->tm_mon + 1); in wilco_ec_rtc_write()
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-m48t35.c29 u8 month; member
62 tm->tm_mon = readb(&priv->reg->month); in m48t35_read_time()
124 writeb(mon, &priv->reg->month); in m48t35_set_time()
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.c84 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()
Drtc-bq32k.c46 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()
Drtc-bd70528.c30 u8 month; member
178 r->month &= ~BD70528_MASK_RTC_MONTH; in tm2rtc()
192 r->month |= bin2bcd(t->tm_mon + 1); in tm2rtc()
211 t->tm_mon = bcd2bin(r->month & BD70528_MASK_RTC_MONTH) - 1; in rtc2tm()
Drtc-da9063.c23 #define MONTHS_TO_DA9063(month) ((month) + 1) argument
25 #define MONTHS_FROM_DA9063(month) ((month) - 1) argument
Drtc-ds1553.c99 unsigned int year, month, day, hour, minute, second, week; in ds1553_rtc_read_time() local
112 month = readb(ioaddr + RTC_MONTH); in ds1553_rtc_read_time()
121 tm->tm_mon = bcd2bin(month) - 1; in ds1553_rtc_read_time()
Drtc-stk17ta8.c98 unsigned int year, month, day, hour, minute, second, week; in stk17ta8_rtc_read_time() local
114 month = readb(ioaddr + RTC_MONTH); in stk17ta8_rtc_read_time()
123 tm->tm_mon = bcd2bin(month) - 1; in stk17ta8_rtc_read_time()
Drtc-ds3232.c102 unsigned int year, month, day, hour, minute, second; in ds3232_read_time() local
115 month = buf[5]; in ds3232_read_time()
122 century = month & 0x80; in ds3232_read_time()
142 time->tm_mon = bcd2bin(month & 0x7F) - 1; in ds3232_read_time()
Drtc-ds1685.c233 u8 seconds, minutes, hours, wday, mday, month, years; in ds1685_rtc_read_time() local
242 month = rtc->read(rtc, RTC_MONTH); in ds1685_rtc_read_time()
263 tm->tm_mon = (ds1685_rtc_bcd2bin(rtc, month, RTC_MONTH_BCD_MASK, in ds1685_rtc_read_time()
281 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century; in ds1685_rtc_set_time() local
294 month = ds1685_rtc_bin2bcd(rtc, (tm->tm_mon + 1), RTC_MONTH_BIN_MASK, in ds1685_rtc_set_time()
333 rtc->write(rtc, RTC_MONTH, month); in ds1685_rtc_set_time()
/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()
300 eft.year, eft.month, eft.day, in efi_rtc_proc_show()
317 alm.year, alm.month, alm.day, in efi_rtc_proc_show()
Dtoshiba.c407 int i,major,minor,day,year,month,flag; in tosh_probe() local
458 month = ((readb(bios+0xfff8)-'0')*10)+(readb(bios+0xfff9)-'0'); in tosh_probe()
460 tosh_date = (((year-90) & 0x1f)<<10) | ((month & 0xf)<<6) in tosh_probe()
/drivers/mmc/core/
Dcard.h122 #define cid_rev(hwrev, fwrev, year, month) \ argument
126 ((u64) month))
132 card->cid.month)
/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.h39 u8 month; member
53 u8 month; member
/drivers/firmware/
Ddmi_scan.c984 int year = 0, month = 0, day = 0; in dmi_get_date() local
1015 month = simple_strtoul(s, &e, 10); in dmi_get_date()
1016 if (s == e || *e != '/' || !month || month > 12) { in dmi_get_date()
1017 month = 0; in dmi_get_date()
1029 *monthp = month; in dmi_get_date()
/drivers/acpi/
Dacpi_tad.c57 u8 month; /* 1 - 12 */ member
83 rt->month < 1 || rt->month > 12 || in acpi_tad_set_real_time()
177 rt.month = val; in time_store()
236 rt.year, rt.month, rt.day, rt.hour, rt.minute, rt.second, in time_show()
/drivers/ata/
Dahci.c1092 int year, month, date; in ahci_sb600_enable_64bit() local
1103 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_sb600_enable_64bit()
1104 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_sb600_enable_64bit()
1227 int year, month, date; in ahci_broken_suspend() local
1233 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_broken_suspend()
1234 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_broken_suspend()
1280 int year, month, date; in ahci_broken_lpm() local
1286 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_broken_lpm()
1287 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_broken_lpm()
/drivers/staging/rtl8188eu/include/
Dfw.h30 u8 month; member
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_coredump.h39 __le16 month; member
/drivers/media/rc/
Dimon.c673 unsigned int year, unsigned int month, in send_set_imon_clock() argument
691 clock_enable_pkt[0][2] = month-1; in send_set_imon_clock()
717 clock_enable_pkt[0][1] = month-1; in send_set_imon_clock()
829 unsigned int year, month, day, dow, hour, minute, second; in store_imon_clock() local
844 if (sscanf(buf, "%u %u %u %u %u %u %u", &year, &month, &day, &dow, in store_imon_clock()
850 if ((month < 1 || month > 12) || in store_imon_clock()
857 retval = send_set_imon_clock(ictx, year, month, day, dow, in store_imon_clock()

12