Searched refs:mlx4_zone_allocator (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_alloc.c | 202 struct mlx4_zone_allocator { struct 216 struct mlx4_zone_allocator *allocator; argument 224 struct mlx4_zone_allocator *mlx4_zone_allocator_create(enum mlx4_zone_alloc_flags flags) in mlx4_zone_allocator_create() 226 struct mlx4_zone_allocator *zones = kmalloc(sizeof(*zones), GFP_KERNEL); in mlx4_zone_allocator_create() 241 int mlx4_zone_add_one(struct mlx4_zone_allocator *zone_alloc, in mlx4_zone_add_one() 287 struct mlx4_zone_allocator *zone_alloc = entry->allocator; in __mlx4_zone_remove_one_entry() 321 void mlx4_zone_allocator_destroy(struct mlx4_zone_allocator *zone_alloc) in mlx4_zone_allocator_destroy() 343 struct mlx4_zone_allocator *zone_alloc = zone->allocator; in __mlx4_alloc_from_zone() 428 struct mlx4_zone_allocator *zones, u32 uid) in __mlx4_find_zone_by_uid() 440 struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid) in mlx4_zone_get_bitmap() [all …]
|
H A D | mlx4.h | 708 struct mlx4_zone_allocator *zones; 1412 struct mlx4_zone_allocator; 1415 struct mlx4_zone_allocator *mlx4_zone_allocator_create(enum mlx4_zone_alloc_flags flags); 1426 int mlx4_zone_add_one(struct mlx4_zone_allocator *zone_alloc, 1434 int mlx4_zone_remove_one(struct mlx4_zone_allocator *zone_alloc, u32 uid); 1439 void mlx4_zone_allocator_destroy(struct mlx4_zone_allocator *zone_alloc); 1446 u32 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count, 1452 u32 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones, 1459 u32 mlx4_zone_free_entries_unique(struct mlx4_zone_allocator *zones, u32 obj, u32 count); 1462 struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid);
|