Lines Matching refs:tregs
237 struct time_regs tregs;
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.year;
273 bct.ispm = tregs.hour & ISL12XX_PM_FLAG;
284 struct time_regs tregs;
303 tregs.sec = bct.sec;
304 tregs.min = bct.min;
305 tregs.hour = bct.hour | ampmflags;
306 tregs.day = bct.day;
307 tregs.month = bct.mon;
308 tregs.year = bct.year % 100;
325 err = iicdev_writeto(sc->dev, ISL12XX_SC_REG, &tregs,
326 sizeof(tregs), WAITFLAGS);