Lines Matching refs:hw_queue
39 static void *hw_qpageit_get_inc(struct hw_queue *queue) in hw_qpageit_get_inc()
54 static int hw_queue_ctor(struct hw_queue *queue, const u32 nr_of_pages, in hw_queue_ctor()
104 static void hw_queue_dtor(struct hw_queue *queue) in hw_queue_dtor()
153 ret = hw_queue_ctor(&cq->hw_queue, cq->attr.nr_pages, in ehea_create_cq()
159 vpage = hw_qpageit_get_inc(&cq->hw_queue); in ehea_create_cq()
176 vpage = hw_qpageit_get_inc(&cq->hw_queue); in ehea_create_cq()
192 hw_qeit_reset(&cq->hw_queue); in ehea_create_cq()
200 hw_queue_dtor(&cq->hw_queue); in ehea_create_cq()
222 hw_queue_dtor(&cq->hw_queue); in ehea_destroy_cq_res()
275 ret = hw_queue_ctor(&eq->hw_queue, eq->attr.nr_pages, in ehea_create_eq()
283 vpage = hw_qpageit_get_inc(&eq->hw_queue); in ehea_create_eq()
298 vpage = hw_qpageit_get_inc(&eq->hw_queue); in ehea_create_eq()
309 hw_qeit_reset(&eq->hw_queue); in ehea_create_eq()
313 hw_queue_dtor(&eq->hw_queue); in ehea_create_eq()
329 eqe = hw_eqit_eq_get_inc_valid(&eq->hw_queue); in ehea_poll_eq()
348 hw_queue_dtor(&eq->hw_queue); in ehea_destroy_eq_res()
377 static int ehea_qp_alloc_register(struct ehea_qp *qp, struct hw_queue *hw_queue, in ehea_qp_alloc_register() argument
385 ret = hw_queue_ctor(hw_queue, nr_pages, EHEA_PAGESIZE, wqe_size); in ehea_qp_alloc_register()
390 vpage = hw_qpageit_get_inc(hw_queue); in ehea_qp_alloc_register()
404 hw_qeit_reset(hw_queue); in ehea_qp_alloc_register()
408 hw_queue_dtor(hw_queue); in ehea_qp_alloc_register()