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