| /linux/drivers/infiniband/hw/vmw_pvrdma/ |
| H A D | pvrdma_mr.c | 210 u32 max_num_sg) in pvrdma_alloc_mr() argument 218 int size = max_num_sg * sizeof(u64); in pvrdma_alloc_mr() 222 max_num_sg > PVRDMA_MAX_FAST_REG_PAGES) in pvrdma_alloc_mr() 235 ret = pvrdma_page_dir_init(dev, &mr->pdir, max_num_sg, false); in pvrdma_alloc_mr() 248 cmd->nchunks = max_num_sg; in pvrdma_alloc_mr() 257 mr->max_pages = max_num_sg; in pvrdma_alloc_mr()
|
| /linux/include/trace/events/ |
| H A D | rdma_core.h | 305 u32 max_num_sg, 309 TP_ARGS(pd, mr_type, max_num_sg, mr), 314 __field(u32, max_num_sg) 328 __entry->max_num_sg = max_num_sg; 335 __entry->max_num_sg, __entry->rc)
|
| /linux/drivers/infiniband/core/ |
| H A D | mr_pool.c | 37 enum ib_mr_type type, u32 max_num_sg, u32 max_num_meta_sg) in ib_mr_pool_init() argument 45 mr = ib_alloc_mr_integrity(qp->pd, max_num_sg, in ib_mr_pool_init() 48 mr = ib_alloc_mr(qp->pd, type, max_num_sg); in ib_mr_pool_init()
|
| H A D | rw.c | 1130 u32 nr_mrs = 0, nr_sig_mrs = 0, max_num_sg = 0; in rdma_rw_init_mrs() local 1136 max_num_sg = rdma_rw_fr_page_list_len(dev, true); in rdma_rw_init_mrs() 1139 max_num_sg = rdma_rw_fr_page_list_len(dev, false); in rdma_rw_init_mrs() 1145 max_num_sg, 0); in rdma_rw_init_mrs() 1155 IB_MR_TYPE_INTEGRITY, max_num_sg, max_num_sg); in rdma_rw_init_mrs()
|
| H A D | verbs.c | 2356 u32 max_num_sg) in ib_alloc_mr() argument 2371 mr = pd->device->ops.alloc_mr(pd, mr_type, max_num_sg); in ib_alloc_mr() 2388 trace_mr_alloc(pd, mr_type, max_num_sg, mr); in ib_alloc_mr()
|
| /linux/drivers/infiniband/hw/mlx4/ |
| H A D | mr.c | 387 u32 max_num_sg) in mlx4_ib_alloc_mr() argument 394 max_num_sg > MLX4_MAX_FAST_REG_PAGES) in mlx4_ib_alloc_mr() 402 max_num_sg, 0, &mr->mmr); in mlx4_ib_alloc_mr() 406 err = mlx4_alloc_priv_pages(pd->device, mr, max_num_sg); in mlx4_ib_alloc_mr() 410 mr->max_pages = max_num_sg; in mlx4_ib_alloc_mr()
|
| /linux/include/rdma/ |
| H A D | mr_pool.h | 14 enum ib_mr_type type, u32 max_num_sg, u32 max_num_meta_sg);
|
| H A D | ib_verbs.h | 2572 u32 max_num_sg); 4482 u32 max_num_sg); in ib_check_mr_access()
|
| /linux/drivers/infiniband/hw/cxgb4/ |
| H A D | mem.c | 603 u32 max_num_sg) in c4iw_alloc_mr() argument 611 int length = roundup(max_num_sg * sizeof(u64), 32); in c4iw_alloc_mr() 617 max_num_sg > t4_max_fr_depth(rhp->rdev.lldi.ulptx_memwrite_dsgl && in c4iw_alloc_mr() 643 ret = alloc_pbl(mhp, max_num_sg); in c4iw_alloc_mr() 646 mhp->attr.pbl_size = max_num_sg; in c4iw_alloc_mr()
|
| /linux/drivers/infiniband/ulp/iser/ |
| H A D | iser_verbs.c | 494 u32 max_num_sg; in iser_calc_scsi_params() local 508 max_num_sg = attr->max_pi_fast_reg_page_list_len; in iser_calc_scsi_params() 510 max_num_sg = attr->max_fast_reg_page_list_len; in iser_calc_scsi_params() 514 max_num_sg - reserved_mr_pages); in iser_calc_scsi_params()
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | mr.c | 2335 u32 max_num_sg, u32 max_num_meta_sg, in mlx5_ib_alloc_pi_mr() argument 2339 int ndescs = ALIGN(max_num_sg + max_num_meta_sg, 4); in mlx5_ib_alloc_pi_mr() 2394 int max_num_sg, int max_num_meta_sg, in mlx5_alloc_integrity_descs() argument 2418 mr->klm_mr = mlx5_ib_alloc_pi_mr(pd, max_num_sg, max_num_meta_sg, in mlx5_alloc_integrity_descs() 2425 mr->mtt_mr = mlx5_ib_alloc_pi_mr(pd, max_num_sg, max_num_meta_sg, in mlx5_alloc_integrity_descs() 2472 enum ib_mr_type mr_type, u32 max_num_sg, in __mlx5_ib_alloc_mr() argument 2477 int ndescs = ALIGN(max_num_sg, 4); in __mlx5_ib_alloc_mr() 2503 err = mlx5_alloc_integrity_descs(pd, mr, max_num_sg, in __mlx5_ib_alloc_mr() 2526 u32 max_num_sg) in mlx5_ib_alloc_mr() argument 2528 return __mlx5_ib_alloc_mr(pd, mr_type, max_num_sg, 0); in mlx5_ib_alloc_mr() [all …]
|
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_mr.c | 382 u32 max_num_sg) in hns_roce_alloc_mr() argument 392 if (max_num_sg > HNS_ROCE_FRMR_MAX_PA) { in hns_roce_alloc_mr() 404 mr->size = max_num_sg * (1 << PAGE_SHIFT); in hns_roce_alloc_mr()
|
| /linux/drivers/infiniband/sw/rdmavt/ |
| H A D | mr.c | 541 u32 max_num_sg) in rvt_alloc_mr() argument 548 mr = __rvt_alloc_mr(max_num_sg, pd); in rvt_alloc_mr()
|
| /linux/drivers/infiniband/hw/erdma/ |
| H A D | erdma_verbs.c | 1149 u32 max_num_sg) in erdma_ib_alloc_mr() argument 1159 if (max_num_sg > ERDMA_MR_MAX_MTT_CNT) in erdma_ib_alloc_mr() 1180 mr->mem.page_cnt = max_num_sg; in erdma_ib_alloc_mr() 1181 mr->mem.mtt = erdma_create_mtt(dev, MTT_SIZE(max_num_sg), true); in erdma_ib_alloc_mr()
|
| /linux/drivers/infiniband/sw/rxe/ |
| H A D | rxe_verbs.c | 1362 u32 max_num_sg) in rxe_alloc_mr() argument 1388 err = rxe_mr_init_fast(max_num_sg, mr); in rxe_alloc_mr()
|
| /linux/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_verbs.c | 2899 u32 max_num_sg) in ocrdma_alloc_mr() argument 2909 if (max_num_sg > dev->attr.max_pages_per_frmr) in ocrdma_alloc_mr() 2916 mr->pages = kcalloc(max_num_sg, sizeof(u64), GFP_KERNEL); in ocrdma_alloc_mr() 2922 status = ocrdma_get_pbl_info(dev, mr, max_num_sg); in ocrdma_alloc_mr()
|
| /linux/drivers/infiniband/hw/bnxt_re/ |
| H A D | ib_verbs.c | 4119 u32 max_num_sg) in bnxt_re_alloc_mr() argument 4131 if (max_num_sg > MAX_PBL_LVL_1_PGS) in bnxt_re_alloc_mr() 4150 mr->pages = kcalloc(max_num_sg, sizeof(u64), GFP_KERNEL); in bnxt_re_alloc_mr() 4156 &mr->qplib_frpl, max_num_sg); in bnxt_re_alloc_mr()
|
| /linux/drivers/infiniband/hw/irdma/ |
| H A D | verbs.c | 3145 u32 max_num_sg) in irdma_alloc_mr() argument 3173 iwmr->page_cnt = max_num_sg; in irdma_alloc_mr() 3175 iwmr->len = max_num_sg * PAGE_SIZE; in irdma_alloc_mr()
|
| /linux/drivers/infiniband/hw/qedr/ |
| H A D | verbs.c | 3142 u32 max_num_sg) in qedr_alloc_mr() argument 3149 mr = __qedr_alloc_mr(ibpd, max_num_sg); in qedr_alloc_mr()
|