Lines Matching refs:srqn

128 	context->state_logsize_srqn = cpu_to_be32(logsize << 24 | srq->srqn);  in mthca_arbel_init_srq_context()
229 srq->srqn = mthca_alloc(&dev->srq_table.alloc); in mthca_alloc_srq()
230 if (srq->srqn == -1) in mthca_alloc_srq()
234 err = mthca_table_get(dev, dev->srq_table.table, srq->srqn); in mthca_alloc_srq()
240 srq->srqn, &srq->db); in mthca_alloc_srq()
268 err = mthca_SW2HW_SRQ(dev, mailbox, srq->srqn); in mthca_alloc_srq()
277 srq->srqn & (dev->limits.num_srqs - 1), in mthca_alloc_srq()
295 err = mthca_HW2SW_SRQ(dev, mailbox, srq->srqn); in mthca_alloc_srq()
311 mthca_table_put(dev, dev->srq_table.table, srq->srqn); in mthca_alloc_srq()
314 mthca_free(&dev->srq_table.alloc, srq->srqn); in mthca_alloc_srq()
341 err = mthca_HW2SW_SRQ(dev, mailbox, srq->srqn); in mthca_free_srq()
347 srq->srqn & (dev->limits.num_srqs - 1)); in mthca_free_srq()
359 mthca_table_put(dev, dev->srq_table.table, srq->srqn); in mthca_free_srq()
360 mthca_free(&dev->srq_table.alloc, srq->srqn); in mthca_free_srq()
381 ret = mthca_ARM_SRQ(dev, srq->srqn, attr->srq_limit); in mthca_modify_srq()
401 err = mthca_QUERY_SRQ(dev, srq->srqn, mailbox); in mthca_query_srq()
422 void mthca_srq_event(struct mthca_dev *dev, u32 srqn, in mthca_srq_event() argument
429 srq = mthca_array_get(&dev->srq_table.srq, srqn & (dev->limits.num_srqs - 1)); in mthca_srq_event()
435 mthca_warn(dev, "Async event for bogus SRQ %08x\n", srqn); in mthca_srq_event()
500 mthca_err(dev, "SRQ %06x full\n", srq->srqn); in mthca_tavor_post_srq_recv()
545 mthca_write64(first_ind << srq->wqe_shift, srq->srqn << 8, in mthca_tavor_post_srq_recv()
560 mthca_write64(first_ind << srq->wqe_shift, (srq->srqn << 8) | nreq, in mthca_tavor_post_srq_recv()
596 mthca_err(dev, "SRQ %06x full\n", srq->srqn); in mthca_arbel_post_srq_recv()