Lines Matching refs:last
16 struct ordered_event *last = oe->last; in queue_event() local
21 oe->last = new; in queue_event()
25 if (!last) { in queue_event()
36 if (last->timestamp <= timestamp) { in queue_event()
37 while (last->timestamp <= timestamp) { in queue_event()
38 p = last->list.next; in queue_event()
44 last = list_entry(p, struct ordered_event, list); in queue_event()
46 list_add_tail(&new->list, &last->list); in queue_event()
48 while (last->timestamp > timestamp) { in queue_event()
49 p = last->list.prev; in queue_event()
54 last = list_entry(p, struct ordered_event, list); in queue_event()
56 list_add(&new->list, &last->list); in queue_event()
191 u64 last_ts = oe->last ? oe->last->timestamp : 0ULL; in __ordered_events__flush()
220 oe->last = NULL; in __ordered_events__flush()
222 oe->last = list_entry(head->prev, struct ordered_event, list); in __ordered_events__flush()
250 struct ordered_event *first, *last; in ordered_events__flush() local
254 last = oe->last; in ordered_events__flush()
257 if (WARN_ONCE(!last || list_empty(head), "empty queue")) in ordered_events__flush()
261 oe->next_flush += (last->timestamp - first->timestamp) / 2; in ordered_events__flush()