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