Lines Matching refs:time
274 later = rtc_tm_to_time64(&alm->time); in mcp795_set_alarm()
279 (SEC_PER_DAY * (365 + is_leap_year(alm->time.tm_year)))) in mcp795_set_alarm()
290 alm->time.tm_year = -1; in mcp795_set_alarm()
291 alm->time.tm_isdst = -1; in mcp795_set_alarm()
292 alm->time.tm_yday = -1; in mcp795_set_alarm()
294 tmp[0] = (tmp[0] & 0x80) | bin2bcd(alm->time.tm_sec); in mcp795_set_alarm()
295 tmp[1] = (tmp[1] & 0x80) | bin2bcd(alm->time.tm_min); in mcp795_set_alarm()
296 tmp[2] = (tmp[2] & 0xE0) | bin2bcd(alm->time.tm_hour); in mcp795_set_alarm()
297 tmp[3] = (tmp[3] & 0x80) | bin2bcd(alm->time.tm_wday + 1); in mcp795_set_alarm()
300 tmp[4] = (tmp[4] & 0xC0) | bin2bcd(alm->time.tm_mday); in mcp795_set_alarm()
301 tmp[5] = (tmp[5] & 0xE0) | bin2bcd(alm->time.tm_mon + 1); in mcp795_set_alarm()
315 &alm->time, alm->time.tm_wday, &alm->time); in mcp795_set_alarm()
329 alm->time.tm_sec = bcd2bin(data[0] & 0x7F); in mcp795_read_alarm()
330 alm->time.tm_min = bcd2bin(data[1] & 0x7F); in mcp795_read_alarm()
331 alm->time.tm_hour = bcd2bin(data[2] & 0x1F); in mcp795_read_alarm()
332 alm->time.tm_wday = bcd2bin(data[3] & 0x07) - 1; in mcp795_read_alarm()
333 alm->time.tm_mday = bcd2bin(data[4] & 0x3F); in mcp795_read_alarm()
334 alm->time.tm_mon = bcd2bin(data[5] & 0x1F) - 1; in mcp795_read_alarm()
335 alm->time.tm_year = -1; in mcp795_read_alarm()
336 alm->time.tm_isdst = -1; in mcp795_read_alarm()
337 alm->time.tm_yday = -1; in mcp795_read_alarm()
340 &alm->time, alm->time.tm_wday, &alm->time); in mcp795_read_alarm()