Lines Matching refs:MLX5_SET

948 	MLX5_SET(create_qp_in, *in, uid, uid);  in _create_user_qp()
953 MLX5_SET(qpc, qpc, log_page_size, in _create_user_qp()
955 MLX5_SET(qpc, qpc, page_offset, page_offset_quantized); in _create_user_qp()
957 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_user_qp()
1080 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_kernel_qp()
1081 MLX5_SET(qpc, qpc, ts_format, mlx5_get_qp_default_ts(dev->mdev)); in _create_kernel_qp()
1082 MLX5_SET(qpc, qpc, log_page_size, qp->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in _create_kernel_qp()
1085 MLX5_SET(qpc, qpc, fre, 1); in _create_kernel_qp()
1086 MLX5_SET(qpc, qpc, rlky, 1); in _create_kernel_qp()
1089 MLX5_SET(qpc, qpc, deth_sqpn, 1); in _create_kernel_qp()
1155 MLX5_SET(create_tis_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_tis()
1156 MLX5_SET(tisc, tisc, transport_domain, tdn); in create_raw_packet_qp_tis()
1158 MLX5_SET(tisc, tisc, underlay_qpn, qp->underlay_qpn); in create_raw_packet_qp_tis()
1293 MLX5_SET(create_sq_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_sq()
1295 MLX5_SET(sqc, sqc, flush_in_error_en, 1); in create_raw_packet_qp_sq()
1297 MLX5_SET(sqc, sqc, allow_multi_pkt_send_wqe, 1); in create_raw_packet_qp_sq()
1298 MLX5_SET(sqc, sqc, state, MLX5_SQC_STATE_RST); in create_raw_packet_qp_sq()
1299 MLX5_SET(sqc, sqc, ts_format, ts_format); in create_raw_packet_qp_sq()
1300 MLX5_SET(sqc, sqc, user_index, MLX5_GET(qpc, qpc, user_index)); in create_raw_packet_qp_sq()
1301 MLX5_SET(sqc, sqc, cqn, MLX5_GET(qpc, qpc, cqn_snd)); in create_raw_packet_qp_sq()
1302 MLX5_SET(sqc, sqc, tis_lst_sz, 1); in create_raw_packet_qp_sq()
1303 MLX5_SET(sqc, sqc, tis_num_0, sq->tisn); in create_raw_packet_qp_sq()
1306 MLX5_SET(sqc, sqc, allow_swp, 1); in create_raw_packet_qp_sq()
1309 MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_CYCLIC); in create_raw_packet_qp_sq()
1310 MLX5_SET(wq, wq, pd, MLX5_GET(qpc, qpc, pd)); in create_raw_packet_qp_sq()
1311 MLX5_SET(wq, wq, uar_page, MLX5_GET(qpc, qpc, uar_page)); in create_raw_packet_qp_sq()
1313 MLX5_SET(wq, wq, log_wq_stride, ilog2(MLX5_SEND_WQE_BB)); in create_raw_packet_qp_sq()
1314 MLX5_SET(wq, wq, log_wq_sz, MLX5_GET(qpc, qpc, log_sq_size)); in create_raw_packet_qp_sq()
1315 MLX5_SET(wq, wq, log_wq_pg_sz, in create_raw_packet_qp_sq()
1317 MLX5_SET(wq, wq, page_offset, page_offset_quantized); in create_raw_packet_qp_sq()
1380 MLX5_SET(create_rq_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_rq()
1383 MLX5_SET(rqc, rqc, vsd, 1); in create_raw_packet_qp_rq()
1384 MLX5_SET(rqc, rqc, mem_rq_type, MLX5_RQC_MEM_RQ_TYPE_MEMORY_RQ_INLINE); in create_raw_packet_qp_rq()
1385 MLX5_SET(rqc, rqc, state, MLX5_RQC_STATE_RST); in create_raw_packet_qp_rq()
1386 MLX5_SET(rqc, rqc, ts_format, ts_format); in create_raw_packet_qp_rq()
1387 MLX5_SET(rqc, rqc, flush_in_error_en, 1); in create_raw_packet_qp_rq()
1388 MLX5_SET(rqc, rqc, user_index, MLX5_GET(qpc, qpc, user_index)); in create_raw_packet_qp_rq()
1389 MLX5_SET(rqc, rqc, cqn, MLX5_GET(qpc, qpc, cqn_rcv)); in create_raw_packet_qp_rq()
1392 MLX5_SET(rqc, rqc, scatter_fcs, 1); in create_raw_packet_qp_rq()
1395 MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_CYCLIC); in create_raw_packet_qp_rq()
1397 MLX5_SET(wq, wq, end_padding_mode, MLX5_WQ_END_PAD_MODE_ALIGN); in create_raw_packet_qp_rq()
1398 MLX5_SET(wq, wq, page_offset, page_offset_quantized); in create_raw_packet_qp_rq()
1399 MLX5_SET(wq, wq, pd, MLX5_GET(qpc, qpc, pd)); in create_raw_packet_qp_rq()
1401 MLX5_SET(wq, wq, log_wq_stride, MLX5_GET(qpc, qpc, log_rq_stride) + 4); in create_raw_packet_qp_rq()
1402 MLX5_SET(wq, wq, log_wq_pg_sz, in create_raw_packet_qp_rq()
1404 MLX5_SET(wq, wq, log_wq_sz, MLX5_GET(qpc, qpc, log_rq_size)); in create_raw_packet_qp_rq()
1449 MLX5_SET(create_tir_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_tir()
1451 MLX5_SET(tirc, tirc, disp_type, MLX5_TIRC_DISP_TYPE_DIRECT); in create_raw_packet_qp_tir()
1452 MLX5_SET(tirc, tirc, inline_rqn, rq->base.mqp.qpn); in create_raw_packet_qp_tir()
1453 MLX5_SET(tirc, tirc, transport_domain, tdn); in create_raw_packet_qp_tir()
1455 MLX5_SET(tirc, tirc, tunneled_offload_en, 1); in create_raw_packet_qp_tir()
1468 MLX5_SET(tirc, tirc, self_lb_block, lb_flag); in create_raw_packet_qp_tir()
1469 MLX5_SET(create_tir_in, in, opcode, MLX5_CMD_OP_CREATE_TIR); in create_raw_packet_qp_tir()
1677 MLX5_SET(create_tir_in, in, uid, to_mpd(pd)->uid); in create_rss_raw_qp_tir()
1679 MLX5_SET(tirc, tirc, disp_type, in create_rss_raw_qp_tir()
1681 MLX5_SET(tirc, tirc, indirect_table, in create_rss_raw_qp_tir()
1683 MLX5_SET(tirc, tirc, transport_domain, tdn); in create_rss_raw_qp_tir()
1688 MLX5_SET(tirc, tirc, tunneled_offload_en, 1); in create_rss_raw_qp_tir()
1690 MLX5_SET(tirc, tirc, self_lb_block, lb_flag); in create_rss_raw_qp_tir()
1708 MLX5_SET(tirc, tirc, rx_hash_fn, MLX5_RX_HASH_FN_TOEPLITZ); in create_rss_raw_qp_tir()
1736 MLX5_SET(rx_hash_field_select, hfso, l3_prot_type, in create_rss_raw_qp_tir()
1740 MLX5_SET(rx_hash_field_select, hfso, l3_prot_type, in create_rss_raw_qp_tir()
1760 MLX5_SET(rx_hash_field_select, hfso, l4_prot_type, in create_rss_raw_qp_tir()
1764 MLX5_SET(rx_hash_field_select, hfso, l4_prot_type, in create_rss_raw_qp_tir()
1786 MLX5_SET(rx_hash_field_select, hfso, selected_fields, selected_fields); in create_rss_raw_qp_tir()
1789 MLX5_SET(create_tir_in, in, opcode, MLX5_CMD_OP_CREATE_TIR); in create_rss_raw_qp_tir()
1850 MLX5_SET(qpc, qpc, cs_req, MLX5_REQ_SCAT_DATA64_CQE); in configure_requester_scat_cqe()
1856 MLX5_SET(qpc, qpc, cs_req, MLX5_REQ_SCAT_DATA32_CQE); in configure_requester_scat_cqe()
1930 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_XRC); in create_xrc_tgt_qp()
1931 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_xrc_tgt_qp()
1932 MLX5_SET(qpc, qpc, pd, to_mpd(devr->p0)->pdn); in create_xrc_tgt_qp()
1935 MLX5_SET(qpc, qpc, block_lb_mc, 1); in create_xrc_tgt_qp()
1937 MLX5_SET(qpc, qpc, cd_master, 1); in create_xrc_tgt_qp()
1939 MLX5_SET(qpc, qpc, cd_slave_send, 1); in create_xrc_tgt_qp()
1941 MLX5_SET(qpc, qpc, cd_slave_receive, 1); in create_xrc_tgt_qp()
1943 MLX5_SET(qpc, qpc, ts_format, mlx5_get_qp_default_ts(dev->mdev)); in create_xrc_tgt_qp()
1944 MLX5_SET(qpc, qpc, rq_type, MLX5_SRQ_RQ); in create_xrc_tgt_qp()
1945 MLX5_SET(qpc, qpc, no_sq, 1); in create_xrc_tgt_qp()
1946 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_xrc_tgt_qp()
1947 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(devr->c0)->mcq.cqn); in create_xrc_tgt_qp()
1948 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s0)->msrq.srqn); in create_xrc_tgt_qp()
1949 MLX5_SET(qpc, qpc, xrcd, to_mxrcd(attr->xrcd)->xrcdn); in create_xrc_tgt_qp()
1954 MLX5_SET(qpc, qpc, user_index, uidx); in create_xrc_tgt_qp()
1957 MLX5_SET(qpc, qpc, end_padding_mode, in create_xrc_tgt_qp()
2042 MLX5_SET(create_qp_in, in, ece, ucmd->ece_options); in create_dci()
2045 MLX5_SET(qpc, qpc, st, mlx5_st); in create_dci()
2046 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_dci()
2047 MLX5_SET(qpc, qpc, pd, to_mpd(pd)->pdn); in create_dci()
2050 MLX5_SET(qpc, qpc, wq_signature, 1); in create_dci()
2053 MLX5_SET(qpc, qpc, cd_master, 1); in create_dci()
2055 MLX5_SET(qpc, qpc, cd_slave_send, 1); in create_dci()
2060 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_dci()
2061 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_dci()
2065 MLX5_SET(qpc, qpc, log_num_dci_stream_channels, in create_dci()
2067 MLX5_SET(qpc, qpc, log_num_dci_errored_streams, in create_dci()
2071 MLX5_SET(qpc, qpc, ts_format, ts_format); in create_dci()
2072 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, init_attr)); in create_dci()
2074 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_dci()
2078 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_dci()
2079 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, in create_dci()
2082 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_dci()
2083 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, in create_dci()
2088 MLX5_SET(qpc, qpc, cqn_snd, in create_dci()
2092 MLX5_SET(qpc, qpc, cqn_rcv, in create_dci()
2099 MLX5_SET(qpc, qpc, user_index, uidx); in create_dci()
2102 MLX5_SET(qpc, qpc, end_padding_mode, in create_dci()
2213 MLX5_SET(create_qp_in, in, ece, ucmd->ece_options); in create_user_qp()
2216 MLX5_SET(qpc, qpc, st, mlx5_st); in create_user_qp()
2217 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_user_qp()
2218 MLX5_SET(qpc, qpc, pd, to_mpd(pd)->pdn); in create_user_qp()
2221 MLX5_SET(qpc, qpc, wq_signature, 1); in create_user_qp()
2224 MLX5_SET(qpc, qpc, block_lb_mc, 1); in create_user_qp()
2227 MLX5_SET(qpc, qpc, cd_master, 1); in create_user_qp()
2229 MLX5_SET(qpc, qpc, cd_slave_send, 1); in create_user_qp()
2231 MLX5_SET(qpc, qpc, cd_slave_receive, 1); in create_user_qp()
2233 MLX5_SET(qpc, qpc, req_e2e_credit_mode, 1); in create_user_qp()
2239 MLX5_SET(qpc, qpc, cs_res, in create_user_qp()
2248 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_user_qp()
2249 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_user_qp()
2253 MLX5_SET(qpc, qpc, ts_format, ts_format); in create_user_qp()
2255 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, init_attr)); in create_user_qp()
2258 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_user_qp()
2260 MLX5_SET(qpc, qpc, no_sq, 1); in create_user_qp()
2263 MLX5_SET(qpc, qpc, offload_type, in create_user_qp()
2270 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(devr->c0)->mcq.cqn); in create_user_qp()
2271 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2272 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s0)->msrq.srqn); in create_user_qp()
2276 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_user_qp()
2277 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(init_attr->srq)->msrq.srqn); in create_user_qp()
2279 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_user_qp()
2280 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, to_msrq(devr->s1)->msrq.srqn); in create_user_qp()
2285 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(init_attr->send_cq)->mcq.cqn); in create_user_qp()
2288 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(init_attr->recv_cq)->mcq.cqn); in create_user_qp()
2294 MLX5_SET(qpc, qpc, user_index, uidx); in create_user_qp()
2298 MLX5_SET(qpc, qpc, end_padding_mode, in create_user_qp()
2393 MLX5_SET(qpc, qpc, st, mlx5_st); in create_kernel_qp()
2394 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in create_kernel_qp()
2397 MLX5_SET(qpc, qpc, pd, to_mpd(pd ? pd : devr->p0)->pdn); in create_kernel_qp()
2399 MLX5_SET(qpc, qpc, latency_sensitive, 1); in create_kernel_qp()
2403 MLX5_SET(qpc, qpc, block_lb_mc, 1); in create_kernel_qp()
2406 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_kernel_qp()
2407 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_kernel_qp()
2410 MLX5_SET(qpc, qpc, rq_type, get_rx_type(qp, attr)); in create_kernel_qp()
2413 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_kernel_qp()
2415 MLX5_SET(qpc, qpc, no_sq, 1); in create_kernel_qp()
2418 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn0); in create_kernel_qp()
2419 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, in create_kernel_qp()
2422 MLX5_SET(qpc, qpc, xrcd, devr->xrcdn1); in create_kernel_qp()
2423 MLX5_SET(qpc, qpc, srqn_rmpn_xrqn, in create_kernel_qp()
2428 MLX5_SET(qpc, qpc, cqn_snd, to_mcq(attr->send_cq)->mcq.cqn); in create_kernel_qp()
2431 MLX5_SET(qpc, qpc, cqn_rcv, to_mcq(attr->recv_cq)->mcq.cqn); in create_kernel_qp()
2437 MLX5_SET(qpc, qpc, user_index, uidx); in create_kernel_qp()
2441 MLX5_SET(qpc, qpc, ulp_stateless_offload_mode, 1); in create_kernel_qp()
2655 MLX5_SET(create_dct_in, qp->dct.in, uid, to_mpd(pd)->uid); in create_dct()
2657 MLX5_SET(dctc, dctc, pd, to_mpd(pd)->pdn); in create_dct()
2658 MLX5_SET(dctc, dctc, srqn_xrqn, to_msrq(attr->srq)->msrq.srqn); in create_dct()
2659 MLX5_SET(dctc, dctc, cqn, to_mcq(attr->recv_cq)->mcq.cqn); in create_dct()
2661 MLX5_SET(dctc, dctc, user_index, uidx); in create_dct()
2663 MLX5_SET(dctc, dctc, ece, ucmd->ece_options); in create_dct()
2669 MLX5_SET(dctc, dctc, cs_res, MLX5_RES_SCAT_DATA64_CQE); in create_dct()
3282 MLX5_SET(qpc, qpc, rre, !!(access_flags & IB_ACCESS_REMOTE_READ)); in set_qpc_atomic_flags()
3291 MLX5_SET(qpc, qpc, rae, 1); in set_qpc_atomic_flags()
3292 MLX5_SET(qpc, qpc, atomic_mode, atomic_mode); in set_qpc_atomic_flags()
3295 MLX5_SET(qpc, qpc, rwe, !!(access_flags & IB_ACCESS_REMOTE_WRITE)); in set_qpc_atomic_flags()
3374 MLX5_SET(modify_tis_in, in, bitmask.prio, 1); in modify_raw_packet_eth_prio()
3375 MLX5_SET(modify_tis_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_eth_prio()
3378 MLX5_SET(tisc, tisc, prio, ((sl & 0x7) << 1)); in modify_raw_packet_eth_prio()
3401 MLX5_SET(modify_tis_in, in, bitmask.lag_tx_port_affinity, 1); in modify_raw_packet_tx_affinity()
3402 MLX5_SET(modify_tis_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_tx_affinity()
3405 MLX5_SET(tisc, tisc, lag_tx_port_affinity, tx_affinity); in modify_raw_packet_tx_affinity()
3423 MLX5_SET(ads, path, udp_sport, rdma_flow_label_to_udp_sport(fl)); in mlx5_set_path_udp_sport()
3438 MLX5_SET(ads, path, pkey_index, in mlx5_set_path()
3468 MLX5_SET(ads, path, eth_prio, sl & 0x7); in mlx5_set_path()
3471 MLX5_SET(ads, path, dscp, grh->traffic_class >> 2); in mlx5_set_path()
3473 MLX5_SET(ads, path, fl, !!(path_flags & MLX5_PATH_FLAG_FL)); in mlx5_set_path()
3474 MLX5_SET(ads, path, free_ar, in mlx5_set_path()
3476 MLX5_SET(ads, path, rlid, rdma_ah_get_dlid(ah)); in mlx5_set_path()
3477 MLX5_SET(ads, path, mlid, rdma_ah_get_path_bits(ah)); in mlx5_set_path()
3478 MLX5_SET(ads, path, grh, !!(ah_flags & IB_AH_GRH)); in mlx5_set_path()
3479 MLX5_SET(ads, path, sl, sl); in mlx5_set_path()
3483 MLX5_SET(ads, path, src_addr_index, grh->sgid_index); in mlx5_set_path()
3484 MLX5_SET(ads, path, hop_limit, grh->hop_limit); in mlx5_set_path()
3485 MLX5_SET(ads, path, tclass, grh->traffic_class); in mlx5_set_path()
3486 MLX5_SET(ads, path, flow_label, grh->flow_label); in mlx5_set_path()
3494 MLX5_SET(ads, path, stat_rate, err); in mlx5_set_path()
3495 MLX5_SET(ads, path, vhca_port_num, port); in mlx5_set_path()
3498 MLX5_SET(ads, path, ack_timeout, in mlx5_set_path()
3704 MLX5_SET(modify_rq_in, in, rq_state, rq->state); in modify_raw_packet_qp_rq()
3705 MLX5_SET(modify_rq_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_qp_rq()
3708 MLX5_SET(rqc, rqc, state, new_state); in modify_raw_packet_qp_rq()
3714 MLX5_SET(rqc, rqc, counter_set_id, raw_qp_param->rq_q_ctr_id); in modify_raw_packet_qp_rq()
3751 MLX5_SET(modify_sq_in, in, uid, to_mpd(pd)->uid); in modify_raw_packet_qp_sq()
3752 MLX5_SET(modify_sq_in, in, sq_state, sq->state); in modify_raw_packet_qp_sq()
3755 MLX5_SET(sqc, sqc, state, new_state); in modify_raw_packet_qp_sq()
3781 MLX5_SET(sqc, sqc, packet_pacing_rate_limit_index, rl_index); in modify_raw_packet_qp_sq()
3974 MLX5_SET(rts2rts_qp_in, in, opcode, MLX5_CMD_OP_RTS2RTS_QP); in __mlx5_ib_qp_set_counter()
3975 MLX5_SET(rts2rts_qp_in, in, qpn, base->mqp.qpn); in __mlx5_ib_qp_set_counter()
3976 MLX5_SET(rts2rts_qp_in, in, uid, base->mqp.uid); in __mlx5_ib_qp_set_counter()
3977 MLX5_SET(rts2rts_qp_in, in, opt_param_mask, in __mlx5_ib_qp_set_counter()
3981 MLX5_SET(qpc, qpc, counter_set_id, set_id); in __mlx5_ib_qp_set_counter()
4054 MLX5_SET(qpc, qpc, st, mlx5_st); in __mlx5_ib_modify_qp()
4057 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in __mlx5_ib_modify_qp()
4061 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in __mlx5_ib_modify_qp()
4064 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_REARM); in __mlx5_ib_modify_qp()
4067 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_ARMED); in __mlx5_ib_modify_qp()
4076 MLX5_SET(qpc, qpc, lag_tx_port_affinity, tx_affinity); in __mlx5_ib_modify_qp()
4082 MLX5_SET(qpc, qpc, mtu, IB_MTU_256); in __mlx5_ib_modify_qp()
4083 MLX5_SET(qpc, qpc, log_msg_max, 8); in __mlx5_ib_modify_qp()
4087 MLX5_SET(qpc, qpc, mtu, IB_MTU_4096); in __mlx5_ib_modify_qp()
4088 MLX5_SET(qpc, qpc, log_msg_max, 12); in __mlx5_ib_modify_qp()
4096 MLX5_SET(qpc, qpc, mtu, attr->path_mtu); in __mlx5_ib_modify_qp()
4097 MLX5_SET(qpc, qpc, log_msg_max, in __mlx5_ib_modify_qp()
4102 MLX5_SET(qpc, qpc, remote_qpn, attr->dest_qp_num); in __mlx5_ib_modify_qp()
4108 MLX5_SET(ads, pri_path, pkey_index, attr->pkey_index); in __mlx5_ib_modify_qp()
4113 MLX5_SET(ads, pri_path, vhca_port_num, qp->port); in __mlx5_ib_modify_qp()
4116 MLX5_SET(ads, pri_path, vhca_port_num, attr->port_num); in __mlx5_ib_modify_qp()
4128 MLX5_SET(ads, pri_path, ack_timeout, attr->timeout); in __mlx5_ib_modify_qp()
4143 MLX5_SET(qpc, qpc, pd, pd ? pd->pdn : to_mpd(dev->devr.p0)->pdn); in __mlx5_ib_modify_qp()
4145 MLX5_SET(qpc, qpc, cqn_snd, send_cq->mcq.cqn); in __mlx5_ib_modify_qp()
4147 MLX5_SET(qpc, qpc, cqn_rcv, recv_cq->mcq.cqn); in __mlx5_ib_modify_qp()
4149 MLX5_SET(qpc, qpc, log_ack_req_freq, MLX5_IB_ACK_REQ_FREQ); in __mlx5_ib_modify_qp()
4152 MLX5_SET(qpc, qpc, rnr_retry, attr->rnr_retry); in __mlx5_ib_modify_qp()
4155 MLX5_SET(qpc, qpc, retry_count, attr->retry_cnt); in __mlx5_ib_modify_qp()
4158 MLX5_SET(qpc, qpc, log_sra_max, ilog2(attr->max_rd_atomic)); in __mlx5_ib_modify_qp()
4161 MLX5_SET(qpc, qpc, next_send_psn, attr->sq_psn); in __mlx5_ib_modify_qp()
4164 MLX5_SET(qpc, qpc, log_rra_max, in __mlx5_ib_modify_qp()
4174 MLX5_SET(qpc, qpc, min_rnr_nak, attr->min_rnr_timer); in __mlx5_ib_modify_qp()
4177 MLX5_SET(qpc, qpc, next_rcv_psn, attr->rq_psn); in __mlx5_ib_modify_qp()
4180 MLX5_SET(qpc, qpc, q_key, attr->qkey); in __mlx5_ib_modify_qp()
4197 MLX5_SET(qpc, qpc, counter_set_id, set_id); in __mlx5_ib_modify_qp()
4201 MLX5_SET(qpc, qpc, rlky, 1); in __mlx5_ib_modify_qp()
4204 MLX5_SET(qpc, qpc, deth_sqpn, 1); in __mlx5_ib_modify_qp()
4399 MLX5_SET(dctc, dctc, ece, ucmd->ece_options); in mlx5_ib_modify_dct()
4415 MLX5_SET(dctc, dctc, rre, 1); in mlx5_ib_modify_dct()
4417 MLX5_SET(dctc, dctc, rwe, 1); in mlx5_ib_modify_dct()
4425 MLX5_SET(dctc, dctc, atomic_mode, atomic_mode); in mlx5_ib_modify_dct()
4426 MLX5_SET(dctc, dctc, rae, 1); in mlx5_ib_modify_dct()
4428 MLX5_SET(dctc, dctc, pkey_index, attr->pkey_index); in mlx5_ib_modify_dct()
4430 MLX5_SET(dctc, dctc, port, in mlx5_ib_modify_dct()
4433 MLX5_SET(dctc, dctc, port, attr->port_num); in mlx5_ib_modify_dct()
4436 MLX5_SET(dctc, dctc, counter_set_id, set_id); in mlx5_ib_modify_dct()
4455 MLX5_SET(dctc, dctc, min_rnr_nak, attr->min_rnr_timer); in mlx5_ib_modify_dct()
4456 MLX5_SET(dctc, dctc, tclass, attr->ah_attr.grh.traffic_class); in mlx5_ib_modify_dct()
4457 MLX5_SET(dctc, dctc, flow_label, attr->ah_attr.grh.flow_label); in mlx5_ib_modify_dct()
4458 MLX5_SET(dctc, dctc, mtu, attr->path_mtu); in mlx5_ib_modify_dct()
4459 MLX5_SET(dctc, dctc, my_addr_index, attr->ah_attr.grh.sgid_index); in mlx5_ib_modify_dct()
4460 MLX5_SET(dctc, dctc, hop_limit, attr->ah_attr.grh.hop_limit); in mlx5_ib_modify_dct()
4462 MLX5_SET(dctc, dctc, eth_prio, attr->ah_attr.sl & 0x7); in mlx5_ib_modify_dct()
5078 MLX5_SET(create_rq_in, in, uid, to_mpd(pd)->uid); in create_rq()
5080 MLX5_SET(rqc, rqc, mem_rq_type, in create_rq()
5082 MLX5_SET(rqc, rqc, ts_format, ts_format); in create_rq()
5083 MLX5_SET(rqc, rqc, user_index, rwq->user_index); in create_rq()
5084 MLX5_SET(rqc, rqc, cqn, to_mcq(init_attr->cq)->mcq.cqn); in create_rq()
5085 MLX5_SET(rqc, rqc, state, MLX5_RQC_STATE_RST); in create_rq()
5086 MLX5_SET(rqc, rqc, flush_in_error_en, 1); in create_rq()
5088 MLX5_SET(wq, wq, wq_type, in create_rq()
5097 MLX5_SET(wq, wq, end_padding_mode, MLX5_WQ_END_PAD_MODE_ALIGN); in create_rq()
5100 MLX5_SET(wq, wq, log_wq_stride, rwq->log_rq_stride); in create_rq()
5110 MLX5_SET(wq, wq, two_byte_shift_en, rwq->two_byte_shift_en); in create_rq()
5111 MLX5_SET(wq, wq, log_wqe_stride_size, in create_rq()
5114 MLX5_SET(wq, wq, log_wqe_num_of_strides, in create_rq()
5118 MLX5_SET(wq, wq, log_wq_sz, rwq->log_rq_size); in create_rq()
5119 MLX5_SET(wq, wq, pd, to_mpd(pd)->pdn); in create_rq()
5120 MLX5_SET(wq, wq, page_offset, rwq->rq_page_offset); in create_rq()
5121 MLX5_SET(wq, wq, log_wq_pg_sz, rwq->log_page_size); in create_rq()
5122 MLX5_SET(wq, wq, wq_signature, rwq->wq_sig); in create_rq()
5132 MLX5_SET(rqc, rqc, vsd, 1); in create_rq()
5140 MLX5_SET(rqc, rqc, scatter_fcs, 1); in create_rq()
5149 MLX5_SET(rqc, rqc, delay_drop_en, 1); in create_rq()
5404 MLX5_SET(rqtc, rqtc, rqt_actual_size, sz); in mlx5_ib_create_rwq_ind_table()
5405 MLX5_SET(rqtc, rqtc, rqt_max_size, sz); 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()
5411 MLX5_SET(create_rqt_in, in, uid, rwq_ind_tbl->uid); in mlx5_ib_create_rwq_ind_table()
5485 MLX5_SET(modify_rq_in, in, rq_state, curr_wq_state); in mlx5_ib_modify_wq()
5486 MLX5_SET(modify_rq_in, in, uid, to_mpd(wq->pd)->uid); in mlx5_ib_modify_wq()
5487 MLX5_SET(rqc, rqc, state, wq_state); in mlx5_ib_modify_wq()
5500 MLX5_SET(rqc, rqc, vsd, in mlx5_ib_modify_wq()
5518 MLX5_SET(rqc, rqc, counter_set_id, set_id); in mlx5_ib_modify_wq()