Lines Matching refs:iq
124 struct otx2_cpt_inst_queue *iq; in otx2_cpt_free_instruction_queues() local
128 iq = &lfs->lf[i].iqueue; in otx2_cpt_free_instruction_queues()
129 if (iq->real_vaddr) in otx2_cpt_free_instruction_queues()
131 iq->size, in otx2_cpt_free_instruction_queues()
132 iq->real_vaddr, in otx2_cpt_free_instruction_queues()
133 iq->real_dma_addr); in otx2_cpt_free_instruction_queues()
134 iq->real_vaddr = NULL; in otx2_cpt_free_instruction_queues()
135 iq->vaddr = NULL; in otx2_cpt_free_instruction_queues()
142 struct otx2_cpt_inst_queue *iq; in otx2_cpt_alloc_instruction_queues() local
149 iq = &lfs->lf[i].iqueue; in otx2_cpt_alloc_instruction_queues()
150 iq->size = OTX2_CPT_INST_QLEN_BYTES + in otx2_cpt_alloc_instruction_queues()
154 iq->real_vaddr = dma_alloc_coherent(&lfs->pdev->dev, iq->size, in otx2_cpt_alloc_instruction_queues()
155 &iq->real_dma_addr, GFP_KERNEL); in otx2_cpt_alloc_instruction_queues()
156 if (!iq->real_vaddr) { in otx2_cpt_alloc_instruction_queues()
160 iq->vaddr = iq->real_vaddr + OTX2_CPT_INST_GRP_QLEN_BYTES; in otx2_cpt_alloc_instruction_queues()
161 iq->dma_addr = iq->real_dma_addr + OTX2_CPT_INST_GRP_QLEN_BYTES; in otx2_cpt_alloc_instruction_queues()
164 iq->vaddr = PTR_ALIGN(iq->vaddr, OTX2_CPT_INST_Q_ALIGNMENT); in otx2_cpt_alloc_instruction_queues()
165 iq->dma_addr = PTR_ALIGN(iq->dma_addr, in otx2_cpt_alloc_instruction_queues()