Lines Matching refs:MLX5_SET
950 MLX5_SET(create_qp_in, *in, uid, uid); in _create_user_qp()
955 MLX5_SET(qpc, qpc, log_page_size, in _create_user_qp()
957 MLX5_SET(qpc, qpc, page_offset, page_offset_quantized); in _create_user_qp()
959 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_user_qp()
1082 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_kernel_qp()
1083 MLX5_SET(qpc, qpc, ts_format, mlx5_get_qp_default_ts(dev->mdev)); in _create_kernel_qp()
1084 MLX5_SET(qpc, qpc, log_page_size, qp->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in _create_kernel_qp()
1087 MLX5_SET(qpc, qpc, fre, 1); in _create_kernel_qp()
1088 MLX5_SET(qpc, qpc, rlky, 1); in _create_kernel_qp()
1091 MLX5_SET(qpc, qpc, deth_sqpn, 1); in _create_kernel_qp()
1157 MLX5_SET(create_tis_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_tis()
1158 MLX5_SET(tisc, tisc, transport_domain, tdn); in create_raw_packet_qp_tis()
1160 MLX5_SET(tisc, tisc, underlay_qpn, qp->underlay_qpn); in create_raw_packet_qp_tis()
1295 MLX5_SET(create_sq_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_sq()
1297 MLX5_SET(sqc, sqc, flush_in_error_en, 1); in create_raw_packet_qp_sq()
1299 MLX5_SET(sqc, sqc, allow_multi_pkt_send_wqe, 1); in create_raw_packet_qp_sq()
1300 MLX5_SET(sqc, sqc, state, MLX5_SQC_STATE_RST); in create_raw_packet_qp_sq()
1301 MLX5_SET(sqc, sqc, ts_format, ts_format); in create_raw_packet_qp_sq()
1302 MLX5_SET(sqc, sqc, user_index, MLX5_GET(qpc, qpc, user_index)); in create_raw_packet_qp_sq()
1303 MLX5_SET(sqc, sqc, cqn, MLX5_GET(qpc, qpc, cqn_snd)); in create_raw_packet_qp_sq()
1304 MLX5_SET(sqc, sqc, tis_lst_sz, 1); in create_raw_packet_qp_sq()
1305 MLX5_SET(sqc, sqc, tis_num_0, sq->tisn); in create_raw_packet_qp_sq()
1308 MLX5_SET(sqc, sqc, allow_swp, 1); in create_raw_packet_qp_sq()
1311 MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_CYCLIC); in create_raw_packet_qp_sq()
1312 MLX5_SET(wq, wq, pd, MLX5_GET(qpc, qpc, pd)); in create_raw_packet_qp_sq()
1313 MLX5_SET(wq, wq, uar_page, MLX5_GET(qpc, qpc, uar_page)); in create_raw_packet_qp_sq()
1315 MLX5_SET(wq, wq, log_wq_stride, ilog2(MLX5_SEND_WQE_BB)); in create_raw_packet_qp_sq()
1316 MLX5_SET(wq, wq, log_wq_sz, MLX5_GET(qpc, qpc, log_sq_size)); in create_raw_packet_qp_sq()
1317 MLX5_SET(wq, wq, log_wq_pg_sz, in create_raw_packet_qp_sq()
1319 MLX5_SET(wq, wq, page_offset, page_offset_quantized); in create_raw_packet_qp_sq()
1382 MLX5_SET(create_rq_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_rq()
1385 MLX5_SET(rqc, rqc, vsd, 1); in create_raw_packet_qp_rq()
1386 MLX5_SET(rqc, rqc, mem_rq_type, MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE); in create_raw_packet_qp_rq()
1387 MLX5_SET(rqc, rqc, state, MLX5_RQC_STATE_RST); in create_raw_packet_qp_rq()
1388 MLX5_SET(rqc, rqc, ts_format, ts_format); in create_raw_packet_qp_rq()
1389 MLX5_SET(rqc, rqc, flush_in_error_en, 1); in create_raw_packet_qp_rq()
1390 MLX5_SET(rqc, rqc, user_index, MLX5_GET(qpc, qpc, user_index)); in create_raw_packet_qp_rq()
1391 MLX5_SET(rqc, rqc, cqn, MLX5_GET(qpc, qpc, cqn_rcv)); in create_raw_packet_qp_rq()
1394 MLX5_SET(rqc, rqc, scatter_fcs, 1); in create_raw_packet_qp_rq()
1397 MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_CYCLIC); in create_raw_packet_qp_rq()
1399 MLX5_SET(wq, wq, end_padding_mode, MLX5_WQ_END_PAD_MODE_ALIGN); in create_raw_packet_qp_rq()
1400 MLX5_SET(wq, wq, page_offset, page_offset_quantized); in create_raw_packet_qp_rq()
1401 MLX5_SET(wq, wq, pd, MLX5_GET(qpc, qpc, pd)); in create_raw_packet_qp_rq()
1403 MLX5_SET(wq, wq, log_wq_stride, MLX5_GET(qpc, qpc, log_rq_stride) + 4); in create_raw_packet_qp_rq()
1404 MLX5_SET(wq, wq, log_wq_pg_sz, in create_raw_packet_qp_rq()
1406 MLX5_SET(wq, wq, log_wq_sz, MLX5_GET(qpc, qpc, log_rq_size)); in create_raw_packet_qp_rq()
1451 MLX5_SET(create_tir_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_tir()
1453 MLX5_SET(tirc, tirc, disp_type, MLX5_TIRC_DISP_TYPE_DIRECT); in create_raw_packet_qp_tir()
1454 MLX5_SET(tirc, tirc, inline_rqn, rq->base.mqp.qpn); in create_raw_packet_qp_tir()
1455 MLX5_SET(tirc, tirc, transport_domain, tdn); in create_raw_packet_qp_tir()
1457 MLX5_SET(tirc, tirc, tunneled_offload_en, 1); in create_raw_packet_qp_tir()
1470 MLX5_SET(tirc, tirc, self_lb_block, lb_flag); in create_raw_packet_qp_tir()
1471 MLX5_SET(create_tir_in, in, opcode, MLX5_CMD_OP_CREATE_TIR); in create_raw_packet_qp_tir()
1679 MLX5_SET(create_tir_in, in, uid, to_mpd(pd)->uid); in create_rss_raw_qp_tir()
1681 MLX5_SET(tirc, tirc, disp_type, in create_rss_raw_qp_tir()
1683 MLX5_SET(tirc, tirc, indirect_table, in create_rss_raw_qp_tir()
1685 MLX5_SET(tirc, tirc, transport_domain, tdn); in create_rss_raw_qp_tir()
1690 MLX5_SET(tirc, tirc, tunneled_offload_en, 1); in create_rss_raw_qp_tir()
1692 MLX5_SET(tirc, tirc, self_lb_block, lb_flag); in create_rss_raw_qp_tir()
1710 MLX5_SET(tirc, tirc, rx_hash_fn, MLX5_RX_HASH_FN_TOEPLITZ); in create_rss_raw_qp_tir()
1738 MLX5_SET(rx_hash_field_select, hfso, l3_prot_type, in create_rss_raw_qp_tir()
1742 MLX5_SET(rx_hash_field_select, hfso, l3_prot_type, in create_rss_raw_qp_tir()
1762 MLX5_SET(rx_hash_field_select, hfso, l4_prot_type, in create_rss_raw_qp_tir()
1766 MLX5_SET(rx_hash_field_select, hfso, l4_prot_type, in create_rss_raw_qp_tir()
1788 MLX5_SET(rx_hash_field_select, hfso, selected_fields, selected_fields); in create_rss_raw_qp_tir()
1791 MLX5_SET(create_tir_in, in, opcode, MLX5_CMD_OP_CREATE_TIR); in create_rss_raw_qp_tir()
1852 MLX5_SET(qpc, qpc, cs_req, MLX5_REQ_SCAT_DATA64_CQE); in configure_requester_scat_cqe()
1858 MLX5_SET(qpc, qpc, cs_req, MLX5_REQ_SCAT_DATA32_CQE); in configure_requester_scat_cqe()
1932 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_XRC); in create_xrc_tgt_qp()
1933 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_xrc_tgt_qp()
1934 MLX5_SET(qpc, qpc, pd, to_mpd(devr->p0)->pdn); in create_xrc_tgt_qp()
1937 MLX5_SET(qpc, qpc, block_lb_mc, 1); in create_xrc_tgt_qp()
1939 MLX5_SET(qpc, qpc, cd_master, 1); in create_xrc_tgt_qp()
1941 MLX5_SET(qpc, qpc, cd_slave_send, 1); in create_xrc_tgt_qp()
1943 MLX5_SET(qpc, qpc, cd_slave_receive, 1); in create_xrc_tgt_qp()
1945 MLX5_SET(qpc, qpc, ts_format, mlx5_get_qp_default_ts(dev->mdev)); in create_xrc_tgt_qp()
1946 MLX5_SET(qpc, qpc, rq_type, MLX5_SRQ_RQ); in create_xrc_tgt_qp()
1947 MLX5_SET(qpc, qpc, no_sq, 1); in create_xrc_tgt_qp()
1948 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_xrc_tgt_qp()
1949 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(devr->c0)->mcq.cqn); in create_xrc_tgt_qp()
1950 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s0)->msrq.srqn); in create_xrc_tgt_qp()
1951 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(attr->xrcd)->xrcdn); in create_xrc_tgt_qp()
1956 MLX5_SET(qpc, qpc, user_index, uidx); in create_xrc_tgt_qp()
1959 MLX5_SET(qpc, qpc, end_padding_mode, in create_xrc_tgt_qp()
2044 MLX5_SET(create_qp_in, in, ece, ucmd->ece_options); in create_dci()
2047 MLX5_SET(qpc, qpc, st, mlx5_st); in create_dci()
2048 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_dci()
2049 MLX5_SET(qpc, qpc, pd, to_mpd(pd)->pdn); in create_dci()
2052 MLX5_SET(qpc, qpc, wq_signature, 1); in create_dci()
2055 MLX5_SET(qpc, qpc, cd_master, 1); in create_dci()
2057 MLX5_SET(qpc, qpc, cd_slave_send, 1); in create_dci()
2062 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_dci()
2063 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_dci()
2067 MLX5_SET(qpc, qpc, log_num_dci_stream_channels, in create_dci()
2069 MLX5_SET(qpc, qpc, log_num_dci_errored_streams, in create_dci()
2073 MLX5_SET(qpc, qpc, ts_format, ts_format); in create_dci()
2074 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, init_attr)); in create_dci()
2076 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_dci()
2080 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_dci()
2081 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, in create_dci()
2084 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_dci()
2085 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, in create_dci()
2090 MLX5_SET(qpc, qpc, cqn_snd, in create_dci()
2094 MLX5_SET(qpc, qpc, cqn_rcv, in create_dci()
2101 MLX5_SET(qpc, qpc, user_index, uidx); in create_dci()
2104 MLX5_SET(qpc, qpc, end_padding_mode, in create_dci()
2215 MLX5_SET(create_qp_in, in, ece, ucmd->ece_options); in create_user_qp()
2218 MLX5_SET(qpc, qpc, st, mlx5_st); in create_user_qp()
2219 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_user_qp()
2220 MLX5_SET(qpc, qpc, pd, to_mpd(pd)->pdn); in create_user_qp()
2223 MLX5_SET(qpc, qpc, wq_signature, 1); in create_user_qp()
2226 MLX5_SET(qpc, qpc, block_lb_mc, 1); in create_user_qp()
2229 MLX5_SET(qpc, qpc, cd_master, 1); in create_user_qp()
2231 MLX5_SET(qpc, qpc, cd_slave_send, 1); in create_user_qp()
2233 MLX5_SET(qpc, qpc, cd_slave_receive, 1); in create_user_qp()
2235 MLX5_SET(qpc, qpc, req_e2e_credit_mode, 1); in create_user_qp()
2241 MLX5_SET(qpc, qpc, cs_res, in create_user_qp()
2250 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_user_qp()
2251 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_user_qp()
2255 MLX5_SET(qpc, qpc, ts_format, ts_format); in create_user_qp()
2257 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, init_attr)); in create_user_qp()
2260 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_user_qp()
2262 MLX5_SET(qpc, qpc, no_sq, 1); in create_user_qp()
2265 MLX5_SET(qpc, qpc, offload_type, in create_user_qp()
2272 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_user_qp()
2273 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2274 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s0)->msrq.srqn); in create_user_qp()
2278 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_user_qp()
2279 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(init_attr->srq)->msrq.srqn); in create_user_qp()
2281 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2282 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s1)->msrq.srqn); in create_user_qp()
2287 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(init_attr->send_cq)->mcq.cqn); in create_user_qp()
2290 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(init_attr->recv_cq)->mcq.cqn); in create_user_qp()
2296 MLX5_SET(qpc, qpc, user_index, uidx); in create_user_qp()
2300 MLX5_SET(qpc, qpc, end_padding_mode, in create_user_qp()
2395 MLX5_SET(qpc, qpc, st, mlx5_st); in create_kernel_qp()
2396 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_kernel_qp()
2399 MLX5_SET(qpc, qpc, pd, to_mpd(pd ? pd : devr->p0)->pdn); in create_kernel_qp()
2401 MLX5_SET(qpc, qpc, latency_sensitive, 1); in create_kernel_qp()
2405 MLX5_SET(qpc, qpc, block_lb_mc, 1); in create_kernel_qp()
2408 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_kernel_qp()
2409 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_kernel_qp()
2412 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, attr)); in create_kernel_qp()
2415 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_kernel_qp()
2417 MLX5_SET(qpc, qpc, no_sq, 1); in create_kernel_qp()
2420 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_kernel_qp()
2421 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, in create_kernel_qp()
2424 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_kernel_qp()
2425 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, in create_kernel_qp()
2430 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(attr->send_cq)->mcq.cqn); in create_kernel_qp()
2433 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(attr->recv_cq)->mcq.cqn); in create_kernel_qp()
2439 MLX5_SET(qpc, qpc, user_index, uidx); in create_kernel_qp()
2443 MLX5_SET(qpc, qpc, ulp_stateless_offload_mode, 1); in create_kernel_qp()
2657 MLX5_SET(create_dct_in, qp->dct.in, uid, to_mpd(pd)->uid); in create_dct()
2659 MLX5_SET(dctc, dctc, pd, to_mpd(pd)->pdn); in create_dct()
2660 MLX5_SET(dctc, dctc, srqn_xrqn, to_msrq(attr->srq)->msrq.srqn); in create_dct()
2661 MLX5_SET(dctc, dctc, cqn, to_mcq(attr->recv_cq)->mcq.cqn); in create_dct()
2663 MLX5_SET(dctc, dctc, user_index, uidx); in create_dct()
2665 MLX5_SET(dctc, dctc, ece, ucmd->ece_options); in create_dct()
2671 MLX5_SET(dctc, dctc, cs_res, MLX5_RES_SCAT_DATA64_CQE); in create_dct()
3284 MLX5_SET(qpc, qpc, rre, !!(access_flags & IB_ACCESS_REMOTE_READ)); in set_qpc_atomic_flags()
3293 MLX5_SET(qpc, qpc, rae, 1); in set_qpc_atomic_flags()
3294 MLX5_SET(qpc, qpc, atomic_mode, atomic_mode); in set_qpc_atomic_flags()
3297 MLX5_SET(qpc, qpc, rwe, !!(access_flags & IB_ACCESS_REMOTE_WRITE)); in set_qpc_atomic_flags()
3376 MLX5_SET(modify_tis_in, in, bitmask.prio, 1); in modify_raw_packet_eth_prio()
3377 MLX5_SET(modify_tis_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_eth_prio()
3380 MLX5_SET(tisc, tisc, prio, ((sl & 0x7) << 1)); in modify_raw_packet_eth_prio()
3403 MLX5_SET(modify_tis_in, in, bitmask.lag_tx_port_affinity, 1); in modify_raw_packet_tx_affinity()
3404 MLX5_SET(modify_tis_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_tx_affinity()
3407 MLX5_SET(tisc, tisc, lag_tx_port_affinity, tx_affinity); in modify_raw_packet_tx_affinity()
3425 MLX5_SET(ads, path, udp_sport, rdma_flow_label_to_udp_sport(fl)); in mlx5_set_path_udp_sport()
3440 MLX5_SET(ads, path, pkey_index, in mlx5_set_path()
3470 MLX5_SET(ads, path, eth_prio, sl & 0x7); in mlx5_set_path()
3473 MLX5_SET(ads, path, dscp, grh->traffic_class >> 2); in mlx5_set_path()
3475 MLX5_SET(ads, path, fl, !!(path_flags & MLX5_PATH_FLAG_FL)); in mlx5_set_path()
3476 MLX5_SET(ads, path, free_ar, in mlx5_set_path()
3478 MLX5_SET(ads, path, rlid, rdma_ah_get_dlid(ah)); in mlx5_set_path()
3479 MLX5_SET(ads, path, mlid, rdma_ah_get_path_bits(ah)); in mlx5_set_path()
3480 MLX5_SET(ads, path, grh, !!(ah_flags & IB_AH_GRH)); in mlx5_set_path()
3481 MLX5_SET(ads, path, sl, sl); in mlx5_set_path()
3485 MLX5_SET(ads, path, src_addr_index, grh->sgid_index); in mlx5_set_path()
3486 MLX5_SET(ads, path, hop_limit, grh->hop_limit); in mlx5_set_path()
3487 MLX5_SET(ads, path, tclass, grh->traffic_class); in mlx5_set_path()
3488 MLX5_SET(ads, path, flow_label, grh->flow_label); in mlx5_set_path()
3496 MLX5_SET(ads, path, stat_rate, err); in mlx5_set_path()
3497 MLX5_SET(ads, path, vhca_port_num, port); in mlx5_set_path()
3500 MLX5_SET(ads, path, ack_timeout, in mlx5_set_path()
3706 MLX5_SET(modify_rq_in, in, rq_state, rq->state); in modify_raw_packet_qp_rq()
3707 MLX5_SET(modify_rq_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_qp_rq()
3710 MLX5_SET(rqc, rqc, state, new_state); in modify_raw_packet_qp_rq()
3716 MLX5_SET(rqc, rqc, counter_set_id, raw_qp_param->rq_q_ctr_id); in modify_raw_packet_qp_rq()
3753 MLX5_SET(modify_sq_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_qp_sq()
3754 MLX5_SET(modify_sq_in, in, sq_state, sq->state); in modify_raw_packet_qp_sq()
3757 MLX5_SET(sqc, sqc, state, new_state); in modify_raw_packet_qp_sq()
3783 MLX5_SET(sqc, sqc, packet_pacing_rate_limit_index, rl_index); in modify_raw_packet_qp_sq()
3976 MLX5_SET(rts2rts_qp_in, in, opcode, MLX5_CMD_OP_RTS2RTS_QP); in __mlx5_ib_qp_set_counter()
3977 MLX5_SET(rts2rts_qp_in, in, qpn, base->mqp.qpn); in __mlx5_ib_qp_set_counter()
3978 MLX5_SET(rts2rts_qp_in, in, uid, base->mqp.uid); in __mlx5_ib_qp_set_counter()
3979 MLX5_SET(rts2rts_qp_in, in, opt_param_mask, in __mlx5_ib_qp_set_counter()
3983 MLX5_SET(qpc, qpc, counter_set_id, set_id); in __mlx5_ib_qp_set_counter()
4056 MLX5_SET(qpc, qpc, st, mlx5_st); in __mlx5_ib_modify_qp()
4059 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in __mlx5_ib_modify_qp()
4063 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in __mlx5_ib_modify_qp()
4066 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_REARM); in __mlx5_ib_modify_qp()
4069 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_ARMED); in __mlx5_ib_modify_qp()
4078 MLX5_SET(qpc, qpc, lag_tx_port_affinity, tx_affinity); in __mlx5_ib_modify_qp()
4084 MLX5_SET(qpc, qpc, mtu, IB_MTU_256); in __mlx5_ib_modify_qp()
4085 MLX5_SET(qpc, qpc, log_msg_max, 8); in __mlx5_ib_modify_qp()
4089 MLX5_SET(qpc, qpc, mtu, IB_MTU_4096); in __mlx5_ib_modify_qp()
4090 MLX5_SET(qpc, qpc, log_msg_max, 12); in __mlx5_ib_modify_qp()
4098 MLX5_SET(qpc, qpc, mtu, attr->path_mtu); in __mlx5_ib_modify_qp()
4099 MLX5_SET(qpc, qpc, log_msg_max, in __mlx5_ib_modify_qp()
4104 MLX5_SET(qpc, qpc, remote_qpn, attr->dest_qp_num); in __mlx5_ib_modify_qp()
4110 MLX5_SET(ads, pri_path, pkey_index, attr->pkey_index); in __mlx5_ib_modify_qp()
4115 MLX5_SET(ads, pri_path, vhca_port_num, qp->port); in __mlx5_ib_modify_qp()
4118 MLX5_SET(ads, pri_path, vhca_port_num, attr->port_num); in __mlx5_ib_modify_qp()
4130 MLX5_SET(ads, pri_path, ack_timeout, attr->timeout); in __mlx5_ib_modify_qp()
4145 MLX5_SET(qpc, qpc, pd, pd ? pd->pdn : to_mpd(dev->devr.p0)->pdn); in __mlx5_ib_modify_qp()
4147 MLX5_SET(qpc, qpc, cqn_snd, send_cq->mcq.cqn); in __mlx5_ib_modify_qp()
4149 MLX5_SET(qpc, qpc, cqn_rcv, recv_cq->mcq.cqn); in __mlx5_ib_modify_qp()
4151 MLX5_SET(qpc, qpc, log_ack_req_freq, MLX5_IB_ACK_REQ_FREQ); in __mlx5_ib_modify_qp()
4154 MLX5_SET(qpc, qpc, rnr_retry, attr->rnr_retry); in __mlx5_ib_modify_qp()
4157 MLX5_SET(qpc, qpc, retry_count, attr->retry_cnt); in __mlx5_ib_modify_qp()
4160 MLX5_SET(qpc, qpc, log_sra_max, ilog2(attr->max_rd_atomic)); in __mlx5_ib_modify_qp()
4163 MLX5_SET(qpc, qpc, next_send_psn, attr->sq_psn); in __mlx5_ib_modify_qp()
4166 MLX5_SET(qpc, qpc, log_rra_max, in __mlx5_ib_modify_qp()
4176 MLX5_SET(qpc, qpc, min_rnr_nak, attr->min_rnr_timer); in __mlx5_ib_modify_qp()
4179 MLX5_SET(qpc, qpc, next_rcv_psn, attr->rq_psn); in __mlx5_ib_modify_qp()
4182 MLX5_SET(qpc, qpc, q_key, attr->qkey); in __mlx5_ib_modify_qp()
4199 MLX5_SET(qpc, qpc, counter_set_id, set_id); in __mlx5_ib_modify_qp()
4203 MLX5_SET(qpc, qpc, rlky, 1); in __mlx5_ib_modify_qp()
4206 MLX5_SET(qpc, qpc, deth_sqpn, 1); in __mlx5_ib_modify_qp()
4401 MLX5_SET(dctc, dctc, ece, ucmd->ece_options); in mlx5_ib_modify_dct()
4417 MLX5_SET(dctc, dctc, rre, 1); in mlx5_ib_modify_dct()
4419 MLX5_SET(dctc, dctc, rwe, 1); in mlx5_ib_modify_dct()
4427 MLX5_SET(dctc, dctc, atomic_mode, atomic_mode); in mlx5_ib_modify_dct()
4428 MLX5_SET(dctc, dctc, rae, 1); in mlx5_ib_modify_dct()
4430 MLX5_SET(dctc, dctc, pkey_index, attr->pkey_index); in mlx5_ib_modify_dct()
4432 MLX5_SET(dctc, dctc, port, in mlx5_ib_modify_dct()
4435 MLX5_SET(dctc, dctc, port, attr->port_num); in mlx5_ib_modify_dct()
4438 MLX5_SET(dctc, dctc, counter_set_id, set_id); in mlx5_ib_modify_dct()
4457 MLX5_SET(dctc, dctc, min_rnr_nak, attr->min_rnr_timer); in mlx5_ib_modify_dct()
4458 MLX5_SET(dctc, dctc, tclass, attr->ah_attr.grh.traffic_class); in mlx5_ib_modify_dct()
4459 MLX5_SET(dctc, dctc, flow_label, attr->ah_attr.grh.flow_label); in mlx5_ib_modify_dct()
4460 MLX5_SET(dctc, dctc, mtu, attr->path_mtu); in mlx5_ib_modify_dct()
4461 MLX5_SET(dctc, dctc, my_addr_index, attr->ah_attr.grh.sgid_index); in mlx5_ib_modify_dct()
4462 MLX5_SET(dctc, dctc, hop_limit, attr->ah_attr.grh.hop_limit); in mlx5_ib_modify_dct()
4464 MLX5_SET(dctc, dctc, eth_prio, attr->ah_attr.sl & 0x7); in mlx5_ib_modify_dct()
5081 MLX5_SET(create_rq_in, in, uid, to_mpd(pd)->uid); in create_rq()
5083 MLX5_SET(rqc, rqc, mem_rq_type, in create_rq()
5085 MLX5_SET(rqc, rqc, ts_format, ts_format); in create_rq()
5086 MLX5_SET(rqc, rqc, user_index, rwq->user_index); in create_rq()
5087 MLX5_SET(rqc, rqc, cqn, to_mcq(init_attr->cq)->mcq.cqn); in create_rq()
5088 MLX5_SET(rqc, rqc, state, MLX5_RQC_STATE_RST); in create_rq()
5089 MLX5_SET(rqc, rqc, flush_in_error_en, 1); in create_rq()
5091 MLX5_SET(wq, wq, wq_type, in create_rq()
5100 MLX5_SET(wq, wq, end_padding_mode, MLX5_WQ_END_PAD_MODE_ALIGN); in create_rq()
5103 MLX5_SET(wq, wq, log_wq_stride, rwq->log_rq_stride); in create_rq()
5113 MLX5_SET(wq, wq, two_byte_shift_en, rwq->two_byte_shift_en); in create_rq()
5114 MLX5_SET(wq, wq, log_wqe_stride_size, in create_rq()
5117 MLX5_SET(wq, wq, log_wqe_num_of_strides, in create_rq()
5121 MLX5_SET(wq, wq, log_wq_sz, rwq->log_rq_size); in create_rq()
5122 MLX5_SET(wq, wq, pd, to_mpd(pd)->pdn); in create_rq()
5123 MLX5_SET(wq, wq, page_offset, rwq->rq_page_offset); in create_rq()
5124 MLX5_SET(wq, wq, log_wq_pg_sz, rwq->log_page_size); in create_rq()
5125 MLX5_SET(wq, wq, wq_signature, rwq->wq_sig); in create_rq()
5135 MLX5_SET(rqc, rqc, vsd, 1); in create_rq()
5143 MLX5_SET(rqc, rqc, scatter_fcs, 1); in create_rq()
5152 MLX5_SET(rqc, rqc, delay_drop_en, 1); in create_rq()
5407 MLX5_SET(rqtc, rqtc, rqt_actual_size, sz); in mlx5_ib_create_rwq_ind_table()
5408 MLX5_SET(rqtc, rqtc, rqt_max_size, sz); in mlx5_ib_create_rwq_ind_table()
5411 MLX5_SET(rqtc, rqtc, rq_num[i], init_attr->ind_tbl[i]->wq_num); in mlx5_ib_create_rwq_ind_table()
5414 MLX5_SET(create_rqt_in, in, uid, rwq_ind_tbl->uid); in mlx5_ib_create_rwq_ind_table()
5488 MLX5_SET(modify_rq_in, in, rq_state, curr_wq_state); in mlx5_ib_modify_wq()
5489 MLX5_SET(modify_rq_in, in, uid, to_mpd(wq->pd)->uid); in mlx5_ib_modify_wq()
5490 MLX5_SET(rqc, rqc, state, wq_state); in mlx5_ib_modify_wq()
5503 MLX5_SET(rqc, rqc, vsd, in mlx5_ib_modify_wq()
5521 MLX5_SET(rqc, rqc, counter_set_id, set_id); in mlx5_ib_modify_wq()