Lines Matching refs:cq
2435 static int complete_v3_hw(struct hisi_sas_cq *cq)
2438 struct hisi_hba *hisi_hba = cq->hisi_hba;
2440 int queue = cq->id;
2443 rd_point = cq->rd_point;
2494 cq->rd_point = rd_point;
2503 struct hisi_sas_cq *cq = &hisi_hba->cq[queue];
2506 spin_lock(&cq->poll_lock);
2507 completed = complete_v3_hw(cq);
2508 spin_unlock(&cq->poll_lock);
2515 struct hisi_sas_cq *cq = p;
2517 complete_v3_hw(cq);
2524 struct hisi_sas_cq *cq = p;
2525 struct hisi_hba *hisi_hba = cq->hisi_hba;
2526 int queue = cq->id;
2601 struct hisi_sas_cq *cq = &hisi_hba->cq[i];
2606 cq->irq_no = pci_irq_vector(pdev, nr);
2607 rc = devm_request_threaded_irq(dev, cq->irq_no,
2611 DRV_NAME " cq", cq);
2613 dev_err(dev, "could not request cq%d interrupt, rc=%d\n",
2617 cq->irq_mask = pci_irq_get_affinity(pdev, i + BASE_VECTORS_V3_HW);
2618 if (!cq->irq_mask) {
2619 dev_err(dev, "could not get cq%d irq affinity!\n", i);
3652 struct hisi_sas_cq *cq = debugfs_cq->cq;
3653 struct hisi_hba *hisi_hba = cq->hisi_hba;
3816 dentry = debugfs_create_dir("cq", dump_dentry);
4574 struct hisi_sas_debugfs_cq *cq =
4577 cq->complete_hdr = devm_kmalloc(dev, sz, GFP_KERNEL);
4578 if (!cq->complete_hdr)
4580 cq->cq = &hisi_hba->cq[c];
4922 struct hisi_sas_cq *cq = &hisi_hba->cq[i];
4925 devm_free_irq(&pdev->dev, pci_irq_vector(pdev, nr), cq);