Lines Matching refs:max_count
63 struct qed_bmap *bmap, u32 max_count, char *name) in qed_rdma_bmap_alloc() argument
65 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "max_count = %08x\n", max_count); in qed_rdma_bmap_alloc()
67 bmap->max_count = max_count; in qed_rdma_bmap_alloc()
69 bmap->bitmap = kcalloc(BITS_TO_LONGS(max_count), sizeof(long), in qed_rdma_bmap_alloc()
83 *id_num = find_first_zero_bit(bmap->bitmap, bmap->max_count); in qed_rdma_bmap_alloc_id()
84 if (*id_num >= bmap->max_count) in qed_rdma_bmap_alloc_id()
98 if (id_num >= bmap->max_count) in qed_bmap_set_id()
109 if (id_num >= bmap->max_count) in qed_bmap_release_id()
126 if (id_num >= bmap->max_count) in qed_bmap_test_id()
134 return bmap->max_count == find_first_bit(bmap->bitmap, bmap->max_count); in qed_bmap_is_empty()
320 int weight = bitmap_weight(bmap->bitmap, bmap->max_count); in qed_rdma_bmap_free()
321 int last_line = bmap->max_count / (64 * 8); in qed_rdma_bmap_free()
323 DIV_ROUND_UP(bmap->max_count % (64 * 8), 64); in qed_rdma_bmap_free()
333 bmap->name, bmap->max_count, weight); in qed_rdma_bmap_free()
350 if ((bmap->max_count % (64 * 8)) && in qed_rdma_bmap_free()
352 bmap->max_count - item * 64))) { in qed_rdma_bmap_free()