/drivers/net/ethernet/ibm/ehea/ |
D | ehea_phyp.c | 213 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 …]
|
D | ehea_qmr.c | 418 u32 pd, struct ehea_qp_init_attr *init_attr) in ehea_create_qp() argument 433 hret = ehea_h_alloc_resource_qp(adapter->handle, init_attr, pd, in ehea_create_qp() 440 wqe_size_in_bytes_sq = map_wqe_size(init_attr->act_wqe_size_enc_sq); in ehea_create_qp() 441 wqe_size_in_bytes_rq1 = map_wqe_size(init_attr->act_wqe_size_enc_rq1); in ehea_create_qp() 442 wqe_size_in_bytes_rq2 = map_wqe_size(init_attr->act_wqe_size_enc_rq2); in ehea_create_qp() 443 wqe_size_in_bytes_rq3 = map_wqe_size(init_attr->act_wqe_size_enc_rq3); in ehea_create_qp() 445 ret = ehea_qp_alloc_register(qp, &qp->hw_squeue, init_attr->nr_sq_pages, in ehea_create_qp() 447 init_attr->act_wqe_size_enc_sq, adapter, in ehea_create_qp() 455 init_attr->nr_rq1_pages, in ehea_create_qp() 457 init_attr->act_wqe_size_enc_rq1, in ehea_create_qp() [all …]
|
D | ehea_main.c | 653 pr->qp->init_attr.qp_nr); in ehea_treat_poll_error() 1276 struct ehea_qp_init_attr *init_attr = &pr->qp->init_attr; in ehea_fill_port_res() local 1280 ret = ehea_refill_rq2(pr, init_attr->act_nr_rwqes_rq2 - 1); in ehea_fill_port_res() 1282 ret |= ehea_refill_rq3(pr, init_attr->act_nr_rwqes_rq3 - 1); in ehea_fill_port_res() 1390 port->port_res[i].qp->init_attr.qp_nr; in ehea_configure_port() 1393 port->port_res[0].qp->init_attr.qp_nr; in ehea_configure_port() 1467 struct ehea_qp_init_attr *init_attr = NULL; in ehea_init_port_res() local 1512 init_attr = kzalloc(sizeof(*init_attr), GFP_KERNEL); in ehea_init_port_res() 1513 if (!init_attr) { in ehea_init_port_res() 1519 init_attr->low_lat_rq1 = 1; in ehea_init_port_res() [all …]
|
/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_qp.c | 189 struct ib_qp_init_attr *init_attr, in pvrdma_create_qp() argument 202 if (init_attr->create_flags) { in pvrdma_create_qp() 205 init_attr->create_flags); in pvrdma_create_qp() 209 if (init_attr->qp_type != IB_QPT_RC && in pvrdma_create_qp() 210 init_attr->qp_type != IB_QPT_UD && in pvrdma_create_qp() 211 init_attr->qp_type != IB_QPT_GSI) { in pvrdma_create_qp() 213 init_attr->qp_type); in pvrdma_create_qp() 220 switch (init_attr->qp_type) { in pvrdma_create_qp() 222 if (init_attr->port_num == 0 || in pvrdma_create_qp() 223 init_attr->port_num > pd->device->phys_port_cnt || in pvrdma_create_qp() [all …]
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_verbs.c | 146 struct ib_qp_init_attr init_attr = { in ipoib_transport_dev_init() local 193 init_attr.send_cq = priv->send_cq; in ipoib_transport_dev_init() 194 init_attr.recv_cq = priv->recv_cq; in ipoib_transport_dev_init() 197 init_attr.create_flags |= IB_QP_CREATE_IPOIB_UD_LSO; in ipoib_transport_dev_init() 200 init_attr.create_flags |= IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK; in ipoib_transport_dev_init() 203 init_attr.create_flags |= IB_QP_CREATE_NETIF_QP; in ipoib_transport_dev_init() 205 priv->qp = ib_create_qp(priv->pd, &init_attr); in ipoib_transport_dev_init() 226 if (init_attr.cap.max_send_sge > 1) in ipoib_transport_dev_init() 229 priv->max_send_sge = init_attr.cap.max_send_sge; in ipoib_transport_dev_init()
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_qp.c | 816 struct t3_rdma_init_attr init_attr; in rdma_init() local 819 init_attr.tid = qhp->ep->hwtid; in rdma_init() 820 init_attr.qpid = qhp->wq.qpid; in rdma_init() 821 init_attr.pdid = qhp->attr.pd; in rdma_init() 822 init_attr.scqid = qhp->attr.scq; in rdma_init() 823 init_attr.rcqid = qhp->attr.rcq; in rdma_init() 824 init_attr.rq_addr = qhp->wq.rq_addr; in rdma_init() 825 init_attr.rq_size = 1 << qhp->wq.rq_size_log2; in rdma_init() 826 init_attr.mpaattrs = uP_RI_MPA_IETF_ENABLE | in rdma_init() 831 init_attr.qpcaps = uP_RI_QP_RDMA_READ_ENABLE | in rdma_init() [all …]
|
/drivers/infiniband/sw/rdmavt/ |
D | qp.c | 769 struct ib_qp_init_attr *init_attr, in rvt_create_qp() argument 785 if (init_attr->cap.max_send_sge > rdi->dparms.props.max_sge || in rvt_create_qp() 786 init_attr->cap.max_send_wr > rdi->dparms.props.max_qp_wr || in rvt_create_qp() 787 init_attr->create_flags) in rvt_create_qp() 791 if (!init_attr->srq) { in rvt_create_qp() 792 if (init_attr->cap.max_recv_sge > rdi->dparms.props.max_sge || in rvt_create_qp() 793 init_attr->cap.max_recv_wr > rdi->dparms.props.max_qp_wr) in rvt_create_qp() 796 if (init_attr->cap.max_send_sge + in rvt_create_qp() 797 init_attr->cap.max_send_wr + in rvt_create_qp() 798 init_attr->cap.max_recv_sge + in rvt_create_qp() [all …]
|
D | qp.h | 56 struct ib_qp_init_attr *init_attr, 62 int attr_mask, struct ib_qp_init_attr *init_attr);
|
/drivers/infiniband/hw/mlx4/ |
D | qp.c | 654 struct ib_qp_init_attr *init_attr, in set_qp_rss() argument 657 rss_ctx->base_qpn_tbl_sz = init_attr->rwq_ind_tbl->ind_tbl[0]->wq_num | in set_qp_rss() 658 (init_attr->rwq_ind_tbl->log_ind_tbl_size << 24); in set_qp_rss() 741 struct ib_qp_init_attr *init_attr, in create_qp_rss() argument 772 (struct ib_qp *)init_attr->rwq_ind_tbl->ind_tbl[0]))->mtt; in create_qp_rss() 780 err = set_qp_rss(dev, qp->rss_ctx, init_attr, ucmd); in create_qp_rss() 799 struct ib_qp_init_attr *init_attr, in _mlx4_ib_create_qp_rss() argument 840 if (init_attr->qp_type != IB_QPT_RAW_PACKET) { in _mlx4_ib_create_qp_rss() 842 init_attr->qp_type); in _mlx4_ib_create_qp_rss() 846 if (init_attr->create_flags) { in _mlx4_ib_create_qp_rss() [all …]
|
D | srq.c | 72 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() 181 cqn = ib_srq_has_cq(init_attr->srq_type) ? in mlx4_ib_create_srq() 182 to_mcq(init_attr->ext.cq)->mcq.cqn : 0; in mlx4_ib_create_srq() 183 xrcdn = (init_attr->srq_type == IB_SRQT_XRC) ? in mlx4_ib_create_srq() 184 to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn : in mlx4_ib_create_srq() 200 init_attr->attr.max_wr = srq->msrq.max - 1; in mlx4_ib_create_srq()
|
D | mad.c | 1814 qp_init_attr.init_attr.send_cq = ctx->cq; in create_pv_sqp() 1815 qp_init_attr.init_attr.recv_cq = ctx->cq; in create_pv_sqp() 1816 qp_init_attr.init_attr.sq_sig_type = IB_SIGNAL_ALL_WR; in create_pv_sqp() 1817 qp_init_attr.init_attr.cap.max_send_wr = MLX4_NUM_TUNNEL_BUFS; in create_pv_sqp() 1818 qp_init_attr.init_attr.cap.max_recv_wr = MLX4_NUM_TUNNEL_BUFS; in create_pv_sqp() 1819 qp_init_attr.init_attr.cap.max_send_sge = 1; in create_pv_sqp() 1820 qp_init_attr.init_attr.cap.max_recv_sge = 1; in create_pv_sqp() 1822 qp_init_attr.init_attr.qp_type = IB_QPT_UD; in create_pv_sqp() 1823 qp_init_attr.init_attr.create_flags = MLX4_IB_SRIOV_TUNNEL_QP; in create_pv_sqp() 1830 qp_init_attr.init_attr.qp_type = qp_type; in create_pv_sqp() [all …]
|
D | mlx4_ib.h | 632 struct ib_qp_init_attr init_attr; member 777 struct ib_srq_init_attr *init_attr, 788 struct ib_qp_init_attr *init_attr, 921 struct ib_wq_init_attr *init_attr, 929 struct ib_rwq_ind_table_init_attr *init_attr,
|
/drivers/infiniband/hw/mlx5/ |
D | qp.c | 898 struct ib_qp_init_attr *init_attr, in create_kernel_qp() argument 907 if (init_attr->create_flags & ~(IB_QP_CREATE_SIGNATURE_EN | in create_kernel_qp() 914 if (init_attr->qp_type == MLX5_IB_QPT_REG_UMR) in create_kernel_qp() 925 err = calc_sq_size(dev, init_attr, qp); in create_kernel_qp() 958 if (init_attr->create_flags & mlx5_ib_create_qp_sqpn_qp1()) { in create_kernel_qp() 1341 struct ib_qp_init_attr *init_attr, in create_rss_raw_qp_tir() argument 1359 if (init_attr->qp_type != IB_QPT_RAW_PACKET) in create_rss_raw_qp_tir() 1362 if (init_attr->create_flags || init_attr->send_cq) in create_rss_raw_qp_tir() 1412 init_attr->rwq_ind_tbl->ind_tbl_num); in create_rss_raw_qp_tir() 1438 if (!init_attr->rwq_ind_tbl->log_ind_tbl_size) in create_rss_raw_qp_tir() [all …]
|
D | srq.c | 239 struct ib_srq_init_attr *init_attr, in mlx5_ib_create_srq() argument 251 if (init_attr->attr.max_wr >= max_srq_wqes) { in mlx5_ib_create_srq() 253 init_attr->attr.max_wr, in mlx5_ib_create_srq() 264 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx5_ib_create_srq() 265 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx5_ib_create_srq() 287 in.type = init_attr->srq_type; in mlx5_ib_create_srq() 305 if (init_attr->srq_type == IB_SRQT_XRC) in mlx5_ib_create_srq() 306 in.xrcd = to_mxrcd(init_attr->ext.xrc.xrcd)->xrcdn; in mlx5_ib_create_srq() 310 if (init_attr->srq_type == IB_SRQT_TM) { in mlx5_ib_create_srq() 312 ilog2(init_attr->ext.tag_matching.max_num_tags) + 1; in mlx5_ib_create_srq() [all …]
|
D | gsi.c | 116 struct ib_qp_init_attr *init_attr) in mlx5_ib_gsi_create_qp() argument 120 struct ib_qp_init_attr hw_init_attr = *init_attr; in mlx5_ib_gsi_create_qp() 121 const u8 port_num = init_attr->port_num; in mlx5_ib_gsi_create_qp() 145 gsi->outstanding_wrs = kcalloc(init_attr->cap.max_send_wr, in mlx5_ib_gsi_create_qp() 166 gsi->cap = init_attr->cap; in mlx5_ib_gsi_create_qp() 167 gsi->sq_sig_type = init_attr->sq_sig_type; in mlx5_ib_gsi_create_qp() 171 gsi->cq = ib_alloc_cq(pd->device, gsi, init_attr->cap.max_send_wr, 0, in mlx5_ib_gsi_create_qp() 195 dev->devr.ports[init_attr->port_num - 1].gsi = gsi; in mlx5_ib_gsi_create_qp() 254 struct ib_qp_init_attr init_attr = { in create_gsi_ud_qp() local 269 return ib_create_qp(pd, &init_attr); in create_gsi_ud_qp()
|
D | mlx5_ib.h | 829 struct ib_srq_init_attr *init_attr, 838 struct ib_qp_init_attr *init_attr, 933 struct ib_wq_init_attr *init_attr, 939 struct ib_rwq_ind_table_init_attr *init_attr, 992 struct ib_qp_init_attr *init_attr);
|
/drivers/infiniband/ulp/iser/ |
D | iser_verbs.c | 424 struct ib_qp_init_attr init_attr; in iser_create_ib_conn_res() local 433 memset(&init_attr, 0, sizeof init_attr); in iser_create_ib_conn_res() 447 init_attr.event_handler = iser_qp_event_callback; in iser_create_ib_conn_res() 448 init_attr.qp_context = (void *)ib_conn; in iser_create_ib_conn_res() 449 init_attr.send_cq = ib_conn->comp->cq; in iser_create_ib_conn_res() 450 init_attr.recv_cq = ib_conn->comp->cq; in iser_create_ib_conn_res() 451 init_attr.cap.max_recv_wr = ISER_QP_MAX_RECV_DTOS; in iser_create_ib_conn_res() 452 init_attr.cap.max_send_sge = 2; in iser_create_ib_conn_res() 453 init_attr.cap.max_recv_sge = 1; in iser_create_ib_conn_res() 454 init_attr.sq_sig_type = IB_SIGNAL_REQ_WR; in iser_create_ib_conn_res() [all …]
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 392 struct ib_qp_init_attr *init_attr, in hns_roce_create_qp_common() argument 407 if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) in hns_roce_create_qp_common() 412 ret = hns_roce_set_rq_size(hr_dev, &init_attr->cap, !!ib_pd->uobject, in hns_roce_create_qp_common() 413 !!init_attr->srq, hr_qp); in hns_roce_create_qp_common() 455 if (init_attr->create_flags & in hns_roce_create_qp_common() 462 if (init_attr->create_flags & IB_QP_CREATE_IPOIB_UD_LSO) { in hns_roce_create_qp_common() 469 ret = hns_roce_set_kernel_sq_size(hr_dev, &init_attr->cap, in hns_roce_create_qp_common() 527 if ((init_attr->qp_type) == IB_QPT_GSI) { in hns_roce_create_qp_common() 572 struct ib_qp_init_attr *init_attr, in hns_roce_create_qp() argument 581 switch (init_attr->qp_type) { in hns_roce_create_qp() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 442 struct ib_srq_init_attr *init_attr, in mthca_create_srq() argument 450 if (init_attr->srq_type != IB_SRQT_BASIC) in mthca_create_srq() 477 &init_attr->attr, srq); in mthca_create_srq() 518 struct ib_qp_init_attr *init_attr, in mthca_create_qp() argument 525 if (init_attr->create_flags) in mthca_create_qp() 528 switch (init_attr->qp_type) { in mthca_create_qp() 573 to_mcq(init_attr->send_cq), in mthca_create_qp() 574 to_mcq(init_attr->recv_cq), in mthca_create_qp() 575 init_attr->qp_type, init_attr->sq_sig_type, in mthca_create_qp() 576 &init_attr->cap, qp); in mthca_create_qp() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | ipsec.c | 323 struct mlx5_fpga_conn_attr init_attr = {0}; in mlx5_fpga_ipsec_init() local 346 init_attr.rx_size = SBU_QP_QUEUE_SIZE; in mlx5_fpga_ipsec_init() 347 init_attr.tx_size = SBU_QP_QUEUE_SIZE; in mlx5_fpga_ipsec_init() 348 init_attr.recv_cb = mlx5_fpga_ipsec_recv; in mlx5_fpga_ipsec_init() 349 init_attr.cb_arg = fdev; in mlx5_fpga_ipsec_init() 350 conn = mlx5_fpga_sbu_conn_create(fdev, &init_attr); in mlx5_fpga_ipsec_init()
|
/drivers/infiniband/hw/i40iw/ |
D | i40iw_verbs.c | 576 struct ib_qp_init_attr *init_attr, in i40iw_create_qp() argument 606 if (init_attr->create_flags) in i40iw_create_qp() 608 if (init_attr->cap.max_inline_data > I40IW_MAX_INLINE_DATA_SIZE) in i40iw_create_qp() 609 init_attr->cap.max_inline_data = I40IW_MAX_INLINE_DATA_SIZE; in i40iw_create_qp() 611 if (init_attr->cap.max_send_sge > I40IW_MAX_WQ_FRAGMENT_COUNT) in i40iw_create_qp() 612 init_attr->cap.max_send_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; in i40iw_create_qp() 614 if (init_attr->cap.max_recv_sge > I40IW_MAX_WQ_FRAGMENT_COUNT) in i40iw_create_qp() 615 init_attr->cap.max_recv_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; in i40iw_create_qp() 619 sq_size = init_attr->cap.max_send_wr; in i40iw_create_qp() 620 rq_size = init_attr->cap.max_recv_wr; in i40iw_create_qp() [all …]
|
/drivers/infiniband/hw/usnic/ |
D | usnic_ib_verbs.c | 467 struct ib_qp_init_attr *init_attr, in usnic_ib_create_qp() argument 484 if (init_attr->create_flags) in usnic_ib_create_qp() 501 if (init_attr->qp_type != IB_QPT_UD) { in usnic_ib_create_qp() 503 us_ibdev->ib_dev.name, init_attr->qp_type); in usnic_ib_create_qp() 509 cq_cnt = (init_attr->send_cq == init_attr->recv_cq) ? 1 : 2; in usnic_ib_create_qp()
|
/drivers/nvme/host/ |
D | rdma.c | 250 struct ib_qp_init_attr init_attr; in nvme_rdma_create_qp() local 253 memset(&init_attr, 0, sizeof(init_attr)); in nvme_rdma_create_qp() 254 init_attr.event_handler = nvme_rdma_qp_event; in nvme_rdma_create_qp() 256 init_attr.cap.max_send_wr = factor * queue->queue_size + 1; in nvme_rdma_create_qp() 258 init_attr.cap.max_recv_wr = queue->queue_size + 1; in nvme_rdma_create_qp() 259 init_attr.cap.max_recv_sge = 1; in nvme_rdma_create_qp() 260 init_attr.cap.max_send_sge = 1 + NVME_RDMA_MAX_INLINE_SEGMENTS; in nvme_rdma_create_qp() 261 init_attr.sq_sig_type = IB_SIGNAL_REQ_WR; in nvme_rdma_create_qp() 262 init_attr.qp_type = IB_QPT_RC; in nvme_rdma_create_qp() 263 init_attr.send_cq = queue->ib_cq; in nvme_rdma_create_qp() [all …]
|
/drivers/infiniband/hw/nes/ |
D | nes_verbs.c | 997 struct ib_qp_init_attr *init_attr, struct ib_udata *udata) in nes_create_qp() argument 1027 if (init_attr->create_flags) in nes_create_qp() 1031 switch (init_attr->qp_type) { in nes_create_qp() 1034 init_attr->cap.max_inline_data = 0; in nes_create_qp() 1036 init_attr->cap.max_inline_data = 64; in nes_create_qp() 1038 sq_size = init_attr->cap.max_send_wr; in nes_create_qp() 1039 rq_size = init_attr->cap.max_recv_wr; in nes_create_qp() 1051 init_attr->cap.max_send_wr = sq_size -2; in nes_create_qp() 1052 init_attr->cap.max_recv_wr = rq_size -1; in nes_create_qp() 1160 nescq = to_nescq(init_attr->send_cq); in nes_create_qp() [all …]
|
/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 487 struct ib_qp_init_attr *init_attr; in srp_create_ch_ib() local 495 init_attr = kzalloc(sizeof *init_attr, GFP_KERNEL); in srp_create_ch_ib() 496 if (!init_attr) in srp_create_ch_ib() 514 init_attr->event_handler = srp_qp_event; in srp_create_ch_ib() 515 init_attr->cap.max_send_wr = m * target->queue_size; in srp_create_ch_ib() 516 init_attr->cap.max_recv_wr = target->queue_size + 1; in srp_create_ch_ib() 517 init_attr->cap.max_recv_sge = 1; in srp_create_ch_ib() 518 init_attr->cap.max_send_sge = 1; in srp_create_ch_ib() 519 init_attr->sq_sig_type = IB_SIGNAL_REQ_WR; in srp_create_ch_ib() 520 init_attr->qp_type = IB_QPT_RC; in srp_create_ch_ib() [all …]
|