Home
last modified time | relevance | path

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

/drivers/infiniband/hw/hns/
Dhns_roce_db.c75 struct hns_roce_db_pgdir *pgdir; in hns_roce_alloc_db_pgdir() local
77 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in hns_roce_alloc_db_pgdir()
78 if (!pgdir) in hns_roce_alloc_db_pgdir()
81 bitmap_fill(pgdir->order1, in hns_roce_alloc_db_pgdir()
83 pgdir->bits[0] = pgdir->order0; in hns_roce_alloc_db_pgdir()
84 pgdir->bits[1] = pgdir->order1; in hns_roce_alloc_db_pgdir()
85 pgdir->page = dma_alloc_coherent(dma_device, PAGE_SIZE, in hns_roce_alloc_db_pgdir()
86 &pgdir->db_dma, GFP_KERNEL); in hns_roce_alloc_db_pgdir()
87 if (!pgdir->page) { in hns_roce_alloc_db_pgdir()
88 kfree(pgdir); in hns_roce_alloc_db_pgdir()
[all …]
Dhns_roce_device.h447 struct hns_roce_db_pgdir *pgdir; member
/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c184 struct mlx5_db_pgdir *pgdir; in mlx5_alloc_db_pgdir() local
186 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx5_alloc_db_pgdir()
187 if (!pgdir) in mlx5_alloc_db_pgdir()
190 pgdir->bitmap = bitmap_zalloc(db_per_page, GFP_KERNEL); in mlx5_alloc_db_pgdir()
191 if (!pgdir->bitmap) { in mlx5_alloc_db_pgdir()
192 kfree(pgdir); in mlx5_alloc_db_pgdir()
196 bitmap_fill(pgdir->bitmap, db_per_page); in mlx5_alloc_db_pgdir()
198 pgdir->db_page = mlx5_dma_zalloc_coherent_node(dev, PAGE_SIZE, in mlx5_alloc_db_pgdir()
199 &pgdir->db_dma, node); in mlx5_alloc_db_pgdir()
200 if (!pgdir->db_page) { in mlx5_alloc_db_pgdir()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c665 struct mlx4_db_pgdir *pgdir; in mlx4_alloc_db_pgdir() local
667 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx4_alloc_db_pgdir()
668 if (!pgdir) in mlx4_alloc_db_pgdir()
671 bitmap_fill(pgdir->order1, MLX4_DB_PER_PAGE / 2); in mlx4_alloc_db_pgdir()
672 pgdir->bits[0] = pgdir->order0; in mlx4_alloc_db_pgdir()
673 pgdir->bits[1] = pgdir->order1; in mlx4_alloc_db_pgdir()
674 pgdir->db_page = dma_alloc_coherent(dma_device, PAGE_SIZE, in mlx4_alloc_db_pgdir()
675 &pgdir->db_dma, GFP_KERNEL); in mlx4_alloc_db_pgdir()
676 if (!pgdir->db_page) { in mlx4_alloc_db_pgdir()
677 kfree(pgdir); in mlx4_alloc_db_pgdir()
[all …]
/drivers/xen/
DMakefile43 obj-$(CONFIG_XEN_FRONT_PGDIR_SHBUF) += xen-front-pgdir-shbuf.o
Dxen-front-pgdir-shbuf.c519 struct xen_front_pgdir_shbuf *buf = cfg->pgdir; in xen_front_pgdir_shbuf_alloc()
/drivers/gpu/drm/xen/
Dxen_drm_front.c184 buf_cfg.pgdir = &dbuf->shbuf; in xen_drm_front_dbuf_create()