Lines Matching refs:q_base
398 if (qcq->q_base) { in ionic_qcq_free()
399 dma_free_coherent(dev, qcq->q_size, qcq->q_base, qcq->q_base_pa); in ionic_qcq_free()
400 qcq->q_base = NULL; in ionic_qcq_free()
540 void *q_base, *cq_base, *sg_base; in ionic_qcq_alloc() local
603 new->q_base = dma_alloc_coherent(dev, new->q_size, in ionic_qcq_alloc()
605 if (!new->q_base) { in ionic_qcq_alloc()
610 q_base = PTR_ALIGN(new->q_base, PAGE_SIZE); in ionic_qcq_alloc()
612 ionic_q_map(&new->q, q_base, q_base_pa); in ionic_qcq_alloc()
614 cq_base = PTR_ALIGN(q_base + q_size, PAGE_SIZE); in ionic_qcq_alloc()
621 new->q_base = dma_alloc_coherent(dev, new->q_size, &new->q_base_pa, in ionic_qcq_alloc()
623 if (!new->q_base) { in ionic_qcq_alloc()
628 q_base = PTR_ALIGN(new->q_base, PAGE_SIZE); in ionic_qcq_alloc()
630 ionic_q_map(&new->q, q_base, q_base_pa); in ionic_qcq_alloc()
701 dma_free_coherent(dev, new->q_size, new->q_base, new->q_base_pa); in ionic_qcq_alloc()
781 memset(qcq->q_base, 0, qcq->q_size); in ionic_qcq_sanitize()
2835 swap(a->q_base, b->q_base); in ionic_swap_queues()