Lines Matching refs:MLX5_SET

28 	MLX5_SET(query_hca_cap_in, in, opcode, MLX5_CMD_OP_QUERY_HCA_CAP);  in mlx5_devx_get_hca_cap()
29 MLX5_SET(query_hca_cap_in, in, op_mod, flags); in mlx5_devx_get_hca_cap()
85 MLX5_SET(access_register_in, in, opcode, in mlx5_devx_cmd_register_read()
87 MLX5_SET(access_register_in, in, op_mod, in mlx5_devx_cmd_register_read()
89 MLX5_SET(access_register_in, in, register_id, reg_id); in mlx5_devx_cmd_register_read()
90 MLX5_SET(access_register_in, in, argument, arg); in mlx5_devx_cmd_register_read()
146 MLX5_SET(access_register_in, in, opcode, in mlx5_devx_cmd_register_write()
148 MLX5_SET(access_register_in, in, op_mod, in mlx5_devx_cmd_register_write()
150 MLX5_SET(access_register_in, in, register_id, reg_id); in mlx5_devx_cmd_register_write()
151 MLX5_SET(access_register_in, in, argument, arg); in mlx5_devx_cmd_register_write()
203 MLX5_SET(alloc_flow_counter_in, in, opcode, in mlx5_devx_cmd_flow_counter_alloc()
205 MLX5_SET(alloc_flow_counter_in, in, flow_counter_bulk, bulk_n_128); in mlx5_devx_cmd_flow_counter_alloc()
258 MLX5_SET(query_flow_counter_in, in, opcode, in mlx5_devx_cmd_flow_counter_query()
260 MLX5_SET(query_flow_counter_in, in, op_mod, 0); in mlx5_devx_cmd_flow_counter_query()
261 MLX5_SET(query_flow_counter_in, in, flow_counter_id, dcs->id); in mlx5_devx_cmd_flow_counter_query()
262 MLX5_SET(query_flow_counter_in, in, clear, !!clear); in mlx5_devx_cmd_flow_counter_query()
265 MLX5_SET(query_flow_counter_in, in, num_of_counters, in mlx5_devx_cmd_flow_counter_query()
267 MLX5_SET(query_flow_counter_in, in, dump_to_memory, 1); in mlx5_devx_cmd_flow_counter_query()
268 MLX5_SET(query_flow_counter_in, in, mkey, mkey); in mlx5_devx_cmd_flow_counter_query()
333 MLX5_SET(create_mkey_in, in, opcode, MLX5_CMD_OP_CREATE_MKEY); in mlx5_devx_cmd_mkey_create()
341 MLX5_SET(klm, klm, byte_count, klm_array[i].byte_count); in mlx5_devx_cmd_mkey_create()
342 MLX5_SET(klm, klm, mkey, klm_array[i].mkey); in mlx5_devx_cmd_mkey_create()
347 MLX5_SET(klm, klm, mkey, 0x0); in mlx5_devx_cmd_mkey_create()
351 MLX5_SET(mkc, mkc, access_mode_1_0, attr->log_entity_size ? in mlx5_devx_cmd_mkey_create()
354 MLX5_SET(mkc, mkc, log_page_size, attr->log_entity_size); in mlx5_devx_cmd_mkey_create()
357 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT); in mlx5_devx_cmd_mkey_create()
358 MLX5_SET(mkc, mkc, log_page_size, rte_log2_u32(pgsize)); in mlx5_devx_cmd_mkey_create()
360 MLX5_SET(create_mkey_in, in, translations_octword_actual_size, in mlx5_devx_cmd_mkey_create()
362 MLX5_SET(create_mkey_in, in, mkey_umem_id, attr->umem_id); in mlx5_devx_cmd_mkey_create()
363 MLX5_SET(create_mkey_in, in, pg_access, attr->pg_access); in mlx5_devx_cmd_mkey_create()
364 MLX5_SET(mkc, mkc, lw, 0x1); in mlx5_devx_cmd_mkey_create()
365 MLX5_SET(mkc, mkc, lr, 0x1); in mlx5_devx_cmd_mkey_create()
367 MLX5_SET(mkc, mkc, rw, 0x1); in mlx5_devx_cmd_mkey_create()
368 MLX5_SET(mkc, mkc, rr, 0x1); in mlx5_devx_cmd_mkey_create()
370 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5_devx_cmd_mkey_create()
371 MLX5_SET(mkc, mkc, pd, attr->pd); in mlx5_devx_cmd_mkey_create()
372 MLX5_SET(mkc, mkc, mkey_7_0, attr->umem_id & 0xFF); in mlx5_devx_cmd_mkey_create()
373 MLX5_SET(mkc, mkc, umr_en, attr->umr_en); in mlx5_devx_cmd_mkey_create()
374 MLX5_SET(mkc, mkc, translations_octword_size, translation_size); in mlx5_devx_cmd_mkey_create()
375 MLX5_SET(mkc, mkc, relaxed_ordering_write, in mlx5_devx_cmd_mkey_create()
377 MLX5_SET(mkc, mkc, relaxed_ordering_read, attr->relaxed_ordering_read); in mlx5_devx_cmd_mkey_create()
380 MLX5_SET(mkc, mkc, crypto_en, attr->crypto_en); in mlx5_devx_cmd_mkey_create()
382 MLX5_SET(mkc, mkc, bsf_en, attr->crypto_en); in mlx5_devx_cmd_mkey_create()
383 MLX5_SET(mkc, mkc, bsf_octword_size, 4); in mlx5_devx_cmd_mkey_create()
472 MLX5_SET(query_nic_vport_context_in, in, opcode, in mlx5_devx_cmd_query_nic_vport_context()
474 MLX5_SET(query_nic_vport_context_in, in, vport_number, vport); in mlx5_devx_cmd_query_nic_vport_context()
476 MLX5_SET(query_nic_vport_context_in, in, other_vport, 1); in mlx5_devx_cmd_query_nic_vport_context()
590 MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode, in mlx5_devx_cmd_query_parse_samples()
592 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type, in mlx5_devx_cmd_query_parse_samples()
594 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_id, flex_obj->id); in mlx5_devx_cmd_query_parse_samples()
643 MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode, in mlx5_devx_cmd_create_flex_parser()
645 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type, in mlx5_devx_cmd_create_flex_parser()
647 MLX5_SET(parse_graph_flex, flex, header_length_mode, in mlx5_devx_cmd_create_flex_parser()
651 MLX5_SET(parse_graph_flex, flex, header_length_base_value, in mlx5_devx_cmd_create_flex_parser()
653 MLX5_SET(parse_graph_flex, flex, header_length_field_offset, in mlx5_devx_cmd_create_flex_parser()
655 MLX5_SET(parse_graph_flex, flex, header_length_field_shift, in mlx5_devx_cmd_create_flex_parser()
657 MLX5_SET(parse_graph_flex, flex, next_header_field_offset, in mlx5_devx_cmd_create_flex_parser()
659 MLX5_SET(parse_graph_flex, flex, next_header_field_size, in mlx5_devx_cmd_create_flex_parser()
661 MLX5_SET(parse_graph_flex, flex, header_length_field_mask, in mlx5_devx_cmd_create_flex_parser()
670 MLX5_SET(parse_graph_flow_match_sample, s_off, in mlx5_devx_cmd_create_flex_parser()
672 MLX5_SET(parse_graph_flow_match_sample, s_off, in mlx5_devx_cmd_create_flex_parser()
675 MLX5_SET(parse_graph_flow_match_sample, s_off, in mlx5_devx_cmd_create_flex_parser()
678 MLX5_SET(parse_graph_flow_match_sample, s_off, in mlx5_devx_cmd_create_flex_parser()
681 MLX5_SET(parse_graph_flow_match_sample, s_off, in mlx5_devx_cmd_create_flex_parser()
684 MLX5_SET(parse_graph_flow_match_sample, s_off, in mlx5_devx_cmd_create_flex_parser()
687 MLX5_SET(parse_graph_flow_match_sample, s_off, in mlx5_devx_cmd_create_flex_parser()
700 MLX5_SET(parse_graph_arc, in_off, in mlx5_devx_cmd_create_flex_parser()
703 MLX5_SET(parse_graph_arc, in_off, start_inner_tunnel, in mlx5_devx_cmd_create_flex_parser()
705 MLX5_SET(parse_graph_arc, in_off, arc_parse_graph_node, in mlx5_devx_cmd_create_flex_parser()
707 MLX5_SET(parse_graph_arc, in_off, in mlx5_devx_cmd_create_flex_parser()
712 MLX5_SET(parse_graph_arc, out_off, in mlx5_devx_cmd_create_flex_parser()
715 MLX5_SET(parse_graph_arc, out_off, start_inner_tunnel, in mlx5_devx_cmd_create_flex_parser()
717 MLX5_SET(parse_graph_arc, out_off, arc_parse_graph_node, in mlx5_devx_cmd_create_flex_parser()
719 MLX5_SET(parse_graph_arc, out_off, in mlx5_devx_cmd_create_flex_parser()
1178 MLX5_SET(query_tis_in, in, opcode, MLX5_CMD_OP_QUERY_TIS); in mlx5_devx_cmd_qp_query_tis_td()
1179 MLX5_SET(query_tis_in, in, tisn, tis_num); in mlx5_devx_cmd_qp_query_tis_td()
1208 MLX5_SET(wq, wq_ctx, wq_type, wq_attr->wq_type); in devx_cmd_fill_wq_data()
1209 MLX5_SET(wq, wq_ctx, wq_signature, wq_attr->wq_signature); in devx_cmd_fill_wq_data()
1210 MLX5_SET(wq, wq_ctx, end_padding_mode, wq_attr->end_padding_mode); in devx_cmd_fill_wq_data()
1211 MLX5_SET(wq, wq_ctx, cd_slave, wq_attr->cd_slave); in devx_cmd_fill_wq_data()
1212 MLX5_SET(wq, wq_ctx, hds_skip_first_sge, wq_attr->hds_skip_first_sge); in devx_cmd_fill_wq_data()
1213 MLX5_SET(wq, wq_ctx, log2_hds_buf_size, wq_attr->log2_hds_buf_size); in devx_cmd_fill_wq_data()
1214 MLX5_SET(wq, wq_ctx, page_offset, wq_attr->page_offset); in devx_cmd_fill_wq_data()
1215 MLX5_SET(wq, wq_ctx, lwm, wq_attr->lwm); in devx_cmd_fill_wq_data()
1216 MLX5_SET(wq, wq_ctx, pd, wq_attr->pd); in devx_cmd_fill_wq_data()
1217 MLX5_SET(wq, wq_ctx, uar_page, wq_attr->uar_page); in devx_cmd_fill_wq_data()
1219 MLX5_SET(wq, wq_ctx, hw_counter, wq_attr->hw_counter); in devx_cmd_fill_wq_data()
1220 MLX5_SET(wq, wq_ctx, sw_counter, wq_attr->sw_counter); in devx_cmd_fill_wq_data()
1221 MLX5_SET(wq, wq_ctx, log_wq_stride, wq_attr->log_wq_stride); in devx_cmd_fill_wq_data()
1223 MLX5_SET(wq, wq_ctx, log_wq_pg_sz, in devx_cmd_fill_wq_data()
1225 MLX5_SET(wq, wq_ctx, log_wq_sz, wq_attr->log_wq_sz); in devx_cmd_fill_wq_data()
1226 MLX5_SET(wq, wq_ctx, dbr_umem_valid, wq_attr->dbr_umem_valid); in devx_cmd_fill_wq_data()
1227 MLX5_SET(wq, wq_ctx, wq_umem_valid, wq_attr->wq_umem_valid); in devx_cmd_fill_wq_data()
1228 MLX5_SET(wq, wq_ctx, log_hairpin_num_packets, in devx_cmd_fill_wq_data()
1230 MLX5_SET(wq, wq_ctx, log_hairpin_data_sz, wq_attr->log_hairpin_data_sz); in devx_cmd_fill_wq_data()
1231 MLX5_SET(wq, wq_ctx, single_wqe_log_num_of_strides, in devx_cmd_fill_wq_data()
1233 MLX5_SET(wq, wq_ctx, two_byte_shift_en, wq_attr->two_byte_shift_en); in devx_cmd_fill_wq_data()
1234 MLX5_SET(wq, wq_ctx, single_stride_log_num_of_bytes, in devx_cmd_fill_wq_data()
1236 MLX5_SET(wq, wq_ctx, dbr_umem_id, wq_attr->dbr_umem_id); in devx_cmd_fill_wq_data()
1237 MLX5_SET(wq, wq_ctx, wq_umem_id, wq_attr->wq_umem_id); in devx_cmd_fill_wq_data()
1271 MLX5_SET(create_rq_in, in, opcode, MLX5_CMD_OP_CREATE_RQ); in mlx5_devx_cmd_create_rq()
1273 MLX5_SET(rqc, rq_ctx, rlky, rq_attr->rlky); in mlx5_devx_cmd_create_rq()
1274 MLX5_SET(rqc, rq_ctx, delay_drop_en, rq_attr->delay_drop_en); in mlx5_devx_cmd_create_rq()
1275 MLX5_SET(rqc, rq_ctx, scatter_fcs, rq_attr->scatter_fcs); in mlx5_devx_cmd_create_rq()
1276 MLX5_SET(rqc, rq_ctx, vsd, rq_attr->vsd); in mlx5_devx_cmd_create_rq()
1277 MLX5_SET(rqc, rq_ctx, mem_rq_type, rq_attr->mem_rq_type); in mlx5_devx_cmd_create_rq()
1278 MLX5_SET(rqc, rq_ctx, state, rq_attr->state); in mlx5_devx_cmd_create_rq()
1279 MLX5_SET(rqc, rq_ctx, flush_in_error_en, rq_attr->flush_in_error_en); in mlx5_devx_cmd_create_rq()
1280 MLX5_SET(rqc, rq_ctx, hairpin, rq_attr->hairpin); in mlx5_devx_cmd_create_rq()
1281 MLX5_SET(rqc, rq_ctx, user_index, rq_attr->user_index); in mlx5_devx_cmd_create_rq()
1282 MLX5_SET(rqc, rq_ctx, cqn, rq_attr->cqn); in mlx5_devx_cmd_create_rq()
1283 MLX5_SET(rqc, rq_ctx, counter_set_id, rq_attr->counter_set_id); in mlx5_devx_cmd_create_rq()
1284 MLX5_SET(rqc, rq_ctx, rmpn, rq_attr->rmpn); in mlx5_devx_cmd_create_rq()
1285 MLX5_SET(sqc, rq_ctx, ts_format, rq_attr->ts_format); in mlx5_devx_cmd_create_rq()
1321 MLX5_SET(modify_rq_in, in, opcode, MLX5_CMD_OP_MODIFY_RQ); in mlx5_devx_cmd_modify_rq()
1322 MLX5_SET(modify_rq_in, in, rq_state, rq_attr->rq_state); in mlx5_devx_cmd_modify_rq()
1323 MLX5_SET(modify_rq_in, in, rqn, rq->id); in mlx5_devx_cmd_modify_rq()
1326 MLX5_SET(rqc, rq_ctx, state, rq_attr->state); in mlx5_devx_cmd_modify_rq()
1329 MLX5_SET(rqc, rq_ctx, scatter_fcs, rq_attr->scatter_fcs); in mlx5_devx_cmd_modify_rq()
1331 MLX5_SET(rqc, rq_ctx, vsd, rq_attr->vsd); in mlx5_devx_cmd_modify_rq()
1334 MLX5_SET(rqc, rq_ctx, counter_set_id, rq_attr->counter_set_id); in mlx5_devx_cmd_modify_rq()
1335 MLX5_SET(rqc, rq_ctx, hairpin_peer_sq, rq_attr->hairpin_peer_sq); in mlx5_devx_cmd_modify_rq()
1336 MLX5_SET(rqc, rq_ctx, hairpin_peer_vhca, rq_attr->hairpin_peer_vhca); in mlx5_devx_cmd_modify_rq()
1339 MLX5_SET(wq, wq_ctx, lwm, rq_attr->lwm); in mlx5_devx_cmd_modify_rq()
1381 MLX5_SET(create_rmp_in, in, opcode, MLX5_CMD_OP_CREATE_RMP); in mlx5_devx_cmd_create_rmp()
1383 MLX5_SET(rmpc, rmp_ctx, state, rmp_attr->state); in mlx5_devx_cmd_create_rmp()
1384 MLX5_SET(rmpc, rmp_ctx, basic_cyclic_rcv_wqe, in mlx5_devx_cmd_create_rmp()
1427 MLX5_SET(create_tir_in, in, opcode, MLX5_CMD_OP_CREATE_TIR); in mlx5_devx_cmd_create_tir()
1429 MLX5_SET(tirc, tir_ctx, disp_type, tir_attr->disp_type); in mlx5_devx_cmd_create_tir()
1430 MLX5_SET(tirc, tir_ctx, lro_timeout_period_usecs, in mlx5_devx_cmd_create_tir()
1432 MLX5_SET(tirc, tir_ctx, lro_enable_mask, tir_attr->lro_enable_mask); in mlx5_devx_cmd_create_tir()
1433 MLX5_SET(tirc, tir_ctx, lro_max_msg_sz, tir_attr->lro_max_msg_sz); in mlx5_devx_cmd_create_tir()
1434 MLX5_SET(tirc, tir_ctx, inline_rqn, tir_attr->inline_rqn); in mlx5_devx_cmd_create_tir()
1435 MLX5_SET(tirc, tir_ctx, rx_hash_symmetric, tir_attr->rx_hash_symmetric); in mlx5_devx_cmd_create_tir()
1436 MLX5_SET(tirc, tir_ctx, tunneled_offload_en, in mlx5_devx_cmd_create_tir()
1438 MLX5_SET(tirc, tir_ctx, indirect_table, tir_attr->indirect_table); in mlx5_devx_cmd_create_tir()
1439 MLX5_SET(tirc, tir_ctx, rx_hash_fn, tir_attr->rx_hash_fn); in mlx5_devx_cmd_create_tir()
1440 MLX5_SET(tirc, tir_ctx, self_lb_block, tir_attr->self_lb_block); in mlx5_devx_cmd_create_tir()
1441 MLX5_SET(tirc, tir_ctx, transport_domain, tir_attr->transport_domain); in mlx5_devx_cmd_create_tir()
1445 MLX5_SET(rx_hash_field_select, outer, l3_prot_type, in mlx5_devx_cmd_create_tir()
1447 MLX5_SET(rx_hash_field_select, outer, l4_prot_type, in mlx5_devx_cmd_create_tir()
1449 MLX5_SET(rx_hash_field_select, outer, selected_fields, in mlx5_devx_cmd_create_tir()
1452 MLX5_SET(rx_hash_field_select, inner, l3_prot_type, in mlx5_devx_cmd_create_tir()
1454 MLX5_SET(rx_hash_field_select, inner, l4_prot_type, in mlx5_devx_cmd_create_tir()
1456 MLX5_SET(rx_hash_field_select, inner, selected_fields, in mlx5_devx_cmd_create_tir()
1491 MLX5_SET(modify_tir_in, in, opcode, MLX5_CMD_OP_MODIFY_TIR); in mlx5_devx_cmd_modify_tir()
1492 MLX5_SET(modify_tir_in, in, tirn, modify_tir_attr->tirn); in mlx5_devx_cmd_modify_tir()
1498 MLX5_SET(tirc, tir_ctx, lro_timeout_period_usecs, in mlx5_devx_cmd_modify_tir()
1500 MLX5_SET(tirc, tir_ctx, lro_enable_mask, in mlx5_devx_cmd_modify_tir()
1502 MLX5_SET(tirc, tir_ctx, lro_max_msg_sz, in mlx5_devx_cmd_modify_tir()
1507 MLX5_SET(tirc, tir_ctx, indirect_table, in mlx5_devx_cmd_modify_tir()
1514 MLX5_SET(tirc, tir_ctx, rx_hash_symmetric, in mlx5_devx_cmd_modify_tir()
1516 MLX5_SET(tirc, tir_ctx, rx_hash_fn, tir_attr->rx_hash_fn); in mlx5_devx_cmd_modify_tir()
1518 MLX5_SET(tirc, tir_ctx, rx_hash_toeplitz_key[i], in mlx5_devx_cmd_modify_tir()
1523 MLX5_SET(rx_hash_field_select, outer, l3_prot_type, in mlx5_devx_cmd_modify_tir()
1525 MLX5_SET(rx_hash_field_select, outer, l4_prot_type, in mlx5_devx_cmd_modify_tir()
1527 MLX5_SET in mlx5_devx_cmd_modify_tir()
1532 MLX5_SET(rx_hash_field_select, inner, l3_prot_type, in mlx5_devx_cmd_modify_tir()
1534 MLX5_SET(rx_hash_field_select, inner, l4_prot_type, in mlx5_devx_cmd_modify_tir()
1536 MLX5_SET in mlx5_devx_cmd_modify_tir()
1542 MLX5_SET(tirc, tir_ctx, self_lb_block, tir_attr->self_lb_block); in mlx5_devx_cmd_modify_tir()
1590 MLX5_SET(create_rqt_in, in, opcode, MLX5_CMD_OP_CREATE_RQT); in mlx5_devx_cmd_create_rqt()
1592 MLX5_SET(rqtc, rqt_ctx, list_q_type, rqt_attr->rq_type); in mlx5_devx_cmd_create_rqt()
1593 MLX5_SET(rqtc, rqt_ctx, rqt_max_size, rqt_attr->rqt_max_size); in mlx5_devx_cmd_create_rqt()
1594 MLX5_SET(rqtc, rqt_ctx, rqt_actual_size, rqt_attr->rqt_actual_size); in mlx5_devx_cmd_create_rqt()
1596 MLX5_SET(rqtc, rqt_ctx, rq_num[i], rqt_attr->rq_list[i]); in mlx5_devx_cmd_create_rqt()
1637 MLX5_SET(modify_rqt_in, in, opcode, MLX5_CMD_OP_MODIFY_RQT); in mlx5_devx_cmd_modify_rqt()
1638 MLX5_SET(modify_rqt_in, in, rqtn, rqt->id); in mlx5_devx_cmd_modify_rqt()
1641 MLX5_SET(rqtc, rqt_ctx, list_q_type, rqt_attr->rq_type); in mlx5_devx_cmd_modify_rqt()
1642 MLX5_SET(rqtc, rqt_ctx, rqt_max_size, rqt_attr->rqt_max_size); in mlx5_devx_cmd_modify_rqt()
1643 MLX5_SET(rqtc, rqt_ctx, rqt_actual_size, rqt_attr->rqt_actual_size); in mlx5_devx_cmd_modify_rqt()
1645 MLX5_SET(rqtc, rqt_ctx, rq_num[i], rqt_attr->rq_list[i]); in mlx5_devx_cmd_modify_rqt()
1686 MLX5_SET(create_sq_in, in, opcode, MLX5_CMD_OP_CREATE_SQ); in mlx5_devx_cmd_create_sq()
1688 MLX5_SET(sqc, sq_ctx, rlky, sq_attr->rlky); in mlx5_devx_cmd_create_sq()
1689 MLX5_SET(sqc, sq_ctx, cd_master, sq_attr->cd_master); in mlx5_devx_cmd_create_sq()
1690 MLX5_SET(sqc, sq_ctx, fre, sq_attr->fre); in mlx5_devx_cmd_create_sq()
1691 MLX5_SET(sqc, sq_ctx, flush_in_error_en, sq_attr->flush_in_error_en); in mlx5_devx_cmd_create_sq()
1692 MLX5_SET(sqc, sq_ctx, allow_multi_pkt_send_wqe, in mlx5_devx_cmd_create_sq()
1694 MLX5_SET(sqc, sq_ctx, min_wqe_inline_mode, in mlx5_devx_cmd_create_sq()
1696 MLX5_SET(sqc, sq_ctx, state, sq_attr->state); in mlx5_devx_cmd_create_sq()
1697 MLX5_SET(sqc, sq_ctx, reg_umr, sq_attr->reg_umr); in mlx5_devx_cmd_create_sq()
1698 MLX5_SET(sqc, sq_ctx, allow_swp, sq_attr->allow_swp); in mlx5_devx_cmd_create_sq()
1699 MLX5_SET(sqc, sq_ctx, hairpin, sq_attr->hairpin); in mlx5_devx_cmd_create_sq()
1700 MLX5_SET(sqc, sq_ctx, non_wire, sq_attr->non_wire); in mlx5_devx_cmd_create_sq()
1701 MLX5_SET(sqc, sq_ctx, static_sq_wq, sq_attr->static_sq_wq); in mlx5_devx_cmd_create_sq()
1702 MLX5_SET(sqc, sq_ctx, user_index, sq_attr->user_index); in mlx5_devx_cmd_create_sq()
1703 MLX5_SET(sqc, sq_ctx, cqn, sq_attr->cqn); in mlx5_devx_cmd_create_sq()
1704 MLX5_SET(sqc, sq_ctx, packet_pacing_rate_limit_index, in mlx5_devx_cmd_create_sq()
1706 MLX5_SET(sqc, sq_ctx, tis_lst_sz, sq_attr->tis_lst_sz); in mlx5_devx_cmd_create_sq()
1707 MLX5_SET(sqc, sq_ctx, tis_num_0, sq_attr->tis_num); in mlx5_devx_cmd_create_sq()
1708 MLX5_SET(sqc, sq_ctx, ts_format, sq_attr->ts_format); in mlx5_devx_cmd_create_sq()
1744 MLX5_SET(modify_sq_in, in, opcode, MLX5_CMD_OP_MODIFY_SQ); in mlx5_devx_cmd_modify_sq()
1745 MLX5_SET(modify_sq_in, in, sq_state, sq_attr->sq_state); in mlx5_devx_cmd_modify_sq()
1746 MLX5_SET(modify_sq_in, in, sqn, sq->id); in mlx5_devx_cmd_modify_sq()
1748 MLX5_SET(sqc, sq_ctx, state, sq_attr->state); in mlx5_devx_cmd_modify_sq()
1749 MLX5_SET(sqc, sq_ctx, hairpin_peer_rq, sq_attr->hairpin_peer_rq); in mlx5_devx_cmd_modify_sq()
1750 MLX5_SET(sqc, sq_ctx, hairpin_peer_vhca, sq_attr->hairpin_peer_vhca); in mlx5_devx_cmd_modify_sq()
1787 MLX5_SET(create_tis_in, in, opcode, MLX5_CMD_OP_CREATE_TIS); in mlx5_devx_cmd_create_tis()
1789 MLX5_SET(tisc, tis_ctx, strict_lag_tx_port_affinity, in mlx5_devx_cmd_create_tis()
1791 MLX5_SET(tisc, tis_ctx, lag_tx_port_affinity, in mlx5_devx_cmd_create_tis()
1793 MLX5_SET(tisc, tis_ctx, prio, tis_attr->prio); in mlx5_devx_cmd_create_tis()
1794 MLX5_SET(tisc, tis_ctx, transport_domain, in mlx5_devx_cmd_create_tis()
1829 MLX5_SET(alloc_transport_domain_in, in, opcode, in mlx5_devx_cmd_create_td()
1924 MLX5_SET(create_cq_in, in, opcode, MLX5_CMD_OP_CREATE_CQ); in mlx5_devx_cmd_create_cq()
1926 MLX5_SET(cqc, cqctx, dbr_umem_valid, attr->db_umem_valid); in mlx5_devx_cmd_create_cq()
1927 MLX5_SET(cqc, cqctx, dbr_umem_id, attr->db_umem_id); in mlx5_devx_cmd_create_cq()
1932 MLX5_SET(cqc, cqctx, cqe_sz, (RTE_CACHE_LINE_SIZE == 128) ? in mlx5_devx_cmd_create_cq()
1934 MLX5_SET(cqc, cqctx, cc, attr->use_first_only); in mlx5_devx_cmd_create_cq()
1935 MLX5_SET(cqc, cqctx, oi, attr->overrun_ignore); in mlx5_devx_cmd_create_cq()
1936 MLX5_SET(cqc, cqctx, log_cq_size, attr->log_cq_size); in mlx5_devx_cmd_create_cq()
1938 MLX5_SET(cqc, cqctx, log_page_size, in mlx5_devx_cmd_create_cq()
1940 MLX5_SET(cqc, cqctx, c_eqn, attr->eqn); in mlx5_devx_cmd_create_cq()
1941 MLX5_SET(cqc, cqctx, uar_page, attr->uar_page_id); in mlx5_devx_cmd_create_cq()
1942 MLX5_SET(cqc, cqctx, cqe_comp_en, !!attr->cqe_comp_en); in mlx5_devx_cmd_create_cq()
1943 MLX5_SET(cqc, cqctx, mini_cqe_res_format, attr->mini_cqe_res_format); in mlx5_devx_cmd_create_cq()
1944 MLX5_SET(cqc, cqctx, mini_cqe_res_format_ext, in mlx5_devx_cmd_create_cq()
1947 MLX5_SET(create_cq_in, in, cq_umem_valid, attr->q_umem_valid); in mlx5_devx_cmd_create_cq()
1948 MLX5_SET(create_cq_in, in, cq_umem_id, attr->q_umem_id); in mlx5_devx_cmd_create_cq()
1993 MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode, in mlx5_devx_cmd_create_virtq()
1995 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type, in mlx5_devx_cmd_create_virtq()
2007 MLX5_SET(virtio_q, virtctx, event_qpn_or_msix, attr->qp_id); in mlx5_devx_cmd_create_virtq()
2013 MLX5_SET(virtio_q, virtctx, virtio_q_mkey, attr->mkey); in mlx5_devx_cmd_create_virtq()
2014 MLX5_SET(virtio_q, virtctx, umem_1_id, attr->umems[0].id); in mlx5_devx_cmd_create_virtq()
2015 MLX5_SET(virtio_q, virtctx, umem_1_size, attr->umems[0].size); in mlx5_devx_cmd_create_virtq()
2017 MLX5_SET(virtio_q, virtctx, umem_2_id, attr->umems[1].id); in mlx5_devx_cmd_create_virtq()
2018 MLX5_SET(virtio_q, virtctx, umem_2_size, attr->umems[1].size); in mlx5_devx_cmd_create_virtq()
2020 MLX5_SET(virtio_q, virtctx, umem_3_id, attr->umems[2].id); in mlx5_devx_cmd_create_virtq()
2021 MLX5_SET(virtio_q, virtctx, umem_3_size, attr->umems[2].size); in mlx5_devx_cmd_create_virtq()
2023 MLX5_SET(virtio_q, virtctx, counter_set_id, attr->counters_obj_id); in mlx5_devx_cmd_create_virtq()
2024 MLX5_SET(virtio_q, virtctx, pd, attr->pd); in mlx5_devx_cmd_create_virtq()
2025 MLX5_SET(virtio_q, virtctx, queue_period_mode, attr->hw_latency_mode); in mlx5_devx_cmd_create_virtq()
2026 MLX5_SET(virtio_q, virtctx, queue_period_us, attr->hw_max_latency_us); in mlx5_devx_cmd_create_virtq()
2027 MLX5_SET(virtio_q, virtctx, queue_max_count, attr->hw_max_pending_comp); in mlx5_devx_cmd_create_virtq()
2028 MLX5_SET(virtio_net_q, virtq, tisn_or_qpn, attr->tis_id); in mlx5_devx_cmd_create_virtq()
2063 MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode, in mlx5_devx_cmd_modify_virtq()
2065 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type, in mlx5_devx_cmd_modify_virtq()
2067 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_id, virtq_obj->id); in mlx5_devx_cmd_modify_virtq()
2075 MLX5_SET(virtio_net_q, virtq, dirty_bitmap_mkey, in mlx5_devx_cmd_modify_virtq()
2079 MLX5_SET(virtio_net_q, virtq, dirty_bitmap_size, in mlx5_devx_cmd_modify_virtq()
2083 MLX5_SET(virtio_net_q, virtq, dirty_bitmap_dump_enable, in mlx5_devx_cmd_modify_virtq()
2121 MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode, in mlx5_devx_cmd_query_virtq()
2123 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type, in mlx5_devx_cmd_query_virtq()
2125 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_id, virtq_obj->id); in mlx5_devx_cmd_query_virtq()
2169 MLX5_SET(create_qp_in, in, opcode, MLX5_CMD_OP_CREATE_QP); in mlx5_devx_cmd_create_qp()
2170 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in mlx5_devx_cmd_create_qp()
2171 MLX5_SET(qpc, qpc, pd, attr->pd); in mlx5_devx_cmd_create_qp()
2172 MLX5_SET(qpc, qpc, ts_format, attr->ts_format); in mlx5_devx_cmd_create_qp()
2173 MLX5_SET(qpc, qpc, user_index, attr->user_index); in mlx5_devx_cmd_create_qp()
2181 MLX5_SET(create_qp_in, in, qpc_ext, 1); in mlx5_devx_cmd_create_qp()
2182 MLX5_SET(qpc_extension, qpc_ext, mmo, 1); in mlx5_devx_cmd_create_qp()
2184 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in mlx5_devx_cmd_create_qp()
2185 MLX5_SET(qpc, qpc, uar_page, attr->uar_index); in mlx5_devx_cmd_create_qp()
2187 MLX5_SET(qpc, qpc, log_page_size, in mlx5_devx_cmd_create_qp()
2191 MLX5_SET(qpc, qpc, cqn_snd, attr->cqn); in mlx5_devx_cmd_create_qp()
2192 MLX5_SET(qpc, qpc, log_sq_size, in mlx5_devx_cmd_create_qp()
2195 MLX5_SET(qpc, qpc, no_sq, 1); in mlx5_devx_cmd_create_qp()
2200 MLX5_SET(qpc, qpc, cqn_rcv, attr->cqn); in mlx5_devx_cmd_create_qp()
2201 MLX5_SET(qpc, qpc, log_rq_stride, attr->log_rq_stride - in mlx5_devx_cmd_create_qp()
2203 MLX5_SET(qpc, qpc, log_rq_size, in mlx5_devx_cmd_create_qp()
2205 MLX5_SET(qpc, qpc, rq_type, MLX5_NON_ZERO_RQ); in mlx5_devx_cmd_create_qp()
2207 MLX5_SET(qpc, qpc, rq_type, MLX5_ZERO_LEN_RQ); in mlx5_devx_cmd_create_qp()
2210 MLX5_SET(qpc, qpc, dbr_umem_valid, in mlx5_devx_cmd_create_qp()
2212 MLX5_SET(qpc, qpc, dbr_umem_id, attr->dbr_umem_id); in mlx5_devx_cmd_create_qp()
2217 MLX5_SET(create_qp_in, in, wq_umem_id, attr->wq_umem_id); in mlx5_devx_cmd_create_qp()
2218 MLX5_SET(create_qp_in, in, wq_umem_valid, 1); in mlx5_devx_cmd_create_qp()
2221 MLX5_SET(qpc, qpc, rq_type, MLX5_ZERO_LEN_RQ); in mlx5_devx_cmd_create_qp()
2222 MLX5_SET(qpc, qpc, no_sq, 1); in mlx5_devx_cmd_create_qp()
2271 MLX5_SET(rst2init_qp_in, &in, opcode, qp_st_mod_op); in mlx5_devx_cmd_modify_qp_state()
2274 MLX5_SET(rst2init_qp_in, &in, qpn, qp->id); in mlx5_devx_cmd_modify_qp_state()
2276 MLX5_SET(qpc, qpc, primary_address_path.vhca_port_num, 1); in mlx5_devx_cmd_modify_qp_state()
2277 MLX5_SET(qpc, qpc, rre, 1); in mlx5_devx_cmd_modify_qp_state()
2278 MLX5_SET(qpc, qpc, rwe, 1); in mlx5_devx_cmd_modify_qp_state()
2279 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in mlx5_devx_cmd_modify_qp_state()
2284 MLX5_SET(init2rtr_qp_in, &in, qpn, qp->id); in mlx5_devx_cmd_modify_qp_state()
2286 MLX5_SET(qpc, qpc, primary_address_path.fl, 1); in mlx5_devx_cmd_modify_qp_state()
2287 MLX5_SET(qpc, qpc, primary_address_path.vhca_port_num, 1); in mlx5_devx_cmd_modify_qp_state()
2288 MLX5_SET(qpc, qpc, mtu, 1); in mlx5_devx_cmd_modify_qp_state()
2289 MLX5_SET(qpc, qpc, log_msg_max, 30); in mlx5_devx_cmd_modify_qp_state()
2290 MLX5_SET(qpc, qpc, remote_qpn, remote_qp_id); in mlx5_devx_cmd_modify_qp_state()
2291 MLX5_SET(qpc, qpc, min_rnr_nak, 0); in mlx5_devx_cmd_modify_qp_state()
2297 MLX5_SET(rtr2rts_qp_in, &in, qpn, qp->id); in mlx5_devx_cmd_modify_qp_state()
2298 MLX5_SET(qpc, qpc, primary_address_path.ack_timeout, 16); in mlx5_devx_cmd_modify_qp_state()
2299 MLX5_SET(qpc, qpc, log_ack_req_freq, 0); in mlx5_devx_cmd_modify_qp_state()
2300 MLX5_SET(qpc, qpc, retry_count, 7); in mlx5_devx_cmd_modify_qp_state()
2301 MLX5_SET(qpc, qpc, rnr_retry, 7); in mlx5_devx_cmd_modify_qp_state()
2335 MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode, in mlx5_devx_cmd_create_virtio_q_counters()
2337 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type, in mlx5_devx_cmd_create_virtio_q_counters()
2363 MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode, in mlx5_devx_cmd_query_virtio_q_counters()
2365 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type, in mlx5_devx_cmd_query_virtio_q_counters()
2367 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_id, couners_obj->id); in mlx5_devx_cmd_query_virtio_q_counters()
2417 MLX5_SET(general_obj_in_cmd_hdr, ptr, opcode, in mlx5_devx_cmd_create_flow_hit_aso_obj()
2419 MLX5_SET(general_obj_in_cmd_hdr, ptr, obj_type, in mlx5_devx_cmd_create_flow_hit_aso_obj()
2422 MLX5_SET(flow_hit_aso, ptr, access_pd, pd); in mlx5_devx_cmd_create_flow_hit_aso_obj()
2457 MLX5_SET(alloc_pd_in, in, opcode, MLX5_CMD_OP_ALLOC_PD); in mlx5_devx_cmd_alloc_pd()
2502 MLX5_SET(general_obj_in_cmd_hdr, ptr, opcode, in mlx5_devx_cmd_create_flow_meter_aso_obj()
2504 MLX5_SET(general_obj_in_cmd_hdr, ptr, obj_type, in mlx5_devx_cmd_create_flow_meter_aso_obj()
2506 MLX5_SET(general_obj_in_cmd_hdr, ptr, log_obj_range, in mlx5_devx_cmd_create_flow_meter_aso_obj()
2509 MLX5_SET(flow_meter_aso, ptr, access_pd, pd); in mlx5_devx_cmd_create_flow_meter_aso_obj()
2555 MLX5_SET(general_obj_in_cmd_hdr, ptr, opcode, in mlx5_devx_cmd_create_conn_track_offload_obj()
2557 MLX5_SET(general_obj_in_cmd_hdr, ptr, obj_type, in mlx5_devx_cmd_create_conn_track_offload_obj()
2559 MLX5_SET(general_obj_in_cmd_hdr, ptr, log_obj_range, log_obj_size); in mlx5_devx_cmd_create_conn_track_offload_obj()
2561 MLX5_SET(conn_track_offload, ptr, conn_track_aso_access_pd, pd); in mlx5_devx_cmd_create_conn_track_offload_obj()
2607 MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode, in mlx5_devx_cmd_create_geneve_tlv_option()
2609 MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type, in mlx5_devx_cmd_create_geneve_tlv_option()
2611 MLX5_SET(geneve_tlv_option, opt, option_class, in mlx5_devx_cmd_create_geneve_tlv_option()
2613 MLX5_SET(geneve_tlv_option, opt, option_type, type); in mlx5_devx_cmd_create_geneve_tlv_option()
2614 MLX5_SET(geneve_tlv_option, opt, option_data_length, len); in mlx5_devx_cmd_create_geneve_tlv_option()
2637 MLX5_SET(query_rq_in, in, opcode, MLX5_CMD_OP_QUERY_RQ); in mlx5_devx_cmd_wq_query()
2638 MLX5_SET(query_rq_in, in, rqn, ((struct ibv_wq *)wq)->wq_num); in mlx5_devx_cmd_wq_query()
2678 MLX5_SET(alloc_q_counter_in, in, opcode, MLX5_CMD_OP_ALLOC_Q_COUNTER); in mlx5_devx_cmd_queue_counter_alloc()
2713 MLX5_SET(query_q_counter_in, in, opcode, in mlx5_devx_cmd_queue_counter_query()
2715 MLX5_SET(query_q_counter_in, in, op_mod, 0); in mlx5_devx_cmd_queue_counter_query()
2716 MLX5_SET(query_q_counter_in, in, counter_set_id, dcs->id); in mlx5_devx_cmd_queue_counter_query()
2717 MLX5_SET(query_q_counter_in, in, clear, !!clear); in mlx5_devx_cmd_queue_counter_query()
2756 MLX5_SET(general_obj_in_cmd_hdr, ptr, opcode, in mlx5_devx_cmd_create_dek_obj()
2758 MLX5_SET(general_obj_in_cmd_hdr, ptr, obj_type, in mlx5_devx_cmd_create_dek_obj()
2761 MLX5_SET(dek, ptr, key_size, attr->key_size); in mlx5_devx_cmd_create_dek_obj()
2762 MLX5_SET(dek, ptr, has_keytag, attr->has_keytag); in mlx5_devx_cmd_create_dek_obj()
2763 MLX5_SET(dek, ptr, key_purpose, attr->key_purpose); in mlx5_devx_cmd_create_dek_obj()
2764 MLX5_SET(dek, ptr, pd, attr->pd); in mlx5_devx_cmd_create_dek_obj()
2808 MLX5_SET(general_obj_in_cmd_hdr, ptr, opcode, in mlx5_devx_cmd_create_import_kek_obj()
2810 MLX5_SET(general_obj_in_cmd_hdr, ptr, obj_type, in mlx5_devx_cmd_create_import_kek_obj()
2813 MLX5_SET(import_kek, ptr, key_size, attr->key_size); in mlx5_devx_cmd_create_import_kek_obj()
2856 MLX5_SET(general_obj_in_cmd_hdr, ptr, opcode, in mlx5_devx_cmd_create_credential_obj()
2858 MLX5_SET(general_obj_in_cmd_hdr, ptr, obj_type, in mlx5_devx_cmd_create_credential_obj()
2861 MLX5_SET(credential, ptr, credential_role, attr->credential_role); in mlx5_devx_cmd_create_credential_obj()
2905 MLX5_SET(general_obj_in_cmd_hdr, ptr, opcode, in mlx5_devx_cmd_create_crypto_login_obj()
2907 MLX5_SET(general_obj_in_cmd_hdr, ptr, obj_type, in mlx5_devx_cmd_create_crypto_login_obj()
2910 MLX5_SET(crypto_login, ptr, credential_pointer, in mlx5_devx_cmd_create_crypto_login_obj()
2912 MLX5_SET(crypto_login, ptr, session_import_kek_ptr, in mlx5_devx_cmd_create_crypto_login_obj()
2949 MLX5_SET(query_lag_in, in, opcode, MLX5_CMD_OP_QUERY_LAG); in mlx5_devx_cmd_query_lag()