• Home
  • Raw
  • Download

Lines Matching refs:sq_ring

66 	if (!qp->sq_ring.head)  in irdma_nop_1()
69 wqe_idx = IRDMA_RING_CURRENT_HEAD(qp->sq_ring); in irdma_nop_1()
101 wqe_idx = (qp_wqe_idx + 128) % qp->sq_ring.size; in irdma_clr_wqes()
129 sw_sq_head = IRDMA_RING_CURRENT_HEAD(qp->sq_ring); in irdma_uk_qp_post_wr()
147 qp->initial_ring.head = qp->sq_ring.head; in irdma_uk_qp_post_wr()
159 qp->initial_ring.head = qp->sq_ring.head; in irdma_qp_ring_push_db()
170 IRDMA_RING_CURRENT_TAIL(qp->sq_ring) && in irdma_qp_push_wqe()
201 (IRDMA_RING_CURRENT_HEAD(qp->sq_ring) % in irdma_qp_get_next_send_wqe()
205 if (quanta > IRDMA_SQ_RING_FREE_QUANTA(qp->sq_ring)) in irdma_qp_get_next_send_wqe()
210 IRDMA_SQ_RING_FREE_QUANTA(qp->sq_ring)) in irdma_qp_get_next_send_wqe()
213 nop_wqe_idx = IRDMA_RING_CURRENT_HEAD(qp->sq_ring); in irdma_qp_get_next_send_wqe()
216 IRDMA_RING_MOVE_HEAD_NOCHECK(qp->sq_ring); in irdma_qp_get_next_send_wqe()
223 *wqe_idx = IRDMA_RING_CURRENT_HEAD(qp->sq_ring); in irdma_qp_get_next_send_wqe()
227 IRDMA_RING_MOVE_HEAD_BY_COUNT_NOCHECK(qp->sq_ring, quanta); in irdma_qp_get_next_send_wqe()
231 (IRDMA_RING_CURRENT_HEAD(qp->sq_ring) & 1)) { in irdma_qp_get_next_send_wqe()
232 wqe_0 = qp->sq_base[IRDMA_RING_CURRENT_HEAD(qp->sq_ring)].elem; in irdma_qp_get_next_send_wqe()
1226 if (wqe_idx < qp->conn_wqes && qp->sq_ring.head == qp->sq_ring.tail) { in irdma_uk_cq_poll_cmpl()
1246 IRDMA_RING_SET_TAIL(qp->sq_ring, in irdma_uk_cq_poll_cmpl()
1249 if (!IRDMA_RING_MORE_WORK(qp->sq_ring)) { in irdma_uk_cq_poll_cmpl()
1259 tail = qp->sq_ring.tail; in irdma_uk_cq_poll_cmpl()
1265 IRDMA_RING_SET_TAIL(qp->sq_ring, in irdma_uk_cq_poll_cmpl()
1276 if (!IRDMA_RING_MORE_WORK(qp->sq_ring)) in irdma_uk_cq_poll_cmpl()
1279 pring = &qp->sq_ring; in irdma_uk_cq_poll_cmpl()
1431 IRDMA_RING_MOVE_HEAD_BY_COUNT_NOCHECK(qp->sq_ring, move_cnt); in irdma_setup_connection_wqes()
1432 IRDMA_RING_MOVE_TAIL_BY_COUNT(qp->sq_ring, move_cnt); in irdma_setup_connection_wqes()
1482 IRDMA_RING_INIT(qp->sq_ring, sq_ring_size); in irdma_uk_qp_init()