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

12

/drivers/rtc/
H A Drtc-lib.c31 * The number of days in the month.
33 int rtc_month_days(unsigned int month, unsigned int year) argument
35 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1);
42 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year) argument
44 return rtc_ydays[is_leap_year(year)][month] + day-1;
53 unsigned int month, year; local
73 for (month = 0; month < 11; month
[all...]
H A Drtc-efi.c38 /* efi_time_t.month is in the [1-12] so, we need -1 */
39 return rtc_year_days(eft->day, eft->month - 1, eft->year);
72 eft->month = wtime->tm_mon + 1;
103 if (!eft->month || eft->month > 12)
105 wtime->tm_mon = eft->month - 1;
H A Drtc-mv.c73 unsigned int year, month, day, hour, minute, second, wday; local
84 month = (rtc_date >> RTC_MONTH_OFFS) & 0x3f;
92 tm->tm_mon = bcd2bin(month) - 1;
104 unsigned int year, month, day, hour, minute, second, wday; local
115 month = (rtc_date >> RTC_MONTH_OFFS) & 0x3f;
123 alm->time.tm_mon = bcd2bin(month) - 1;
H A Drtc-da9063.c28 #define MONTHS_TO_DA9063(month) ((month) + 1)
30 #define MONTHS_FROM_DA9063(month) ((month) - 1)
H A Drtc-ds1286.c101 unsigned char month, cmd, amode; local
104 month = ds1286_rtc_read(priv, RTC_MONTH);
108 (month & RTC_EOSC) ? "disabled" : "enabled",
109 (month & RTC_ESQW) ? "disabled" : "enabled");
H A Drtc-bq32k.c44 uint8_t month; member in struct:bq32k_regs
101 tm->tm_mon = bcd2bin(regs.month) - 1;
117 regs.month = bin2bcd(tm->tm_mon + 1);
H A Drtc-ds1216.c23 u8 month; member in struct:ds1216_regs
99 tm->tm_mon = bcd2bin(regs.month & 0x1f);
128 regs.month = bin2bcd(tm->tm_mon);
H A Drtc-m48t35.c35 u8 month; member in struct:m48t35_rtc
68 tm->tm_mon = readb(&priv->reg->month);
130 writeb(mon, &priv->reg->month);
H A Drtc-ds1742.c93 unsigned int year, month, day, hour, minute, second, week; local
106 month = readb(ioaddr + RTC_MONTH);
115 tm->tm_mon = bcd2bin(month) - 1;
H A Drtc-ds3232.c106 unsigned int year, month, day, hour, minute, second; local
122 month = buf[5];
129 century = month & 0x80;
148 /* linux tm_mon range:0~11, while month range is 1~12 in RTC chip */
149 time->tm_mon = bcd2bin(month & 0x7F) - 1;
171 /* linux tm_mon range:0~11, while month range is 1~12 in RTC chip */
H A Drtc-ds1553.c106 unsigned int year, month, day, hour, minute, second, week; local
119 month = readb(ioaddr + RTC_MONTH);
128 tm->tm_mon = bcd2bin(month) - 1;
H A Drtc-stk17ta8.c105 unsigned int year, month, day, hour, minute, second, week; local
121 month = readb(ioaddr + RTC_MONTH);
130 tm->tm_mon = bcd2bin(month) - 1;
H A Drtc-mpc5121.c49 u8 month; /* RTC + 0x14 */ member in struct:mpc5121_rtc_regs
170 tm->tm_mon = in_8(&regs->month) - 1;
/drivers/staging/rtl8188eu/include/
H A Dfw.h45 u8 month; member in struct:rtl92c_firmware_header
/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
/drivers/char/
H A Defirtc.c72 /* efi_time_t.month is in the [1-12] so, we need -1 */
73 return __mon_yday[is_leap(eft->year)][eft->month-1]+ eft->day -1;
107 eft->month = wtime->tm_mon + 1;
125 wtime->tm_mon = eft->month - 1;
323 eft.year, eft.month, eft.day,
340 alm.year, alm.month, alm.day,
H A Dtoshiba.c430 int i,major,minor,day,year,month,flag; local
481 month = ((readb(bios+0xfff8)-'0')*10)+(readb(bios+0xfff9)-'0');
483 tosh_date = (((year-90) & 0x1f)<<10) | ((month & 0xf)<<6)
/drivers/net/wireless/rtlwifi/rtl8723com/
H A Dfw_common.h60 u8 month; member in struct:rtl8723e_firmware_header
/drivers/firmware/
H A Ddmi_scan.c816 * @monthp: optional out parameter for the month
827 * On return, year, month and day are guaranteed to be in the
832 int year = 0, month = 0, day = 0; local
863 month = simple_strtoul(s, &e, 10);
864 if (s == e || *e != '/' || !month || month > 12) {
865 month = 0;
877 *monthp = month;
/drivers/net/wireless/rtlwifi/rtl8192c/
H A Dfw_common.h78 u8 month; member in struct:rtl92c_firmware_header
/drivers/net/wireless/rtlwifi/rtl8192de/
H A Dfw.h121 u8 month; member in struct:rtl92d_firmware_header
/drivers/net/wireless/rtlwifi/rtl8192ee/
H A Dfw.h99 u8 month; member in struct:rtl92c_firmware_header
/drivers/ata/
H A Dahci.c949 int year, month, date; local
960 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date);
961 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date);
1084 int year, month, date; local
1090 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date);
1091 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date);
/drivers/media/rc/
H A Dimon.c686 * Arguments: year - last 2 digits of year, month - 1..12,
691 unsigned int year, unsigned int month,
709 clock_enable_pkt[0][2] = month-1;
735 clock_enable_pkt[0][1] = month-1;
849 unsigned int year, month, day, dow, hour, minute, second; local
864 if (sscanf(buf, "%u %u %u %u %u %u %u", &year, &month, &day, &dow,
870 if ((month < 1 || month > 12) ||
877 retval = send_set_imon_clock(ictx, year, month, day, dow,
690 send_set_imon_clock(struct imon_context *ictx, unsigned int year, unsigned int month, unsigned int day, unsigned int dow, unsigned int hour, unsigned int minute, unsigned int second) argument
/drivers/net/wireless/rtlwifi/rtl8188ee/
H A Dfw.h141 u8 month; member in struct:rtl92c_firmware_header

Completed in 4365 milliseconds

12