Lines Matching defs:max_order
57 for (o = order; o <= buddy->max_order; ++o)
59 m = 1 << (buddy->max_order - o);
105 static int mlx4_buddy_init(struct mlx4_buddy *buddy, int max_order)
109 buddy->max_order = max_order;
112 buddy->bits = kcalloc(buddy->max_order + 1, sizeof (long *),
114 buddy->num_free = kcalloc((buddy->max_order + 1), sizeof *buddy->num_free,
119 for (i = 0; i <= buddy->max_order; ++i) {
120 s = BITS_TO_LONGS(1 << (buddy->max_order - i));
129 set_bit(0, buddy->bits[buddy->max_order]);
130 buddy->num_free[buddy->max_order] = 1;
135 for (i = 0; i <= buddy->max_order; ++i)
149 for (i = 0; i <= buddy->max_order; ++i)
944 mr_table->mtt_buddy.max_order);