Lines Matching defs:max_order
92 for (o = order; o <= buddy->max_order; ++o)
94 m = 1 << (buddy->max_order - o);
140 static int mthca_buddy_init(struct mthca_buddy *buddy, int max_order)
144 buddy->max_order = max_order;
147 buddy->bits = kzalloc((buddy->max_order + 1) * sizeof (long *),
149 buddy->num_free = kcalloc((buddy->max_order + 1), sizeof *buddy->num_free,
154 for (i = 0; i <= buddy->max_order; ++i) {
155 s = BITS_TO_LONGS(1 << (buddy->max_order - i));
160 1 << (buddy->max_order - i));
163 set_bit(0, buddy->bits[buddy->max_order]);
164 buddy->num_free[buddy->max_order] = 1;
169 for (i = 0; i <= buddy->max_order; ++i)
183 for (i = 0; i <= buddy->max_order; ++i)
919 dev->mr_table.fmr_mtt_buddy->max_order);