Lines Matching refs:bct
127 struct bcd_clocktime bct;
148 bzero(&bct, sizeof(bct));
149 bct.sec = buf[0] & 0x7F;
150 bct.min = buf[1] & 0x7F;
151 bct.hour = buf[2] & 0x3f;
152 bct.day = buf[3] & 0x3f;
154 bct.mon = buf[5] & 0x1f;
155 bct.year = buf[6] & 0xff;
157 bct.year += 0x100;
159 clock_dbgprint_bcd(sc->dev, CLOCK_DBG_READ, &bct);
160 return (clock_bcd_to_ts(&bct, ts, false));
167 struct bcd_clocktime bct;
173 clock_ts_to_bcd(ts, &bct, false);
174 clock_dbgprint_bcd(sc->dev, CLOCK_DBG_WRITE, &bct);
176 buf[0] = bct.sec; /* Also clear VL flag */
177 buf[1] = bct.min;
178 buf[2] = bct.hour;
179 buf[3] = bct.day;
180 buf[4] = bct.dow;
181 buf[5] = bct.mon;
182 buf[6] = bct.year & 0xFF;
183 if (bct.year > 0x99)