Searched refs:srq_init_attr (Results 1 – 8 of 8) sorted by relevance
/drivers/infiniband/sw/rdmavt/ |
D | srq.c | 76 int rvt_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *srq_init_attr, in rvt_create_srq() argument 84 if (srq_init_attr->srq_type != IB_SRQT_BASIC) in rvt_create_srq() 87 if (srq_init_attr->attr.max_sge == 0 || in rvt_create_srq() 88 srq_init_attr->attr.max_sge > dev->dparms.props.max_srq_sge || in rvt_create_srq() 89 srq_init_attr->attr.max_wr == 0 || in rvt_create_srq() 90 srq_init_attr->attr.max_wr > dev->dparms.props.max_srq_wr) in rvt_create_srq() 96 srq->rq.size = srq_init_attr->attr.max_wr + 1; in rvt_create_srq() 97 srq->rq.max_sge = srq_init_attr->attr.max_sge; in rvt_create_srq() 129 srq->limit = srq_init_attr->attr.srq_limit; in rvt_create_srq()
|
D | srq.h | 53 int rvt_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *srq_init_attr,
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_srq.c | 361 struct ib_srq_init_attr *srq_init_attr, in hns_roce_create_srq() argument 373 if (srq_init_attr->attr.max_wr >= hr_dev->caps.max_srq_wrs || in hns_roce_create_srq() 374 srq_init_attr->attr.max_sge > hr_dev->caps.max_srq_sges) in hns_roce_create_srq() 380 srq->max = roundup_pow_of_two(srq_init_attr->attr.max_wr + 1); in hns_roce_create_srq() 381 srq->max_gs = srq_init_attr->attr.max_sge; in hns_roce_create_srq() 408 cqn = ib_srq_has_cq(srq_init_attr->srq_type) ? in hns_roce_create_srq() 409 to_hr_cq(srq_init_attr->ext.cq)->cqn : 0; in hns_roce_create_srq()
|
D | hns_roce_device.h | 1231 struct ib_srq_init_attr *srq_init_attr,
|
/drivers/infiniband/core/ |
D | verbs.c | 968 struct ib_srq_init_attr *srq_init_attr) in ib_create_srq() argument 982 srq->event_handler = srq_init_attr->event_handler; in ib_create_srq() 983 srq->srq_context = srq_init_attr->srq_context; in ib_create_srq() 984 srq->srq_type = srq_init_attr->srq_type; in ib_create_srq() 987 srq->ext.cq = srq_init_attr->ext.cq; in ib_create_srq() 991 srq->ext.xrc.xrcd = srq_init_attr->ext.xrc.xrcd; in ib_create_srq() 996 ret = pd->device->ops.create_srq(srq, srq_init_attr, NULL); in ib_create_srq()
|
/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.h | 172 struct ib_srq_init_attr *srq_init_attr,
|
D | ib_verbs.c | 1340 struct ib_srq_init_attr *srq_init_attr, in bnxt_re_create_srq() argument 1352 if (srq_init_attr->attr.max_wr >= dev_attr->max_srq_wqes) { in bnxt_re_create_srq() 1358 if (srq_init_attr->srq_type != IB_SRQT_BASIC) { in bnxt_re_create_srq() 1369 entries = roundup_pow_of_two(srq_init_attr->attr.max_wr + 1); in bnxt_re_create_srq() 1374 srq->qplib_srq.max_sge = srq_init_attr->attr.max_sge; in bnxt_re_create_srq() 1375 srq->qplib_srq.threshold = srq_init_attr->attr.srq_limit; in bnxt_re_create_srq() 1376 srq->srq_limit = srq_init_attr->attr.srq_limit; in bnxt_re_create_srq()
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_cm.c | 1556 struct ib_srq_init_attr srq_init_attr = { in ipoib_cm_create_srq() local 1564 priv->cm.srq = ib_create_srq(priv->pd, &srq_init_attr); in ipoib_cm_create_srq()
|