Searched refs:dt_hour (Results 1 - 25 of 58) sorted by relevance

123

/netbsd-current/tools/compat/dev/
H A Dclock_subr.h47 u_char dt_hour; member in struct:clock_ymdhms
/netbsd-current/sys/dev/ic/
H A Dmsm6242b.c84 dt.dt_year, dt.dt_mon, dt.dt_day, dt.dt_hour, dt.dt_min, dt.dt_sec);
104 dt->dt_hour = (msm6242b_read(sc, MSM6242B_10HOUR_PMAM) &
116 dt->dt_year, dt->dt_mon, dt->dt_day, dt->dt_hour, dt->dt_min, dt->dt_sec);
123 MSM6242B_PMAM_BIT) == 0 && dt->dt_hour == 12)
124 dt->dt_hour = 0;
126 MSM6242B_PMAM_BIT) && dt->dt_hour != 12)
127 dt->dt_hour += 12;
136 if ((dt->dt_hour > 23) ||
227 if (dt->dt_hour >= 12) {
229 if (dt->dt_hour !
[all...]
H A Dmm58167.c110 _MM58167_GET(dt_hour, mm58167_hour);
140 (dt->dt_hour < dt_reasonable.dt_hour ||
141 (dt->dt_hour == dt_reasonable.dt_hour &&
253 _MM58167_PUT(dt_hour, mm58167_hour);
H A Dintersil7170reg.h52 uint8_t dt_hour; member in struct:intersil_dt
H A Dintersil7170.c93 dt->dt_hour = bus_space_read_1(bt, bh, INTERSIL_IHOUR);
142 bus_space_write_1(bt, bh, INTERSIL_IHOUR, dt->dt_hour);
H A Dmc146818.c102 dt->dt_hour = FROMREG((*sc->sc_mcread)(sc, MC_HOUR));
151 (*sc->sc_mcwrite)(sc, MC_HOUR, TOREG(dt->dt_hour));
/netbsd-current/sys/arch/next68k/next68k/
H A Drtc.c291 dt->dt_hour = bcdtobin(h & 0x1f);
294 if (dt->dt_hour < 12)
295 dt->dt_hour += 12;
298 if (dt->dt_hour == 12)
299 dt->dt_hour = 0;
305 val.dt_hour = bcdtobin(h & 0x3f);
333 if (dt->dt_hour == 0) {
335 } else if (dt->dt_hour < 12) {
337 rtc_write(RTC_HRS, bintobcd(dt->dt_hour) | 0x80);
338 } else if (dt->dt_hour
[all...]
/netbsd-current/sys/arch/playstation2/playstation2/
H A Dclock.c88 dt->dt_hour = bcdtobin(rtc->hour);
97 dt->dt_mon, dt->dt_day, dt->dt_hour, dt->dt_min, dt->dt_sec,
/netbsd-current/sys/arch/sgimips/dev/
H A Ddsclock.c133 dt->dt_hour =
142 if (dt->dt_hour == 24)
143 dt->dt_hour = 0;
145 dt->dt_hour =
174 regs[DS1286_HOUR] = bintobcd(dt->dt_hour) & DS1286_HOUR_24HR_MASK;
H A Ddpclock.c166 dt->dt_hour = bcdtobin(regs[DP8573A_SAVE_HOUR] &
176 if (dt->dt_hour == 24)
177 dt->dt_hour = 0;
179 dt->dt_hour = bcdtobin(regs[DP8573A_SAVE_HOUR] &
215 regs[DP8573A_HOUR] = bintobcd(dt->dt_hour) & DP8573A_HOUR_24HR_MASK;
/netbsd-current/sys/arch/arm/xscale/
H A Dpxa2x0_rtc.c133 dt.dt_hour, dt.dt_min, dt.dt_sec));
151 dt.dt_hour, dt.dt_min, dt.dt_sec));
165 dt.dt_hour, dt.dt_min, dt.dt_sec));
191 dt->dt_hour = (dayr >> RDCR_HOUR_SHIFT) & RDCR_HOUR_MASK;
199 dt->dt_hour, dt->dt_min, dt->dt_sec));
218 dt->dt_hour, dt->dt_min, dt->dt_sec));
222 dayr |= (dt->dt_hour & RDCR_HOUR_MASK) << RDCR_HOUR_SHIFT;
/netbsd-current/sys/arch/amiga/dev/
H A Da34kbbc.c121 dt->dt_hour = rt->hour1 * 10 + rt->hour2;
141 if ((dt->dt_hour > 23) ||
170 rt->hour1 = dt->dt_hour / 10;
171 rt->hour2 = dt->dt_hour % 10;
/netbsd-current/sys/dev/
H A Dclock_subr.h46 uint8_t dt_hour; member in struct:clock_ymdhms
H A Dclock_subr.c132 * 24 + dt->dt_hour)
198 dt->dt_hour = rsec / SECS_PER_HOUR;
/netbsd-current/sys/modules/examples/current_time/
H A Dcurrent_time.c60 w_day[dt.dt_wday], dt.dt_year, dt.dt_mon, dt.dt_day, dt.dt_hour,
/netbsd-current/sys/dev/dec/
H A Dmcclock.c166 dt.dt_hour = regs[MC_HOUR];
180 dt.dt_hour = 0;
212 dt.dt_hour = 0;
232 regs[MC_HOUR] = dt.dt_hour;
/netbsd-current/sys/dev/i2c/
H A Dr2025.c136 dt->dt_hour = hour;
139 dt->dt_hour = 0;
141 dt->dt_hour = 12;
143 dt->dt_hour = (hour - 8);
145 dt->dt_hour = hour;
183 bcd[R2025_REG_HOUR] = bintobcd(dt->dt_hour) & R2025_REG_HOUR_MASK;
/netbsd-current/sys/arch/x68k/dev/
H A Drtclock.c126 dt->dt_hour = RTC_REG(RTC_HOUR10) * 10 + RTC_REG(RTC_HOUR);
154 hour1 = dt->dt_hour / 10;
155 hour2 = dt->dt_hour % 10;
/netbsd-current/sys/arch/luna68k/dev/
H A Dtimekeeper.c129 dt->dt_hour = bcdtobin(chiptime[MK_HOUR]);
154 chiptime[MK_HOUR] = bintobcd(dt->dt_hour);
204 dt->dt_hour = chiptime[MC_HOUR];
227 chiptime[MC_HOUR] = dt->dt_hour;
/netbsd-current/sys/arch/arm/marvell/
H A Dmvsocrtc.c148 dt->dt_hour = bcdtobin(rtchour);
164 (bintobcd(dt->dt_hour) << MVSOCRTC_HOUR_OFFSET) |
/netbsd-current/sys/arch/mipsco/obio/
H A Dmkclock.c122 dt->dt_hour = mk_read(sc, 2);
146 mk_write(sc, 2, dt->dt_hour);
/netbsd-current/sys/dev/ofw/
H A Dofrtc.c179 dt->dt_hour = date[OFRTC_HR];
195 hr = dt->dt_hour;
/netbsd-current/sys/arch/sparc/dev/
H A Drtc.c163 dt->dt_hour = mc146818_read(sc, MC_HOUR);
197 mc146818_write(sc, MC_HOUR, dt->dt_hour);
/netbsd-current/sys/arch/evbppc/walnut/dev/
H A Dds1743.c163 dt.dt_hour, dt.dt_min, dt.dt_sec);
239 ds1743_write(sc, DS_HOURS, bintobcd(dt->dt_hour) & 0x3f);
259 dt->dt_hour = bcdtobin(ds1743_read(sc, DS_HOURS) & 0x3f);
/netbsd-current/sys/arch/arm/s3c2xx0/
H A Ds3c2440_rtc.c120 dt->dt_hour = bcdtobin(reg);
140 DPRINTF(("Hour: %d\n", dt->dt_hour));
163 bus_space_write_1(sc->sc_iot, sc->sc_ioh, RTC_BCDHOUR, bintobcd(dt->dt_hour));

Completed in 320 milliseconds

123