mlx4_bitmap_masked_value
u32 mask = mlx4_bitmap_masked_value(bitmap, (u32)-1);
u32 cur_mask = mlx4_bitmap_masked_value(it->bitmap, (u32)-1);