Searched refs:dow (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-10-stable/sys/sys/
H A Dclock.h72 int dow; /* day of week (0 - 6; 0 = Sunday) */ member in struct:clocktime
/freebsd-10-stable/sys/mips/cavium/
H A Docteon_ds1337.c84 CT_CHECK(ct->dow < 1 || ct->dow > 7, "day of week");
127 ct.dow = (reg[3] & 0x7); /* Day of week field is 1..7 */
177 reg[3] = bin2bcd(ct.dow);
/freebsd-10-stable/sys/arm/at91/
H A Dat91_rtcreg.h81 #define RTC_CALR_MK(yr, mon, day, dow) \
85 (TOBCD(dow) << RTC_CALR_DOW_S) | \
H A Dat91_rtc.c289 ct.dow = -1;
328 WR4(sc, RTC_CALR, RTC_CALR_MK(ct.year, ct.mon, ct.day, ct.dow+1));
/freebsd-10-stable/usr.sbin/cron/cron/
H A Dcron.c228 register int second, minute, hour, dom, month, dow; local
239 dow = tm->tm_wday -FIRST_DOW;
242 getpid(), second, minute, hour, dom, month, dow))
304 /* the dom/dow situation is odd. '* * 1,15 * Sun' will run on the
322 ? (bit_test(e->dow,otzdow) && bit_test(e->dom,otzdom))
323 : (bit_test(e->dow,otzdow) || bit_test(e->dom,otzdom))
342 ? (bit_test(e->dow,dow) && bit_test(e->dom,dom))
343 : (bit_test(e->dow,dow) || bit_tes
[all...]
H A Dcron.h176 bitstr_t bit_decl(dow, DOW_COUNT);
/freebsd-10-stable/sys/arm/samsung/s3c2xx0/
H A Ds3c24x0_rtc.c93 ct.dow = FROMBCD(bus_read_1(sc->mem_res, RTC_BCDDAY)); \
112 ct.dow = -1;
136 bus_write_1(sc->mem_res, RTC_BCDDAY, TOBCD(ct.dow));
/freebsd-10-stable/usr.sbin/cron/lib/
H A Dentry.c159 bit_nset(e->dow, 0, (LAST_DOW-FIRST_DOW+1));
168 bit_nset(e->dow, 0, (LAST_DOW-FIRST_DOW+1));
178 bit_set(e->dow, 0);
186 bit_nset(e->dow, 0, (LAST_DOW-FIRST_DOW+1));
194 bit_nset(e->dow, 0, (LAST_DOW-FIRST_DOW+1));
202 bit_nset(e->dow, 0, (LAST_DOW-FIRST_DOW+1));
211 bit_nset(e->dow, 0, (LAST_DOW-FIRST_DOW+1));
272 ch = get_list(e->dow, FIRST_DOW, LAST_DOW,
281 if (bit_test(e->dow, 0) || bit_test(e->dow,
[all...]
/freebsd-10-stable/usr.bin/calendar/
H A Dparsedata.c45 static int checkdayofweek(char *s, size_t *len, size_t *offset, const char **dow);
94 const char *dow, *pmonth; local
162 if (checkdayofweek(date, &len, &offset, &dow) != 0) {
226 if (checkdayofweek(p2, &len, &offset, &dow) != 0) {
255 && checkdayofweek(p2, &len, &offset, &dow) != 0) {
440 int d, m, dow, rm, rd, offset; local
578 dow = first_dayofweek_of_year(year);
579 d = (idayofweek - dow + 8) % 7;
616 dow = first_dayofweek_of_month(year, imonth);
617 d = (idayofweek - dow
926 checkdayofweek(char *s, size_t *len, size_t *offset, const char **dow) argument
[all...]
/freebsd-10-stable/sys/arm/mv/
H A Drtc.c143 ct.dow = FROMBCD((val & 0x7000000) >> 24) - 1;
170 (TOBCD(ct.hour) << 16) | (TOBCD( ct.dow + 1) << 24);
/freebsd-10-stable/sys/mips/atheros/
H A Dpcf2123_rtc.c131 ct.dow = FROMBCD(rxTimedate[5] & 0x3f);
177 txTimedate[5] = TOBCD(ct.dow);
/freebsd-10-stable/sys/pc98/cbus/
H A Dpcrtc.c186 rtc_outb((ct.mon << 4) | ct.dow); /* Write back Month and DOW */
211 ct.dow = i & 0x0f; /* dow */
217 /* Set dow = -1 because some clocks don't set it correctly. */
218 ct.dow = -1;
/freebsd-10-stable/contrib/ntp/libntp/
H A Dntp_calendar.c1544 int32_t dow
1547 return ntpcal_periodic_extend(rdn+1, dow, 7);
1553 int32_t dow
1556 return ntpcal_periodic_extend(rdn, dow, 7);
1562 int32_t dow
1565 return ntpcal_periodic_extend(rdn-3, dow, 7);
1571 int32_t dow
1574 return ntpcal_periodic_extend(rdn, dow, -7);
1580 int32_t dow
1583 return ntpcal_periodic_extend(rdn-1, dow,
[all...]
/freebsd-10-stable/sys/dev/mk48txx/
H A Dmk48txx.c182 /* Map dow from 1 - 7 to 0 - 6; FROMBCD() isn't necessary here. */
183 ct.dow = FROMREG(MK48TXX_IWDAY, MK48TXX_WDAY_MASK) - 1;
186 * Set dow = -1 because some drivers (for example the NetBSD and
189 ct.dow = -1;
249 /* Map dow from 0 - 6 to 1 - 7; TOBCD() isn't necessary here. */
250 TOREG(MK48TXX_IWDAY, MK48TXX_WDAY_MASK, ct.dow + 1);
/freebsd-10-stable/sys/x86/isa/
H A Datrtc.c311 writertc(RTC_WDAY, ct.dow + 1); /* Write back Weekday */
351 ct.dow = readrtc(RTC_WDAY) - 1;
360 /* Set dow = -1 because some clocks don't set it correctly. */
361 ct.dow = -1;
/freebsd-10-stable/sys/dev/iicbus/
H A Dpcf8563.c137 ct.dow = val[PCF8563_R_WEEKDAY] & PCF8563_M_WEEKDAY;
173 val[PCF8563_R_WEEKDAY] = ct.dow;
H A Ds35390a.c280 ct.dow = bcd[S390_RT1_WDAY] & 0x07;
303 bcd[S390_RT1_WDAY] = ct.dow;
H A Dds133x.c300 ct.dow = FROMBCD(date[3] & 0x07) - 1;
328 date[3] = TOBCD(ct.dow + 1) & 0x07;
/freebsd-10-stable/sys/dev/mc146818/
H A Dmc146818.c136 /* Map dow from 1 - 7 to 0 - 6. */
137 ct.dow = FROMREG((*sc->sc_mcread)(dev, MC_DOW)) - 1;
215 /* Map dow from 0 - 6 to 1 - 7. */
216 (*sc->sc_mcwrite)(dev, MC_DOW, TOREG(ct.dow + 1));
/freebsd-10-stable/sys/powerpc/mpc85xx/
H A Dds1553_core.c109 ct.dow = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_DAYOFWEEK) &
161 (*sc->sc_write)(dev, DS1553_OFF_DAYOFWEEK, TOBCD(ct.dow + 1) &
/freebsd-10-stable/sys/kern/
H A Dsubr_clock.c189 ct->dow = day_of_week(days);
/freebsd-10-stable/sys/amd64/vmm/io/
H A Dvrtc.c209 KASSERT(ct.dow >= 0 && ct.dow <= 6, ("invalid clocktime wday %d",
210 ct.dow));
249 rtc->day_of_week = rtcset(rtc, ct.dow + 1);
342 * Ignore 'rtc->dow' because some guests like Linux don't bother
345 * clock_ct_to_ts() does not depend on 'ct.dow' anyways so ignore it.
347 ct.dow = -1;
/freebsd-10-stable/sys/arm/ti/am335x/
H A Dam335x_rtc.c169 ct.dow = 0;
/freebsd-10-stable/contrib/tzcode/stdtime/
H A Dlocaltime.c897 int d, m1, yy0, yy1, yy2, dow; local
941 dow = ((26 * m1 - 2) / 10 +
943 if (dow < 0)
944 dow += DAYSPERWEEK;
947 ** "dow" is the day-of-week of the first day of the month. Get
948 ** the day-of-month (zero-origin) of the first "dow" day of the
951 d = rulep->r_day - dow;
/freebsd-10-stable/sys/ia64/ia64/
H A Dnexus.c509 ct.dow = -1;

Completed in 528 milliseconds

12