Searched refs:pgdir (Results 1 – 5 of 5) sorted by relevance
| /NextBSD/sys/dev/mlx5/mlx5_core/ |
| HD | mlx5_alloc.c | 149 struct mlx5_db_pgdir *pgdir; in mlx5_alloc_db_pgdir() local 151 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx5_alloc_db_pgdir() 153 bitmap_fill(pgdir->bitmap, MLX5_DB_PER_PAGE); in mlx5_alloc_db_pgdir() 155 pgdir->db_page = mlx5_dma_zalloc_coherent_node(dev, PAGE_SIZE, in mlx5_alloc_db_pgdir() 156 &pgdir->db_dma, node); in mlx5_alloc_db_pgdir() 157 if (!pgdir->db_page) { in mlx5_alloc_db_pgdir() 158 kfree(pgdir); in mlx5_alloc_db_pgdir() 162 return pgdir; in mlx5_alloc_db_pgdir() 165 static int mlx5_alloc_db_from_pgdir(struct mlx5_db_pgdir *pgdir, in mlx5_alloc_db_from_pgdir() argument 171 i = find_first_bit(pgdir->bitmap, MLX5_DB_PER_PAGE); in mlx5_alloc_db_from_pgdir() [all …]
|
| /NextBSD/sys/ofed/drivers/net/mlx4/ |
| HD | alloc.c | 302 struct mlx4_db_pgdir *pgdir; in mlx4_alloc_db_pgdir() local 304 pgdir = kzalloc(sizeof *pgdir, GFP_KERNEL); in mlx4_alloc_db_pgdir() 305 if (!pgdir) in mlx4_alloc_db_pgdir() 308 bitmap_fill(pgdir->order1, MLX4_DB_PER_PAGE / 2); in mlx4_alloc_db_pgdir() 309 pgdir->bits[0] = pgdir->order0; in mlx4_alloc_db_pgdir() 310 pgdir->bits[1] = pgdir->order1; in mlx4_alloc_db_pgdir() 311 pgdir->db_page = dma_alloc_coherent(dma_device, PAGE_SIZE, in mlx4_alloc_db_pgdir() 312 &pgdir->db_dma, GFP_KERNEL); in mlx4_alloc_db_pgdir() 313 if (!pgdir->db_page) { in mlx4_alloc_db_pgdir() 314 kfree(pgdir); in mlx4_alloc_db_pgdir() [all …]
|
| /NextBSD/sys/dev/ifmlx4/ |
| HD | alloc.c | 302 struct mlx4_db_pgdir *pgdir; in mlx4_alloc_db_pgdir() local 304 pgdir = kzalloc(sizeof *pgdir, GFP_KERNEL); in mlx4_alloc_db_pgdir() 305 if (!pgdir) in mlx4_alloc_db_pgdir() 308 bitmap_fill(pgdir->order1, MLX4_DB_PER_PAGE / 2); in mlx4_alloc_db_pgdir() 309 pgdir->bits[0] = pgdir->order0; in mlx4_alloc_db_pgdir() 310 pgdir->bits[1] = pgdir->order1; in mlx4_alloc_db_pgdir() 311 pgdir->db_page = dma_alloc_coherent(dma_device, PAGE_SIZE, in mlx4_alloc_db_pgdir() 312 &pgdir->db_dma, GFP_KERNEL); in mlx4_alloc_db_pgdir() 313 if (!pgdir->db_page) { in mlx4_alloc_db_pgdir() 314 kfree(pgdir); in mlx4_alloc_db_pgdir() [all …]
|
| /NextBSD/sys/dev/mlx5/ |
| HD | driver.h | 561 struct mlx5_db_pgdir *pgdir; member
|
| /NextBSD/sys/ofed/include/linux/mlx4/ |
| HD | device.h | 573 struct mlx4_db_pgdir *pgdir; member
|