Lines Matching refs:sg_base
363 if (qcq->sg_base) { in ionic_qcq_free()
364 dma_free_coherent(dev, qcq->sg_size, qcq->sg_base, qcq->sg_base_pa); in ionic_qcq_free()
365 qcq->sg_base = NULL; in ionic_qcq_free()
481 void *q_base, *cq_base, *sg_base; in ionic_qcq_alloc() local
586 new->sg_base = dma_alloc_coherent(dev, new->sg_size, &new->sg_base_pa, in ionic_qcq_alloc()
588 if (!new->sg_base) { in ionic_qcq_alloc()
593 sg_base = PTR_ALIGN(new->sg_base, PAGE_SIZE); in ionic_qcq_alloc()
595 ionic_q_sg_map(&new->q, sg_base, sg_base_pa); in ionic_qcq_alloc()
690 memset(qcq->sg_base, 0, qcq->sg_size); in ionic_qcq_sanitize()
2180 swap(a->q.sg_base, b->q.sg_base); in ionic_swap_queues()
2182 swap(a->sg_base, b->sg_base); in ionic_swap_queues()