Lines Matching defs:tm
80 newtimer->tm = tm_max;
100 rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *timer)
106 timespecadd(&now, tm, &timer->tm);
109 if (timespeccmp(&timer->tm, &tm_max, <))
110 tm_max = timer->tm;
126 struct rtadvd_timer *tm, *tmn;
131 TAILQ_FOREACH_SAFE(tm, &ra_timer, next, tmn) {
132 if (!tm->enabled)
134 if (timespeccmp(&tm->tm, &now, <=)) {
135 if ((*tm->expire)(tm->expire_data) == NULL)
137 if (tm->update)
138 (*tm->update)(tm->update_data, &tm->tm);
139 timespecadd(&tm->tm, &now, &tm->tm);
141 if (timespeccmp(&tm->tm, &tm_max, <))
142 tm_max = tm->tm;
162 if (timespeccmp(&timer->tm, &now, <=)) {
171 timespecsub(&timer->tm, &now, &returnval);