Lines Matching full:cqe
324 cqe_size = wq->q_depth * sizeof(*rq->cqe); in alloc_rq_cqe()
325 rq->cqe = vzalloc(cqe_size); in alloc_rq_cqe()
326 if (!rq->cqe) in alloc_rq_cqe()
335 rq->cqe[i] = dma_alloc_coherent(&pdev->dev, in alloc_rq_cqe()
336 sizeof(*rq->cqe[i]), in alloc_rq_cqe()
338 if (!rq->cqe[i]) in alloc_rq_cqe()
346 dma_free_coherent(&pdev->dev, sizeof(*rq->cqe[j]), rq->cqe[j], in alloc_rq_cqe()
352 vfree(rq->cqe); in alloc_rq_cqe()
368 dma_free_coherent(&pdev->dev, sizeof(*rq->cqe[i]), rq->cqe[i], in free_rq_cqe()
372 vfree(rq->cqe); in free_rq_cqe()
408 dev_err(&pdev->dev, "Failed to allocate rq cqe\n"); in hinic_init_rq()
842 struct hinic_rq_cqe *cqe; in hinic_rq_read_wqe() local
850 cqe = rq->cqe[*cons_idx]; in hinic_rq_read_wqe()
852 status = be32_to_cpu(cqe->status); in hinic_rq_read_wqe()
902 struct hinic_rq_cqe *cqe = rq->cqe[cons_idx]; in hinic_rq_put_wqe() local
903 u32 status = be32_to_cpu(cqe->status); in hinic_rq_put_wqe()
908 cqe->status = cpu_to_be32(status); in hinic_rq_put_wqe()
925 struct hinic_rq_cqe *cqe = rq->cqe[cons_idx]; in hinic_rq_get_sge() local
926 u32 len = be32_to_cpu(cqe->len); in hinic_rq_get_sge()
945 struct hinic_rq_cqe *cqe = rq->cqe[prod_idx]; in hinic_rq_prepare_wqe() local
957 hinic_set_sge(&cqe_sect->sge, cqe_dma, sizeof(*cqe)); in hinic_rq_prepare_wqe()