Home
last modified time | relevance | path

Searched refs:init_attr (Results 1 – 25 of 29) sorted by relevance

12

/drivers/net/ethernet/ibm/ehea/
Dehea_phyp.c213 struct ehea_qp_init_attr *init_attr, const u32 pd, in ehea_h_alloc_resource_qp() argument
220 EHEA_BMASK_SET(H_ALL_RES_QP_EQPO, init_attr->low_lat_rq1 ? 1 : 0) in ehea_h_alloc_resource_qp()
224 | EHEA_BMASK_SET(H_ALL_RES_QP_LL_QP, init_attr->low_lat_rq1) in ehea_h_alloc_resource_qp()
227 | EHEA_BMASK_SET(H_ALL_RES_QP_SIGT, init_attr->signalingtype) in ehea_h_alloc_resource_qp()
231 | EHEA_BMASK_SET(H_ALL_RES_QP_TOKEN, init_attr->qp_token); in ehea_h_alloc_resource_qp()
235 get_order_of_qentries(init_attr->max_nr_send_wqes)) in ehea_h_alloc_resource_qp()
237 get_order_of_qentries(init_attr->max_nr_rwqes_rq1)) in ehea_h_alloc_resource_qp()
239 get_order_of_qentries(init_attr->max_nr_rwqes_rq2)) in ehea_h_alloc_resource_qp()
241 get_order_of_qentries(init_attr->max_nr_rwqes_rq3)) in ehea_h_alloc_resource_qp()
242 | EHEA_BMASK_SET(H_ALL_RES_QP_MAX_SSGE, init_attr->wqe_size_enc_sq) in ehea_h_alloc_resource_qp()
[all …]
Dehea_qmr.c416 u32 pd, struct ehea_qp_init_attr *init_attr) in ehea_create_qp() argument
431 hret = ehea_h_alloc_resource_qp(adapter->handle, init_attr, pd, in ehea_create_qp()
438 wqe_size_in_bytes_sq = map_wqe_size(init_attr->act_wqe_size_enc_sq); in ehea_create_qp()
439 wqe_size_in_bytes_rq1 = map_wqe_size(init_attr->act_wqe_size_enc_rq1); in ehea_create_qp()
440 wqe_size_in_bytes_rq2 = map_wqe_size(init_attr->act_wqe_size_enc_rq2); in ehea_create_qp()
441 wqe_size_in_bytes_rq3 = map_wqe_size(init_attr->act_wqe_size_enc_rq3); in ehea_create_qp()
443 ret = ehea_qp_alloc_register(qp, &qp->hw_squeue, init_attr->nr_sq_pages, in ehea_create_qp()
445 init_attr->act_wqe_size_enc_sq, adapter, in ehea_create_qp()
453 init_attr->nr_rq1_pages, in ehea_create_qp()
455 init_attr->act_wqe_size_enc_rq1, in ehea_create_qp()
[all …]
Dehea_main.c642 pr->qp->init_attr.qp_nr); in ehea_treat_poll_error()
1266 struct ehea_qp_init_attr *init_attr = &pr->qp->init_attr; in ehea_fill_port_res() local
1270 ret = ehea_refill_rq2(pr, init_attr->act_nr_rwqes_rq2 - 1); in ehea_fill_port_res()
1272 ret |= ehea_refill_rq3(pr, init_attr->act_nr_rwqes_rq3 - 1); in ehea_fill_port_res()
1381 port->port_res[i].qp->init_attr.qp_nr; in ehea_configure_port()
1384 port->port_res[0].qp->init_attr.qp_nr; in ehea_configure_port()
1458 struct ehea_qp_init_attr *init_attr = NULL; in ehea_init_port_res() local
1503 init_attr = kzalloc(sizeof(*init_attr), GFP_KERNEL); in ehea_init_port_res()
1504 if (!init_attr) { in ehea_init_port_res()
1510 init_attr->low_lat_rq1 = 1; in ehea_init_port_res()
[all …]
Dehea.h291 struct ehea_qp_init_attr init_attr; member
Dehea_qmr.h384 struct ehea_qp_init_attr *init_attr);
/drivers/infiniband/hw/ipath/
Dipath_qp.c622 int attr_mask, struct ib_qp_init_attr *init_attr) in ipath_query_qp() argument
656 init_attr->event_handler = qp->ibqp.event_handler; in ipath_query_qp()
657 init_attr->qp_context = qp->ibqp.qp_context; in ipath_query_qp()
658 init_attr->send_cq = qp->ibqp.send_cq; in ipath_query_qp()
659 init_attr->recv_cq = qp->ibqp.recv_cq; in ipath_query_qp()
660 init_attr->srq = qp->ibqp.srq; in ipath_query_qp()
661 init_attr->cap = attr->cap; in ipath_query_qp()
663 init_attr->sq_sig_type = IB_SIGNAL_REQ_WR; in ipath_query_qp()
665 init_attr->sq_sig_type = IB_SIGNAL_ALL_WR; in ipath_query_qp()
666 init_attr->qp_type = qp->ibqp.qp_type; in ipath_query_qp()
[all …]
Dipath_verbs.h737 struct ib_qp_init_attr *init_attr,
748 int attr_mask, struct ib_qp_init_attr *init_attr);
/drivers/infiniband/hw/qib/
Dqib_qp.c851 int attr_mask, struct ib_qp_init_attr *init_attr) in qib_query_qp() argument
885 init_attr->event_handler = qp->ibqp.event_handler; in qib_query_qp()
886 init_attr->qp_context = qp->ibqp.qp_context; in qib_query_qp()
887 init_attr->send_cq = qp->ibqp.send_cq; in qib_query_qp()
888 init_attr->recv_cq = qp->ibqp.recv_cq; in qib_query_qp()
889 init_attr->srq = qp->ibqp.srq; in qib_query_qp()
890 init_attr->cap = attr->cap; in qib_query_qp()
892 init_attr->sq_sig_type = IB_SIGNAL_REQ_WR; in qib_query_qp()
894 init_attr->sq_sig_type = IB_SIGNAL_ALL_WR; in qib_query_qp()
895 init_attr->qp_type = qp->ibqp.qp_type; in qib_query_qp()
[all …]
Dqib_verbs.h894 struct ib_qp_init_attr *init_attr,
905 int attr_mask, struct ib_qp_init_attr *init_attr);
/drivers/infiniband/hw/ehca/
Dehca_qp.c454 struct ib_qp_init_attr *init_attr, in internal_create_qp() argument
480 if (init_attr->create_flags) { in internal_create_qp()
486 qp_type = init_attr->qp_type; in internal_create_qp()
488 if (init_attr->sq_sig_type != IB_SIGNAL_REQ_WR && in internal_create_qp()
489 init_attr->sq_sig_type != IB_SIGNAL_ALL_WR) { in internal_create_qp()
491 init_attr->sq_sig_type); in internal_create_qp()
503 init_attr->qp_type &= 0x1F; in internal_create_qp()
506 if (init_attr->srq) { in internal_create_qp()
507 my_srq = container_of(init_attr->srq, struct ehca_qp, ib_srq); in internal_create_qp()
530 if (init_attr->cap.max_recv_sge > 3) { in internal_create_qp()
[all …]
Dehca_iverbs.h144 struct ib_qp_init_attr *init_attr,
166 struct ib_srq_init_attr *init_attr,
Dehca_classes.h206 struct ib_qp_init_attr init_attr; member
Dehca_reqs.c205 qp->init_attr.sq_sig_type == IB_SIGNAL_ALL_WR) in ehca_write_swqe()
468 my_qp->message_count > my_qp->init_attr.cap.max_send_wr)) { in ehca_post_send()
/drivers/infiniband/hw/cxgb3/
Diwch_qp.c898 struct t3_rdma_init_attr init_attr; in rdma_init() local
901 init_attr.tid = qhp->ep->hwtid; in rdma_init()
902 init_attr.qpid = qhp->wq.qpid; in rdma_init()
903 init_attr.pdid = qhp->attr.pd; in rdma_init()
904 init_attr.scqid = qhp->attr.scq; in rdma_init()
905 init_attr.rcqid = qhp->attr.rcq; in rdma_init()
906 init_attr.rq_addr = qhp->wq.rq_addr; in rdma_init()
907 init_attr.rq_size = 1 << qhp->wq.rq_size_log2; in rdma_init()
908 init_attr.mpaattrs = uP_RI_MPA_IETF_ENABLE | in rdma_init()
913 init_attr.qpcaps = uP_RI_QP_RDMA_READ_ENABLE | in rdma_init()
[all …]
/drivers/infiniband/hw/mlx4/
Dsrq.c72 struct ib_srq_init_attr *init_attr, in mlx4_ib_create_srq() argument
87 if (init_attr->attr.max_wr >= dev->dev->caps.max_srq_wqes || in mlx4_ib_create_srq()
88 init_attr->attr.max_sge > dev->dev->caps.max_srq_sge) in mlx4_ib_create_srq()
97 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx4_ib_create_srq()
98 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx4_ib_create_srq()
179 cqn = (init_attr->srq_type == IB_SRQT_XRC) ? in mlx4_ib_create_srq()
180 to_mcq(init_attr->ext.xrc.cq)->mcq.cqn : 0; in mlx4_ib_create_srq()
181 xrcdn = (init_attr->srq_type == IB_SRQT_XRC) ? in mlx4_ib_create_srq()
182 to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : in mlx4_ib_create_srq()
198 init_attr->attr.max_wr = srq->msrq.max - 1; in mlx4_ib_create_srq()
Dqp.c597 struct ib_qp_init_attr *init_attr, in create_qp_common() argument
604 enum mlx4_ib_qp_type qp_type = (enum mlx4_ib_qp_type) init_attr->qp_type; in create_qp_common()
610 !(init_attr->create_flags & MLX4_IB_SRIOV_SQP))) { in create_qp_common()
611 if (init_attr->qp_type == IB_QPT_GSI) in create_qp_common()
620 init_attr->cap.max_recv_sge++; in create_qp_common()
621 } else if (init_attr->create_flags & MLX4_IB_SRIOV_TUNNEL_QP) { in create_qp_common()
623 container_of(init_attr, in create_qp_common()
624 struct mlx4_ib_qp_tunnel_init_attr, init_attr); in create_qp_common()
667 if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) in create_qp_common()
670 err = set_rq_size(dev, &init_attr->cap, !!pd->uobject, qp_has_rq(init_attr), qp); in create_qp_common()
[all …]
Dmad.c1480 qp_init_attr.init_attr.send_cq = ctx->cq; in create_pv_sqp()
1481 qp_init_attr.init_attr.recv_cq = ctx->cq; in create_pv_sqp()
1482 qp_init_attr.init_attr.sq_sig_type = IB_SIGNAL_ALL_WR; in create_pv_sqp()
1483 qp_init_attr.init_attr.cap.max_send_wr = MLX4_NUM_TUNNEL_BUFS; in create_pv_sqp()
1484 qp_init_attr.init_attr.cap.max_recv_wr = MLX4_NUM_TUNNEL_BUFS; in create_pv_sqp()
1485 qp_init_attr.init_attr.cap.max_send_sge = 1; in create_pv_sqp()
1486 qp_init_attr.init_attr.cap.max_recv_sge = 1; in create_pv_sqp()
1488 qp_init_attr.init_attr.qp_type = IB_QPT_UD; in create_pv_sqp()
1489 qp_init_attr.init_attr.create_flags = MLX4_IB_SRIOV_TUNNEL_QP; in create_pv_sqp()
1496 qp_init_attr.init_attr.qp_type = qp_type; in create_pv_sqp()
[all …]
Dmlx4_ib.h500 struct ib_qp_init_attr init_attr; member
620 struct ib_srq_init_attr *init_attr,
631 struct ib_qp_init_attr *init_attr,
/drivers/infiniband/ulp/ipoib/
Dipoib_verbs.c134 struct ib_qp_init_attr init_attr = { in ipoib_transport_dev_init() local
186 init_attr.send_cq = priv->send_cq; in ipoib_transport_dev_init()
187 init_attr.recv_cq = priv->recv_cq; in ipoib_transport_dev_init()
190 init_attr.create_flags |= IB_QP_CREATE_IPOIB_UD_LSO; in ipoib_transport_dev_init()
193 init_attr.create_flags |= IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK; in ipoib_transport_dev_init()
196 init_attr.cap.max_send_sge = MAX_SKB_FRAGS + 1; in ipoib_transport_dev_init()
198 priv->qp = ib_create_qp(priv->pd, &init_attr); in ipoib_transport_dev_init()
/drivers/infiniband/ulp/iser/
Diser_verbs.c188 struct ib_qp_init_attr init_attr; in iser_create_ib_conn_res() local
257 memset(&init_attr, 0, sizeof init_attr); in iser_create_ib_conn_res()
269 init_attr.event_handler = iser_qp_event_callback; in iser_create_ib_conn_res()
270 init_attr.qp_context = (void *)ib_conn; in iser_create_ib_conn_res()
271 init_attr.send_cq = device->tx_cq[min_index]; in iser_create_ib_conn_res()
272 init_attr.recv_cq = device->rx_cq[min_index]; in iser_create_ib_conn_res()
273 init_attr.cap.max_send_wr = ISER_QP_MAX_REQ_DTOS; in iser_create_ib_conn_res()
274 init_attr.cap.max_recv_wr = ISER_QP_MAX_RECV_DTOS; in iser_create_ib_conn_res()
275 init_attr.cap.max_send_sge = 2; in iser_create_ib_conn_res()
276 init_attr.cap.max_recv_sge = 1; in iser_create_ib_conn_res()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_provider.c435 struct ib_srq_init_attr *init_attr, in mthca_create_srq() argument
443 if (init_attr->srq_type != IB_SRQT_BASIC) in mthca_create_srq()
470 &init_attr->attr, srq); in mthca_create_srq()
511 struct ib_qp_init_attr *init_attr, in mthca_create_qp() argument
518 if (init_attr->create_flags) in mthca_create_qp()
521 switch (init_attr->qp_type) { in mthca_create_qp()
566 to_mcq(init_attr->send_cq), in mthca_create_qp()
567 to_mcq(init_attr->recv_cq), in mthca_create_qp()
568 init_attr->qp_type, init_attr->sq_sig_type, in mthca_create_qp()
569 &init_attr->cap, qp); in mthca_create_qp()
[all …]
/drivers/infiniband/ulp/srp/
Dib_srp.c224 struct ib_qp_init_attr *init_attr; in srp_create_target_ib() local
229 init_attr = kzalloc(sizeof *init_attr, GFP_KERNEL); in srp_create_target_ib()
230 if (!init_attr) in srp_create_target_ib()
249 init_attr->event_handler = srp_qp_event; in srp_create_target_ib()
250 init_attr->cap.max_send_wr = SRP_SQ_SIZE; in srp_create_target_ib()
251 init_attr->cap.max_recv_wr = SRP_RQ_SIZE; in srp_create_target_ib()
252 init_attr->cap.max_recv_sge = 1; in srp_create_target_ib()
253 init_attr->cap.max_send_sge = 1; in srp_create_target_ib()
254 init_attr->sq_sig_type = IB_SIGNAL_ALL_WR; in srp_create_target_ib()
255 init_attr->qp_type = IB_QPT_RC; in srp_create_target_ib()
[all …]
/drivers/infiniband/hw/amso1100/
Dc2_provider.c233 struct ib_qp_init_attr *init_attr, in c2_create_qp() argument
241 if (init_attr->create_flags) in c2_create_qp()
244 switch (init_attr->qp_type) { in c2_create_qp()
257 to_c2pd(pd), init_attr, qp); in c2_create_qp()
266 init_attr->qp_type); in c2_create_qp()
/drivers/infiniband/hw/nes/
Dnes_verbs.c1104 struct ib_qp_init_attr *init_attr, struct ib_udata *udata) in nes_create_qp() argument
1134 if (init_attr->create_flags) in nes_create_qp()
1138 switch (init_attr->qp_type) { in nes_create_qp()
1141 init_attr->cap.max_inline_data = 0; in nes_create_qp()
1143 init_attr->cap.max_inline_data = 64; in nes_create_qp()
1145 sq_size = init_attr->cap.max_send_wr; in nes_create_qp()
1146 rq_size = init_attr->cap.max_recv_wr; in nes_create_qp()
1158 init_attr->cap.max_send_wr = sq_size -2; in nes_create_qp()
1159 init_attr->cap.max_recv_wr = rq_size -1; in nes_create_qp()
1266 nescq = to_nescq(init_attr->send_cq); in nes_create_qp()
[all …]
/drivers/infiniband/core/
Duverbs_cmd.c1788 struct ib_qp_init_attr *init_attr; in ib_uverbs_query_qp() local
1795 init_attr = kmalloc(sizeof *init_attr, GFP_KERNEL); in ib_uverbs_query_qp()
1796 if (!attr || !init_attr) { in ib_uverbs_query_qp()
1807 ret = ib_query_qp(qp, attr, cmd.attr_mask, init_attr); in ib_uverbs_query_qp()
1862 resp.max_send_wr = init_attr->cap.max_send_wr; in ib_uverbs_query_qp()
1863 resp.max_recv_wr = init_attr->cap.max_recv_wr; in ib_uverbs_query_qp()
1864 resp.max_send_sge = init_attr->cap.max_send_sge; in ib_uverbs_query_qp()
1865 resp.max_recv_sge = init_attr->cap.max_recv_sge; in ib_uverbs_query_qp()
1866 resp.max_inline_data = init_attr->cap.max_inline_data; in ib_uverbs_query_qp()
1867 resp.sq_sig_all = init_attr->sq_sig_type == IB_SIGNAL_ALL_WR; in ib_uverbs_query_qp()
[all …]

12