Lines Matching refs:qpn

198 	return qp->qpn >= dev->qp_table.sqp_start &&  in is_sqp()
199 qp->qpn <= dev->qp_table.sqp_start + 3; in is_sqp()
204 return qp->qpn >= dev->qp_table.sqp_start && in is_qp0()
205 qp->qpn <= dev->qp_table.sqp_start + 1; in is_qp0()
238 void mthca_qp_event(struct mthca_dev *dev, u32 qpn, in mthca_qp_event() argument
245 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); in mthca_qp_event()
252 event_type, qpn); in mthca_qp_event()
454 err = mthca_QUERY_QP(dev, qp->qpn, 0, mailbox); in mthca_query_qp()
630 qp_context->local_qpn = cpu_to_be32(qp->qpn); in __mthca_modify_qp()
771 ((qp->qpn & (dev->limits.num_qps - 1)) * MTHCA_RDB_ENTRY_SIZE << in __mthca_modify_qp()
793 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, in __mthca_modify_qp()
835 mthca_cq_clean(dev, to_mcq(qp->ibqp.recv_cq), qp->qpn, in __mthca_modify_qp()
838 mthca_cq_clean(dev, to_mcq(qp->ibqp.send_cq), qp->qpn, NULL); in __mthca_modify_qp()
1098 ret = mthca_table_get(dev, dev->qp_table.qp_table, qp->qpn); in mthca_map_memfree()
1102 ret = mthca_table_get(dev, dev->qp_table.eqp_table, qp->qpn); in mthca_map_memfree()
1107 qp->qpn << dev->qp_table.rdb_shift); in mthca_map_memfree()
1116 mthca_table_put(dev, dev->qp_table.eqp_table, qp->qpn); in mthca_map_memfree()
1119 mthca_table_put(dev, dev->qp_table.qp_table, qp->qpn); in mthca_map_memfree()
1128 qp->qpn << dev->qp_table.rdb_shift); in mthca_unmap_memfree()
1129 mthca_table_put(dev, dev->qp_table.eqp_table, qp->qpn); in mthca_unmap_memfree()
1130 mthca_table_put(dev, dev->qp_table.qp_table, qp->qpn); in mthca_unmap_memfree()
1138 qp->qpn, &qp->rq.db); in mthca_alloc_memfree()
1143 qp->qpn, &qp->sq.db); in mthca_alloc_memfree()
1314 qp->qpn = mthca_alloc(&dev->qp_table.alloc); in mthca_alloc_qp()
1315 if (qp->qpn == -1) in mthca_alloc_qp()
1324 mthca_free(&dev->qp_table.alloc, qp->qpn); in mthca_alloc_qp()
1330 qp->qpn & (dev->limits.num_qps - 1), qp); in mthca_alloc_qp()
1372 int qpn, in mthca_alloc_sqp() argument
1377 u32 mqpn = qpn * 2 + dev->qp_table.sqp_start + port - 1; in mthca_alloc_sqp()
1403 qp->qpn = mqpn; in mthca_alloc_sqp()
1462 qp->qpn & (dev->limits.num_qps - 1)); in mthca_free_qp()
1471 mthca_MODIFY_QP(dev, qp->state, IB_QPS_RESET, qp->qpn, 0, in mthca_free_qp()
1480 mthca_cq_clean(dev, recv_cq, qp->qpn, in mthca_free_qp()
1483 mthca_cq_clean(dev, send_cq, qp->qpn, NULL); in mthca_free_qp()
1496 mthca_free(&dev->qp_table.alloc, qp->qpn); in mthca_free_qp()
1658 " %d max, %d nreq)\n", qp->qpn, in mthca_tavor_post_send()
1811 (qp->qpn << 8) | size0, in mthca_tavor_post_send()
1854 " %d max, %d nreq)\n", qp->qpn, in mthca_tavor_post_receive()
1904 qp->qpn << 8, dev->kar + MTHCA_RECEIVE_DOORBELL, in mthca_tavor_post_receive()
1917 qp->qpn << 8 | nreq, dev->kar + MTHCA_RECEIVE_DOORBELL, in mthca_tavor_post_receive()
1981 mthca_write64(dbhi, (qp->qpn << 8) | size0, in mthca_arbel_post_send()
1988 " %d max, %d nreq)\n", qp->qpn, in mthca_arbel_post_send()
2154 mthca_write64(dbhi, (qp->qpn << 8) | size0, dev->kar + MTHCA_SEND_DOORBELL, in mthca_arbel_post_send()
2183 " %d max, %d nreq)\n", qp->qpn, in mthca_arbel_post_receive()