Lines Matching refs:cqinfo
170 struct command_qinfo *cqinfo) in free_command_queues() argument
180 queue = &cqinfo->queue[i]; in free_command_queues()
181 if (hlist_empty(&cqinfo->queue[i].chead)) in free_command_queues()
184 hlist_for_each_entry_safe(chunk, node, &cqinfo->queue[i].chead, in free_command_queues()
200 cqinfo->cmd_size = 0; in free_command_queues()
204 struct command_qinfo *cqinfo, size_t cmd_size, in alloc_command_queues() argument
213 cqinfo->cmd_size = cmd_size; in alloc_command_queues()
215 cptvf->qsize = min(qlen, cqinfo->qchunksize) * in alloc_command_queues()
218 q_size = qlen * cqinfo->cmd_size; in alloc_command_queues()
225 u32 qcsize_bytes = cqinfo->qchunksize * cqinfo->cmd_size; in alloc_command_queues()
227 queue = &cqinfo->queue[i]; in alloc_command_queues()
228 INIT_HLIST_HEAD(&cqinfo->queue[i].chead); in alloc_command_queues()
250 &cqinfo->queue[i].chead); in alloc_command_queues()
275 free_command_queues(cptvf, cqinfo); in alloc_command_queues()
285 ret = alloc_command_queues(cptvf, &cptvf->cqinfo, CPT_INST_SIZE, in init_command_queues()
305 free_command_queues(cptvf, &cptvf->cqinfo); in cleanup_command_queues()
653 base_addr = (u64)(cptvf->cqinfo.queue[0].qhead->dma_addr); in cptvf_device_init()
740 cptvf->cqinfo.qchunksize = CPT_CMD_QCHUNK_SIZE; in cptvf_probe()