Lines Matching refs:MLX5_SET
971 MLX5_SET(create_qp_in, *in, uid, uid); in _create_user_qp()
978 MLX5_SET(qpc, qpc, log_page_size, page_shift - MLX5_ADAPTER_PAGE_SHIFT); in _create_user_qp()
979 MLX5_SET(qpc, qpc, page_offset, offset); in _create_user_qp()
981 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_user_qp()
1104 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_kernel_qp()
1105 MLX5_SET(qpc, qpc, log_page_size, qp->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in _create_kernel_qp()
1108 MLX5_SET(qpc, qpc, fre, 1); in _create_kernel_qp()
1109 MLX5_SET(qpc, qpc, rlky, 1); in _create_kernel_qp()
1112 MLX5_SET(qpc, qpc, deth_sqpn, 1); in _create_kernel_qp()
1178 MLX5_SET(create_tis_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_tis()
1179 MLX5_SET(tisc, tisc, transport_domain, tdn); in create_raw_packet_qp_tis()
1181 MLX5_SET(tisc, tisc, underlay_qpn, qp->underlay_qpn); in create_raw_packet_qp_tis()
1230 MLX5_SET(create_sq_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_sq()
1232 MLX5_SET(sqc, sqc, flush_in_error_en, 1); in create_raw_packet_qp_sq()
1234 MLX5_SET(sqc, sqc, allow_multi_pkt_send_wqe, 1); in create_raw_packet_qp_sq()
1235 MLX5_SET(sqc, sqc, state, MLX5_SQC_STATE_RST); in create_raw_packet_qp_sq()
1236 MLX5_SET(sqc, sqc, user_index, MLX5_GET(qpc, qpc, user_index)); in create_raw_packet_qp_sq()
1237 MLX5_SET(sqc, sqc, cqn, MLX5_GET(qpc, qpc, cqn_snd)); in create_raw_packet_qp_sq()
1238 MLX5_SET(sqc, sqc, tis_lst_sz, 1); in create_raw_packet_qp_sq()
1239 MLX5_SET(sqc, sqc, tis_num_0, sq->tisn); in create_raw_packet_qp_sq()
1242 MLX5_SET(sqc, sqc, allow_swp, 1); in create_raw_packet_qp_sq()
1245 MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_CYCLIC); in create_raw_packet_qp_sq()
1246 MLX5_SET(wq, wq, pd, MLX5_GET(qpc, qpc, pd)); in create_raw_packet_qp_sq()
1247 MLX5_SET(wq, wq, uar_page, MLX5_GET(qpc, qpc, uar_page)); in create_raw_packet_qp_sq()
1249 MLX5_SET(wq, wq, log_wq_stride, ilog2(MLX5_SEND_WQE_BB)); in create_raw_packet_qp_sq()
1250 MLX5_SET(wq, wq, log_wq_sz, MLX5_GET(qpc, qpc, log_sq_size)); in create_raw_packet_qp_sq()
1251 MLX5_SET(wq, wq, log_wq_pg_sz, page_shift - MLX5_ADAPTER_PAGE_SHIFT); in create_raw_packet_qp_sq()
1252 MLX5_SET(wq, wq, page_offset, offset); in create_raw_packet_qp_sq()
1319 MLX5_SET(create_rq_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_rq()
1322 MLX5_SET(rqc, rqc, vsd, 1); in create_raw_packet_qp_rq()
1323 MLX5_SET(rqc, rqc, mem_rq_type, MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE); in create_raw_packet_qp_rq()
1324 MLX5_SET(rqc, rqc, state, MLX5_RQC_STATE_RST); in create_raw_packet_qp_rq()
1325 MLX5_SET(rqc, rqc, flush_in_error_en, 1); in create_raw_packet_qp_rq()
1326 MLX5_SET(rqc, rqc, user_index, MLX5_GET(qpc, qpc, user_index)); in create_raw_packet_qp_rq()
1327 MLX5_SET(rqc, rqc, cqn, MLX5_GET(qpc, qpc, cqn_rcv)); in create_raw_packet_qp_rq()
1330 MLX5_SET(rqc, rqc, scatter_fcs, 1); in create_raw_packet_qp_rq()
1333 MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_CYCLIC); in create_raw_packet_qp_rq()
1335 MLX5_SET(wq, wq, end_padding_mode, MLX5_WQ_END_PAD_MODE_ALIGN); in create_raw_packet_qp_rq()
1336 MLX5_SET(wq, wq, page_offset, MLX5_GET(qpc, qpc, page_offset)); in create_raw_packet_qp_rq()
1337 MLX5_SET(wq, wq, pd, MLX5_GET(qpc, qpc, pd)); in create_raw_packet_qp_rq()
1339 MLX5_SET(wq, wq, log_wq_stride, MLX5_GET(qpc, qpc, log_rq_stride) + 4); in create_raw_packet_qp_rq()
1340 MLX5_SET(wq, wq, log_wq_pg_sz, MLX5_GET(qpc, qpc, log_page_size)); in create_raw_packet_qp_rq()
1341 MLX5_SET(wq, wq, log_wq_sz, MLX5_GET(qpc, qpc, log_rq_size)); in create_raw_packet_qp_rq()
1387 MLX5_SET(create_tir_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_tir()
1389 MLX5_SET(tirc, tirc, disp_type, MLX5_TIRC_DISP_TYPE_DIRECT); in create_raw_packet_qp_tir()
1390 MLX5_SET(tirc, tirc, inline_rqn, rq->base.mqp.qpn); in create_raw_packet_qp_tir()
1391 MLX5_SET(tirc, tirc, transport_domain, tdn); in create_raw_packet_qp_tir()
1393 MLX5_SET(tirc, tirc, tunneled_offload_en, 1); in create_raw_packet_qp_tir()
1406 MLX5_SET(tirc, tirc, self_lb_block, lb_flag); in create_raw_packet_qp_tir()
1407 MLX5_SET(create_tir_in, in, opcode, MLX5_CMD_OP_CREATE_TIR); in create_raw_packet_qp_tir()
1613 MLX5_SET(create_tir_in, in, uid, to_mpd(pd)->uid); in create_rss_raw_qp_tir()
1615 MLX5_SET(tirc, tirc, disp_type, in create_rss_raw_qp_tir()
1617 MLX5_SET(tirc, tirc, indirect_table, in create_rss_raw_qp_tir()
1619 MLX5_SET(tirc, tirc, transport_domain, tdn); in create_rss_raw_qp_tir()
1624 MLX5_SET(tirc, tirc, tunneled_offload_en, 1); in create_rss_raw_qp_tir()
1626 MLX5_SET(tirc, tirc, self_lb_block, lb_flag); in create_rss_raw_qp_tir()
1644 MLX5_SET(tirc, tirc, rx_hash_fn, MLX5_RX_HASH_FN_TOEPLITZ); in create_rss_raw_qp_tir()
1672 MLX5_SET(rx_hash_field_select, hfso, l3_prot_type, in create_rss_raw_qp_tir()
1676 MLX5_SET(rx_hash_field_select, hfso, l3_prot_type, in create_rss_raw_qp_tir()
1696 MLX5_SET(rx_hash_field_select, hfso, l4_prot_type, in create_rss_raw_qp_tir()
1700 MLX5_SET(rx_hash_field_select, hfso, l4_prot_type, in create_rss_raw_qp_tir()
1722 MLX5_SET(rx_hash_field_select, hfso, selected_fields, selected_fields); in create_rss_raw_qp_tir()
1725 MLX5_SET(create_tir_in, in, opcode, MLX5_CMD_OP_CREATE_TIR); in create_rss_raw_qp_tir()
1786 MLX5_SET(qpc, qpc, cs_req, MLX5_REQ_SCAT_DATA64_CQE); in configure_requester_scat_cqe()
1792 MLX5_SET(qpc, qpc, cs_req, MLX5_REQ_SCAT_DATA32_CQE); in configure_requester_scat_cqe()
1866 MLX5_SET(create_qp_in, in, ece, ucmd->ece_options); in create_xrc_tgt_qp()
1869 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_XRC); in create_xrc_tgt_qp()
1870 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_xrc_tgt_qp()
1871 MLX5_SET(qpc, qpc, pd, to_mpd(devr->p0)->pdn); in create_xrc_tgt_qp()
1874 MLX5_SET(qpc, qpc, block_lb_mc, 1); in create_xrc_tgt_qp()
1876 MLX5_SET(qpc, qpc, cd_master, 1); in create_xrc_tgt_qp()
1878 MLX5_SET(qpc, qpc, cd_slave_send, 1); in create_xrc_tgt_qp()
1880 MLX5_SET(qpc, qpc, cd_slave_receive, 1); in create_xrc_tgt_qp()
1882 MLX5_SET(qpc, qpc, rq_type, MLX5_SRQ_RQ); in create_xrc_tgt_qp()
1883 MLX5_SET(qpc, qpc, no_sq, 1); in create_xrc_tgt_qp()
1884 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_xrc_tgt_qp()
1885 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(devr->c0)->mcq.cqn); in create_xrc_tgt_qp()
1886 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s0)->msrq.srqn); in create_xrc_tgt_qp()
1887 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(attr->xrcd)->xrcdn); in create_xrc_tgt_qp()
1892 MLX5_SET(qpc, qpc, user_index, uidx); in create_xrc_tgt_qp()
1895 MLX5_SET(qpc, qpc, end_padding_mode, in create_xrc_tgt_qp()
1982 MLX5_SET(create_qp_in, in, ece, ucmd->ece_options); in create_user_qp()
1985 MLX5_SET(qpc, qpc, st, mlx5_st); in create_user_qp()
1986 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_user_qp()
1987 MLX5_SET(qpc, qpc, pd, to_mpd(pd)->pdn); in create_user_qp()
1990 MLX5_SET(qpc, qpc, wq_signature, 1); in create_user_qp()
1993 MLX5_SET(qpc, qpc, block_lb_mc, 1); in create_user_qp()
1996 MLX5_SET(qpc, qpc, cd_master, 1); in create_user_qp()
1998 MLX5_SET(qpc, qpc, cd_slave_send, 1); in create_user_qp()
2000 MLX5_SET(qpc, qpc, cd_slave_receive, 1); in create_user_qp()
2002 MLX5_SET(qpc, qpc, req_e2e_credit_mode, 1); in create_user_qp()
2008 MLX5_SET(qpc, qpc, cs_res, in create_user_qp()
2017 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_user_qp()
2018 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_user_qp()
2021 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, init_attr)); in create_user_qp()
2024 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_user_qp()
2026 MLX5_SET(qpc, qpc, no_sq, 1); in create_user_qp()
2029 MLX5_SET(qpc, qpc, offload_type, in create_user_qp()
2036 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_user_qp()
2037 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2038 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s0)->msrq.srqn); in create_user_qp()
2042 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_user_qp()
2043 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(init_attr->srq)->msrq.srqn); in create_user_qp()
2045 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2046 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s1)->msrq.srqn); in create_user_qp()
2051 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(init_attr->send_cq)->mcq.cqn); in create_user_qp()
2054 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(init_attr->recv_cq)->mcq.cqn); in create_user_qp()
2060 MLX5_SET(qpc, qpc, user_index, uidx); in create_user_qp()
2064 MLX5_SET(qpc, qpc, end_padding_mode, in create_user_qp()
2159 MLX5_SET(qpc, qpc, st, mlx5_st); in create_kernel_qp()
2160 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_kernel_qp()
2163 MLX5_SET(qpc, qpc, pd, to_mpd(pd ? pd : devr->p0)->pdn); in create_kernel_qp()
2165 MLX5_SET(qpc, qpc, latency_sensitive, 1); in create_kernel_qp()
2169 MLX5_SET(qpc, qpc, block_lb_mc, 1); in create_kernel_qp()
2172 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_kernel_qp()
2173 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_kernel_qp()
2176 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, attr)); in create_kernel_qp()
2179 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_kernel_qp()
2181 MLX5_SET(qpc, qpc, no_sq, 1); in create_kernel_qp()
2184 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_kernel_qp()
2185 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, in create_kernel_qp()
2188 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_kernel_qp()
2189 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, in create_kernel_qp()
2194 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(attr->send_cq)->mcq.cqn); in create_kernel_qp()
2197 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(attr->recv_cq)->mcq.cqn); in create_kernel_qp()
2203 MLX5_SET(qpc, qpc, user_index, uidx); in create_kernel_qp()
2207 MLX5_SET(qpc, qpc, ulp_stateless_offload_mode, 1); in create_kernel_qp()
2421 MLX5_SET(create_dct_in, qp->dct.in, uid, to_mpd(pd)->uid); in create_dct()
2423 MLX5_SET(dctc, dctc, pd, to_mpd(pd)->pdn); in create_dct()
2424 MLX5_SET(dctc, dctc, srqn_xrqn, to_msrq(attr->srq)->msrq.srqn); in create_dct()
2425 MLX5_SET(dctc, dctc, cqn, to_mcq(attr->recv_cq)->mcq.cqn); in create_dct()
2427 MLX5_SET(dctc, dctc, user_index, uidx); in create_dct()
2429 MLX5_SET(dctc, dctc, ece, ucmd->ece_options); in create_dct()
2435 MLX5_SET(dctc, dctc, cs_res, MLX5_RES_SCAT_DATA64_CQE); in create_dct()
3065 MLX5_SET(qpc, qpc, rre, !!(access_flags & IB_ACCESS_REMOTE_READ)); in set_qpc_atomic_flags()
3074 MLX5_SET(qpc, qpc, rae, 1); in set_qpc_atomic_flags()
3075 MLX5_SET(qpc, qpc, atomic_mode, atomic_mode); in set_qpc_atomic_flags()
3078 MLX5_SET(qpc, qpc, rwe, !!(access_flags & IB_ACCESS_REMOTE_WRITE)); in set_qpc_atomic_flags()
3142 MLX5_SET(modify_tis_in, in, bitmask.prio, 1); in modify_raw_packet_eth_prio()
3143 MLX5_SET(modify_tis_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_eth_prio()
3146 MLX5_SET(tisc, tisc, prio, ((sl & 0x7) << 1)); in modify_raw_packet_eth_prio()
3169 MLX5_SET(modify_tis_in, in, bitmask.lag_tx_port_affinity, 1); in modify_raw_packet_tx_affinity()
3170 MLX5_SET(modify_tis_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_tx_affinity()
3173 MLX5_SET(tisc, tisc, lag_tx_port_affinity, tx_affinity); in modify_raw_packet_tx_affinity()
3191 MLX5_SET(ads, path, udp_sport, rdma_flow_label_to_udp_sport(fl)); in mlx5_set_path_udp_sport()
3206 MLX5_SET(ads, path, pkey_index, in mlx5_set_path()
3234 MLX5_SET(ads, path, eth_prio, sl & 0x7); in mlx5_set_path()
3237 MLX5_SET(ads, path, dscp, grh->traffic_class >> 2); in mlx5_set_path()
3239 MLX5_SET(ads, path, fl, !!(path_flags & MLX5_PATH_FLAG_FL)); in mlx5_set_path()
3240 MLX5_SET(ads, path, free_ar, in mlx5_set_path()
3242 MLX5_SET(ads, path, rlid, rdma_ah_get_dlid(ah)); in mlx5_set_path()
3243 MLX5_SET(ads, path, mlid, rdma_ah_get_path_bits(ah)); in mlx5_set_path()
3244 MLX5_SET(ads, path, grh, !!(ah_flags & IB_AH_GRH)); in mlx5_set_path()
3245 MLX5_SET(ads, path, sl, sl); in mlx5_set_path()
3249 MLX5_SET(ads, path, src_addr_index, grh->sgid_index); in mlx5_set_path()
3250 MLX5_SET(ads, path, hop_limit, grh->hop_limit); in mlx5_set_path()
3251 MLX5_SET(ads, path, tclass, grh->traffic_class); in mlx5_set_path()
3252 MLX5_SET(ads, path, flow_label, grh->flow_label); in mlx5_set_path()
3260 MLX5_SET(ads, path, stat_rate, err); in mlx5_set_path()
3261 MLX5_SET(ads, path, vhca_port_num, port); in mlx5_set_path()
3264 MLX5_SET(ads, path, ack_timeout, in mlx5_set_path()
3459 MLX5_SET(modify_rq_in, in, rq_state, rq->state); in modify_raw_packet_qp_rq()
3460 MLX5_SET(modify_rq_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_qp_rq()
3463 MLX5_SET(rqc, rqc, state, new_state); in modify_raw_packet_qp_rq()
3469 MLX5_SET(rqc, rqc, counter_set_id, raw_qp_param->rq_q_ctr_id); in modify_raw_packet_qp_rq()
3506 MLX5_SET(modify_sq_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_qp_sq()
3507 MLX5_SET(modify_sq_in, in, sq_state, sq->state); in modify_raw_packet_qp_sq()
3510 MLX5_SET(sqc, sqc, state, new_state); in modify_raw_packet_qp_sq()
3536 MLX5_SET(sqc, sqc, packet_pacing_rate_limit_index, rl_index); in modify_raw_packet_qp_sq()
3729 MLX5_SET(rts2rts_qp_in, in, opcode, MLX5_CMD_OP_RTS2RTS_QP); in __mlx5_ib_qp_set_counter()
3730 MLX5_SET(rts2rts_qp_in, in, qpn, base->mqp.qpn); in __mlx5_ib_qp_set_counter()
3731 MLX5_SET(rts2rts_qp_in, in, uid, base->mqp.uid); in __mlx5_ib_qp_set_counter()
3732 MLX5_SET(rts2rts_qp_in, in, opt_param_mask, in __mlx5_ib_qp_set_counter()
3736 MLX5_SET(qpc, qpc, counter_set_id, set_id); in __mlx5_ib_qp_set_counter()
3808 MLX5_SET(qpc, qpc, st, mlx5_st); in __mlx5_ib_modify_qp()
3811 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in __mlx5_ib_modify_qp()
3815 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in __mlx5_ib_modify_qp()
3818 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_REARM); in __mlx5_ib_modify_qp()
3821 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_ARMED); in __mlx5_ib_modify_qp()
3830 MLX5_SET(qpc, qpc, lag_tx_port_affinity, tx_affinity); in __mlx5_ib_modify_qp()
3836 MLX5_SET(qpc, qpc, mtu, IB_MTU_256); in __mlx5_ib_modify_qp()
3837 MLX5_SET(qpc, qpc, log_msg_max, 8); in __mlx5_ib_modify_qp()
3841 MLX5_SET(qpc, qpc, mtu, IB_MTU_4096); in __mlx5_ib_modify_qp()
3842 MLX5_SET(qpc, qpc, log_msg_max, 12); in __mlx5_ib_modify_qp()
3850 MLX5_SET(qpc, qpc, mtu, attr->path_mtu); in __mlx5_ib_modify_qp()
3851 MLX5_SET(qpc, qpc, log_msg_max, in __mlx5_ib_modify_qp()
3856 MLX5_SET(qpc, qpc, remote_qpn, attr->dest_qp_num); in __mlx5_ib_modify_qp()
3862 MLX5_SET(ads, pri_path, pkey_index, attr->pkey_index); in __mlx5_ib_modify_qp()
3867 MLX5_SET(ads, pri_path, vhca_port_num, qp->port); in __mlx5_ib_modify_qp()
3870 MLX5_SET(ads, pri_path, vhca_port_num, attr->port_num); in __mlx5_ib_modify_qp()
3882 MLX5_SET(ads, pri_path, ack_timeout, attr->timeout); in __mlx5_ib_modify_qp()
3897 MLX5_SET(qpc, qpc, pd, pd ? pd->pdn : to_mpd(dev->devr.p0)->pdn); in __mlx5_ib_modify_qp()
3899 MLX5_SET(qpc, qpc, cqn_snd, send_cq->mcq.cqn); in __mlx5_ib_modify_qp()
3901 MLX5_SET(qpc, qpc, cqn_rcv, recv_cq->mcq.cqn); in __mlx5_ib_modify_qp()
3903 MLX5_SET(qpc, qpc, log_ack_req_freq, MLX5_IB_ACK_REQ_FREQ); in __mlx5_ib_modify_qp()
3906 MLX5_SET(qpc, qpc, rnr_retry, attr->rnr_retry); in __mlx5_ib_modify_qp()
3909 MLX5_SET(qpc, qpc, retry_count, attr->retry_cnt); in __mlx5_ib_modify_qp()
3912 MLX5_SET(qpc, qpc, log_sra_max, ilog2(attr->max_rd_atomic)); in __mlx5_ib_modify_qp()
3915 MLX5_SET(qpc, qpc, next_send_psn, attr->sq_psn); in __mlx5_ib_modify_qp()
3918 MLX5_SET(qpc, qpc, log_rra_max, in __mlx5_ib_modify_qp()
3928 MLX5_SET(qpc, qpc, min_rnr_nak, attr->min_rnr_timer); in __mlx5_ib_modify_qp()
3931 MLX5_SET(qpc, qpc, next_rcv_psn, attr->rq_psn); in __mlx5_ib_modify_qp()
3934 MLX5_SET(qpc, qpc, q_key, attr->qkey); in __mlx5_ib_modify_qp()
3951 MLX5_SET(qpc, qpc, counter_set_id, set_id); in __mlx5_ib_modify_qp()
3955 MLX5_SET(qpc, qpc, rlky, 1); in __mlx5_ib_modify_qp()
3958 MLX5_SET(qpc, qpc, deth_sqpn, 1); in __mlx5_ib_modify_qp()
4153 MLX5_SET(dctc, dctc, ece, ucmd->ece_options); in mlx5_ib_modify_dct()
4169 MLX5_SET(dctc, dctc, rre, 1); in mlx5_ib_modify_dct()
4171 MLX5_SET(dctc, dctc, rwe, 1); in mlx5_ib_modify_dct()
4179 MLX5_SET(dctc, dctc, atomic_mode, atomic_mode); in mlx5_ib_modify_dct()
4180 MLX5_SET(dctc, dctc, rae, 1); in mlx5_ib_modify_dct()
4182 MLX5_SET(dctc, dctc, pkey_index, attr->pkey_index); in mlx5_ib_modify_dct()
4184 MLX5_SET(dctc, dctc, port, in mlx5_ib_modify_dct()
4187 MLX5_SET(dctc, dctc, port, attr->port_num); in mlx5_ib_modify_dct()
4190 MLX5_SET(dctc, dctc, counter_set_id, set_id); in mlx5_ib_modify_dct()
4209 MLX5_SET(dctc, dctc, min_rnr_nak, attr->min_rnr_timer); in mlx5_ib_modify_dct()
4210 MLX5_SET(dctc, dctc, tclass, attr->ah_attr.grh.traffic_class); in mlx5_ib_modify_dct()
4211 MLX5_SET(dctc, dctc, flow_label, attr->ah_attr.grh.flow_label); in mlx5_ib_modify_dct()
4212 MLX5_SET(dctc, dctc, mtu, attr->path_mtu); in mlx5_ib_modify_dct()
4213 MLX5_SET(dctc, dctc, my_addr_index, attr->ah_attr.grh.sgid_index); in mlx5_ib_modify_dct()
4214 MLX5_SET(dctc, dctc, hop_limit, attr->ah_attr.grh.hop_limit); in mlx5_ib_modify_dct()
4812 MLX5_SET(create_rq_in, in, uid, to_mpd(pd)->uid); in create_rq()
4814 MLX5_SET(rqc, rqc, mem_rq_type, in create_rq()
4816 MLX5_SET(rqc, rqc, user_index, rwq->user_index); in create_rq()
4817 MLX5_SET(rqc, rqc, cqn, to_mcq(init_attr->cq)->mcq.cqn); in create_rq()
4818 MLX5_SET(rqc, rqc, state, MLX5_RQC_STATE_RST); in create_rq()
4819 MLX5_SET(rqc, rqc, flush_in_error_en, 1); in create_rq()
4821 MLX5_SET(wq, wq, wq_type, in create_rq()
4830 MLX5_SET(wq, wq, end_padding_mode, MLX5_WQ_END_PAD_MODE_ALIGN); in create_rq()
4833 MLX5_SET(wq, wq, log_wq_stride, rwq->log_rq_stride); in create_rq()
4843 MLX5_SET(wq, wq, two_byte_shift_en, rwq->two_byte_shift_en); in create_rq()
4844 MLX5_SET(wq, wq, log_wqe_stride_size, in create_rq()
4847 MLX5_SET(wq, wq, log_wqe_num_of_strides, in create_rq()
4851 MLX5_SET(wq, wq, log_wq_sz, rwq->log_rq_size); in create_rq()
4852 MLX5_SET(wq, wq, pd, to_mpd(pd)->pdn); in create_rq()
4853 MLX5_SET(wq, wq, page_offset, rwq->rq_page_offset); in create_rq()
4854 MLX5_SET(wq, wq, log_wq_pg_sz, rwq->log_page_size); in create_rq()
4855 MLX5_SET(wq, wq, wq_signature, rwq->wq_sig); in create_rq()
4865 MLX5_SET(rqc, rqc, vsd, 1); in create_rq()
4873 MLX5_SET(rqc, rqc, scatter_fcs, 1); in create_rq()
4882 MLX5_SET(rqc, rqc, delay_drop_en, 1); in create_rq()
5137 MLX5_SET(rqtc, rqtc, rqt_actual_size, sz); in mlx5_ib_create_rwq_ind_table()
5138 MLX5_SET(rqtc, rqtc, rqt_max_size, sz); in mlx5_ib_create_rwq_ind_table()
5141 MLX5_SET(rqtc, rqtc, rq_num[i], init_attr->ind_tbl[i]->wq_num); in mlx5_ib_create_rwq_ind_table()
5144 MLX5_SET(create_rqt_in, in, uid, rwq_ind_tbl->uid); in mlx5_ib_create_rwq_ind_table()
5220 MLX5_SET(modify_rq_in, in, rq_state, curr_wq_state); in mlx5_ib_modify_wq()
5221 MLX5_SET(modify_rq_in, in, uid, to_mpd(wq->pd)->uid); in mlx5_ib_modify_wq()
5222 MLX5_SET(rqc, rqc, state, wq_state); in mlx5_ib_modify_wq()
5235 MLX5_SET(rqc, rqc, vsd, in mlx5_ib_modify_wq()
5253 MLX5_SET(rqc, rqc, counter_set_id, set_id); in mlx5_ib_modify_wq()