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