Searched refs:day (Results 1 - 25 of 88) sorted by relevance

1234

/linux-master/fs/isofs/
H A Dutil.c21 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 Drtc-rtd119x.c85 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 Dlib.c39 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 Drtc-m48t35.c31 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 Drtc-efi.c24 * 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 Drtc-cpcap.c36 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 Drtc-wilco-ec.c41 * @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 Drtc-mxc.c52 #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 Drtc-bq4802.c95 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 Dmc146818-time.h91 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 Dtimeconv.c49 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 Dtime.c24 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 Drtc.c43 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 Dintersil.h34 unsigned char day; member in struct:intersil_dt
/linux-master/tools/testing/selftests/timers/
H A DMakefile11 skew_consistency clocksource-switch freq-step leap-a-day \
/linux-master/arch/m68k/sun3/
H A Dintersil.c46 todintersil->day = t->tm_mday;
56 t->tm_mday = todintersil->day;
/linux-master/arch/m68k/bvme6000/
H A Drtc.c74 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 Drtc.c69 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 Dtime.c132 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 Dtime.c203 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 Dbootinfo-vme.h50 __u8 rev, mth, day, yr; member in struct:__anon483
/linux-master/drivers/md/bcache/
H A Dstats.h37 struct cache_stats day; member in struct:cache_accounting
/linux-master/fs/udf/
H A Dudftime.c46 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 Drtc_m41t81.c65 #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 Drtc_xicor1241.c169 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);

Completed in 469 milliseconds

1234