/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
A D | conn.c | 561 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in mlx5_fpga_conn_create_qp() 563 MLX5_SET(qpc, qpc, log_page_size, in mlx5_fpga_conn_create_qp() 565 MLX5_SET(qpc, qpc, fre, 1); in mlx5_fpga_conn_create_qp() 566 MLX5_SET(qpc, qpc, rlky, 1); in mlx5_fpga_conn_create_qp() 567 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in mlx5_fpga_conn_create_qp() 681 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in mlx5_fpga_conn_init_qp() 710 MLX5_SET(qpc, qpc, next_rcv_psn, in mlx5_fpga_conn_rtr_qp() 742 MLX5_SET(qpc, qpc, log_ack_req_freq, 8); in mlx5_fpga_conn_rts_qp() 743 MLX5_SET(qpc, qpc, min_rnr_nak, 0x12); in mlx5_fpga_conn_rts_qp() 745 MLX5_SET(qpc, qpc, next_send_psn, in mlx5_fpga_conn_rts_qp() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_send.c | 298 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in dr_create_rc_qp() 301 MLX5_SET(qpc, qpc, pd, attr->pdn); in dr_create_rc_qp() 303 MLX5_SET(qpc, qpc, log_page_size, in dr_create_rc_qp() 305 MLX5_SET(qpc, qpc, fre, 1); in dr_create_rc_qp() 306 MLX5_SET(qpc, qpc, rlky, 1); in dr_create_rc_qp() 307 MLX5_SET(qpc, qpc, cqn_snd, attr->cqn); in dr_create_rc_qp() 308 MLX5_SET(qpc, qpc, cqn_rcv, attr->cqn); in dr_create_rc_qp() 750 MLX5_SET(qpc, qpc, rre, 1); in dr_modify_qp_rst2init() 751 MLX5_SET(qpc, qpc, rwe, 1); in dr_modify_qp_rst2init() 791 MLX5_SET(qpc, qpc, mtu, attr->mtu); in dr_cmd_modify_qp_init2rtr() [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/ |
A D | qp.c | 1164 MLX5_SET(qpc, qpc, fre, 1); in _create_kernel_qp() 1165 MLX5_SET(qpc, qpc, rlky, 1); in _create_kernel_qp() 2024 MLX5_SET(qpc, qpc, no_sq, 1); in create_xrc_tgt_qp() 2167 MLX5_SET(qpc, qpc, cqn_snd, in create_dci() 2171 MLX5_SET(qpc, qpc, cqn_rcv, in create_dci() 2318 MLX5_SET(qpc, qpc, cs_res, in create_user_qp() 2339 MLX5_SET(qpc, qpc, no_sq, 1); in create_user_qp() 3370 MLX5_SET(qpc, qpc, rae, 1); in set_qpc_atomic_flags() 4925 if (MLX5_GET(qpc, qpc, rre)) in query_qp_attr() 4927 if (MLX5_GET(qpc, qpc, rwe)) in query_qp_attr() [all …]
|
A D | qpc.c | 373 u32 opt_param_mask, void *qpc, in modify_qp_mbox_alloc() argument 393 memcpy(MLX5_ADDR_OF(typ##_in, in, qpc), _qpc, \ in modify_qp_mbox_alloc() 415 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 422 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 429 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 436 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 443 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 449 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 455 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 465 void *qpc, struct mlx5_core_qp *qp, u32 *ece) in mlx5_core_qp_modify() argument [all …]
|
A D | Makefile | 18 qpc.o \
|
A D | qp.h | 19 void *qpc, struct mlx5_core_qp *qp, u32 *ece);
|
A D | devx.c | 695 void *qpc; in devx_set_umem_valid() local 697 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in devx_set_umem_valid() 698 MLX5_SET(qpc, qpc, dbr_umem_valid, 1); in devx_set_umem_valid()
|
A D | mlx5_ib.h | 46 #define MLX5_USER_ASSIGNED_UIDX_MASK __mlx5_mask(qpc, user_index)
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | debugfs.c | 270 u32 *qpc; in qp_read_field() local 285 qpc = MLX5_ADDR_OF(query_qp_out, out, qpc); in qp_read_field() 291 state = MLX5_GET(qpc, qpc, state); in qp_read_field() 296 param = (unsigned long)mlx5_qp_type_str(MLX5_GET(qpc, qpc, st)); in qp_read_field() 300 switch (MLX5_GET(qpc, qpc, mtu)) { in qp_read_field() 321 param = 1 << MLX5_GET(qpc, qpc, log_rq_size); in qp_read_field() 324 param = 1 << (MLX5_GET(qpc, qpc, log_rq_stride) + 4); in qp_read_field() 327 if (!MLX5_GET(qpc, qpc, no_sq)) in qp_read_field() 328 param = 1 << MLX5_GET(qpc, qpc, log_sq_size); in qp_read_field() 331 param = MLX5_GET(qpc, qpc, log_page_size) + 12; in qp_read_field() [all …]
|
A D | wq.c | 100 void *qpc, struct mlx5_wq_qp *wq, in mlx5_wq_qp_create() argument 103 u8 log_rq_stride = MLX5_GET(qpc, qpc, log_rq_stride) + 4; in mlx5_wq_qp_create() 104 u8 log_rq_sz = MLX5_GET(qpc, qpc, log_rq_size); in mlx5_wq_qp_create() 106 u8 log_sq_sz = MLX5_GET(qpc, qpc, log_sq_size); in mlx5_wq_qp_create()
|
A D | wq.h | 86 void *qpc, struct mlx5_wq_qp *wq,
|
/linux-6.3-rc2/drivers/vfio/pci/mlx5/ |
A D | cmd.c | 1105 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in mlx5vf_create_rc_qp() 1106 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in mlx5vf_create_rc_qp() 1108 MLX5_SET(qpc, qpc, pd, tracker->pdn); in mlx5vf_create_rc_qp() 1110 MLX5_SET(qpc, qpc, log_page_size, in mlx5vf_create_rc_qp() 1114 MLX5_SET(qpc, qpc, user_index, 0xFFFFFF); in mlx5vf_create_rc_qp() 1115 MLX5_SET(qpc, qpc, no_sq, 1); in mlx5vf_create_rc_qp() 1179 MLX5_SET(qpc, qpc, rre, 1); in mlx5vf_activate_qp() 1180 MLX5_SET(qpc, qpc, rwe, 1); in mlx5vf_activate_qp() 1200 MLX5_SET(qpc, qpc, mtu, IB_MTU_4096); in mlx5vf_activate_qp() 1205 MLX5_SET(qpc, qpc, min_rnr_nak, 1); in mlx5vf_activate_qp() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
A D | ipoib.c | 209 u32 *qpc; in mlx5i_init_underlay_qp() local 211 qpc = MLX5_ADDR_OF(rst2init_qp_in, in, qpc); in mlx5i_init_underlay_qp() 213 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in mlx5i_init_underlay_qp() 214 MLX5_SET(qpc, qpc, primary_address_path.pkey_index, in mlx5i_init_underlay_qp() 217 MLX5_SET(qpc, qpc, q_key, IB_DEFAULT_Q_KEY); in mlx5i_init_underlay_qp() 278 void *qpc; in mlx5i_create_underlay_qp() local 285 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in mlx5i_create_underlay_qp() 287 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_UD); in mlx5i_create_underlay_qp() 288 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in mlx5i_create_underlay_qp() 289 MLX5_SET(qpc, qpc, ulp_stateless_offload_mode, in mlx5i_create_underlay_qp() [all …]
|
/linux-6.3-rc2/drivers/vdpa/mlx5/net/ |
A D | mlx5_vnet.c | 362 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in qp_prepare() 369 MLX5_SET(qpc, qpc, no_sq, 1); in qp_prepare() 373 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in qp_prepare() 379 MLX5_SET(qpc, qpc, no_sq, 1); in qp_prepare() 429 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in qp_create() 929 MLX5_SET(qpc, qpc, remote_qpn, rqpn); in alloc_inout() 930 MLX5_SET(qpc, qpc, rwe, 1); in alloc_inout() 947 MLX5_SET(qpc, qpc, log_msg_max, 30); in alloc_inout() 948 MLX5_SET(qpc, qpc, remote_qpn, rqpn); in alloc_inout() 966 MLX5_SET(qpc, qpc, retry_count, 7); in alloc_inout() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | resource_tracker.c | 793 qpc->pri_path.vlan_control &= in update_vport_qp_param() 797 qpc->pri_path.vlan_control |= in update_vport_qp_param() 810 qpc->pri_path.vlan_control |= in update_vport_qp_param() 816 qpc->pri_path.vlan_control |= in update_vport_qp_param() 822 qpc->pri_path.vlan_control |= in update_vport_qp_param() 841 qpc->pri_path.grh_mylmc = (0x80 & qpc->pri_path.grh_mylmc) + vp_oper->mac_idx; in update_vport_qp_param() 2967 int rcqn = qp_get_rcqn(qpc); in mlx4_RST2INIT_QP_wrapper() 2968 int scqn = qp_get_scqn(qpc); in mlx4_RST2INIT_QP_wrapper() 3038 qp->param3 = qpc->param3; in mlx4_RST2INIT_QP_wrapper() 3794 qpc->alt_path.sched_queue = in adjust_qp_sched_queue() [all …]
|
/linux-6.3-rc2/include/linux/mlx5/ |
A D | mlx5_ifc.h | 4602 struct mlx5_ifc_qpc_bits qpc; member 4632 struct mlx5_ifc_qpc_bits qpc; member 4844 struct mlx5_ifc_qpc_bits qpc; member 4875 struct mlx5_ifc_qpc_bits qpc; member 4906 struct mlx5_ifc_qpc_bits qpc; member 5469 struct mlx5_ifc_qpc_bits qpc; member 7595 struct mlx5_ifc_qpc_bits qpc; member 7626 struct mlx5_ifc_qpc_bits qpc; member 8709 struct mlx5_ifc_qpc_bits qpc; member
|
A D | device.h | 297 #define MLX5_USER_INDEX_LEN (MLX5_FLD_SZ_BYTES(qpc, user_index) * 8)
|