Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_mr.c205 u32 max_num_sg) in pvrdma_alloc_mr() argument
213 int size = max_num_sg * sizeof(u64); in pvrdma_alloc_mr()
217 max_num_sg > PVRDMA_MAX_FAST_REG_PAGES) in pvrdma_alloc_mr()
230 ret = pvrdma_page_dir_init(dev, &mr->pdir, max_num_sg, false); in pvrdma_alloc_mr()
243 cmd->nchunks = max_num_sg; in pvrdma_alloc_mr()
252 mr->max_pages = max_num_sg; in pvrdma_alloc_mr()
Dpvrdma_verbs.h412 u32 max_num_sg);
/Linux-v4.19/drivers/infiniband/core/
Dmr_pool.c45 enum ib_mr_type type, u32 max_num_sg) in ib_mr_pool_init() argument
52 mr = ib_alloc_mr(qp->pd, type, max_num_sg); in ib_mr_pool_init()
Dverbs.c1957 u32 max_num_sg) in ib_alloc_mr() argument
1964 mr = pd->device->alloc_mr(pd, mr_type, max_num_sg); in ib_alloc_mr()
/Linux-v4.19/include/rdma/
Dmr_pool.h22 enum ib_mr_type type, u32 max_num_sg);
Dib_verbs.h2433 u32 max_num_sg);
3747 u32 max_num_sg);
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dmr.c661 u32 max_num_sg) in mlx4_ib_alloc_mr() argument
668 max_num_sg > MLX4_MAX_FAST_REG_PAGES) in mlx4_ib_alloc_mr()
676 max_num_sg, 0, &mr->mmr); in mlx4_ib_alloc_mr()
680 err = mlx4_alloc_priv_pages(pd->device, mr, max_num_sg); in mlx4_ib_alloc_mr()
684 mr->max_pages = max_num_sg; in mlx4_ib_alloc_mr()
Dmlx4_ib.h745 u32 max_num_sg);
/Linux-v4.19/drivers/infiniband/sw/rdmavt/
Dmr.h84 u32 max_num_sg);
Dmr.c583 u32 max_num_sg) in rvt_alloc_mr() argument
590 mr = __rvt_alloc_mr(max_num_sg, pd); in rvt_alloc_mr()
/Linux-v4.19/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.h112 u32 max_num_sg);
Docrdma_verbs.c2981 u32 max_num_sg) in ocrdma_alloc_mr() argument
2991 if (max_num_sg > dev->attr.max_pages_per_frmr) in ocrdma_alloc_mr()
2998 mr->pages = kcalloc(max_num_sg, sizeof(u64), GFP_KERNEL); in ocrdma_alloc_mr()
3004 status = ocrdma_get_pbl_info(dev, mr, max_num_sg); in ocrdma_alloc_mr()
/Linux-v4.19/drivers/infiniband/hw/cxgb4/
Dmem.c694 u32 max_num_sg) in c4iw_alloc_mr() argument
702 int length = roundup(max_num_sg * sizeof(u64), 32); in c4iw_alloc_mr()
708 max_num_sg > t4_max_fr_depth(rhp->rdev.lldi.ulptx_memwrite_dsgl && in c4iw_alloc_mr()
734 ret = alloc_pbl(mhp, max_num_sg); in c4iw_alloc_mr()
737 mhp->attr.pbl_size = max_num_sg; in c4iw_alloc_mr()
Diw_cxgb4.h1053 u32 max_num_sg);
/Linux-v4.19/drivers/infiniband/hw/qedr/
Dverbs.h92 u32 max_num_sg);
Dverbs.c2893 enum ib_mr_type mr_type, u32 max_num_sg) in qedr_alloc_mr() argument
2900 mr = __qedr_alloc_mr(ibpd, max_num_sg); in qedr_alloc_mr()
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dib_verbs.h210 u32 max_num_sg);
Dib_verbs.c3410 u32 max_num_sg) in bnxt_re_alloc_mr() argument
3421 if (max_num_sg > MAX_PBL_LVL_1_PGS) in bnxt_re_alloc_mr()
3440 mr->pages = kcalloc(max_num_sg, sizeof(u64), GFP_KERNEL); in bnxt_re_alloc_mr()
3446 &mr->qplib_frpl, max_num_sg); in bnxt_re_alloc_mr()
/Linux-v4.19/drivers/infiniband/hw/cxgb3/
Diwch_provider.c680 u32 max_num_sg) in iwch_alloc_mr() argument
690 max_num_sg > T3_MAX_FASTREG_DEPTH) in iwch_alloc_mr()
699 mhp->pages = kcalloc(max_num_sg, sizeof(u64), GFP_KERNEL); in iwch_alloc_mr()
704 ret = iwch_alloc_pbl(mhp, max_num_sg); in iwch_alloc_mr()
707 mhp->attr.pbl_size = max_num_sg; in iwch_alloc_mr()
/Linux-v4.19/drivers/infiniband/sw/rxe/
Drxe_verbs.c1041 u32 max_num_sg) in rxe_alloc_mr() argument
1061 err = rxe_mem_init_fast(pd, max_num_sg, mr); in rxe_alloc_mr()
/Linux-v4.19/drivers/infiniband/hw/nes/
Dnes_verbs.c310 u32 max_num_sg) in nes_alloc_mr() argument
330 if (max_num_sg > (NES_4K_PBL_CHUNK_SIZE / sizeof(u64))) in nes_alloc_mr()
337 if (max_num_sg > (NES_4K_PBL_CHUNK_SIZE / sizeof(u64))) in nes_alloc_mr()
364 ret = alloc_fast_reg_mr(nesdev, nespd, stag, max_num_sg); in nes_alloc_mr()
378 max_num_sg * sizeof(u64), in nes_alloc_mr()
383 nesmr->max_pages = max_num_sg; in nes_alloc_mr()
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dmr.c1676 u32 max_num_sg) in mlx5_ib_alloc_mr() argument
1680 int ndescs = ALIGN(max_num_sg, 4); in mlx5_ib_alloc_mr()
Dmlx5_ib.h1064 u32 max_num_sg);
/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c1643 u32 max_num_sg) in i40iw_alloc_mr() argument
1673 iwmr->page_cnt = max_num_sg; in i40iw_alloc_mr()