Lines Matching refs:init_attr

1100 			     struct ib_qp_init_attr *init_attr,  in _create_kernel_qp()  argument
1108 if (init_attr->qp_type == MLX5_IB_QPT_REG_UMR) in _create_kernel_qp()
1119 err = calc_sq_size(dev, init_attr, qp); in _create_kernel_qp()
1571 struct ib_qp_init_attr *init_attr) in create_raw_packet_qp() argument
1591 to_mcq(init_attr->send_cq)); in create_raw_packet_qp()
1614 to_mcq(init_attr->recv_cq)); in create_raw_packet_qp()
1717 struct ib_qp_init_attr *init_attr = params->attr; in create_rss_raw_qp_tir() local
1766 init_attr->rwq_ind_tbl->ind_tbl_num); in create_rss_raw_qp_tir()
1803 if (!init_attr->rwq_ind_tbl->log_ind_tbl_size) in create_rss_raw_qp_tir()
1921 struct ib_qp_init_attr *init_attr, in configure_requester_scat_cqe() argument
1929 if (!allow_scat_cqe && init_attr->sq_sig_type != IB_SIGNAL_ALL_WR) in configure_requester_scat_cqe()
1932 scqe_sz = mlx5_ib_get_cqe_size(init_attr->send_cq); in configure_requester_scat_cqe()
1938 if (init_attr->qp_type != MLX5_IB_QPT_DCI || in configure_requester_scat_cqe()
2070 struct ib_qp_init_attr *init_attr = params->attr; in create_dci() local
2095 if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) in create_dci()
2100 qp->has_rq = qp_has_rq(init_attr); in create_dci()
2101 err = set_rq_size(dev, &init_attr->cap, qp->has_rq, qp, ucmd); in create_dci()
2114 ts_format = get_qp_ts_format(dev, to_mcq(init_attr->send_cq), in create_dci()
2115 to_mcq(init_attr->recv_cq)); in create_dci()
2120 err = _create_user_qp(dev, pd, qp, udata, init_attr, &in, &params->resp, in create_dci()
2141 configure_requester_scat_cqe(dev, qp, init_attr, qpc); in create_dci()
2156 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, init_attr)); in create_dci()
2161 if (init_attr->srq) { in create_dci()
2164 to_msrq(init_attr->srq)->msrq.srqn); in create_dci()
2171 if (init_attr->send_cq) in create_dci()
2173 to_mcq(init_attr->send_cq)->mcq.cqn); in create_dci()
2175 if (init_attr->recv_cq) in create_dci()
2177 to_mcq(init_attr->recv_cq)->mcq.cqn); in create_dci()
2203 get_cqs(qp->type, init_attr->send_cq, init_attr->recv_cq, in create_dci()
2231 struct ib_qp_init_attr *init_attr = params->attr; in create_user_qp() local
2256 if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) in create_user_qp()
2260 qp->underlay_qpn = init_attr->source_qpn; in create_user_qp()
2262 base = (init_attr->qp_type == IB_QPT_RAW_PACKET || in create_user_qp()
2267 qp->has_rq = qp_has_rq(init_attr); in create_user_qp()
2268 err = set_rq_size(dev, &init_attr->cap, qp->has_rq, qp, ucmd); in create_user_qp()
2281 if (init_attr->qp_type != IB_QPT_RAW_PACKET) { in create_user_qp()
2282 ts_format = get_qp_ts_format(dev, to_mcq(init_attr->send_cq), in create_user_qp()
2283 to_mcq(init_attr->recv_cq)); in create_user_qp()
2288 err = _create_user_qp(dev, pd, qp, udata, init_attr, &in, &params->resp, in create_user_qp()
2293 if (is_sqp(init_attr->qp_type)) in create_user_qp()
2294 qp->port = init_attr->port_num; in create_user_qp()
2319 (init_attr->qp_type == IB_QPT_RC || in create_user_qp()
2320 init_attr->qp_type == IB_QPT_UC)) { in create_user_qp()
2321 int rcqe_sz = mlx5_ib_get_cqe_size(init_attr->recv_cq); in create_user_qp()
2329 configure_requester_scat_cqe(dev, qp, init_attr, qpc); in create_user_qp()
2336 if (init_attr->qp_type != IB_QPT_RAW_PACKET) in create_user_qp()
2339 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, init_attr)); in create_user_qp()
2345 if (init_attr->srq && in create_user_qp()
2346 init_attr->srq->srq_type == IB_SRQT_TM) in create_user_qp()
2352 switch (init_attr->qp_type) { in create_user_qp()
2359 if (init_attr->srq) { in create_user_qp()
2361 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(init_attr->srq)->msrq.srqn); in create_user_qp()
2368 if (init_attr->send_cq) in create_user_qp()
2369 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(init_attr->send_cq)->mcq.cqn); in create_user_qp()
2371 if (init_attr->recv_cq) in create_user_qp()
2372 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(init_attr->recv_cq)->mcq.cqn); in create_user_qp()
2381 init_attr->qp_type != IB_QPT_RAW_PACKET) { in create_user_qp()
2388 if (init_attr->qp_type == IB_QPT_RAW_PACKET || in create_user_qp()
2393 &params->resp, init_attr); in create_user_qp()
2406 get_cqs(qp->type, init_attr->send_cq, init_attr->recv_cq, in create_user_qp()
5187 struct ib_wq_init_attr *init_attr) in create_rq() argument
5201 ts_format = get_rq_ts_format(dev, to_mcq(init_attr->cq)); in create_rq()
5216 MLX5_SET(rqc, rqc, cqn, to_mcq(init_attr->cq)->mcq.cqn); in create_rq()
5223 if (init_attr->create_flags & IB_WQ_FLAGS_PCI_WRITE_END_PADDING) { in create_rq()
5257 if (init_attr->create_flags & IB_WQ_FLAGS_CVLAN_STRIPPING) { in create_rq()
5266 if (init_attr->create_flags & IB_WQ_FLAGS_SCATTER_FCS) { in create_rq()
5274 if (init_attr->create_flags & IB_WQ_FLAGS_DELAY_DROP) { in create_rq()
5286 if (!err && init_attr->create_flags & IB_WQ_FLAGS_DELAY_DROP) { in create_rq()
5337 struct ib_wq_init_attr *init_attr, in prepare_user_rq() argument
5402 err = set_user_rq_size(dev, init_attr, &ucmd, rwq); in prepare_user_rq()
5419 struct ib_wq_init_attr *init_attr, in mlx5_ib_create_wq() argument
5436 init_attr->create_flags & IB_WQ_FLAGS_DELAY_DROP) in mlx5_ib_create_wq()
5440 switch (init_attr->wq_type) { in mlx5_ib_create_wq()
5445 err = prepare_user_rq(pd, init_attr, udata, rwq); in mlx5_ib_create_wq()
5448 err = create_rq(rwq, pd, init_attr); in mlx5_ib_create_wq()
5454 init_attr->wq_type); in mlx5_ib_create_wq()
5469 rwq->ibwq.event_handler = init_attr->event_handler; in mlx5_ib_create_wq()
5496 struct ib_rwq_ind_table_init_attr *init_attr, in mlx5_ib_create_rwq_ind_table() argument
5502 int sz = 1 << init_attr->log_ind_tbl_size; in mlx5_ib_create_rwq_ind_table()
5516 if (init_attr->log_ind_tbl_size > in mlx5_ib_create_rwq_ind_table()
5519 init_attr->log_ind_tbl_size, in mlx5_ib_create_rwq_ind_table()
5540 MLX5_SET(rqtc, rqtc, rq_num[i], init_attr->ind_tbl[i]->wq_num); in mlx5_ib_create_rwq_ind_table()
5542 rwq_ind_tbl->uid = to_mpd(init_attr->ind_tbl[0]->pd)->uid; in mlx5_ib_create_rwq_ind_table()