Home
last modified time | relevance | path

Searched refs:max_order (Results 1 – 7 of 7) sorted by relevance

/drivers/infiniband/hw/mthca/
Dmthca_mr.c92 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 = kzalloc((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()
[all …]
Dmthca_dev.h206 int max_order; member
/drivers/net/ethernet/mellanox/mlx4/
Dmr.c54 for (o = order; o <= buddy->max_order; ++o) in mlx4_buddy_alloc()
56 m = 1 << (buddy->max_order - o); in mlx4_buddy_alloc()
102 static int mlx4_buddy_init(struct mlx4_buddy *buddy, int max_order) in mlx4_buddy_init() argument
106 buddy->max_order = max_order; in mlx4_buddy_init()
109 buddy->bits = kcalloc(buddy->max_order + 1, sizeof (long *), in mlx4_buddy_init()
111 buddy->num_free = kcalloc((buddy->max_order + 1), sizeof *buddy->num_free, in mlx4_buddy_init()
116 for (i = 0; i <= buddy->max_order; ++i) { in mlx4_buddy_init()
117 s = BITS_TO_LONGS(1UL << (buddy->max_order - i)); in mlx4_buddy_init()
126 set_bit(0, buddy->bits[buddy->max_order]); in mlx4_buddy_init()
127 buddy->num_free[buddy->max_order] = 1; in mlx4_buddy_init()
[all …]
Dmlx4.h255 u32 max_order; member
/drivers/staging/android/ion/
Dion_system_heap.c101 unsigned int max_order) in alloc_largest_available() argument
109 if (max_order < orders[i]) in alloc_largest_available()
136 unsigned int max_order = orders[0]; in ion_system_heap_allocate() local
147 max_order); in ion_system_heap_allocate()
152 max_order = compound_order(page); in ion_system_heap_allocate()
/drivers/video/fbdev/vermilion/
Dvermilion.c87 static int vmlfb_alloc_vram_area(struct vram_area *va, unsigned max_order, in vmlfb_alloc_vram_area() argument
93 max_order++; in vmlfb_alloc_vram_area()
104 __get_free_pages(flags, --max_order); in vmlfb_alloc_vram_area()
105 } while (va->logical == 0 && max_order > min_order); in vmlfb_alloc_vram_area()
111 va->size = PAGE_SIZE << max_order; in vmlfb_alloc_vram_area()
112 va->order = max_order; in vmlfb_alloc_vram_area()
/drivers/pci/
Dsetup-bus.c970 int max_order) in calculate_mem_align() argument
976 for (order = 0; order <= max_order; order++) { in calculate_mem_align()
1019 int order, max_order; in pbus_size_mem() local
1030 max_order = 0; in pbus_size_mem()
1078 if (order > max_order) in pbus_size_mem()
1079 max_order = order; in pbus_size_mem()
1089 min_align = calculate_mem_align(aligns, max_order); in pbus_size_mem()