Lines Matching defs:tm
66 struct tm tm_time = {
230 struct rtc_time tm;
246 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
249 secs = timegm((struct tm *)&tm) + ALARM_DELTA;
250 gmtime_r(&secs, (struct tm *)&tm);
252 rc = ioctl(self->fd, RTC_ALM_SET, &tm);
263 rc = ioctl(self->fd, RTC_ALM_READ, &tm);
267 tm.tm_hour, tm.tm_min, tm.tm_sec);
288 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
291 new = timegm((struct tm *)&tm);
298 struct rtc_time tm;
318 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA;
319 gmtime_r(&secs, (struct tm *)&alarm.time);
352 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
355 new = timegm((struct tm *)&tm);
362 struct rtc_time tm;
376 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
379 secs = timegm((struct tm *)&tm) + 60 - tm.tm_sec;
380 gmtime_r(&secs, (struct tm *)&tm);
382 rc = ioctl(self->fd, RTC_ALM_SET, &tm);
393 rc = ioctl(self->fd, RTC_ALM_READ, &tm);
397 tm.tm_hour, tm.tm_min, tm.tm_sec);
418 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
421 new = timegm((struct tm *)&tm);
428 struct rtc_time tm;
446 secs = timegm((struct tm *)&alarm.time) + 60 - alarm.time.tm_sec;
447 gmtime_r(&secs, (struct tm *)&alarm.time);
480 rc = ioctl(self->fd, RTC_RD_TIME, &tm);
483 new = timegm((struct tm *)&tm);