Lines Matching refs:sg_base
406 if (qcq->sg_base) { in ionic_qcq_free()
407 dma_free_coherent(dev, qcq->sg_size, qcq->sg_base, qcq->sg_base_pa); in ionic_qcq_free()
408 qcq->sg_base = NULL; in ionic_qcq_free()
527 void *q_base, *cq_base, *sg_base; in ionic_qcq_alloc() local
632 new->sg_base = dma_alloc_coherent(dev, new->sg_size, &new->sg_base_pa, in ionic_qcq_alloc()
634 if (!new->sg_base) { in ionic_qcq_alloc()
639 sg_base = PTR_ALIGN(new->sg_base, PAGE_SIZE); in ionic_qcq_alloc()
641 ionic_q_sg_map(&new->q, sg_base, sg_base_pa); in ionic_qcq_alloc()
736 memset(qcq->sg_base, 0, qcq->sg_size); in ionic_qcq_sanitize()
2640 swap(a->q.sg_base, b->q.sg_base); in ionic_swap_queues()
2642 swap(a->sg_base, b->sg_base); in ionic_swap_queues()