Lines Matching refs:hw_queue
25 static void *hw_qpageit_get_inc(struct hw_queue *queue) in hw_qpageit_get_inc()
40 static int hw_queue_ctor(struct hw_queue *queue, const u32 nr_of_pages, in hw_queue_ctor()
90 static void hw_queue_dtor(struct hw_queue *queue) in hw_queue_dtor()
134 ret = hw_queue_ctor(&cq->hw_queue, cq->attr.nr_pages, in ehea_create_cq()
140 vpage = hw_qpageit_get_inc(&cq->hw_queue); in ehea_create_cq()
157 vpage = hw_qpageit_get_inc(&cq->hw_queue); in ehea_create_cq()
173 hw_qeit_reset(&cq->hw_queue); in ehea_create_cq()
180 hw_queue_dtor(&cq->hw_queue); in ehea_create_cq()
202 hw_queue_dtor(&cq->hw_queue); in ehea_destroy_cq_res()
255 ret = hw_queue_ctor(&eq->hw_queue, eq->attr.nr_pages, in ehea_create_eq()
263 vpage = hw_qpageit_get_inc(&eq->hw_queue); in ehea_create_eq()
278 vpage = hw_qpageit_get_inc(&eq->hw_queue); in ehea_create_eq()
289 hw_qeit_reset(&eq->hw_queue); in ehea_create_eq()
293 hw_queue_dtor(&eq->hw_queue); in ehea_create_eq()
309 eqe = hw_eqit_eq_get_inc_valid(&eq->hw_queue); in ehea_poll_eq()
328 hw_queue_dtor(&eq->hw_queue); in ehea_destroy_eq_res()
357 static int ehea_qp_alloc_register(struct ehea_qp *qp, struct hw_queue *hw_queue, in ehea_qp_alloc_register() argument
365 ret = hw_queue_ctor(hw_queue, nr_pages, EHEA_PAGESIZE, wqe_size); in ehea_qp_alloc_register()
370 vpage = hw_qpageit_get_inc(hw_queue); in ehea_qp_alloc_register()
384 hw_qeit_reset(hw_queue); in ehea_qp_alloc_register()
388 hw_queue_dtor(hw_queue); in ehea_qp_alloc_register()