/linux-master/fs/isofs/ |
H A D | util.c | 21 int year, month, day, hour, minute, second, tz; local 26 day = p[2]; 36 crtime = mktime64(year+1900, month, day, hour, minute, second);
|
/linux-master/drivers/rtc/ |
H A D | rtc-rtd119x.c | 85 s32 day; local 94 day = readl_relaxed(data->base + RTD_RTCDATE1) & RTD_RTCDATE1_RTCDATE1_MASK; 95 day |= (readl_relaxed(data->base + RTD_RTCDATE2) & RTD_RTCDATE2_RTCDATE2_MASK) << 8; 109 while (day >= rtd119x_rtc_days_in_year(year)) { 110 day -= rtd119x_rtc_days_in_year(year); 114 tm->tm_yday = day; 117 while (day >= rtc_month_days(tm->tm_mon, year)) { 118 day -= rtc_month_days(tm->tm_mon, year); 121 tm->tm_mday = day + 1; 129 unsigned int day; local [all...] |
H A D | lib.c | 39 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year) argument 41 return rtc_ydays[is_leap_year(year)][month] + day - 1; 59 day_of_year, month, day; local 65 /* day of the week, 1970-01-01 was a Thursday */ 73 * mathematically convenient because the day of the year does not 76 * March 1st 0-th day of the year; 78 * April 1st 31-st day of the year; 80 * January 1st 306-th day of the year; (Important!) 82 * February 28th 364-th day of the year; 83 * February 29th 365-th day o [all...] |
H A D | rtc-m48t35.c | 31 u8 day; member in struct:m48t35_rtc 37 u8 day; member in struct:m48t35_rtc 100 unsigned char mon, day, hrs, min, sec; local 106 day = tm->tm_mday; 127 day = bin2bcd(day); 136 writeb(day, &priv->reg->date);
|
H A D | rtc-efi.c | 24 * returns day of the year [0-365] 30 return rtc_year_days(eft->day, eft->month - 1, eft->year); 34 * returns day of the week [0-6] 0=Sunday 57 eft->day = wtime->tm_mday; 83 if (!eft->day || eft->day > 31) 85 wtime->tm_mday = eft->day; 95 /* day in the year [1-365]*/ 98 /* day of the week [0-6], Sunday=0 */ 208 eft.year, eft.month, eft.day, [all...] |
H A D | rtc-cpcap.c | 36 int day; member in struct:cpcap_time 57 time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); 68 cpcap->day = time / SECS_PER_DAY; 101 ret |= regmap_read(rtc->regmap, CPCAP_REG_DAY, &cpcap_tm.day); 106 ret |= regmap_read(rtc->regmap, CPCAP_REG_DAY, &cpcap_tm.day); 142 DAY_MASK, cpcap_tm.day); 154 DAY_MASK, cpcap_tm.day); 179 ret = regmap_read(rtc->regmap, CPCAP_REG_DAYA, &cpcap_tm.day); 206 cpcap_tm.day);
|
H A D | rtc-wilco-ec.c | 41 * @day: Day value (1..31) 53 u8 day; member in struct:ec_rtc_read_response 67 * @day: Day value (1..31) 82 u8 day; member in struct:ec_rtc_write_request 110 tm->tm_mday = rtc.day; 132 * schedules that depend on the day of the week. 142 rtc.day = bin2bcd(tm->tm_mday);
|
H A D | rtc-mxc.c | 52 #define RTC_DAYALARM 0x24 /* 32bit rtc day alarm reg */ 92 u32 day = 0, hr = 0, min = 0, sec = 0, hr_min = 0; local 96 day = readw(ioaddr + RTC_DAYR); 101 day = readw(ioaddr + RTC_DAYALARM); 110 return ((((time64_t)day * 24 + hr) * 60) + min) * 60 + sec; 118 u32 tod, day, hr, min, sec, temp; local 122 day = div_s64_rem(time, 86400, &tod); 124 /* time is within a day now */ 136 writew(day, ioaddr + RTC_DAYR); 141 writew(day, ioadd [all...] |
H A D | rtc-bq4802.c | 95 u8 sec, min, hrs, day, mon, yrs, century, val; local 104 day = tm->tm_mday; 112 day = bin2bcd(day); 125 p->write(p, 0x06, day);
|
/linux-master/arch/mips/include/asm/ |
H A D | mc146818-time.h | 91 unsigned int year, mon, day, hour, min, sec; local 100 day = CMOS_READ(RTC_DAY_OF_MONTH); 109 day = bcd2bin(day); 116 return mktime64(year, mon, day, hour, min, sec);
|
/linux-master/kernel/time/ |
H A D | timeconv.c | 49 u32 u32tmp, day_of_century, year_of_century, day_of_year, month, day; local 82 * mathematically convenient because the day of the year does not 85 * March 1st 0-th day of the year; 87 * April 1st 31-st day of the year; 89 * January 1st 306-th day of the year; (Important!) 91 * February 28th 364-th day of the year; 92 * February 29th 365-th day of the year (if it exists). 121 day = ((u16) u32tmp) / 2141; 124 * Recall that January 1st is the 306-th day of the year in the 132 day [all...] |
/linux-master/arch/mips/dec/ |
H A D | time.c | 24 unsigned int year, mon, day, hour, min, sec, real_year; local 33 day = CMOS_READ(RTC_DAY_OF_MONTH); 50 day = bcd2bin(day); 57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec);
|
/linux-master/arch/sh/boards/mach-sh03/ |
H A D | rtc.c | 43 unsigned int year, mon, day, hour, min, sec; local 51 day = (__raw_readb(RTC_DAY1) & 0xf) + (__raw_readb(RTC_DAY10) & 0xf) * 10; 57 if (year == 0 || mon < 1 || mon > 12 || day > 31 || day < 1 || 61 printk("year=%d, mon=%d, day=%d, hour=%d, min=%d, sec=%d\n", 62 year, mon, day, hour, min, sec); 82 tm->tm_mday = day;
|
/linux-master/arch/m68k/include/asm/ |
H A D | intersil.h | 34 unsigned char day; member in struct:intersil_dt
|
/linux-master/tools/testing/selftests/timers/ |
H A D | Makefile | 11 skew_consistency clocksource-switch freq-step leap-a-day \
|
/linux-master/arch/m68k/sun3/ |
H A D | intersil.c | 46 todintersil->day = t->tm_mday; 56 t->tm_mday = todintersil->day;
|
/linux-master/arch/m68k/bvme6000/ |
H A D | rtc.c | 74 unsigned char mon, day, hrs, min, sec, leap_yr; local 87 day = rtc_tm.tm_mday; 94 if ((mon > 12) || (mon < 1) || (day == 0)) 97 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) 116 rtc->bcd_dom = bin2bcd(day);
|
/linux-master/arch/m68k/mvme16x/ |
H A D | rtc.c | 69 unsigned char mon, day, hrs, min, sec, leap_yr; local 82 day = rtc_tm.tm_mday; 89 if ((mon > 12) || (day == 0)) 92 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) 107 rtc->bcd_dom = bin2bcd(day);
|
/linux-master/arch/powerpc/platforms/chrp/ |
H A D | time.c | 132 unsigned int year, mon, day, hour, min, sec; local 138 day = chrp_cmos_clock_read(RTC_DAY_OF_MONTH); 147 day = bcd2bin(day); 156 tm->tm_mday = day;
|
/linux-master/arch/m68k/atari/ |
H A D | time.c | 203 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; local 217 day = t->tm_mday; 236 day = bin2bcd(day); 269 day = RTC_READ( RTC_DAY_OF_MONTH ); 278 RTC_WRITE( RTC_DAY_OF_MONTH, day ); 298 day = bcd2bin(day); 314 t->tm_mday = day;
|
/linux-master/arch/m68k/include/uapi/asm/ |
H A D | bootinfo-vme.h | 50 __u8 rev, mth, day, yr; member in struct:__anon483
|
/linux-master/drivers/md/bcache/ |
H A D | stats.h | 37 struct cache_stats day; member in struct:cache_accounting
|
/linux-master/fs/udf/ |
H A D | udftime.c | 46 dest->tv_sec = mktime64(year, src.month, src.day, src.hour, src.minute, 73 dest->day = tm.tm_mday;
|
/linux-master/arch/mips/sibyte/swarm/ |
H A D | rtc_m41t81.c | 65 #define M41T81REG_DY 0x04 /* day of week */ 188 unsigned int year, mon, day, hour, min, sec; local 202 day = m41t81_read(M41T81REG_DT); 210 day = bcd2bin(day); 216 return mktime64(year, mon, day, hour, min, sec);
|
H A D | rtc_xicor1241.c | 169 unsigned int year, mon, day, hour, min, sec, y2k; local 184 day = xicor_read(X1241REG_DT); 193 day = bcd2bin(day); 200 return mktime64(year, mon, day, hour, min, sec);
|