Lines Matching refs:last
20 struct ordered_event *last = oe->last; in queue_event() local
25 oe->last = new; in queue_event()
29 if (!last) { in queue_event()
40 if (last->timestamp <= timestamp) { in queue_event()
41 while (last->timestamp <= timestamp) { in queue_event()
42 p = last->list.next; in queue_event()
48 last = list_entry(p, struct ordered_event, list); in queue_event()
50 list_add_tail(&new->list, &last->list); in queue_event()
52 while (last->timestamp > timestamp) { in queue_event()
53 p = last->list.prev; in queue_event()
58 last = list_entry(p, struct ordered_event, list); in queue_event()
60 list_add(&new->list, &last->list); in queue_event()
229 u64 last_ts = oe->last ? oe->last->timestamp : 0ULL; in do_flush()
257 oe->last = NULL; in do_flush()
259 oe->last = list_entry(head->prev, struct ordered_event, list); in do_flush()
294 struct ordered_event *first, *last; in __ordered_events__flush() local
298 last = oe->last; in __ordered_events__flush()
301 if (WARN_ONCE(!last || list_empty(head), "empty queue")) in __ordered_events__flush()
305 oe->next_flush += (last->timestamp - first->timestamp) / 2; in __ordered_events__flush()