Lines Matching refs:pre
593 u32 pre; in make_rate() local
623 pre = DIV_ROUND_UP(br, c<<div); in make_rate()
625 if (!pre) in make_rate()
626 pre = 1; in make_rate()
629 pre = DIV_ROUND_CLOSEST(br, c<<div); in make_rate()
631 if (!pre) in make_rate()
632 pre = 1; in make_rate()
635 pre = br/(c<<div); in make_rate()
637 if (!pre) in make_rate()
640 PRINTD (DBG_QOS, "A: p=%u, d=%u", pre, div); in make_rate()
656 pre = DIV_ROUND_UP(br, c<<div); in make_rate()
659 pre = DIV_ROUND_CLOSEST(br, c<<div); in make_rate()
662 pre = br/(c<<div); in make_rate()
664 PRINTD (DBG_QOS, "B: p=%u, d=%u", pre, div); in make_rate()
674 pre = 1 << CR_MAXPEXP; in make_rate()
675 PRINTD (DBG_QOS, "C: p=%u, d=%u", pre, div); in make_rate()
678 if (div > CR_MAXD || (!pre) || pre > 1<<CR_MAXPEXP) { in make_rate()
680 div, pre); in make_rate()
684 *bits = (div<<CLOCK_SELECT_SHIFT) | (pre-1); in make_rate()
686 *actual = DIV_ROUND_UP(br, pre<<div); in make_rate()