Home
last modified time | relevance | path

Searched refs:MLX5_SET (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_fs_cmd.c174 MLX5_SET(set_flow_table_root_in, in, opcode, in mlx5_cmd_fs_set_fte()
176 MLX5_SET(set_flow_table_root_in, in, table_type, ft->type); in mlx5_cmd_fs_set_fte()
179 MLX5_SET(set_flow_table_root_in, in, op_mod, 1); in mlx5_cmd_fs_set_fte()
181 MLX5_SET(set_flow_table_root_in, in, table_id, ft->id); in mlx5_cmd_fs_set_fte()
183 MLX5_SET(set_flow_table_root_in, in, underlay_qpn, underlay_qpn); in mlx5_cmd_fs_set_fte()
184 MLX5_SET(set_flow_table_root_in, in, vport_number, ft->vport); in mlx5_cmd_fs_set_fte()
185 MLX5_SET(set_flow_table_root_in, in, other_vport, in mlx5_cmd_fs_set_fte()
209 MLX5_SET(create_flow_table_in, in, opcode, in mlx5_cmd_fs_set_fte()
212 MLX5_SET(create_flow_table_in, in, uid, ft_attr->uid); in mlx5_cmd_fs_set_fte()
213 MLX5_SET(create_flow_table_i in mlx5_cmd_fs_set_fte()
[all...]
H A Dmlx5_transobj.c39 MLX5_SET(alloc_transport_domain_in, in, opcode, in mlx5_alloc_transport_domain()
41 MLX5_SET(alloc_transport_domain_in, in, uid, uid); in mlx5_alloc_transport_domain()
56 MLX5_SET(dealloc_transport_domain_in, in, opcode, in mlx5_dealloc_transport_domain()
58 MLX5_SET(dealloc_transport_domain_in, in, transport_domain, tdn); in mlx5_dealloc_transport_domain()
59 MLX5_SET(dealloc_transport_domain_in, in, uid, uid); in mlx5_dealloc_transport_domain()
69 MLX5_SET(create_rq_in, in, opcode, MLX5_CMD_OP_CREATE_RQ); in mlx5_core_create_rq()
82 MLX5_SET(modify_rq_in, in, opcode, MLX5_CMD_OP_MODIFY_RQ); in mlx5_core_modify_rq()
92 MLX5_SET(destroy_rq_in, in, opcode, MLX5_CMD_OP_DESTROY_RQ); in mlx5_core_destroy_rq()
93 MLX5_SET(destroy_rq_in, in, rqn, rqn); in mlx5_core_destroy_rq()
103 MLX5_SET(query_rq_in, in, opcode, MLX5_CMD_OP_QUERY_RQ); in mlx5_core_query_rq()
[all …]
H A Dmlx5_tls.c42 MLX5_SET(tisc, tisc, prio, tc); in mlx5_encryption_key_create()
43 MLX5_SET(tisc, tisc, transport_domain, tdn); in mlx5_encryption_key_create()
44 MLX5_SET(tisc, tisc, tls_en, 1); in mlx5_encryption_key_create()
45 MLX5_SET(tisc, tisc, pd, pdn); in mlx5_encryption_key_create()
68 MLX5_SET(tirc, tirc, transport_domain, tdn); in mlx5_encryption_key_create()
69 MLX5_SET(tirc, tirc, disp_type, MLX5_TIRC_DISP_TYPE_INDIRECT); in mlx5_encryption_key_create()
70 MLX5_SET(tirc, tirc, rx_hash_fn, MLX5_TIRC_RX_HASH_FN_HASH_INVERTED_XOR8); in mlx5_encryption_key_create()
71 MLX5_SET(tirc, tirc, indirect_table, rqtn); in mlx5_encryption_key_create()
72 MLX5_SET(tirc, tirc, tls_en, 1); in mlx5_encryption_key_create()
73 MLX5_SET(tir in mlx5_encryption_key_create()
[all...]
H A Dmlx5_vport.c43 MLX5_SET(query_vport_state_in, in, opcode, in _mlx5_query_vport_state()
45 MLX5_SET(query_vport_state_in, in, op_mod, opmod); in _mlx5_query_vport_state()
46 MLX5_SET(query_vport_state_in, in, vport_number, vport); in _mlx5_query_vport_state()
48 MLX5_SET(query_vport_state_in, in, other_vport, 1); in _mlx5_query_vport_state()
84 MLX5_SET(modify_vport_state_in, in, opcode, in mlx5_modify_vport_admin_state()
86 MLX5_SET(modify_vport_state_in, in, op_mod, opmod); in mlx5_modify_vport_admin_state()
87 MLX5_SET(modify_vport_state_in, in, vport_number, vport); in mlx5_modify_vport_admin_state()
90 MLX5_SET(modify_vport_state_in, in, other_vport, 1); in mlx5_modify_vport_admin_state()
92 MLX5_SET(modify_vport_state_in, in, admin_state, state); in mlx5_modify_vport_admin_state()
107 MLX5_SET(query_nic_vport_context_in, in, opcode, in mlx5_query_nic_vport_context()
[all …]
H A Dmlx5_port.c52 MLX5_SET(access_register_in, in, opcode, MLX5_CMD_OP_ACCESS_REG); in mlx5_core_access_reg()
53 MLX5_SET(access_register_in, in, op_mod, !write); in mlx5_core_access_reg()
54 MLX5_SET(access_register_in, in, argument, arg); in mlx5_core_access_reg()
55 MLX5_SET(access_register_in, in, register_id, reg_num); in mlx5_core_access_reg()
76 MLX5_SET(qcam_reg, in, feature_group, feature_group); in mlx5_query_qcam_reg()
77 MLX5_SET(qcam_reg, in, access_reg_group, access_reg_group); in mlx5_query_qcam_reg()
89 MLX5_SET(pcam_reg, in, feature_group, feature_group); in mlx5_query_pcam_reg()
90 MLX5_SET(pcam_reg, in, access_reg_group, access_reg_group); in mlx5_query_pcam_reg()
101 MLX5_SET(mcam_reg, in, feature_group, feature_group); in mlx5_query_mcam_reg()
102 MLX5_SET(mcam_reg, in, access_reg_group, access_reg_group); in mlx5_query_mcam_reg()
[all …]
H A Dmlx5_qp.c128 MLX5_SET(create_qp_in, in, opcode, MLX5_CMD_OP_CREATE_QP); in mlx5_core_create_qp()
147 MLX5_SET(destroy_qp_in, din, opcode, MLX5_CMD_OP_DESTROY_QP); in mlx5_core_create_qp()
148 MLX5_SET(destroy_qp_in, din, qpn, qp->qpn); in mlx5_core_create_qp()
149 MLX5_SET(destroy_qp_in, din, uid, qp->uid); in mlx5_core_create_qp()
165 MLX5_SET(destroy_qp_in, in, opcode, MLX5_CMD_OP_DESTROY_QP); in mlx5_core_destroy_qp()
166 MLX5_SET(destroy_qp_in, in, qpn, qp->qpn); in mlx5_core_destroy_qp()
167 MLX5_SET(destroy_qp_in, in, uid, qp->uid); in mlx5_core_destroy_qp()
217 MLX5_SET(typ##_in, in, opcode, _opcode); \ in modify_qp_mbox_alloc()
218 MLX5_SET(typ##_in, in, qpn, _qpn); \ in modify_qp_mbox_alloc()
219 MLX5_SET(typ##_in, in, uid, _uid); \ in modify_qp_mbox_alloc()
[all …]
H A Dmlx5_fc_cmd.c
H A Dmlx5_srq.c63 MLX5_SET(wq, wq, wq_signature, !!(in->flags & MLX5_SRQ_FLAG_WQ_SIG)); in set_wq()
64 MLX5_SET(wq, wq, log_wq_pg_sz, in->log_page_size); in set_wq()
65 MLX5_SET(wq, wq, log_wq_stride, in->wqe_shift + 4); in set_wq()
66 MLX5_SET(wq, wq, log_wq_sz, in->log_size); in set_wq()
67 MLX5_SET(wq, wq, page_offset, in->page_offset); in set_wq()
68 MLX5_SET(wq, wq, lwm, in->lwm); in set_wq()
69 MLX5_SET(wq, wq, pd, in->pd); in set_wq()
75 MLX5_SET(srqc, srqc, wq_signature, !!(in->flags & MLX5_SRQ_FLAG_WQ_SIG)); in set_srqc()
76 MLX5_SET(srqc, srqc, log_page_size, in->log_page_size); in set_srqc()
77 MLX5_SET(srqc, srqc, log_rq_stride, in->wqe_shift); in set_srqc()
[all …]
H A Dmlx5_mr.c71 MLX5_SET(create_mkey_in, in, opcode, MLX5_CMD_OP_CREATE_MKEY); in mlx5_core_create_mkey_cb()
72 MLX5_SET(mkc, mkc, mkey_7_0, key); in mlx5_core_create_mkey_cb()
76 MLX5_SET(mkc, mkc, relaxed_ordering_write, 1); in mlx5_core_create_mkey_cb()
139 MLX5_SET(destroy_mkey_in, in, opcode, MLX5_CMD_OP_DESTROY_MKEY); in mlx5_core_destroy_mkey()
140 MLX5_SET(destroy_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key)); in mlx5_core_destroy_mkey()
152 MLX5_SET(query_mkey_in, in, opcode, MLX5_CMD_OP_QUERY_MKEY); in mlx5_core_query_mkey()
153 MLX5_SET(query_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key)); in mlx5_core_query_mkey()
166 MLX5_SET(query_special_contexts_in, in, opcode, in mlx5_core_dump_fill_mkey()
196 MLX5_SET(create_psv_in, in, opcode, MLX5_CMD_OP_CREATE_PSV); in mlx5_core_create_psv()
197 MLX5_SET(create_psv_in, in, pd, pdn); in mlx5_core_create_psv()
[all …]
H A Dmlx5_cq.c134 MLX5_SET(create_cq_in, in, opcode, MLX5_CMD_OP_CREATE_CQ); in mlx5_core_create_cq()
158 MLX5_SET(destroy_cq_in, din, opcode, MLX5_CMD_OP_DESTROY_CQ); in mlx5_core_create_cq()
159 MLX5_SET(destroy_cq_in, din, cqn, cq->cqn); in mlx5_core_create_cq()
186 MLX5_SET(destroy_cq_in, in, opcode, MLX5_CMD_OP_DESTROY_CQ); in mlx5_core_destroy_cq()
187 MLX5_SET(destroy_cq_in, in, cqn, cq->cqn); in mlx5_core_destroy_cq()
197 MLX5_SET(query_cq_in, in, opcode, MLX5_CMD_OP_QUERY_CQ); in mlx5_core_query_cq()
198 MLX5_SET(query_cq_in, in, cqn, cq->cqn); in mlx5_core_query_cq()
210 MLX5_SET(modify_cq_in, in, opcode, MLX5_CMD_OP_MODIFY_CQ); in mlx5_core_modify_cq()
244 MLX5_SET(modify_cq_in, in, cqn, cq->cqn); in mlx5_core_modify_cq_by_mask()
247 MLX5_SET(cqc, cqc, cq_period, cq_period); in mlx5_core_modify_cq_by_mask()
[all …]
H A Dmlx5_fw.c41 MLX5_SET(query_adapter_in, in, opcode, MLX5_CMD_OP_QUERY_ADAPTER); in mlx5_cmd_query_adapter()
102 MLX5_SET(query_special_contexts_in, in, opcode, in mlx5_core_query_special_contexts()
263 MLX5_SET(init_hca_in, in, opcode, MLX5_CMD_OP_INIT_HCA); in mlx5_cmd_teardown_hca()
274 MLX5_SET(teardown_hca_in, in, opcode, MLX5_CMD_OP_TEARDOWN_HCA); in mlx5_cmd_force_teardown_hca()
290 MLX5_SET(teardown_hca_in, in, opcode, MLX5_CMD_OP_TEARDOWN_HCA); in mlx5_cmd_force_teardown_hca()
291 MLX5_SET(teardown_hca_in, in, profile, MLX5_TEARDOWN_HCA_IN_PROFILE_FORCE_CLOSE); in mlx5_cmd_force_teardown_hca()
320 MLX5_SET(teardown_hca_in, in, opcode, MLX5_CMD_OP_TEARDOWN_HCA); in mlx5_cmd_fast_teardown_hca()
321 MLX5_SET(teardown_hca_in, in, profile, in mlx5_cmd_fast_teardown_hca()
361 MLX5_SET(set_dc_cnak_trace_in, in, opcode, MLX5_CMD_OP_SET_DC_CNAK_TRACE); in mlx5_core_set_dc_cnak_trace()
362 MLX5_SET(set_dc_cnak_trace_i in mlx5_core_set_dc_cnak_trace()
[all...]
H A Dmlx5_pd.c40 MLX5_SET(alloc_pd_in, in, opcode, MLX5_CMD_OP_ALLOC_PD); in mlx5_core_alloc_pd()
41 MLX5_SET(alloc_pd_in, in, uid, uid); in mlx5_core_alloc_pd()
57 MLX5_SET(dealloc_pd_in, in, opcode, MLX5_CMD_OP_DEALLOC_PD); in mlx5_core_dealloc_pd()
58 MLX5_SET(dealloc_pd_in, in, uid, uid); in mlx5_core_dealloc_pd()
59 MLX5_SET(dealloc_pd_in, in, pd, pdn); in mlx5_core_dealloc_pd()
H A Dmlx5_mpfs.c68 MLX5_SET(set_l2_table_entry_in, in, opcode, MLX5_CMD_OP_SET_L2_TABLE_ENTRY); in mlx5_mpfs_add_mac()
69 MLX5_SET(set_l2_table_entry_in, in, table_index, index); in mlx5_mpfs_add_mac()
70 MLX5_SET(set_l2_table_entry_in, in, vlan_valid, vlan_valid); in mlx5_mpfs_add_mac()
71 MLX5_SET(set_l2_table_entry_in, in, vlan, vlan); in mlx5_mpfs_add_mac()
100 MLX5_SET(delete_l2_table_entry_in, in, opcode, MLX5_CMD_OP_DELETE_L2_TABLE_ENTRY); in mlx5_mpfs_del_mac()
101 MLX5_SET(delete_l2_table_entry_in, in, table_index, index); in mlx5_mpfs_del_mac()
H A Dmlx5_diag_cnt.c378 MLX5_SET(set_diagnostic_params_in, in, opcode, in mlx5_diag_set_params()
383 MLX5_SET(diagnostic_params_context, ctx, num_of_counters, in mlx5_diag_set_params()
385 MLX5_SET(diagnostic_params_context, ctx, log_num_of_samples, in mlx5_diag_set_params()
388 MLX5_SET(diagnostic_params_context, ctx, single, in mlx5_diag_set_params()
390 MLX5_SET(diagnostic_params_context, ctx, repetitive, in mlx5_diag_set_params()
392 MLX5_SET(diagnostic_params_context, ctx, sync, in mlx5_diag_set_params()
394 MLX5_SET(diagnostic_params_context, ctx, clear, in mlx5_diag_set_params()
396 MLX5_SET(diagnostic_params_context, ctx, on_demand, in mlx5_diag_set_params()
398 MLX5_SET(diagnostic_params_context, ctx, enable, in mlx5_diag_set_params()
400 MLX5_SET(diagnostic_params_context, ctx, log_sample_period, in mlx5_diag_set_params()
[all …]
H A Dmlx5_eswitch.c95 MLX5_SET(modify_nic_vport_context_in, in, in arm_vport_context_events_cmd()
97 MLX5_SET(modify_nic_vport_context_in, in, field_select.change_event, 1); in arm_vport_context_events_cmd()
98 MLX5_SET(modify_nic_vport_context_in, in, vport_number, vport); in arm_vport_context_events_cmd()
100 MLX5_SET(modify_nic_vport_context_in, in, other_vport, 1); in arm_vport_context_events_cmd()
104 MLX5_SET(nic_vport_context, nic_vport_ctx, arm_change_event, 1); in arm_vport_context_events_cmd()
107 MLX5_SET(nic_vport_context, nic_vport_ctx, in arm_vport_context_events_cmd()
110 MLX5_SET(nic_vport_context, nic_vport_ctx, in arm_vport_context_events_cmd()
122 MLX5_SET(query_nic_vport_context_in, in, opcode, in query_esw_vport_context_cmd()
125 MLX5_SET(query_esw_vport_context_in, in, vport_number, vport); in query_esw_vport_context_cmd()
127 MLX5_SET(query_esw_vport_context_in, in, other_vport, 1); in query_esw_vport_context_cmd()
[all …]
H A Dmlx5_mcg.c40 MLX5_SET(attach_to_mcg_in, in, opcode, MLX5_CMD_OP_ATTACH_TO_MCG); in mlx5_core_attach_mcg()
41 MLX5_SET(attach_to_mcg_in, in, qpn, qpn); in mlx5_core_attach_mcg()
54 MLX5_SET(detach_from_mcg_in, in, opcode, MLX5_CMD_OP_DETACH_FROM_MCG); in mlx5_core_detach_mcg()
55 MLX5_SET(detach_from_mcg_in, in, qpn, qpn); in mlx5_core_detach_mcg()
H A Dmlx5_rl.c65 MLX5_SET(set_rate_limit_in, in, opcode, MLX5_CMD_OP_SET_RATE_LIMIT); in mlx5_set_rate_limit_cmd()
66 MLX5_SET(set_rate_limit_in, in, rate_limit_index, index); in mlx5_set_rate_limit_cmd()
67 MLX5_SET(set_rate_limit_in, in, rate_limit, rate); in mlx5_set_rate_limit_cmd()
68 MLX5_SET(set_rate_limit_in, in, burst_upper_bound, burst); in mlx5_set_rate_limit_cmd()
69 MLX5_SET(set_rate_limit_in, in, typical_packet_size, 0 /* use MTU */); in mlx5_set_rate_limit_cmd()
81 MLX5_SET(query_pp_rate_limit_in, in, opcode, MLX5_CMD_OP_QUERY_RATE_LIMIT); in mlx5e_query_rate_limit_cmd()
82 MLX5_SET(query_pp_rate_limit_in, in, rate_limit_index, index); in mlx5e_query_rate_limit_cmd()
H A Dmlx5_pagealloc.c304 MLX5_SET(query_pages_in, in, opcode, MLX5_CMD_OP_QUERY_PAGES); in mlx5_cmd_query_pages()
305 MLX5_SET(query_pages_in, in, op_mod, boot ? in mlx5_cmd_query_pages()
344 MLX5_SET(manage_pages_in, in, opcode, MLX5_CMD_OP_MANAGE_PAGES); in give_pages()
345 MLX5_SET(manage_pages_in, in, op_mod, MLX5_PAGES_GIVE); in give_pages()
346 MLX5_SET(manage_pages_in, in, function_id, func_id); in give_pages()
347 MLX5_SET(manage_pages_in, in, input_num_entries, npages); in give_pages()
369 MLX5_SET(manage_pages_in, nin, opcode, MLX5_CMD_OP_MANAGE_PAGES); in give_pages()
370 MLX5_SET(manage_pages_in, nin, op_mod, MLX5_PAGES_CANT_GIVE); in give_pages()
371 MLX5_SET(manage_pages_in, nin, function_id, func_id); in give_pages()
412 MLX5_SET(manage_pages_out, out, output_num_entries, i); in reclaim_pages_cmd()
[all …]
/freebsd/sys/dev/mlx5/mlx5_fpga/
H A Dmlx5fpga_conn.c233 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5_fpga_conn_create_mkey()
234 MLX5_SET(mkc, mkc, lw, 1); in mlx5_fpga_conn_create_mkey()
235 MLX5_SET(mkc, mkc, lr, 1); in mlx5_fpga_conn_create_mkey()
237 MLX5_SET(mkc, mkc, pd, pdn); in mlx5_fpga_conn_create_mkey()
238 MLX5_SET(mkc, mkc, length64, 1); in mlx5_fpga_conn_create_mkey()
239 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5_fpga_conn_create_mkey()
439 MLX5_SET(cqc, temp_cqc, log_cq_size, ilog2(cq_size)); in mlx5_fpga_conn_create_cq()
467 MLX5_SET(cqc, cqc, log_cq_size, ilog2(cq_size)); in mlx5_fpga_conn_create_cq()
468 MLX5_SET(cqc, cqc, c_eqn, eqn); in mlx5_fpga_conn_create_cq()
469 MLX5_SET(cqc, cqc, uar_page, fdev->conn_res.uar->index); in mlx5_fpga_conn_create_cq()
[all …]
H A Dmlx5fpga_cmd.c57 MLX5_SET(fpga_access_reg, in, size, size); in mlx5_fpga_access_reg()
87 MLX5_SET(fpga_ctrl, in, operation, op); in mlx5_fpga_ctrl_op()
131 MLX5_SET(fpga_ctrl, in, operation, op); in mlx5_fpga_ctrl_write()
132 MLX5_SET(fpga_ctrl, in, flash_select_admin, image); in mlx5_fpga_ctrl_write()
185 MLX5_SET(fpga_ctrl, in, operation, *connect); in mlx5_fpga_ctrl_connect()
200 MLX5_SET(mtmp_reg, in, sensor_index, temp->index); in mlx5_fpga_query_mtmp()
201 MLX5_SET(mtmp_reg, in, i, in mlx5_fpga_query_mtmp()
232 MLX5_SET(fpga_create_qp_in, in, opcode, MLX5_CMD_OP_FPGA_CREATE_QP); in mlx5_fpga_create_qp()
253 MLX5_SET(fpga_modify_qp_in, in, opcode, MLX5_CMD_OP_FPGA_MODIFY_QP); in mlx5_fpga_modify_qp()
254 MLX5_SET(fpga_modify_qp_in, in, field_select, fields); in mlx5_fpga_modify_qp()
[all …]
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_main.c652 MLX5_SET(mpcnt_reg, in, grp, MLX5_PCIE_PERFORMANCE_COUNTERS_GROUP); in mlx5e_update_pcie_counters()
660 MLX5_SET(mpcnt_reg, in, grp, MLX5_PCIE_TIMERS_AND_STATES_COUNTERS_GROUP); in mlx5e_update_pcie_counters()
667 MLX5_SET(mpcnt_reg, in, grp, MLX5_PCIE_LANE_COUNTERS_GROUP); in mlx5e_update_pcie_counters()
712 MLX5_SET(ppcnt_reg, in, local_port, 1); in mlx5e_update_pport_counters()
715 MLX5_SET(ppcnt_reg, in, grp, MLX5_IEEE_802_3_COUNTERS_GROUP); in mlx5e_update_pport_counters()
722 MLX5_SET(ppcnt_reg, in, grp, MLX5_RFC_2819_COUNTERS_GROUP); in mlx5e_update_pport_counters()
732 MLX5_SET(ppcnt_reg, in, grp, MLX5_RFC_2863_COUNTERS_GROUP); in mlx5e_update_pport_counters()
738 MLX5_SET(ppcnt_reg, in, grp, MLX5_PHYSICAL_LAYER_COUNTERS_GROUP); in mlx5e_update_pport_counters()
744 MLX5_SET(ppcnt_reg, in, grp, MLX5_ETHERNET_EXTENDED_COUNTERS_GROUP); in mlx5e_update_pport_counters()
754 MLX5_SET(ppcnt_reg, in, grp, MLX5_PHYSICAL_LAYER_STATISTICAL_GROUP); in mlx5e_update_pport_counters()
[all …]
H A Dmlx5_en_iq.c259 MLX5_SET(sqc, sqc, tis_num_0, tis_num); in mlx5e_iq_enable()
260 MLX5_SET(sqc, sqc, cqn, iq->cq.mcq.cqn); in mlx5e_iq_enable()
261 MLX5_SET(sqc, sqc, state, MLX5_SQC_STATE_RST); in mlx5e_iq_enable()
262 MLX5_SET(sqc, sqc, ts_format, ts_format); in mlx5e_iq_enable()
263 MLX5_SET(sqc, sqc, tis_lst_sz, 1); in mlx5e_iq_enable()
264 MLX5_SET(sqc, sqc, flush_in_error_en, 1); in mlx5e_iq_enable()
265 MLX5_SET(sqc, sqc, allow_swp, 1); in mlx5e_iq_enable()
269 MLX5_SET(sqc, sqc, qos_remap_en, 1); in mlx5e_iq_enable()
271 MLX5_SET(sqc, sqc, reg_umr, 1); in mlx5e_iq_enable()
277 MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_CYCLIC); in mlx5e_iq_enable()
[all …]
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_devx.c181 MLX5_SET(create_uctx_in, in, opcode, MLX5_CMD_OP_CREATE_UCTX); in mlx5_ib_devx_create()
182 MLX5_SET(uctx, uctx, cap, cap); in mlx5_ib_devx_create()
197 MLX5_SET(destroy_uctx_in, in, opcode, MLX5_CMD_OP_DESTROY_UCTX); in mlx5_ib_devx_destroy()
198 MLX5_SET(destroy_uctx_in, in, uid, uid); in mlx5_ib_devx_destroy()
695 MLX5_SET(create_mkey_in, in, mkey_umem_valid, 1); in devx_set_umem_valid()
701 MLX5_SET(create_cq_in, in, cq_umem_valid, 1); in devx_set_umem_valid()
703 MLX5_SET(cqc, cqc, dbr_umem_valid, 1); in devx_set_umem_valid()
711 MLX5_SET(qpc, qpc, dbr_umem_valid, 1); in devx_set_umem_valid()
712 MLX5_SET(create_qp_in, in, wq_umem_valid, 1); in devx_set_umem_valid()
722 MLX5_SET(wq, wq, dbr_umem_valid, 1); in devx_set_umem_valid()
[all …]
H A Dmlx5_ib_qp.c849 MLX5_SET(create_qp_in, *in, uid, uid); in create_user_qp()
856 MLX5_SET(qpc, qpc, log_page_size, page_shift - MLX5_ADAPTER_PAGE_SHIFT); in create_user_qp()
857 MLX5_SET(qpc, qpc, page_offset, offset); in create_user_qp()
859 MLX5_SET(qpc, qpc, uar_page, uar_index); in create_user_qp()
978 MLX5_SET(qpc, qpc, uar_page, uar_index); in create_kernel_qp()
979 MLX5_SET(qpc, qpc, ts_format, mlx5_get_qp_default_ts(dev->mdev)); in create_kernel_qp()
980 MLX5_SET(qpc, qpc, log_page_size, qp->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in create_kernel_qp()
983 MLX5_SET(qpc, qpc, fre, 1); in create_kernel_qp()
984 MLX5_SET(qpc, qpc, rlky, 1); in create_kernel_qp()
987 MLX5_SET(qpc, qpc, deth_sqpn, 1); in create_kernel_qp()
[all …]
H A Dmlx5_ib_mr.c185 MLX5_SET(mkc, mkc, free, 1); in add_keys()
186 MLX5_SET(mkc, mkc, umr_en, 1); in add_keys()
187 MLX5_SET(mkc, mkc, access_mode, MLX5_ACCESS_MODE_MTT); in add_keys()
189 MLX5_SET(mkc, mkc, qpn, 0xffffff); in add_keys()
190 MLX5_SET(mkc, mkc, translations_octword_size, (npages + 1) / 2); in add_keys()
191 MLX5_SET(mkc, mkc, log_page_size, 12); in add_keys()
499 MLX5_SET(mkc, mkc, access_mode, MLX5_ACCESS_MODE_PA); in mlx5_ib_get_dma_mr()
500 MLX5_SET(mkc, mkc, a, !!(acc & IB_ACCESS_REMOTE_ATOMIC)); in mlx5_ib_get_dma_mr()
501 MLX5_SET(mkc, mkc, rw, !!(acc & IB_ACCESS_REMOTE_WRITE)); in mlx5_ib_get_dma_mr()
502 MLX5_SET(mkc, mkc, rr, !!(acc & IB_ACCESS_REMOTE_READ)); in mlx5_ib_get_dma_mr()
[all …]

12