Lines Matching refs:context
43 int user_prio, struct mlx4_qp_context *context)
48 memset(context, 0, sizeof *context);
49 context->flags = cpu_to_be32(7 << 16 | rss << MLX4_RSS_QPC_FLAG_OFFSET);
50 context->pd = cpu_to_be32(mdev->priv_pdn);
51 context->mtu_msgmax = 0xff;
53 context->rq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4);
55 context->sq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4);
57 context->sq_size_stride = ilog2(TXBB_SIZE) - 4;
58 context->usr_page = cpu_to_be32(mdev->priv_uar.index);
59 context->local_qpn = cpu_to_be32(qpn);
60 context->pri_path.ackto = 1 & 0x07;
61 context->pri_path.sched_queue = 0x83 | (priv->port - 1) << 6;
63 context->pri_path.sched_queue |= user_prio << 3;
64 context->pri_path.feup = 1 << 6;
66 context->pri_path.counter_index = (u8)(priv->counter_index);
69 context->pri_path.counter_index != 0xFF) {
71 context->pri_path.fl |= MLX4_FL_ETH_SRC_CHECK_MC_LB;
72 context->pri_path.vlan_control |=
76 context->cqn_send = cpu_to_be32(cqn);
77 context->cqn_recv = cpu_to_be32(cqn);
78 context->db_rec_addr = cpu_to_be64(priv->res.db.dma << 2);
80 context->param3 |= cpu_to_be32(1 << 30);