Lines Matching refs:cqinfo
167 struct command_qinfo *cqinfo) in free_command_queues() argument
177 queue = &cqinfo->queue[i]; in free_command_queues()
178 if (hlist_empty(&cqinfo->queue[i].chead)) in free_command_queues()
181 hlist_for_each_entry_safe(chunk, node, &cqinfo->queue[i].chead, in free_command_queues()
197 cqinfo->cmd_size = 0; in free_command_queues()
201 struct command_qinfo *cqinfo, size_t cmd_size, in alloc_command_queues() argument
210 cqinfo->cmd_size = cmd_size; in alloc_command_queues()
212 cptvf->qsize = min(qlen, cqinfo->qchunksize) * in alloc_command_queues()
215 q_size = qlen * cqinfo->cmd_size; in alloc_command_queues()
222 u32 qcsize_bytes = cqinfo->qchunksize * cqinfo->cmd_size; in alloc_command_queues()
224 queue = &cqinfo->queue[i]; in alloc_command_queues()
225 INIT_HLIST_HEAD(&cqinfo->queue[i].chead); in alloc_command_queues()
247 &cqinfo->queue[i].chead); in alloc_command_queues()
272 free_command_queues(cptvf, cqinfo); in alloc_command_queues()
282 ret = alloc_command_queues(cptvf, &cptvf->cqinfo, CPT_INST_SIZE, in init_command_queues()
302 free_command_queues(cptvf, &cptvf->cqinfo); in cleanup_command_queues()
650 base_addr = (u64)(cptvf->cqinfo.queue[0].qhead->dma_addr); in cptvf_device_init()
731 cptvf->cqinfo.qchunksize = CPT_CMD_QCHUNK_SIZE; in cptvf_probe()