Lines Matching refs:qpn
197 return qp->qpn >= dev->qp_table.sqp_start && in is_sqp()
198 qp->qpn <= dev->qp_table.sqp_start + 3; in is_sqp()
203 return qp->qpn >= dev->qp_table.sqp_start && in is_qp0()
204 qp->qpn <= dev->qp_table.sqp_start + 1; in is_qp0()
237 void mthca_qp_event(struct mthca_dev *dev, u32 qpn, in mthca_qp_event() argument
244 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); in mthca_qp_event()
251 event_type, qpn); in mthca_qp_event()
448 err = mthca_QUERY_QP(dev, qp->qpn, 0, mailbox); in mthca_query_qp()
614 qp_context->local_qpn = cpu_to_be32(qp->qpn); in __mthca_modify_qp()
755 ((qp->qpn & (dev->limits.num_qps - 1)) * MTHCA_RDB_ENTRY_SIZE << in __mthca_modify_qp()
777 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, in __mthca_modify_qp()
819 mthca_cq_clean(dev, to_mcq(qp->ibqp.recv_cq), qp->qpn, in __mthca_modify_qp()
822 mthca_cq_clean(dev, to_mcq(qp->ibqp.send_cq), qp->qpn, NULL); in __mthca_modify_qp()
1077 ret = mthca_table_get(dev, dev->qp_table.qp_table, qp->qpn); in mthca_map_memfree()
1081 ret = mthca_table_get(dev, dev->qp_table.eqp_table, qp->qpn); in mthca_map_memfree()
1086 qp->qpn << dev->qp_table.rdb_shift); in mthca_map_memfree()
1095 mthca_table_put(dev, dev->qp_table.eqp_table, qp->qpn); in mthca_map_memfree()
1098 mthca_table_put(dev, dev->qp_table.qp_table, qp->qpn); in mthca_map_memfree()
1107 qp->qpn << dev->qp_table.rdb_shift); in mthca_unmap_memfree()
1108 mthca_table_put(dev, dev->qp_table.eqp_table, qp->qpn); in mthca_unmap_memfree()
1109 mthca_table_put(dev, dev->qp_table.qp_table, qp->qpn); in mthca_unmap_memfree()
1117 qp->qpn, &qp->rq.db); in mthca_alloc_memfree()
1122 qp->qpn, &qp->sq.db); in mthca_alloc_memfree()
1291 qp->qpn = mthca_alloc(&dev->qp_table.alloc); in mthca_alloc_qp()
1292 if (qp->qpn == -1) in mthca_alloc_qp()
1301 mthca_free(&dev->qp_table.alloc, qp->qpn); in mthca_alloc_qp()
1307 qp->qpn & (dev->limits.num_qps - 1), qp); in mthca_alloc_qp()
1349 int qpn, in mthca_alloc_sqp() argument
1353 u32 mqpn = qpn * 2 + dev->qp_table.sqp_start + port - 1; in mthca_alloc_sqp()
1378 sqp->qp.qpn = mqpn; in mthca_alloc_sqp()
1438 qp->qpn & (dev->limits.num_qps - 1)); in mthca_free_qp()
1447 mthca_MODIFY_QP(dev, qp->state, IB_QPS_RESET, qp->qpn, 0, in mthca_free_qp()
1456 mthca_cq_clean(dev, recv_cq, qp->qpn, in mthca_free_qp()
1459 mthca_cq_clean(dev, send_cq, qp->qpn, NULL); in mthca_free_qp()
1474 mthca_free(&dev->qp_table.alloc, qp->qpn); in mthca_free_qp()
1635 " %d max, %d nreq)\n", qp->qpn, in mthca_tavor_post_send()
1788 (qp->qpn << 8) | size0, in mthca_tavor_post_send()
1836 " %d max, %d nreq)\n", qp->qpn, in mthca_tavor_post_receive()
1886 qp->qpn << 8, dev->kar + MTHCA_RECEIVE_DOORBELL, in mthca_tavor_post_receive()
1899 qp->qpn << 8 | nreq, dev->kar + MTHCA_RECEIVE_DOORBELL, in mthca_tavor_post_receive()
1969 mthca_write64(dbhi, (qp->qpn << 8) | size0, in mthca_arbel_post_send()
1976 " %d max, %d nreq)\n", qp->qpn, in mthca_arbel_post_send()
2142 mthca_write64(dbhi, (qp->qpn << 8) | size0, dev->kar + MTHCA_SEND_DOORBELL, in mthca_arbel_post_send()
2177 " %d max, %d nreq)\n", qp->qpn, in mthca_arbel_post_receive()