Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Dtransobj.c46 MLX5_SET(alloc_transport_domain_in, in, opcode, in mlx5_alloc_transport_domain()
65 MLX5_SET(dealloc_transport_domain_in, in, opcode, in mlx5_dealloc_transport_domain()
67 MLX5_SET(dealloc_transport_domain_in, in, transport_domain, tdn); in mlx5_dealloc_transport_domain()
77 MLX5_SET(create_rq_in, in, opcode, MLX5_CMD_OP_CREATE_RQ); in mlx5_core_create_rq()
91 MLX5_SET(modify_rq_in, in, rqn, rqn); in mlx5_core_modify_rq()
92 MLX5_SET(modify_rq_in, in, opcode, MLX5_CMD_OP_MODIFY_RQ); in mlx5_core_modify_rq()
105 MLX5_SET(destroy_rq_in, in, opcode, MLX5_CMD_OP_DESTROY_RQ); in mlx5_core_destroy_rq()
106 MLX5_SET(destroy_rq_in, in, rqn, rqn); in mlx5_core_destroy_rq()
116 MLX5_SET(create_sq_in, in, opcode, MLX5_CMD_OP_CREATE_SQ); in mlx5_core_create_sq()
130 MLX5_SET(modify_sq_in, in, sqn, sqn); in mlx5_core_modify_sq()
[all …]
Dsrq.c88 MLX5_SET(rmpc, rmpc, state, MLX5_RMPC_STATE_RDY); in rmpc_srqc_reformat()
91 MLX5_SET(rmpc, rmpc, state, MLX5_RMPC_STATE_ERR); in rmpc_srqc_reformat()
96 MLX5_SET(rmpc, rmpc, state, MLX5_GET(srqc, srqc, state)); in rmpc_srqc_reformat()
99 MLX5_SET(wq, wq, wq_signature, MLX5_GET(srqc, srqc, wq_signature)); in rmpc_srqc_reformat()
100 MLX5_SET(wq, wq, log_wq_pg_sz, MLX5_GET(srqc, srqc, log_page_size)); in rmpc_srqc_reformat()
101 MLX5_SET(wq, wq, log_wq_stride, MLX5_GET(srqc, srqc, log_rq_stride) + 4); in rmpc_srqc_reformat()
102 MLX5_SET(wq, wq, log_wq_sz, MLX5_GET(srqc, srqc, log_srq_size)); in rmpc_srqc_reformat()
103 MLX5_SET(wq, wq, page_offset, MLX5_GET(srqc, srqc, page_offset)); in rmpc_srqc_reformat()
104 MLX5_SET(wq, wq, lwm, MLX5_GET(srqc, srqc, lwm)); in rmpc_srqc_reformat()
105 MLX5_SET(wq, wq, pd, MLX5_GET(srqc, srqc, pd)); in rmpc_srqc_reformat()
[all …]
Dvport.c47 MLX5_SET(query_vport_state_in, in, opcode, in mlx5_query_vport_state()
49 MLX5_SET(query_vport_state_in, in, op_mod, opmod); in mlx5_query_vport_state()
76 MLX5_SET(query_nic_vport_context_in, in, opcode, in mlx5_query_nic_vport_mac_address()
124 MLX5_SET(query_hca_vport_gid_in, in, opcode, MLX5_CMD_OP_QUERY_HCA_VPORT_GID); in mlx5_query_hca_vport_gid()
127 MLX5_SET(query_hca_vport_gid_in, in, vport_number, vf_num); in mlx5_query_hca_vport_gid()
128 MLX5_SET(query_hca_vport_gid_in, in, other_vport, 1); in mlx5_query_hca_vport_gid()
134 MLX5_SET(query_hca_vport_gid_in, in, gid_index, gid_index); in mlx5_query_hca_vport_gid()
137 MLX5_SET(query_hca_vport_gid_in, in, port_num, port_num); in mlx5_query_hca_vport_gid()
193 MLX5_SET(query_hca_vport_pkey_in, in, opcode, MLX5_CMD_OP_QUERY_HCA_VPORT_PKEY); in mlx5_query_hca_vport_pkey()
196 MLX5_SET(query_hca_vport_pkey_in, in, vport_number, vf_num); in mlx5_query_hca_vport_pkey()
[all …]
Dport.c109 MLX5_SET(ptys_reg, in, local_port, local_port); in mlx5_query_port_ptys()
110 MLX5_SET(ptys_reg, in, proto_mask, proto_mask); in mlx5_query_port_ptys()
199 MLX5_SET(ptys_reg, in, local_port, 1); in mlx5_set_port_proto()
200 MLX5_SET(ptys_reg, in, proto_mask, proto_mask); in mlx5_set_port_proto()
202 MLX5_SET(ptys_reg, in, eth_proto_admin, proto_admin); in mlx5_set_port_proto()
204 MLX5_SET(ptys_reg, in, ib_proto_admin, proto_admin); in mlx5_set_port_proto()
219 MLX5_SET(paos_reg, in, local_port, 1); in mlx5_set_port_admin_status()
220 MLX5_SET(paos_reg, in, admin_status, status); in mlx5_set_port_admin_status()
221 MLX5_SET(paos_reg, in, ase, 1); in mlx5_set_port_admin_status()
237 MLX5_SET(paos_reg, in, local_port, 1); in mlx5_query_port_admin_status()
[all …]
Den_flow_table.c264 MLX5_SET(flow_context, flow_context, action, in __mlx5e_add_eth_addr_rule()
266 MLX5_SET(flow_context, flow_context, destination_list_size, 1); in __mlx5e_add_eth_addr_rule()
267 MLX5_SET(dest_format_struct, dest, destination_type, in __mlx5e_add_eth_addr_rule()
291 MLX5_SET(dest_format_struct, dest, destination_id, in __mlx5e_add_eth_addr_rule()
308 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
310 MLX5_SET(dest_format_struct, dest, destination_id, in __mlx5e_add_eth_addr_rule()
323 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
325 MLX5_SET(dest_format_struct, dest, destination_id, in __mlx5e_add_eth_addr_rule()
338 MLX5_SET(fte_match_param, match_value, outer_headers.ip_protocol, in __mlx5e_add_eth_addr_rule()
343 MLX5_SET(fte_match_param, match_value, outer_headers.ethertype, in __mlx5e_add_eth_addr_rule()
[all …]
Den_main.c98 MLX5_SET(ppcnt_reg, in, local_port, 1); in mlx5e_update_pport_counters()
100 MLX5_SET(ppcnt_reg, in, grp, MLX5_IEEE_802_3_COUNTERS_GROUP); in mlx5e_update_pport_counters()
107 MLX5_SET(ppcnt_reg, in, grp, MLX5_RFC_2863_COUNTERS_GROUP); in mlx5e_update_pport_counters()
114 MLX5_SET(ppcnt_reg, in, grp, MLX5_RFC_2819_COUNTERS_GROUP); in mlx5e_update_pport_counters()
178 MLX5_SET(query_vport_counter_in, in, opcode, in mlx5e_update_stats()
180 MLX5_SET(query_vport_counter_in, in, op_mod, 0); in mlx5e_update_stats()
181 MLX5_SET(query_vport_counter_in, in, other_vport, 0); in mlx5e_update_stats()
393 MLX5_SET(rqc, rqc, cqn, rq->cq.mcq.cqn); in mlx5e_enable_rq()
394 MLX5_SET(rqc, rqc, state, MLX5_RQC_STATE_RST); in mlx5e_enable_rq()
395 MLX5_SET(rqc, rqc, flush_in_error_en, 1); in mlx5e_enable_rq()
[all …]
Dflow_table.c74 MLX5_SET(set_fte_in, in, table_type, ft->type); in mlx5_set_flow_entry_cmd()
75 MLX5_SET(set_fte_in, in, table_id, ft->id); in mlx5_set_flow_entry_cmd()
76 MLX5_SET(set_fte_in, in, flow_index, flow_index); in mlx5_set_flow_entry_cmd()
77 MLX5_SET(set_fte_in, in, opcode, MLX5_CMD_OP_SET_FLOW_TABLE_ENTRY); in mlx5_set_flow_entry_cmd()
83 MLX5_SET(flow_context, in_flow_context, group_id, in mlx5_set_flow_entry_cmd()
102 #define MLX5_SET_DFTEI(p, x, v) MLX5_SET(delete_fte_in, p, x, v) in mlx5_del_flow_entry_cmd()
119 #define MLX5_SET_DFGI(p, x, v) MLX5_SET(destroy_flow_group_in, p, x, v) in mlx5_destroy_flow_group_cmd()
148 #define MLX5_SET_CFGI(p, x, v) MLX5_SET(create_flow_group_in, p, x, v) in mlx5_create_flow_group_cmd()
206 MLX5_SET(create_flow_table_in, in, table_type, ft->type); in mlx5_create_flow_table_cmd()
207 MLX5_SET(create_flow_table_in, in, level, ft->level); in mlx5_create_flow_table_cmd()
[all …]
Dmain.c349 MLX5_SET(query_hca_cap_in, in, opcode, MLX5_CMD_OP_QUERY_HCA_CAP); in mlx5_core_get_caps()
350 MLX5_SET(query_hca_cap_in, in, op_mod, opmod); in mlx5_core_get_caps()
393 MLX5_SET(set_hca_cap_in, in, opcode, MLX5_CMD_OP_SET_HCA_CAP); in set_caps()
432 MLX5_SET(cmd_hca_cap, set_hca_cap, pkey_table_size, in handle_hca_cap()
436 MLX5_SET(cmd_hca_cap, set_hca_cap, log_max_qp, in handle_hca_cap()
440 MLX5_SET(cmd_hca_cap, set_hca_cap, cmdif_checksum, 0); in handle_hca_cap()
442 MLX5_SET(cmd_hca_cap, set_hca_cap, log_uar_page_sz, PAGE_SHIFT - 12); in handle_hca_cap()
666 MLX5_SET(query_issi_in, query_in, opcode, MLX5_CMD_OP_QUERY_ISSI); in mlx5_core_set_issi()
687 MLX5_SET(set_issi_in, set_in, opcode, MLX5_CMD_OP_SET_ISSI); in mlx5_core_set_issi()
688 MLX5_SET(set_issi_in, set_in, current_issi, 1); in mlx5_core_set_issi()
Dfw.c45 MLX5_SET(query_adapter_in, in, opcode, MLX5_CMD_OP_QUERY_ADAPTER); in mlx5_cmd_query_adapter()
Dqp.c198 MLX5_SET(qpc, qpc, user_index, 0xffffff); in mlx5_core_create_qp()
/linux-4.4.14/include/linux/mlx5/
Ddevice.h68 #define MLX5_SET(typ, p, fld, v) do { \ macro