Home | History | Annotate | Download | only in i2c

Lines Matching refs:bintobcd

496 	bcd[M41ST84_REG_CSEC] = bintobcd(0);	/* must always write as 0 */
497 bcd[M41ST84_REG_SEC] = bintobcd(dt->dt_sec);
498 bcd[M41ST84_REG_MIN] = bintobcd(dt->dt_min);
499 bcd[M41ST84_REG_CENHR] = bintobcd(dt->dt_hour);
500 bcd[M41ST84_REG_DATE] = bintobcd(dt->dt_day);
501 bcd[M41ST84_REG_DAY] = bintobcd(dt->dt_wday);
502 bcd[M41ST84_REG_MONTH] = bintobcd(dt->dt_mon);
503 bcd[M41ST84_REG_YEAR] = bintobcd((dt->dt_year - strtc_epoch(sc)) % 100);
592 bcd[M41ST84_REG_SEC] = bintobcd(dt->dt_sec) |
594 bintobcd(dt->dt_min) |
596 bcd[M41ST84_REG_CENHR] = bintobcd(dt->dt_hour);
597 bcd[M41ST84_REG_DAY] = bintobcd(dt->dt_wday) |
599 bcd[M41ST84_REG_DATE] = bintobcd(dt->dt_day);
600 bcd[M41ST84_REG_MONTH] = bintobcd(dt->dt_mon) |
602 bcd[M41ST84_REG_YEAR] = bintobcd((dt->dt_year - strtc_epoch(sc)) % 100);