/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | conn.c | 499 static int mlx5_fpga_conn_create_wq(struct mlx5_fpga_conn *conn, void *qpc) in mlx5_fpga_conn_create_wq() argument 508 return mlx5_wq_qp_create(mdev, &wqp, qpc, &conn->qp.wq, in mlx5_fpga_conn_create_wq() 518 u32 temp_qpc[MLX5_ST_SZ_DW(qpc)] = {}; in mlx5_fpga_conn_create_qp() 519 void *in = NULL, *qpc; in mlx5_fpga_conn_create_qp() local 529 MLX5_SET(qpc, temp_qpc, log_rq_stride, ilog2(MLX5_SEND_WQE_DS) - 4); in mlx5_fpga_conn_create_qp() 530 MLX5_SET(qpc, temp_qpc, log_rq_size, ilog2(conn->qp.rq.size)); in mlx5_fpga_conn_create_qp() 531 MLX5_SET(qpc, temp_qpc, log_sq_size, ilog2(conn->qp.sq.size)); in mlx5_fpga_conn_create_qp() 561 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in mlx5_fpga_conn_create_qp() 562 MLX5_SET(qpc, qpc, uar_page, fdev->conn_res.uar->index); in mlx5_fpga_conn_create_qp() 563 MLX5_SET(qpc, qpc, log_page_size, in mlx5_fpga_conn_create_qp() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_send.c | 107 u32 temp_qpc[MLX5_ST_SZ_DW(qpc)] = {}; in dr_create_rc_qp() 111 void *qpc; in dr_create_rc_qp() local 129 MLX5_SET(qpc, temp_qpc, log_rq_stride, ilog2(MLX5_SEND_WQE_DS) - 4); in dr_create_rc_qp() 130 MLX5_SET(qpc, temp_qpc, log_rq_size, ilog2(dr_qp->rq.wqe_cnt)); in dr_create_rc_qp() 131 MLX5_SET(qpc, temp_qpc, log_sq_size, ilog2(dr_qp->sq.wqe_cnt)); in dr_create_rc_qp() 157 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in dr_create_rc_qp() 158 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in dr_create_rc_qp() 159 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in dr_create_rc_qp() 160 MLX5_SET(qpc, qpc, pd, attr->pdn); in dr_create_rc_qp() 161 MLX5_SET(qpc, qpc, uar_page, attr->uar->index); in dr_create_rc_qp() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | qp.c | 906 void *qpc; in _create_user_qp() local 976 qpc = MLX5_ADDR_OF(create_qp_in, *in, qpc); in _create_user_qp() 978 MLX5_SET(qpc, qpc, log_page_size, page_shift - MLX5_ADAPTER_PAGE_SHIFT); in _create_user_qp() 979 MLX5_SET(qpc, qpc, page_offset, offset); in _create_user_qp() 981 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_user_qp() 1046 void *qpc; in _create_kernel_qp() local 1103 qpc = MLX5_ADDR_OF(create_qp_in, *in, qpc); in _create_kernel_qp() 1104 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_kernel_qp() 1105 MLX5_SET(qpc, qpc, log_page_size, qp->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in _create_kernel_qp() 1108 MLX5_SET(qpc, qpc, fre, 1); in _create_kernel_qp() [all …]
|
D | qpc.c | 372 u32 opt_param_mask, void *qpc, in modify_qp_mbox_alloc() argument 392 memcpy(MLX5_ADDR_OF(typ##_in, in, qpc), _qpc, \ in modify_qp_mbox_alloc() 393 MLX5_ST_SZ_BYTES(qpc)); \ in modify_qp_mbox_alloc() 414 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 421 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 428 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 435 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 442 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 448 opt_param_mask, qpc, uid); in modify_qp_mbox_alloc() 458 void *qpc, struct mlx5_core_qp *qp, u32 *ece) in mlx5_core_qp_modify() argument [all …]
|
D | Makefile | 17 qpc.o \
|
D | qp.h | 19 void *qpc, struct mlx5_core_qp *qp, u32 *ece);
|
D | devx.c | 624 void *qpc; in devx_set_umem_valid() local 626 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in devx_set_umem_valid() 627 MLX5_SET(qpc, qpc, dbr_umem_valid, 1); in devx_set_umem_valid()
|
D | mlx5_ib.h | 41 #define MLX5_USER_ASSIGNED_UIDX_MASK __mlx5_mask(qpc, user_index)
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | debugfs.c | 210 u32 *qpc; in qp_read_field() local 225 qpc = MLX5_ADDR_OF(query_qp_out, out, qpc); in qp_read_field() 231 state = MLX5_GET(qpc, qpc, state); in qp_read_field() 236 param = (unsigned long)mlx5_qp_type_str(MLX5_GET(qpc, qpc, st)); in qp_read_field() 240 switch (MLX5_GET(qpc, qpc, mtu)) { in qp_read_field() 261 param = 1 << MLX5_GET(qpc, qpc, log_rq_size); in qp_read_field() 264 param = 1 << (MLX5_GET(qpc, qpc, log_rq_stride) + 4); in qp_read_field() 267 if (!MLX5_GET(qpc, qpc, no_sq)) in qp_read_field() 268 param = 1 << MLX5_GET(qpc, qpc, log_sq_size); in qp_read_field() 271 param = MLX5_GET(qpc, qpc, log_page_size) + 12; in qp_read_field() [all …]
|
D | wq.c | 105 void *qpc, struct mlx5_wq_qp *wq, in mlx5_wq_qp_create() argument 108 u8 log_rq_stride = MLX5_GET(qpc, qpc, log_rq_stride) + 4; in mlx5_wq_qp_create() 109 u8 log_rq_sz = MLX5_GET(qpc, qpc, log_rq_size); in mlx5_wq_qp_create() 111 u8 log_sq_sz = MLX5_GET(qpc, qpc, log_sq_size); in mlx5_wq_qp_create()
|
D | wq.h | 86 void *qpc, struct mlx5_wq_qp *wq,
|
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/net/ |
D | mlx5_vnet.c | 334 void *qpc; in qp_prepare() local 338 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in qp_prepare() 343 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in qp_prepare() 344 MLX5_SET(qpc, qpc, rq_type, MLX5_ZERO_LEN_RQ); in qp_prepare() 345 MLX5_SET(qpc, qpc, no_sq, 1); in qp_prepare() 349 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in qp_prepare() 350 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in qp_prepare() 351 MLX5_SET(qpc, qpc, pd, ndev->mvdev.res.pdn); in qp_prepare() 352 MLX5_SET(qpc, qpc, mtu, MLX5_QPC_MTU_256_BYTES); in qp_prepare() 353 MLX5_SET(qpc, qpc, uar_page, ndev->mvdev.res.uar->index); in qp_prepare() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ipoib.c | 171 u32 *qpc; in mlx5i_init_underlay_qp() local 173 qpc = MLX5_ADDR_OF(rst2init_qp_in, in, qpc); in mlx5i_init_underlay_qp() 175 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in mlx5i_init_underlay_qp() 176 MLX5_SET(qpc, qpc, primary_address_path.pkey_index, in mlx5i_init_underlay_qp() 178 MLX5_SET(qpc, qpc, primary_address_path.vhca_port_num, 1); in mlx5i_init_underlay_qp() 179 MLX5_SET(qpc, qpc, q_key, IB_DEFAULT_Q_KEY); in mlx5i_init_underlay_qp() 240 void *qpc; in mlx5i_create_underlay_qp() local 247 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in mlx5i_create_underlay_qp() 248 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_UD); in mlx5i_create_underlay_qp() 249 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in mlx5i_create_underlay_qp() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | resource_tracker.c | 746 static int handle_counter(struct mlx4_dev *dev, struct mlx4_qp_context *qpc, 753 struct mlx4_qp_context *qpc = inbox->buf + 8; in update_vport_qp_param() local 759 port = (qpc->pri_path.sched_queue & 0x40) ? 2 : 1; in update_vport_qp_param() 762 qp_type = (be32_to_cpu(qpc->flags) >> 16) & 0xff; in update_vport_qp_param() 764 err = handle_counter(dev, qpc, slave, port); in update_vport_qp_param() 782 qpc->param3 &= ~cpu_to_be32(MLX4_STRIP_VLAN); in update_vport_qp_param() 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() [all …]
|
/kernel/linux/linux-5.10/include/linux/mlx5/ |
D | mlx5_ifc.h | 4059 struct mlx5_ifc_qpc_bits qpc; member 4089 struct mlx5_ifc_qpc_bits qpc; member 4297 struct mlx5_ifc_qpc_bits qpc; member 4328 struct mlx5_ifc_qpc_bits qpc; member 4359 struct mlx5_ifc_qpc_bits qpc; member 4886 struct mlx5_ifc_qpc_bits qpc; member 6666 struct mlx5_ifc_qpc_bits qpc; member 6697 struct mlx5_ifc_qpc_bits qpc; member 7779 struct mlx5_ifc_qpc_bits qpc; member
|
D | device.h | 297 #define MLX5_USER_INDEX_LEN (MLX5_FLD_SZ_BYTES(qpc, user_index) * 8)
|