Lines Matching refs:MAX_LSB_CNT
47 MAX_LSB_CNT * LSB_SIZE, in ccp_lsb_alloc()
50 if (start <= MAX_LSB_CNT * LSB_SIZE) { in ccp_lsb_alloc()
596 for (j = 1; j < MAX_LSB_CNT; j++) { in ccp_find_lsb_regions()
601 queues = bitmap_weight(cmd_q->lsbmask, MAX_LSB_CNT); in ccp_find_lsb_regions()
612 DECLARE_BITMAP(qlsb, MAX_LSB_CNT); in ccp_find_and_assign_lsb_to_q()
630 qlsb_wgt = bitmap_weight(cmd_q->lsbmask, MAX_LSB_CNT); in ccp_find_and_assign_lsb_to_q()
633 bitmap_copy(qlsb, cmd_q->lsbmask, MAX_LSB_CNT); in ccp_find_and_assign_lsb_to_q()
635 bitno = find_first_bit(qlsb, MAX_LSB_CNT); in ccp_find_and_assign_lsb_to_q()
636 while (bitno < MAX_LSB_CNT) { in ccp_find_and_assign_lsb_to_q()
649 bitno = find_first_bit(qlsb, MAX_LSB_CNT); in ccp_find_and_assign_lsb_to_q()
651 if (bitno >= MAX_LSB_CNT) in ccp_find_and_assign_lsb_to_q()
667 DECLARE_BITMAP(lsb_pub, MAX_LSB_CNT); in ccp_assign_lsbs()
668 DECLARE_BITMAP(qlsb, MAX_LSB_CNT); in ccp_assign_lsbs()
674 bitmap_zero(lsb_pub, MAX_LSB_CNT); in ccp_assign_lsbs()
680 MAX_LSB_CNT); in ccp_assign_lsbs()
682 n_lsbs = bitmap_weight(lsb_pub, MAX_LSB_CNT); in ccp_assign_lsbs()
692 n_lsbs && (lsb_cnt <= MAX_LSB_CNT); in ccp_assign_lsbs()
708 bitmap_copy(qlsb, lsb_pub, MAX_LSB_CNT); in ccp_assign_lsbs()
710 bitno = find_first_zero_bit(qlsb, MAX_LSB_CNT); in ccp_assign_lsbs()
711 while (bitno < MAX_LSB_CNT) { in ccp_assign_lsbs()
714 bitno = find_first_zero_bit(qlsb, MAX_LSB_CNT); in ccp_assign_lsbs()