Lines Matching refs:div
611 u32 div = CR_MIND; in make_rate() local
617 if (div > CR_MAXD || (!pre) || pre > 1<<CR_MAXPEXP) { in make_rate()
619 div, pre); in make_rate()
623 *bits = (div<<CLOCK_SELECT_SHIFT) | (pre-1); in make_rate()
625 *actual = (br + (pre<<div) - 1) / (pre<<div); in make_rate()
660 pre = (br+(c<<div)-1)/(c<<div); in make_rate()
666 pre = (br+(c<<div)/2)/(c<<div); in make_rate()
672 pre = br/(c<<div); in make_rate()
678 PRINTD (DBG_QOS, "A: p=%u, d=%u", pre, div); in make_rate()
684 while (div < CR_MAXD) { in make_rate()
685 div++; in make_rate()
686 if (br_man <= (c << (CR_MAXPEXP+div-br_exp))) { in make_rate()
694 pre = (br+(c<<div)-1)/(c<<div); in make_rate()
697 pre = (br+(c<<div)/2)/(c<<div); in make_rate()
700 pre = br/(c<<div); in make_rate()
703 PRINTD (DBG_QOS, "B: p=%u, d=%u", pre, div); in make_rate()
721 PRINTD (DBG_QOS, "C: p=%u, d=%u", pre, div); in make_rate()