Searched refs:tregs (Results 1 - 4 of 4) sorted by relevance

/freebsd-11-stable/sys/dev/iicbus/
H A Disl12xx.c237 struct time_regs tregs; local
246 err = iicdev_readfrom(sc->dev, ISL12XX_SC_REG, &tregs,
247 sizeof(tregs), WAITFLAGS);
259 if (tregs.hour & ISL12XX_24HR_FLAG) {
267 bct.sec = tregs.sec;
268 bct.min = tregs.min;
269 bct.hour = tregs.hour & hourmask;
270 bct.day = tregs.day;
271 bct.mon = tregs.month;
272 bct.year = tregs
284 struct time_regs tregs; local
[all...]
H A Drtc8583.c194 struct time_regs tregs; local
201 if ((err = iicdev_readfrom(sc->dev, RTC8583_SC_REG, &tregs, sizeof(tregs),
205 y = tregs.day >> 6;
230 if (!validbcd(tregs.msec))
234 bct.nsec = bcd2bin(tregs.msec) * 10 * 1000 * 1000;
235 bct.sec = tregs.sec;
236 bct.min = tregs.min;
237 bct.hour = tregs.hour & 0x3f;
238 bct.day = tregs
251 struct time_regs tregs; local
[all...]
H A Dds13rtc.c219 read_timeregs(struct ds13rtc_softc *sc, struct time_regs *tregs) argument
223 if ((err = iicdev_readfrom(sc->dev, sc->secaddr, tregs,
224 sizeof(*tregs), IIC_WAIT)) != 0)
231 write_timeregs(struct ds13rtc_softc *sc, struct time_regs *tregs) argument
234 return (iicdev_writeto(sc->dev, sc->secaddr, tregs,
235 sizeof(*tregs), IIC_WAIT));
349 struct time_regs tregs; local
372 if ((err = read_timeregs(sc, &tregs)) != 0) {
383 bct.ispm = tregs.hour & DS13xx_B_HOUR_PM;
384 bct.sec = tregs
408 struct time_regs tregs; local
[all...]
H A Dnxprtc.c253 read_timeregs(struct nxprtc_softc *sc, struct time_regs *tregs, uint8_t *tmr) argument
262 * timer, ensuring the fractional part is from the same second as tregs.
275 if ((err = iicdev_readfrom(sc->dev, sc->secaddr, tregs,
276 sizeof(*tregs), WAITFLAGS)) != 0)
278 } while (sc->use_timer && tregs->sec != sec);
294 * get its zero point back in sync with the tregs.sec rollover.
302 write_timeregs(struct nxprtc_softc *sc, struct time_regs *tregs) argument
305 return (iicdev_writeto(sc->dev, sc->secaddr, tregs,
306 sizeof(*tregs), WAITFLAGS));
556 struct time_regs tregs; local
622 struct time_regs tregs; local
[all...]

Completed in 69 milliseconds