Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ !
Dalloc.c202 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()
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()
438 struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid) in mlx4_zone_get_bitmap()
[all …]
Dmlx4.h718 struct mlx4_zone_allocator *zones;
1434 struct mlx4_zone_allocator;
1437 struct mlx4_zone_allocator *mlx4_zone_allocator_create(enum mlx4_zone_alloc_flags flags);
1448 int mlx4_zone_add_one(struct mlx4_zone_allocator *zone_alloc,
1456 int mlx4_zone_remove_one(struct mlx4_zone_allocator *zone_alloc, u32 uid);
1461 void mlx4_zone_allocator_destroy(struct mlx4_zone_allocator *zone_alloc);
1468 u32 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count,
1474 u32 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones,
1481 u32 mlx4_zone_free_entries_unique(struct mlx4_zone_allocator *zones, u32 obj, u32 count);
1484 struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid);