Lines Matching refs:time
81 * while reading, the time/date registers are blocked and not updated
84 * time/date registers in one turn.
91 /* if the clock has lost its power it makes no sense to use its time */
93 dev_warn(&pcf85063->rtc->dev, "Power loss detected, invalid time\n");
116 * to accurately set the time, reset the divider chain and keep it in
117 * reset state until all time/date registers are written
170 alrm->time.tm_sec = bcd2bin(buf[0] & 0x7f);
171 alrm->time.tm_min = bcd2bin(buf[1] & 0x7f);
172 alrm->time.tm_hour = bcd2bin(buf[2] & 0x3f);
173 alrm->time.tm_mday = bcd2bin(buf[3] & 0x3f);
190 buf[0] = bin2bcd(alrm->time.tm_sec);
191 buf[1] = bin2bcd(alrm->time.tm_min);
192 buf[2] = bin2bcd(alrm->time.tm_hour);
193 buf[3] = bin2bcd(alrm->time.tm_mday);