Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c183 u32 db_per_page = PAGE_SIZE / cache_line_size(); in mlx5_alloc_db_pgdir() local
190 pgdir->bitmap = bitmap_zalloc(db_per_page, GFP_KERNEL); in mlx5_alloc_db_pgdir()
196 bitmap_fill(pgdir->bitmap, db_per_page); in mlx5_alloc_db_pgdir()
212 u32 db_per_page = PAGE_SIZE / cache_line_size(); in mlx5_alloc_db_from_pgdir() local
216 i = find_first_bit(pgdir->bitmap, db_per_page); in mlx5_alloc_db_from_pgdir()
217 if (i >= db_per_page) in mlx5_alloc_db_from_pgdir()
271 u32 db_per_page = PAGE_SIZE / cache_line_size(); in mlx5_db_free() local
277 if (bitmap_full(db->u.pgdir->bitmap, db_per_page)) { in mlx5_db_free()