Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c136 u32 db_per_page = PAGE_SIZE / cache_line_size(); in mlx5_alloc_db_pgdir() local
143 pgdir->bitmap = bitmap_zalloc_node(db_per_page, GFP_KERNEL, node); in mlx5_alloc_db_pgdir()
149 bitmap_fill(pgdir->bitmap, db_per_page); in mlx5_alloc_db_pgdir()
165 u32 db_per_page = PAGE_SIZE / cache_line_size(); in mlx5_alloc_db_from_pgdir() local
169 i = find_first_bit(pgdir->bitmap, db_per_page); in mlx5_alloc_db_from_pgdir()
170 if (i >= db_per_page) in mlx5_alloc_db_from_pgdir()
218 u32 db_per_page = PAGE_SIZE / cache_line_size(); in mlx5_db_free() local
224 if (bitmap_full(db->u.pgdir->bitmap, db_per_page)) { in mlx5_db_free()