Lines Matching refs:context
42 int user_prio, struct mlx4_qp_context *context) in mlx4_en_fill_qp_context() argument
47 memset(context, 0, sizeof(*context)); in mlx4_en_fill_qp_context()
48 context->flags = cpu_to_be32(7 << 16 | rss << MLX4_RSS_QPC_FLAG_OFFSET); in mlx4_en_fill_qp_context()
49 context->pd = cpu_to_be32(mdev->priv_pdn); in mlx4_en_fill_qp_context()
50 context->mtu_msgmax = 0xff; in mlx4_en_fill_qp_context()
52 context->rq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context()
54 context->sq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); in mlx4_en_fill_qp_context()
56 context->params2 |= cpu_to_be32(MLX4_QP_BIT_FPP); in mlx4_en_fill_qp_context()
59 context->sq_size_stride = ilog2(TXBB_SIZE) - 4; in mlx4_en_fill_qp_context()
61 context->usr_page = cpu_to_be32(mlx4_to_hw_uar_index(mdev->dev, in mlx4_en_fill_qp_context()
63 context->local_qpn = cpu_to_be32(qpn); in mlx4_en_fill_qp_context()
64 context->pri_path.ackto = 1 & 0x07; in mlx4_en_fill_qp_context()
65 context->pri_path.sched_queue = 0x83 | (priv->port - 1) << 6; in mlx4_en_fill_qp_context()
68 context->pri_path.sched_queue |= user_prio << 3; in mlx4_en_fill_qp_context()
69 context->pri_path.feup = MLX4_FEUP_FORCE_ETH_UP; in mlx4_en_fill_qp_context()
71 context->pri_path.counter_index = priv->counter_index; in mlx4_en_fill_qp_context()
72 context->cqn_send = cpu_to_be32(cqn); in mlx4_en_fill_qp_context()
73 context->cqn_recv = cpu_to_be32(cqn); in mlx4_en_fill_qp_context()
76 context->pri_path.counter_index != in mlx4_en_fill_qp_context()
80 context->pri_path.fl |= MLX4_FL_ETH_SRC_CHECK_MC_LB; in mlx4_en_fill_qp_context()
81 context->pri_path.control |= MLX4_CTRL_ETH_SRC_CHECK_IF_COUNTER; in mlx4_en_fill_qp_context()
83 context->db_rec_addr = cpu_to_be64(priv->res.db.dma << 2); in mlx4_en_fill_qp_context()
85 context->param3 |= cpu_to_be32(1 << 30); in mlx4_en_fill_qp_context()
90 context->srqn = cpu_to_be32(7 << 28); /* this fills bits 30:28 */ in mlx4_en_fill_qp_context()