Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/ehea/
Dehea_phyp.c199 struct ehea_qp_init_attr *init_attr, const u32 pd, in ehea_h_alloc_resource_qp() argument
206 EHEA_BMASK_SET(H_ALL_RES_QP_EQPO, init_attr->low_lat_rq1 ? 1 : 0) in ehea_h_alloc_resource_qp()
210 | EHEA_BMASK_SET(H_ALL_RES_QP_LL_QP, init_attr->low_lat_rq1) in ehea_h_alloc_resource_qp()
213 | EHEA_BMASK_SET(H_ALL_RES_QP_SIGT, init_attr->signalingtype) in ehea_h_alloc_resource_qp()
217 | EHEA_BMASK_SET(H_ALL_RES_QP_TOKEN, init_attr->qp_token); in ehea_h_alloc_resource_qp()
221 get_order_of_qentries(init_attr->max_nr_send_wqes)) in ehea_h_alloc_resource_qp()
223 get_order_of_qentries(init_attr->max_nr_rwqes_rq1)) in ehea_h_alloc_resource_qp()
225 get_order_of_qentries(init_attr->max_nr_rwqes_rq2)) in ehea_h_alloc_resource_qp()
227 get_order_of_qentries(init_attr->max_nr_rwqes_rq3)) in ehea_h_alloc_resource_qp()
228 | EHEA_BMASK_SET(H_ALL_RES_QP_MAX_SSGE, init_attr->wqe_size_enc_sq) in ehea_h_alloc_resource_qp()
[all …]
Dehea_qmr.c398 u32 pd, struct ehea_qp_init_attr *init_attr) in ehea_create_qp() argument
413 hret = ehea_h_alloc_resource_qp(adapter->handle, init_attr, pd, in ehea_create_qp()
420 wqe_size_in_bytes_sq = map_wqe_size(init_attr->act_wqe_size_enc_sq); in ehea_create_qp()
421 wqe_size_in_bytes_rq1 = map_wqe_size(init_attr->act_wqe_size_enc_rq1); in ehea_create_qp()
422 wqe_size_in_bytes_rq2 = map_wqe_size(init_attr->act_wqe_size_enc_rq2); in ehea_create_qp()
423 wqe_size_in_bytes_rq3 = map_wqe_size(init_attr->act_wqe_size_enc_rq3); in ehea_create_qp()
425 ret = ehea_qp_alloc_register(qp, &qp->hw_squeue, init_attr->nr_sq_pages, in ehea_create_qp()
427 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()
[all …]
Dehea_main.c639 pr->qp->init_attr.qp_nr); in ehea_treat_poll_error()
1250 struct ehea_qp_init_attr *init_attr = &pr->qp->init_attr; in ehea_fill_port_res() local
1254 ret = ehea_refill_rq2(pr, init_attr->act_nr_rwqes_rq2 - 1); in ehea_fill_port_res()
1256 ret |= ehea_refill_rq3(pr, init_attr->act_nr_rwqes_rq3 - 1); in ehea_fill_port_res()
1364 port->port_res[i].qp->init_attr.qp_nr; in ehea_configure_port()
1367 port->port_res[0].qp->init_attr.qp_nr; in ehea_configure_port()
1441 struct ehea_qp_init_attr *init_attr = NULL; in ehea_init_port_res() local
1486 init_attr = kzalloc(sizeof(*init_attr), GFP_KERNEL); in ehea_init_port_res()
1487 if (!init_attr) { in ehea_init_port_res()
1493 init_attr->low_lat_rq1 = 1; in ehea_init_port_res()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c192 struct ib_qp_init_attr *init_attr, in pvrdma_create_qp() argument
206 bool is_srq = !!init_attr->srq; in pvrdma_create_qp()
208 if (init_attr->create_flags) { in pvrdma_create_qp()
211 init_attr->create_flags); in pvrdma_create_qp()
215 if (init_attr->qp_type != IB_QPT_RC && in pvrdma_create_qp()
216 init_attr->qp_type != IB_QPT_UD && in pvrdma_create_qp()
217 init_attr->qp_type != IB_QPT_GSI) { in pvrdma_create_qp()
219 init_attr->qp_type); in pvrdma_create_qp()
232 switch (init_attr->qp_type) { in pvrdma_create_qp()
234 if (init_attr->port_num == 0 || in pvrdma_create_qp()
[all …]
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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_qp.c232 struct ib_qp_init_attr *init_attr) in hns_roce_qp_store() argument
245 add_qp_to_list(hr_dev, hr_qp, init_attr->send_cq, in hns_roce_qp_store()
246 init_attr->recv_cq); in hns_roce_qp_store()
601 struct ib_qp_init_attr *init_attr) in alloc_rq_inline_buf() argument
603 u32 max_recv_sge = init_attr->cap.max_recv_sge; in alloc_rq_inline_buf()
645 struct ib_qp_init_attr *init_attr, in alloc_qp_buf() argument
653 ret = alloc_rq_inline_buf(hr_qp, init_attr); in alloc_qp_buf()
691 struct ib_qp_init_attr *init_attr, in user_qp_has_sdb() argument
698 hns_roce_qp_has_sq(init_attr) && in user_qp_has_sdb()
703 struct ib_qp_init_attr *init_attr, in user_qp_has_rdb() argument
[all …]
Dhns_roce_srq.c285 struct ib_srq_init_attr *init_attr, in hns_roce_create_srq() argument
297 if (init_attr->attr.max_wr >= hr_dev->caps.max_srq_wrs || in hns_roce_create_srq()
298 init_attr->attr.max_sge > hr_dev->caps.max_srq_sges) in hns_roce_create_srq()
304 srq->wqe_cnt = roundup_pow_of_two(init_attr->attr.max_wr + 1); in hns_roce_create_srq()
305 srq->max_gs = init_attr->attr.max_sge; in hns_roce_create_srq()
339 cqn = ib_srq_has_cq(init_attr->srq_type) ? in hns_roce_create_srq()
340 to_hr_cq(init_attr->ext.cq)->cqn : 0; in hns_roce_create_srq()
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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
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()
Dsrq.c218 struct ib_srq_init_attr *init_attr, in mlx5_ib_create_srq() argument
230 if (init_attr->attr.max_wr >= max_srq_wqes) { in mlx5_ib_create_srq()
232 init_attr->attr.max_wr, in mlx5_ib_create_srq()
239 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx5_ib_create_srq()
240 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx5_ib_create_srq()
259 in.type = init_attr->srq_type; in mlx5_ib_create_srq()
277 if (init_attr->srq_type == IB_SRQT_XRC && init_attr->ext.xrc.xrcd) in mlx5_ib_create_srq()
278 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq()
282 if (init_attr->srq_type == IB_SRQT_TM) { in mlx5_ib_create_srq()
284 ilog2(init_attr->ext.tag_matching.max_num_tags) + 1; in mlx5_ib_create_srq()
[all …]
Dqp.c1041 struct ib_qp_init_attr *init_attr, in _create_kernel_qp() argument
1049 if (init_attr->qp_type == MLX5_IB_QPT_REG_UMR) in _create_kernel_qp()
1062 err = calc_sq_size(dev, init_attr, qp); in _create_kernel_qp()
1569 struct ib_qp_init_attr *init_attr = params->attr; in create_rss_raw_qp_tir() local
1618 init_attr->rwq_ind_tbl->ind_tbl_num); in create_rss_raw_qp_tir()
1655 if (!init_attr->rwq_ind_tbl->log_ind_tbl_size) in create_rss_raw_qp_tir()
1773 struct ib_qp_init_attr *init_attr, in configure_requester_scat_cqe() argument
1781 if (!allow_scat_cqe && init_attr->sq_sig_type != IB_SIGNAL_ALL_WR) in configure_requester_scat_cqe()
1784 scqe_sz = mlx5_ib_get_cqe_size(init_attr->send_cq); in configure_requester_scat_cqe()
1790 if (init_attr->qp_type != MLX5_IB_QPT_DCI || in configure_requester_scat_cqe()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dqp.c518 struct ib_qp_init_attr *init_attr, in set_qp_rss() argument
521 rss_ctx->base_qpn_tbl_sz = init_attr->rwq_ind_tbl->ind_tbl[0]->wq_num | in set_qp_rss()
522 (init_attr->rwq_ind_tbl->log_ind_tbl_size << 24); in set_qp_rss()
620 struct ib_qp_init_attr *init_attr, in create_qp_rss() argument
649 (struct ib_qp *)init_attr->rwq_ind_tbl->ind_tbl[0]))->mtt; in create_qp_rss()
657 err = set_qp_rss(dev, qp->rss_ctx, init_attr, ucmd); in create_qp_rss()
676 struct ib_qp_init_attr *init_attr, in _mlx4_ib_create_qp_rss() argument
716 if (init_attr->qp_type != IB_QPT_RAW_PACKET) { in _mlx4_ib_create_qp_rss()
718 init_attr->qp_type); in _mlx4_ib_create_qp_rss()
722 if (init_attr->create_flags) { in _mlx4_ib_create_qp_rss()
[all …]
Dsrq.c73 struct ib_srq_init_attr *init_attr, in mlx4_ib_create_srq() argument
90 if (init_attr->attr.max_wr >= dev->dev->caps.max_srq_wqes || in mlx4_ib_create_srq()
91 init_attr->attr.max_sge > dev->dev->caps.max_srq_sge) in mlx4_ib_create_srq()
96 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx4_ib_create_srq()
97 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx4_ib_create_srq()
176 cqn = ib_srq_has_cq(init_attr->srq_type) ? in mlx4_ib_create_srq()
177 to_mcq(init_attr->ext.cq)->mcq.cqn : 0; in mlx4_ib_create_srq()
178 xrcdn = (init_attr->srq_type == IB_SRQT_XRC) ? in mlx4_ib_create_srq()
179 to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : in mlx4_ib_create_srq()
195 init_attr->attr.max_wr = srq->msrq.max - 1; in mlx4_ib_create_srq()
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()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Dah.c100 int rvt_create_ah(struct ib_ah *ibah, struct rdma_ah_init_attr *init_attr, in rvt_create_ah() argument
107 if (rvt_check_ah(ibah->device, init_attr->ah_attr)) in rvt_create_ah()
119 rdma_copy_ah_attr(&ah->attr, init_attr->ah_attr); in rvt_create_ah()
123 init_attr->ah_attr, ah); in rvt_create_ah()
Dqp.c1067 struct ib_qp_init_attr *init_attr, in rvt_create_qp() argument
1084 if (init_attr->cap.max_send_sge > rdi->dparms.props.max_send_sge || in rvt_create_qp()
1085 init_attr->cap.max_send_wr > rdi->dparms.props.max_qp_wr || in rvt_create_qp()
1086 (init_attr->create_flags && in rvt_create_qp()
1087 init_attr->create_flags != IB_QP_CREATE_NETDEV_USE)) in rvt_create_qp()
1091 if (!init_attr->srq) { in rvt_create_qp()
1092 if (init_attr->cap.max_recv_sge > in rvt_create_qp()
1094 init_attr->cap.max_recv_wr > rdi->dparms.props.max_qp_wr) in rvt_create_qp()
1097 if (init_attr->cap.max_send_sge + in rvt_create_qp()
1098 init_attr->cap.max_send_wr + in rvt_create_qp()
[all …]
Dqp.h56 struct ib_qp_init_attr *init_attr,
62 int attr_mask, struct ib_qp_init_attr *init_attr);
/kernel/linux/linux-5.10/drivers/infiniband/ulp/iser/
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()
267 init_attr.event_handler = iser_qp_event_callback; 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()
271 init_attr.cap.max_recv_wr = ISER_QP_MAX_RECV_DTOS; 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()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/rtrs/
Drtrs.c236 struct ib_qp_init_attr init_attr = {NULL}; in create_qp() local
240 init_attr.cap.max_send_wr = max_send_wr; in create_qp()
241 init_attr.cap.max_recv_wr = max_recv_wr; in create_qp()
242 init_attr.cap.max_recv_sge = 1; in create_qp()
243 init_attr.event_handler = qp_event_handler; in create_qp()
244 init_attr.qp_context = con; in create_qp()
245 init_attr.cap.max_send_sge = max_sge; in create_qp()
247 init_attr.qp_type = IB_QPT_RC; in create_qp()
248 init_attr.send_cq = con->cq; in create_qp()
249 init_attr.recv_cq = con->cq; in create_qp()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_provider.c383 struct rdma_ah_init_attr *init_attr, in mthca_ah_create() argument
390 init_attr->ah_attr, ah); in mthca_ah_create()
400 struct ib_srq_init_attr *init_attr, in mthca_create_srq() argument
409 if (init_attr->srq_type != IB_SRQT_BASIC) in mthca_create_srq()
428 &init_attr->attr, srq, udata); in mthca_create_srq()
463 struct ib_qp_init_attr *init_attr, in mthca_create_qp() argument
472 if (init_attr->create_flags) in mthca_create_qp()
475 switch (init_attr->qp_type) { in mthca_create_qp()
516 to_mcq(init_attr->send_cq), in mthca_create_qp()
517 to_mcq(init_attr->recv_cq), in mthca_create_qp()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/efa/
Defa_verbs.c540 struct ib_qp_init_attr *init_attr) in efa_qp_validate_cap() argument
542 if (init_attr->cap.max_send_wr > dev->dev_attr.max_sq_depth) { in efa_qp_validate_cap()
545 init_attr->cap.max_send_wr, in efa_qp_validate_cap()
549 if (init_attr->cap.max_recv_wr > dev->dev_attr.max_rq_depth) { in efa_qp_validate_cap()
552 init_attr->cap.max_recv_wr, in efa_qp_validate_cap()
556 if (init_attr->cap.max_send_sge > dev->dev_attr.max_sq_sge) { in efa_qp_validate_cap()
559 init_attr->cap.max_send_sge, dev->dev_attr.max_sq_sge); in efa_qp_validate_cap()
562 if (init_attr->cap.max_recv_sge > dev->dev_attr.max_rq_sge) { in efa_qp_validate_cap()
565 init_attr->cap.max_recv_sge, dev->dev_attr.max_rq_sge); in efa_qp_validate_cap()
568 if (init_attr->cap.max_inline_data > dev->dev_attr.inline_buf_size) { in efa_qp_validate_cap()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c631 int bnxt_re_create_ah(struct ib_ah *ib_ah, struct rdma_ah_init_attr *init_attr, in bnxt_re_create_ah() argument
636 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in bnxt_re_create_ah()
674 !(init_attr->flags & in bnxt_re_create_ah()
867 struct ib_qp_init_attr *init_attr) in bnxt_re_setup_swqe_size() argument
881 ilsize = ALIGN(init_attr->cap.max_inline_data, align); in bnxt_re_setup_swqe_size()
893 if (init_attr->cap.max_inline_data) { in bnxt_re_setup_swqe_size()
896 init_attr->cap.max_inline_data = qplqp->max_inline_data; in bnxt_re_setup_swqe_size()
1084 struct ib_qp_init_attr *init_attr) in bnxt_re_init_rq_attr() argument
1097 if (init_attr->srq) { in bnxt_re_init_rq_attr()
1100 srq = container_of(init_attr->srq, struct bnxt_re_srq, ib_srq); in bnxt_re_init_rq_attr()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c505 struct ib_qp_init_attr *init_attr, in i40iw_create_qp() argument
535 if (init_attr->create_flags) in i40iw_create_qp()
537 if (init_attr->cap.max_inline_data > I40IW_MAX_INLINE_DATA_SIZE) in i40iw_create_qp()
538 init_attr->cap.max_inline_data = I40IW_MAX_INLINE_DATA_SIZE; in i40iw_create_qp()
540 if (init_attr->cap.max_send_sge > I40IW_MAX_WQ_FRAGMENT_COUNT) in i40iw_create_qp()
541 init_attr->cap.max_send_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; in i40iw_create_qp()
543 if (init_attr->cap.max_recv_sge > I40IW_MAX_WQ_FRAGMENT_COUNT) in i40iw_create_qp()
544 init_attr->cap.max_recv_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; in i40iw_create_qp()
548 sq_size = init_attr->cap.max_send_wr; in i40iw_create_qp()
549 rq_size = init_attr->cap.max_recv_wr; in i40iw_create_qp()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/fpga/
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()

123