Lines Matching refs:init_attr

1017 			     struct ib_qp_init_attr *init_attr,  in _create_kernel_qp()  argument
1025 if (init_attr->qp_type == MLX5_IB_QPT_REG_UMR) in _create_kernel_qp()
1038 err = calc_sq_size(dev, init_attr, qp); in _create_kernel_qp()
1487 struct ib_qp_init_attr *init_attr) in create_raw_packet_qp() argument
1507 to_mcq(init_attr->send_cq)); in create_raw_packet_qp()
1530 to_mcq(init_attr->recv_cq)); in create_raw_packet_qp()
1633 struct ib_qp_init_attr *init_attr = params->attr; in create_rss_raw_qp_tir() local
1682 init_attr->rwq_ind_tbl->ind_tbl_num); in create_rss_raw_qp_tir()
1719 if (!init_attr->rwq_ind_tbl->log_ind_tbl_size) in create_rss_raw_qp_tir()
1837 struct ib_qp_init_attr *init_attr, in configure_requester_scat_cqe() argument
1845 if (!allow_scat_cqe && init_attr->sq_sig_type != IB_SIGNAL_ALL_WR) in configure_requester_scat_cqe()
1848 scqe_sz = mlx5_ib_get_cqe_size(init_attr->send_cq); in configure_requester_scat_cqe()
1854 if (init_attr->qp_type != MLX5_IB_QPT_DCI || in configure_requester_scat_cqe()
1986 struct ib_qp_init_attr *init_attr = params->attr; in create_dci() local
2011 if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) in create_dci()
2016 qp->has_rq = qp_has_rq(init_attr); in create_dci()
2017 err = set_rq_size(dev, &init_attr->cap, qp->has_rq, qp, ucmd); in create_dci()
2030 ts_format = get_qp_ts_format(dev, to_mcq(init_attr->send_cq), in create_dci()
2031 to_mcq(init_attr->recv_cq)); in create_dci()
2036 err = _create_user_qp(dev, pd, qp, udata, init_attr, &in, &params->resp, in create_dci()
2057 configure_requester_scat_cqe(dev, qp, init_attr, qpc); in create_dci()
2072 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, init_attr)); in create_dci()
2077 if (init_attr->srq) { in create_dci()
2080 to_msrq(init_attr->srq)->msrq.srqn); in create_dci()
2087 if (init_attr->send_cq) in create_dci()
2089 to_mcq(init_attr->send_cq)->mcq.cqn); in create_dci()
2091 if (init_attr->recv_cq) in create_dci()
2093 to_mcq(init_attr->recv_cq)->mcq.cqn); in create_dci()
2119 get_cqs(qp->type, init_attr->send_cq, init_attr->recv_cq, in create_dci()
2147 struct ib_qp_init_attr *init_attr = params->attr; in create_user_qp() local
2172 if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) in create_user_qp()
2176 qp->underlay_qpn = init_attr->source_qpn; in create_user_qp()
2178 base = (init_attr->qp_type == IB_QPT_RAW_PACKET || in create_user_qp()
2183 qp->has_rq = qp_has_rq(init_attr); in create_user_qp()
2184 err = set_rq_size(dev, &init_attr->cap, qp->has_rq, qp, ucmd); in create_user_qp()
2197 if (init_attr->qp_type != IB_QPT_RAW_PACKET) { in create_user_qp()
2198 ts_format = get_qp_ts_format(dev, to_mcq(init_attr->send_cq), in create_user_qp()
2199 to_mcq(init_attr->recv_cq)); in create_user_qp()
2204 err = _create_user_qp(dev, pd, qp, udata, init_attr, &in, &params->resp, in create_user_qp()
2209 if (is_sqp(init_attr->qp_type)) in create_user_qp()
2210 qp->port = init_attr->port_num; in create_user_qp()
2235 (init_attr->qp_type == IB_QPT_RC || in create_user_qp()
2236 init_attr->qp_type == IB_QPT_UC)) { in create_user_qp()
2237 int rcqe_sz = mlx5_ib_get_cqe_size(init_attr->recv_cq); in create_user_qp()
2245 configure_requester_scat_cqe(dev, qp, init_attr, qpc); in create_user_qp()
2252 if (init_attr->qp_type != IB_QPT_RAW_PACKET) in create_user_qp()
2255 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, init_attr)); in create_user_qp()
2261 if (init_attr->srq && in create_user_qp()
2262 init_attr->srq->srq_type == IB_SRQT_TM) in create_user_qp()
2268 switch (init_attr->qp_type) { in create_user_qp()
2275 if (init_attr->srq) { in create_user_qp()
2277 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(init_attr->srq)->msrq.srqn); in create_user_qp()
2284 if (init_attr->send_cq) in create_user_qp()
2285 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(init_attr->send_cq)->mcq.cqn); in create_user_qp()
2287 if (init_attr->recv_cq) in create_user_qp()
2288 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(init_attr->recv_cq)->mcq.cqn); in create_user_qp()
2297 init_attr->qp_type != IB_QPT_RAW_PACKET) { in create_user_qp()
2304 if (init_attr->qp_type == IB_QPT_RAW_PACKET || in create_user_qp()
2309 &params->resp, init_attr); in create_user_qp()
2322 get_cqs(qp->type, init_attr->send_cq, init_attr->recv_cq, in create_user_qp()
5055 struct ib_wq_init_attr *init_attr) in create_rq() argument
5069 ts_format = get_rq_ts_format(dev, to_mcq(init_attr->cq)); in create_rq()
5084 MLX5_SET(rqc, rqc, cqn, to_mcq(init_attr->cq)->mcq.cqn); in create_rq()
5091 if (init_attr->create_flags & IB_WQ_FLAGS_PCI_WRITE_END_PADDING) { in create_rq()
5125 if (init_attr->create_flags & IB_WQ_FLAGS_CVLAN_STRIPPING) { in create_rq()
5134 if (init_attr->create_flags & IB_WQ_FLAGS_SCATTER_FCS) { in create_rq()
5142 if (init_attr->create_flags & IB_WQ_FLAGS_DELAY_DROP) { in create_rq()
5154 if (!err && init_attr->create_flags & IB_WQ_FLAGS_DELAY_DROP) { in create_rq()
5205 struct ib_wq_init_attr *init_attr, in prepare_user_rq() argument
5270 err = set_user_rq_size(dev, init_attr, &ucmd, rwq); in prepare_user_rq()
5287 struct ib_wq_init_attr *init_attr, in mlx5_ib_create_wq() argument
5304 init_attr->create_flags & IB_WQ_FLAGS_DELAY_DROP) in mlx5_ib_create_wq()
5308 switch (init_attr->wq_type) { in mlx5_ib_create_wq()
5313 err = prepare_user_rq(pd, init_attr, udata, rwq); in mlx5_ib_create_wq()
5316 err = create_rq(rwq, pd, init_attr); in mlx5_ib_create_wq()
5322 init_attr->wq_type); in mlx5_ib_create_wq()
5337 rwq->ibwq.event_handler = init_attr->event_handler; in mlx5_ib_create_wq()
5364 struct ib_rwq_ind_table_init_attr *init_attr, in mlx5_ib_create_rwq_ind_table() argument
5370 int sz = 1 << init_attr->log_ind_tbl_size; in mlx5_ib_create_rwq_ind_table()
5384 if (init_attr->log_ind_tbl_size > in mlx5_ib_create_rwq_ind_table()
5387 init_attr->log_ind_tbl_size, in mlx5_ib_create_rwq_ind_table()
5408 MLX5_SET(rqtc, rqtc, rq_num[i], init_attr->ind_tbl[i]->wq_num); in mlx5_ib_create_rwq_ind_table()
5410 rwq_ind_tbl->uid = to_mpd(init_attr->ind_tbl[0]->pd)->uid; in mlx5_ib_create_rwq_ind_table()