Home
last modified time | relevance | path

Searched refs:sq_ring (Results 1 – 7 of 7) sorted by relevance

/drivers/infiniband/hw/irdma/
Duk.c66 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()
[all …]
Dutils.c539 pending_work = IRDMA_RING_USED_QUANTA(cqp->sc_cqp.sq_ring); in irdma_cleanup_pending_cqp_op()
540 wqe_idx = IRDMA_RING_CURRENT_TAIL(cqp->sc_cqp.sq_ring); in irdma_cleanup_pending_cqp_op()
546 wqe_idx = (wqe_idx + 1) % IRDMA_RING_SIZE(cqp->sc_cqp.sq_ring); in irdma_cleanup_pending_cqp_op()
2621 struct irdma_ring *sq_ring = &qp->sq_ring; in irdma_generate_flush_completions() local
2635 while (IRDMA_RING_MORE_WORK(*sq_ring)) { in irdma_generate_flush_completions()
2643 wqe_idx = sq_ring->tail; in irdma_generate_flush_completions()
2651 IRDMA_RING_SET_TAIL(*sq_ring, in irdma_generate_flush_completions()
2652 sq_ring->tail + qp->sq_wrtrk_array[sq_ring->tail].quanta); in irdma_generate_flush_completions()
Dctrl.c388 qp->hw_sq_size = irdma_get_encoded_wqe_size(qp->qp_uk.sq_ring.size, in irdma_sc_qp_init()
392 qp->hw_sq_size, qp->qp_uk.sq_ring.size); in irdma_sc_qp_init()
2103 cqp->sq_ring.head, cqp->sq_ring.tail, cqp->sq_ring.size); in irdma_sc_gather_stats()
2798 IRDMA_RING_MOVE_TAIL(cqp->sq_ring); in irdma_cqp_poll_registers()
3160 IRDMA_RING_INIT(cqp->sq_ring, cqp->sq_size); in irdma_sc_cqp_init()
3284 writel(IRDMA_RING_CURRENT_HEAD(cqp->sq_ring), cqp->dev->cqp_db); in irdma_sc_cqp_post_sq()
3288 cqp->sq_ring.head, cqp->sq_ring.tail, cqp->sq_ring.size); in irdma_sc_cqp_post_sq()
3304 if (IRDMA_RING_FULL_ERR(cqp->sq_ring)) { in irdma_sc_cqp_get_next_send_wqe_idx()
3307 cqp->sq_ring.head, cqp->sq_ring.tail, in irdma_sc_cqp_get_next_send_wqe_idx()
3308 cqp->sq_ring.size); in irdma_sc_cqp_get_next_send_wqe_idx()
[all …]
Dpuda.c199 *wqe_idx = IRDMA_RING_CURRENT_HEAD(qp->sq_ring); in irdma_puda_get_next_send_wqe()
202 IRDMA_RING_MOVE_HEAD(qp->sq_ring, ret_code); in irdma_puda_get_next_send_wqe()
405 IRDMA_RING_SET_TAIL(qp->sq_ring, info.wqe_idx); in irdma_puda_poll_cmpl()
695 IRDMA_RING_INIT(ukqp->sq_ring, ukqp->sq_size); in irdma_puda_qp_create()
Duser.h347 struct irdma_ring sq_ring; member
Dhw.c2554 if (IRDMA_RING_MORE_WORK(qp->qp_uk.sq_ring)) { in irdma_hw_flush_wqes_callback()
2619 if (IRDMA_RING_MORE_WORK(qp->qp_uk.sq_ring)) { in irdma_hw_flush_wqes()
2657 if (!IRDMA_RING_MORE_WORK(qp->qp_uk.sq_ring)) in irdma_hw_flush_wqes()
Dtype.h409 struct irdma_ring sq_ring; member