Home
last modified time | relevance | path

Searched refs:CODEL_SHIFT (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/include/net/
H A Dcodel.h62 #define CODEL_SHIFT 10 macro
63 #define MS2TIME(a) ((a * NSEC_PER_MSEC) >> CODEL_SHIFT)
69 return ns >> CODEL_SHIFT; in codel_get_time()
90 u64 valns = ((u64)val << CODEL_SHIFT); in codel_time_to_us()
/openbmc/linux/net/sched/
H A Dsch_codel.c151 q->params.target = ((u64)target * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change()
157 q->params.ce_threshold = (val * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change()
163 q->params.interval = ((u64)interval * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change()
H A Dsch_fq_codel.c399 q->cparams.target = (target * NSEC_PER_USEC) >> CODEL_SHIFT; in fq_codel_change()
405 q->cparams.ce_threshold = (val * NSEC_PER_USEC) >> CODEL_SHIFT; in fq_codel_change()
416 q->cparams.interval = (interval * NSEC_PER_USEC) >> CODEL_SHIFT; in fq_codel_change()