Lines Matching refs:q_base
351 if (qcq->q_base) { in ionic_qcq_free()
352 dma_free_coherent(dev, qcq->q_size, qcq->q_base, qcq->q_base_pa); in ionic_qcq_free()
353 qcq->q_base = NULL; in ionic_qcq_free()
481 void *q_base, *cq_base, *sg_base; in ionic_qcq_alloc() local
542 new->q_base = dma_alloc_coherent(dev, new->q_size, in ionic_qcq_alloc()
544 if (!new->q_base) { in ionic_qcq_alloc()
549 q_base = PTR_ALIGN(new->q_base, PAGE_SIZE); in ionic_qcq_alloc()
551 ionic_q_map(&new->q, q_base, q_base_pa); in ionic_qcq_alloc()
553 cq_base = PTR_ALIGN(q_base + q_size, PAGE_SIZE); in ionic_qcq_alloc()
559 new->q_base = dma_alloc_coherent(dev, new->q_size, &new->q_base_pa, in ionic_qcq_alloc()
561 if (!new->q_base) { in ionic_qcq_alloc()
566 q_base = PTR_ALIGN(new->q_base, PAGE_SIZE); in ionic_qcq_alloc()
568 ionic_q_map(&new->q, q_base, q_base_pa); in ionic_qcq_alloc()
608 dma_free_coherent(dev, new->q_size, new->q_base, new->q_base_pa); in ionic_qcq_alloc()
688 memset(qcq->q_base, 0, qcq->q_size); in ionic_qcq_sanitize()
2176 swap(a->q_base, b->q_base); in ionic_swap_queues()