Lines Matching refs:bct
349 struct bcd_clocktime bct;
383 bct.nsec = 0;
384 bct.ispm = tregs.hour & DS13xx_B_HOUR_PM;
385 bct.sec = tregs.sec & DS13xx_M_SECOND;
386 bct.min = tregs.min & DS13xx_M_MINUTE;
387 bct.hour = tregs.hour & hourmask;
388 bct.day = tregs.day & DS13xx_M_DAY;
389 bct.mon = tregs.month & DS13xx_M_MONTH;
390 bct.year = tregs.year & DS13xx_M_YEAR;
397 bct.year += (tregs.month & DS13xx_B_MONTH_CENTURY) ? 0x100 : 0;
399 clock_dbgprint_bcd(sc->dev, CLOCK_DBG_READ, &bct);
400 err = clock_bcd_to_ts(&bct, ts, sc->use_ampm);
408 struct bcd_clocktime bct;
426 clock_ts_to_bcd(ts, &bct, sc->use_ampm);
427 clock_dbgprint_bcd(sc->dev, CLOCK_DBG_WRITE, &bct);
433 if (bct.ispm)
440 if (bct.year >= 2000)
444 tregs.sec = bct.sec;
445 tregs.min = bct.min;
446 tregs.hour = bct.hour | pmflags;
447 tregs.day = bct.day;
448 tregs.month = bct.mon | cflag;
449 tregs.year = bct.year & 0xff;
450 tregs.wday = bct.dow;