Lines Matching refs:context

98 					 struct mthca_tavor_srq_context *context)  in mthca_tavor_init_srq_context()  argument
100 memset(context, 0, sizeof *context); in mthca_tavor_init_srq_context()
102 context->wqe_base_ds = cpu_to_be64(1 << (srq->wqe_shift - 4)); in mthca_tavor_init_srq_context()
103 context->state_pd = cpu_to_be32(pd->pd_num); in mthca_tavor_init_srq_context()
104 context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); in mthca_tavor_init_srq_context()
107 context->uar = in mthca_tavor_init_srq_context()
108 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); in mthca_tavor_init_srq_context()
110 context->uar = cpu_to_be32(dev->driver_uar.index); in mthca_tavor_init_srq_context()
116 struct mthca_arbel_srq_context *context) in mthca_arbel_init_srq_context() argument
120 memset(context, 0, sizeof *context); in mthca_arbel_init_srq_context()
128 context->state_logsize_srqn = cpu_to_be32(logsize << 24 | srq->srqn); in mthca_arbel_init_srq_context()
129 context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); in mthca_arbel_init_srq_context()
130 context->db_index = cpu_to_be32(srq->db_index); in mthca_arbel_init_srq_context()
131 context->logstride_usrpage = cpu_to_be32((srq->wqe_shift - 4) << 29); in mthca_arbel_init_srq_context()
133 context->logstride_usrpage |= in mthca_arbel_init_srq_context()
134 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); in mthca_arbel_init_srq_context()
136 context->logstride_usrpage |= cpu_to_be32(dev->driver_uar.index); in mthca_arbel_init_srq_context()
137 context->eq_pd = cpu_to_be32(MTHCA_EQ_ASYNC << 24 | pd->pd_num); in mthca_arbel_init_srq_context()