Home
last modified time | relevance | path

Searched refs:mlx4_zone_allocator (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c202 struct mlx4_zone_allocator { struct
216 struct mlx4_zone_allocator *allocator; argument
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()
319 void mlx4_zone_allocator_destroy(struct mlx4_zone_allocator *zone_alloc) in mlx4_zone_allocator_destroy()
341 struct mlx4_zone_allocator *zone_alloc = zone->allocator; in __mlx4_alloc_from_zone()
426 struct mlx4_zone_allocator *zones, u32 uid) in __mlx4_find_zone_by_uid()
454 int mlx4_zone_remove_one(struct mlx4_zone_allocator *zones, u32 uid) in mlx4_zone_remove_one()
479 struct mlx4_zone_allocator *zones, u32 obj) in __mlx4_find_zone_by_uid_unique()
[all …]
H A Dmlx4.h720 struct mlx4_zone_allocator *zones;
1444 struct mlx4_zone_allocator;
1447 struct mlx4_zone_allocator *mlx4_zone_allocator_create(enum mlx4_zone_alloc_flags flags);
1458 int mlx4_zone_add_one(struct mlx4_zone_allocator *zone_alloc,
1466 int mlx4_zone_remove_one(struct mlx4_zone_allocator *zone_alloc, u32 uid);
1471 void mlx4_zone_allocator_destroy(struct mlx4_zone_allocator *zone_alloc);
1478 u32 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count,
1484 u32 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones,
1491 u32 mlx4_zone_free_entries_unique(struct mlx4_zone_allocator *zones, u32 obj, u32 count);
1494 struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid);