Lines Matching defs:ccq
364 * Issue destroy ccq request and
365 * free the resources associated with the ccq
370 struct i40iw_ccq *ccq = &iwdev->ccq;
374 status = dev->ccq_ops->ccq_destroy(dev->ccq, 0, true);
376 i40iw_pr_err("ccq destroy failed %d\n", status);
377 i40iw_free_dma_mem(dev->hw, &ccq->mem_cq);
626 * Return 0, if the ccq and the resources associated with it
635 struct i40iw_ccq *ccq = &iwdev->ccq;
638 dev->ccq = &ccq->sc_cq;
639 dev->ccq->dev = dev;
641 ccq->shadow_area.size = sizeof(struct i40iw_cq_shadow_area);
642 ccq->mem_cq.size = sizeof(struct i40iw_cqe) * IW_CCQ_SIZE;
643 status = i40iw_allocate_dma_mem(dev->hw, &ccq->mem_cq,
644 ccq->mem_cq.size, I40IW_CQ0_ALIGNMENT);
647 status = i40iw_obj_aligned_mem(iwdev, &mem, ccq->shadow_area.size,
651 ccq->sc_cq.back_cq = (void *)ccq;
652 /* populate the ccq init info */
653 info.cq_base = ccq->mem_cq.va;
654 info.cq_pa = ccq->mem_cq.pa;
661 status = dev->ccq_ops->ccq_init(dev->ccq, &info);
663 status = dev->ccq_ops->ccq_create(dev->ccq, 0, true, true);
666 i40iw_free_dma_mem(dev->hw, &ccq->mem_cq);
1690 dev->ccq_ops->ccq_arm(dev->ccq);