Lines Matching refs:ktime_to_ns
454 if (ktime_to_ns(ktime_sub(now, vars->blue_timer)) > p->target) { in cobalt_queue_full()
479 ktime_to_ns(ktime_sub(now, vars->blue_timer)) > p->target) { in cobalt_queue_empty()
489 if (vars->count && ktime_to_ns(ktime_sub(now, vars->drop_next)) >= 0) { in cobalt_queue_empty()
528 sojourn = ktime_to_ns(ktime_sub(now, cobalt_get_enqueue_time(skb))); in cobalt_should_drop()
533 next_due = vars->count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop()
570 next_due = vars->count && ktime_to_ns(schedule) >= 0; in cobalt_should_drop()
581 else if (ktime_to_ns(schedule) > 0 && !drop) in cobalt_should_drop()
1729 min(ktime_to_ns(q->time_next_packet), in cake_enqueue()
1730 ktime_to_ns( in cake_enqueue()
1814 ktime_to_ns(ktime_sub(now, q->last_packet_time)); in cake_enqueue()
1830 ktime_to_ns(ktime_sub(now, in cake_enqueue()
1966 u64 next = min(ktime_to_ns(q->time_next_packet), in cake_dequeue()
1967 ktime_to_ns(q->failsafe_next_packet)); in cake_dequeue()
2020 if (ktime_to_ns(time_to_pkt) <= 0 || in cake_dequeue()
2187 delay = ktime_to_ns(ktime_sub(now, cobalt_get_enqueue_time(skb))); in cake_dequeue()
2199 u64 next = min(ktime_to_ns(q->time_next_packet), in cake_dequeue()
2200 ktime_to_ns(q->failsafe_next_packet)); in cake_dequeue()
2213 ktime_to_ns(next)); in cake_dequeue()