Lines Matching defs:iwcq
366 * @iwcq: cq ptr
368 static void i40iw_clean_cqes(struct i40iw_qp *iwqp, struct i40iw_cq *iwcq)
370 struct i40iw_cq_uk *ukcq = &iwcq->sc_cq.cq_uk;
1001 * @iwcq: cq ptr
1003 static void cq_free_resources(struct i40iw_device *iwdev, struct i40iw_cq *iwcq)
1005 struct i40iw_sc_cq *cq = &iwcq->sc_cq;
1007 if (!iwcq->user_mode)
1008 i40iw_free_dma_mem(iwdev->sc_dev.hw, &iwcq->kmem);
1045 struct i40iw_cq *iwcq;
1049 iwcq = to_iwcq(ib_cq);
1051 cq = &iwcq->sc_cq;
1053 cq_free_resources(iwdev, iwcq);
1070 struct i40iw_cq *iwcq = to_iwcq(ibcq);
1096 cq = &iwcq->sc_cq;
1097 cq->back_cq = (void *)iwcq;
1098 spin_lock_init(&iwcq->lock);
1103 iwcq->ibcq.cqe = info.cq_uk_init_info.cq_size;
1117 iwcq->user_mode = true;
1132 iwcq->iwpbl = iwpbl;
1133 iwcq->cq_mem_size = 0;
1151 status = i40iw_allocate_dma_mem(dev->hw, &iwcq->kmem,
1157 ukinfo->cq_base = iwcq->kmem.va;
1158 info.cq_base_pa = iwcq->kmem.pa;
1160 ukinfo->shadow_area = iwcq->kmem.va + rsize;
1206 cq_free_resources(iwdev, iwcq);
2330 struct i40iw_cq *iwcq;
2339 iwcq = (struct i40iw_cq *)ibcq;
2340 ukcq = &iwcq->sc_cq.cq_uk;
2342 spin_lock_irqsave(&iwcq->lock, flags);
2400 spin_unlock_irqrestore(&iwcq->lock, flags);
2412 struct i40iw_cq *iwcq;
2417 iwcq = (struct i40iw_cq *)ibcq;
2418 ukcq = &iwcq->sc_cq.cq_uk;
2421 spin_lock_irqsave(&iwcq->lock, flags);
2423 spin_unlock_irqrestore(&iwcq->lock, flags);