Home
last modified time | relevance | path

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

123

/linux/drivers/net/ethernet/ibm/ehea/
A Dehea_phyp.c267 init_attr->act_wqe_size_enc_sq = init_attr->wqe_size_enc_sq; in ehea_h_alloc_resource_qp()
268 init_attr->act_wqe_size_enc_rq1 = init_attr->wqe_size_enc_rq1; in ehea_h_alloc_resource_qp()
269 init_attr->act_wqe_size_enc_rq2 = init_attr->wqe_size_enc_rq2; in ehea_h_alloc_resource_qp()
270 init_attr->act_wqe_size_enc_rq3 = init_attr->wqe_size_enc_rq3; in ehea_h_alloc_resource_qp()
272 init_attr->nr_sq_pages = in ehea_h_alloc_resource_qp()
274 init_attr->nr_rq1_pages = in ehea_h_alloc_resource_qp()
276 init_attr->nr_rq2_pages = in ehea_h_alloc_resource_qp()
281 init_attr->liobn_sq = in ehea_h_alloc_resource_qp()
283 init_attr->liobn_rq1 = in ehea_h_alloc_resource_qp()
285 init_attr->liobn_rq2 = in ehea_h_alloc_resource_qp()
[all …]
A Dehea_qmr.c427 init_attr->act_wqe_size_enc_sq, adapter, in ehea_create_qp()
435 init_attr->nr_rq1_pages, in ehea_create_qp()
437 init_attr->act_wqe_size_enc_rq1, in ehea_create_qp()
444 if (init_attr->rq_count > 1) { in ehea_create_qp()
446 init_attr->nr_rq2_pages, in ehea_create_qp()
448 init_attr->act_wqe_size_enc_rq2, in ehea_create_qp()
456 if (init_attr->rq_count > 2) { in ehea_create_qp()
458 init_attr->nr_rq3_pages, in ehea_create_qp()
460 init_attr->act_wqe_size_enc_rq3, in ehea_create_qp()
468 qp->init_attr = *init_attr; in ehea_create_qp()
[all …]
A Dehea_main.c1251 struct ehea_qp_init_attr *init_attr = &pr->qp->init_attr; in ehea_fill_port_res() local
1487 init_attr = kzalloc(sizeof(*init_attr), GFP_KERNEL); in ehea_init_port_res()
1488 if (!init_attr) { in ehea_init_port_res()
1494 init_attr->low_lat_rq1 = 1; in ehea_init_port_res()
1496 init_attr->rq_count = 3; in ehea_init_port_res()
1522 init_attr->qp_nr, in ehea_init_port_res()
1523 init_attr->act_nr_send_wqes, in ehea_init_port_res()
1545 kfree(init_attr); in ehea_init_port_res()
1553 kfree(init_attr); in ehea_init_port_res()
2475 struct ehea_qp_init_attr *init_attr = &qp.init_attr; in ehea_purge_sq() local
[all …]
/linux/drivers/infiniband/hw/vmw_pvrdma/
A Dpvrdma_qp.c205 bool is_srq = !!init_attr->srq; in pvrdma_create_qp()
207 if (init_attr->create_flags) { in pvrdma_create_qp()
210 init_attr->create_flags); in pvrdma_create_qp()
218 init_attr->qp_type); in pvrdma_create_qp()
231 switch (init_attr->qp_type) { in pvrdma_create_qp()
303 &init_attr->cap, qp); in pvrdma_create_qp()
308 &init_attr->cap, qp); in pvrdma_create_qp()
1045 init_attr->xrcd = NULL; in pvrdma_query_qp()
1046 init_attr->cap = attr->cap; in pvrdma_query_qp()
1047 init_attr->sq_sig_type = 0; in pvrdma_query_qp()
[all …]
A Dpvrdma_srq.c99 int pvrdma_create_srq(struct ib_srq *ibsrq, struct ib_srq_init_attr *init_attr, in pvrdma_create_srq() argument
120 if (init_attr->srq_type != IB_SRQT_BASIC) { in pvrdma_create_srq()
123 init_attr->srq_type); in pvrdma_create_srq()
127 if (init_attr->attr.max_wr > dev->dsr->caps.max_srq_wr || in pvrdma_create_srq()
128 init_attr->attr.max_sge > dev->dsr->caps.max_srq_sge) { in pvrdma_create_srq()
175 cmd->srq_type = init_attr->srq_type; in pvrdma_create_srq()
178 cmd->attrs.max_wr = init_attr->attr.max_wr; in pvrdma_create_srq()
179 cmd->attrs.max_sge = init_attr->attr.max_sge; in pvrdma_create_srq()
180 cmd->attrs.srq_limit = init_attr->attr.srq_limit; in pvrdma_create_srq()
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_qp.c299 struct ib_qp_init_attr *init_attr) in hns_roce_qp_store() argument
313 init_attr->recv_cq); in hns_roce_qp_store()
751 struct ib_qp_init_attr *init_attr, in alloc_qp_buf() argument
804 hns_roce_qp_has_sq(init_attr) && in user_qp_has_sdb()
815 hns_roce_qp_has_rq(init_attr)); in user_qp_has_rdb()
822 hns_roce_qp_has_rq(init_attr)); in kernel_qp_has_rdb()
981 struct ib_qp_init_attr *init_attr, in set_qp_param() argument
1049 if (init_attr->create_flags) in hns_roce_create_qp_common()
1196 if (init_attr->qp_type == IB_QPT_GSI) { in hns_roce_create_qp()
1197 hr_qp->port = init_attr->port_num - 1; in hns_roce_create_qp()
[all …]
A Dhns_roce_srq.c289 struct ib_srq_init_attr *init_attr, in set_srq_basic_param() argument
293 struct ib_srq_attr *attr = &init_attr->attr; in set_srq_basic_param()
317 struct ib_srq_init_attr *init_attr) in set_srq_ext_param() argument
319 srq->cqn = ib_srq_has_cq(init_attr->srq_type) ? in set_srq_ext_param()
320 to_hr_cq(init_attr->ext.cq)->cqn : 0; in set_srq_ext_param()
322 srq->xrcdn = (init_attr->srq_type == IB_SRQT_XRC) ? in set_srq_ext_param()
327 struct ib_srq_init_attr *init_attr, in set_srq_param() argument
332 ret = set_srq_basic_param(srq, init_attr, udata); in set_srq_param()
336 set_srq_ext_param(srq, init_attr); in set_srq_param()
390 struct ib_srq_init_attr *init_attr, in hns_roce_create_srq() argument
[all …]
A Dhns_roce_ah.c55 int hns_roce_create_ah(struct ib_ah *ibah, struct rdma_ah_init_attr *init_attr, in hns_roce_create_ah() argument
58 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in hns_roce_create_ah()
/linux/drivers/infiniband/hw/mlx5/
A Dsrq.c193 struct ib_srq_init_attr *init_attr, in mlx5_ib_create_srq() argument
204 if (init_attr->srq_type != IB_SRQT_BASIC && in mlx5_ib_create_srq()
205 init_attr->srq_type != IB_SRQT_XRC && in mlx5_ib_create_srq()
206 init_attr->srq_type != IB_SRQT_TM) in mlx5_ib_create_srq()
212 init_attr->attr.max_wr, in mlx5_ib_create_srq()
220 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx5_ib_create_srq()
239 in.type = init_attr->srq_type; in mlx5_ib_create_srq()
257 if (init_attr->srq_type == IB_SRQT_XRC && init_attr->ext.xrc.xrcd) in mlx5_ib_create_srq()
262 if (init_attr->srq_type == IB_SRQT_TM) { in mlx5_ib_create_srq()
274 if (ib_srq_has_cq(init_attr->srq_type)) in mlx5_ib_create_srq()
[all …]
A Dah.c54 struct rdma_ah_init_attr *init_attr) in create_ib_ah() argument
56 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in create_ib_ah()
73 if (init_attr->xmit_slave) in create_ib_ah()
76 init_attr->xmit_slave); in create_ib_ah()
93 int mlx5_ib_create_ah(struct ib_ah *ibah, struct rdma_ah_init_attr *init_attr, in mlx5_ib_create_ah() argument
97 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in mlx5_ib_create_ah()
123 create_ib_ah(dev, ah, init_attr); in mlx5_ib_create_ah()
A Dqp.c2077 if (init_attr->srq) { in create_dci()
2087 if (init_attr->send_cq) in create_dci()
2091 if (init_attr->recv_cq) in create_dci()
2119 get_cqs(qp->type, init_attr->send_cq, init_attr->recv_cq, in create_dci()
2261 if (init_attr->srq && in create_user_qp()
2268 switch (init_attr->qp_type) { in create_user_qp()
2275 if (init_attr->srq) { in create_user_qp()
2284 if (init_attr->send_cq) in create_user_qp()
2287 if (init_attr->recv_cq) in create_user_qp()
2322 get_cqs(qp->type, init_attr->send_cq, init_attr->recv_cq, in create_user_qp()
[all …]
/linux/drivers/infiniband/hw/mlx4/
A Dqp.c714 init_attr->qp_type); in _mlx4_ib_create_qp_rss()
718 if (init_attr->create_flags) { in _mlx4_ib_create_qp_rss()
723 if (init_attr->send_cq || init_attr->cap.max_send_wr) { in _mlx4_ib_create_qp_rss()
985 container_of(init_attr, in create_qp_common()
1081 if (qp_has_rq(init_attr)) { in create_qp_common()
1112 if (qp_has_rq(init_attr)) { in create_qp_common()
1225 if (qp_has_rq(init_attr)) in create_qp_common()
1485 if (init_attr->rwq_ind_tbl) in _mlx4_ib_create_qp()
1520 switch (init_attr->qp_type) { in _mlx4_ib_create_qp()
1524 init_attr->send_cq = to_mxrcd(init_attr->xrcd)->cq; in _mlx4_ib_create_qp()
[all …]
A Dsrq.c73 struct ib_srq_init_attr *init_attr, in mlx4_ib_create_srq() argument
89 if (init_attr->srq_type != IB_SRQT_BASIC && in mlx4_ib_create_srq()
90 init_attr->srq_type != IB_SRQT_XRC) in mlx4_ib_create_srq()
94 if (init_attr->attr.max_wr >= dev->dev->caps.max_srq_wqes || in mlx4_ib_create_srq()
95 init_attr->attr.max_sge > dev->dev->caps.max_srq_sge) in mlx4_ib_create_srq()
101 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx4_ib_create_srq()
180 cqn = ib_srq_has_cq(init_attr->srq_type) ? in mlx4_ib_create_srq()
181 to_mcq(init_attr->ext.cq)->mcq.cqn : 0; in mlx4_ib_create_srq()
182 xrcdn = (init_attr->srq_type == IB_SRQT_XRC) ? in mlx4_ib_create_srq()
183 to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : in mlx4_ib_create_srq()
[all …]
A Dah.c144 int mlx4_ib_create_ah(struct ib_ah *ib_ah, struct rdma_ah_init_attr *init_attr, in mlx4_ib_create_ah() argument
147 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in mlx4_ib_create_ah()
171 struct rdma_ah_init_attr init_attr = {}; in mlx4_ib_create_ah_slave() local
177 init_attr.ah_attr = &slave_attr; in mlx4_ib_create_ah_slave()
178 ret = mlx4_ib_create_ah(ah, &init_attr, NULL); in mlx4_ib_create_ah_slave()
/linux/drivers/infiniband/ulp/ipoib/
A Dipoib_verbs.c146 struct ib_qp_init_attr init_attr = { in ipoib_transport_dev_init() local
197 init_attr.send_cq = priv->send_cq; in ipoib_transport_dev_init()
198 init_attr.recv_cq = priv->recv_cq; in ipoib_transport_dev_init()
201 init_attr.create_flags |= IB_QP_CREATE_IPOIB_UD_LSO; in ipoib_transport_dev_init()
204 init_attr.create_flags |= IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK; in ipoib_transport_dev_init()
207 init_attr.create_flags |= IB_QP_CREATE_NETIF_QP; in ipoib_transport_dev_init()
210 init_attr.create_flags |= IB_QP_CREATE_NETDEV_USE; in ipoib_transport_dev_init()
212 priv->qp = ib_create_qp(priv->pd, &init_attr); in ipoib_transport_dev_init()
236 if (init_attr.cap.max_send_sge > 1) in ipoib_transport_dev_init()
239 priv->max_send_sge = init_attr.cap.max_send_sge; in ipoib_transport_dev_init()
/linux/drivers/infiniband/hw/mthca/
A Dmthca_provider.c390 init_attr->ah_attr, ah); in mthca_ah_create()
428 &init_attr->attr, srq, udata); in mthca_create_srq()
473 if (init_attr->create_flags) in mthca_create_qp()
476 switch (init_attr->qp_type) { in mthca_create_qp()
509 to_mcq(init_attr->send_cq), in mthca_create_qp()
510 to_mcq(init_attr->recv_cq), in mthca_create_qp()
511 init_attr->qp_type, init_attr->sq_sig_type, in mthca_create_qp()
512 &init_attr->cap, qp, udata); in mthca_create_qp()
534 to_mcq(init_attr->send_cq), in mthca_create_qp()
535 to_mcq(init_attr->recv_cq), in mthca_create_qp()
[all …]
/linux/drivers/infiniband/ulp/iser/
A Diser_verbs.c241 struct ib_qp_init_attr init_attr; in iser_create_ib_conn_res() local
265 memset(&init_attr, 0, sizeof(init_attr)); in iser_create_ib_conn_res()
268 init_attr.qp_context = (void *)ib_conn; in iser_create_ib_conn_res()
269 init_attr.send_cq = ib_conn->cq; in iser_create_ib_conn_res()
270 init_attr.recv_cq = ib_conn->cq; in iser_create_ib_conn_res()
272 init_attr.cap.max_send_sge = 2; in iser_create_ib_conn_res()
273 init_attr.cap.max_recv_sge = 1; in iser_create_ib_conn_res()
274 init_attr.sq_sig_type = IB_SIGNAL_REQ_WR; in iser_create_ib_conn_res()
275 init_attr.qp_type = IB_QPT_RC; in iser_create_ib_conn_res()
276 init_attr.cap.max_send_wr = max_send_wr; in iser_create_ib_conn_res()
[all …]
/linux/drivers/infiniband/ulp/rtrs/
A Drtrs.c256 struct ib_qp_init_attr init_attr = {NULL}; in create_qp() local
260 init_attr.cap.max_send_wr = max_send_wr; in create_qp()
261 init_attr.cap.max_recv_wr = max_recv_wr; in create_qp()
262 init_attr.cap.max_recv_sge = 1; in create_qp()
263 init_attr.event_handler = qp_event_handler; in create_qp()
264 init_attr.qp_context = con; in create_qp()
265 init_attr.cap.max_send_sge = max_sge; in create_qp()
267 init_attr.qp_type = IB_QPT_RC; in create_qp()
268 init_attr.send_cq = con->cq; in create_qp()
269 init_attr.recv_cq = con->cq; in create_qp()
[all …]
/linux/drivers/infiniband/sw/rdmavt/
A Dqp.c1055 if (!init_attr->srq) { in rvt_create_qp()
1062 init_attr->cap.max_send_wr + in rvt_create_qp()
1068 init_attr->cap.max_send_wr + 1 + in rvt_create_qp()
1070 switch (init_attr->qp_type) { in rvt_create_qp()
1073 if (init_attr->port_num == 0 || in rvt_create_qp()
1085 if (init_attr->srq) { in rvt_create_qp()
1129 if (init_attr->srq) { in rvt_create_qp()
1168 init_attr->qp_type, in rvt_create_qp()
1169 init_attr->port_num, in rvt_create_qp()
1762 init_attr->srq = qp->ibqp.srq; in rvt_query_qp()
[all …]
A Dah.c58 int rvt_create_ah(struct ib_ah *ibah, struct rdma_ah_init_attr *init_attr, in rvt_create_ah() argument
65 if (rvt_check_ah(ibah->device, init_attr->ah_attr)) in rvt_create_ah()
77 rdma_copy_ah_attr(&ah->attr, init_attr->ah_attr); in rvt_create_ah()
81 init_attr->ah_attr, ah); in rvt_create_ah()
A Dqp.h13 int rvt_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *init_attr,
19 int attr_mask, struct ib_qp_init_attr *init_attr);
/linux/drivers/infiniband/hw/efa/
A Defa_verbs.c560 init_attr->cap.max_send_wr, in efa_qp_validate_cap()
567 init_attr->cap.max_recv_wr, in efa_qp_validate_cap()
586 init_attr->cap.max_inline_data, in efa_qp_validate_cap()
595 struct ib_qp_init_attr *init_attr) in efa_qp_validate_attr() argument
597 if (init_attr->qp_type != IB_QPT_DRIVER && in efa_qp_validate_attr()
598 init_attr->qp_type != IB_QPT_UD) { in efa_qp_validate_attr()
604 if (init_attr->srq) { in efa_qp_validate_attr()
609 if (init_attr->create_flags) { in efa_qp_validate_attr()
632 err = efa_qp_validate_cap(dev, init_attr); in efa_create_qp()
674 if (init_attr->qp_type == IB_QPT_UD) { in efa_create_qp()
[all …]
/linux/drivers/infiniband/hw/bnxt_re/
A Dib_verbs.c686 !(init_attr->flags & in bnxt_re_create_ah()
899 if (init_attr->cap.max_inline_data) { in bnxt_re_setup_swqe_size()
1091 struct ib_qp_init_attr *init_attr) in bnxt_re_init_rq_attr() argument
1104 if (init_attr->srq) { in bnxt_re_init_rq_attr()
1149 struct ib_qp_init_attr *init_attr, in bnxt_re_init_sq_attr() argument
1211 init_attr->cap.max_send_wr; in bnxt_re_adjust_gsi_sq_attr()
1275 if (init_attr->create_flags) { in bnxt_re_init_qp_attr()
1278 init_attr->create_flags); in bnxt_re_init_qp_attr()
1283 if (init_attr->send_cq) { in bnxt_re_init_qp_attr()
1289 if (init_attr->recv_cq) { in bnxt_re_init_qp_attr()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
A Dtls.c449 struct mlx5_fpga_conn_attr init_attr = {0}; in mlx5_fpga_tls_init() local
470 init_attr.rx_size = SBU_QP_QUEUE_SIZE; in mlx5_fpga_tls_init()
471 init_attr.tx_size = SBU_QP_QUEUE_SIZE; in mlx5_fpga_tls_init()
472 init_attr.recv_cb = mlx5_fpga_tls_hw_qp_recv_cb; in mlx5_fpga_tls_init()
473 init_attr.cb_arg = fdev; in mlx5_fpga_tls_init()
474 conn = mlx5_fpga_sbu_conn_create(fdev, &init_attr); in mlx5_fpga_tls_init()
/linux/drivers/infiniband/hw/usnic/
A Dusnic_ib_verbs.c461 int usnic_ib_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *init_attr, in usnic_ib_create_qp() argument
478 if (init_attr->create_flags) in usnic_ib_create_qp()
495 if (init_attr->qp_type != IB_QPT_UD) { in usnic_ib_create_qp()
497 dev_name(&us_ibdev->ib_dev.dev), init_attr->qp_type); in usnic_ib_create_qp()
503 cq_cnt = (init_attr->send_cq == init_attr->recv_cq) ? 1 : 2; in usnic_ib_create_qp()

Completed in 84 milliseconds

123