Lines Matching refs:q_base
374 if (qcq->q_base) { in ionic_qcq_free()
375 dma_free_coherent(dev, qcq->q_size, qcq->q_base, qcq->q_base_pa); in ionic_qcq_free()
376 qcq->q_base = NULL; in ionic_qcq_free()
511 void *q_base, *cq_base, *sg_base; in ionic_qcq_alloc() local
574 new->q_base = dma_alloc_coherent(dev, new->q_size, in ionic_qcq_alloc()
576 if (!new->q_base) { in ionic_qcq_alloc()
581 q_base = PTR_ALIGN(new->q_base, PAGE_SIZE); in ionic_qcq_alloc()
583 ionic_q_map(&new->q, q_base, q_base_pa); in ionic_qcq_alloc()
585 cq_base = PTR_ALIGN(q_base + q_size, PAGE_SIZE); in ionic_qcq_alloc()
591 new->q_base = dma_alloc_coherent(dev, new->q_size, &new->q_base_pa, in ionic_qcq_alloc()
593 if (!new->q_base) { in ionic_qcq_alloc()
598 q_base = PTR_ALIGN(new->q_base, PAGE_SIZE); in ionic_qcq_alloc()
600 ionic_q_map(&new->q, q_base, q_base_pa); in ionic_qcq_alloc()
640 dma_free_coherent(dev, new->q_size, new->q_base, new->q_base_pa); in ionic_qcq_alloc()
720 memset(qcq->q_base, 0, qcq->q_size); in ionic_qcq_sanitize()
2594 swap(a->q_base, b->q_base); in ionic_swap_queues()