Lines Matching refs:max_count
39 struct qed_bmap *bmap, u32 max_count, char *name)
41 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "max_count = %08x\n", max_count);
43 bmap->max_count = max_count;
45 bmap->bitmap = bitmap_zalloc(max_count, GFP_KERNEL);
58 *id_num = find_first_zero_bit(bmap->bitmap, bmap->max_count);
59 if (*id_num >= bmap->max_count)
73 if (id_num >= bmap->max_count)
84 if (id_num >= bmap->max_count)
101 if (id_num >= bmap->max_count)
109 return bitmap_empty(bmap->bitmap, bmap->max_count);
327 weight = bitmap_weight(bmap->bitmap, bmap->max_count);
333 bmap->name, bmap->max_count, weight);
335 for (bit = 0; bit < bmap->max_count; bit += 512) {
337 nbits = min(bmap->max_count - bit, 512U);